Lines Matching refs:sys
17 import sys
65 if len(sys.argv) < 3:
66 print("Usage: {} input outdir [width] [height] [threshod]".format(sys.argv[0]))
69 imgPath = sys.argv[1]
70 outdir = sys.argv[2]
71 width = len(sys.argv) > 3 and int(sys.argv[3]) or TARGET_WIDTH
72 height = len(sys.argv) > 4 and int(sys.argv[4]) or TARGET_HEIGHT
73 threshold = len(sys.argv) > 5 and int(sys.argv[5]) or PIXEL_THRESHOLD