changeset 661:1453c8a3747e

STUB: python/clean_whiteboard.py
author Jeff Hammel <k0scist@gmail.com>
date Thu, 03 Apr 2014 17:31:43 -0700
parents f77be2334246
children 893d650f9380
files python/clean_whiteboard.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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])