# HG changeset patch # User Jeff Hammel # Date 1396571503 25200 # Node ID 1453c8a3747e008ce88b889d75db0c7388c0c25f # Parent f77be2334246e18391cd1ff31be0fa001bfad580 STUB: python/clean_whiteboard.py diff -r f77be2334246 -r 1453c8a3747e python/clean_whiteboard.py --- a/python/clean_whiteboard.py Thu Apr 03 16:41:21 2014 -0700 +++ b/python/clean_whiteboard.py Thu Apr 03 17:31:43 2014 -0700 @@ -22,11 +22,9 @@ # parse command line parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('input', - type=argparse.FileType('r'), help='input file') - parser.add_argument('-o', '--output' dest='output', - type=argparse.FileType('w'), default=sys.stdout, - help='output file or stdout') + parser.add_argument('output', + help='output file') options = parser.parse_args(args) subprocess.check_call(['convert', options.input, '-morphology', 'Convolve', 'DoG:15,100,0', '-negate', '-normalize', '-blur', '0x1', '-channel', 'RBG', '-level', '60%,91%,0.1', options.output])