Skip to content

Commit ad37f58

Browse files
authored
Merge pull request #19 from openmv/add_raw_arg
cli: Add raw arg.
2 parents 9d3786d + 8c27114 commit ad37f58

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/openmv/cli.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ def main():
115115
parser.add_argument('--bench',
116116
action='store_true', default=False,
117117
help='Run throughput benchmark')
118+
119+
parser.add_argument('--raw',
120+
action='store_true', default=False,
121+
help='Enable raw streaming mode')
122+
118123
parser.add_argument('--timeout',
119124
action='store', type=float, default=1.0,
120125
help='Protocol timeout in seconds')
@@ -241,7 +246,7 @@ def main():
241246

242247
# Execute script
243248
camera.exec(script)
244-
camera.streaming(True, raw=False, resolution=(512, 512))
249+
camera.streaming(True, raw=args.raw, resolution=(512, 512))
245250
logging.info("Script executed, starting display...")
246251

247252
while True:

0 commit comments

Comments
 (0)