Skip to content

Instantly share code, notes, and snippets.

@ethanrublee
Created August 25, 2011 00:48
Show Gist options
  • Save ethanrublee/1169688 to your computer and use it in GitHub Desktop.
Save ethanrublee/1169688 to your computer and use it in GitHub Desktop.
usage: vidcap.py [-h] [-d,--device DEVICE_ID] [--width WIDTH]
[--height HEIGHT] [--scheduler SCHEDULER_TYPE]
[--nthreads NUMBER_OF_THREADS] [--niter ITERATIONS] [--shell]
Capture a video from the device and display it.
optional arguments:
-h, --help show this help message and exit
-d,--device DEVICE_ID
The device ID of a video camera. Take the number off
of {'const': None, 'help': 'The device ID of a video
camera. Take the number off of\n\t% ls /dev/video*',
'option_strings': ['-d,--device'], 'dest': 'device',
'required': False, 'nargs': None, 'choices': None,
'default': 0, 'prog': 'vidcap.py', 'container':
<argparse._ArgumentGroup object at 0x7fb11886f890>,
'type': 'int', 'metavar': 'DEVICE_ID'} /dev/video*
--width WIDTH Desired image width.
--height HEIGHT Desired image height.
ecto scheduler options:
--scheduler SCHEDULER_TYPE
Scheduler may be either Threadpool|Singlethreaded.
Default is 'Singlethreaded'
--nthreads NUMBER_OF_THREADS
For schedulers that use threading, this specifies the
number of threads, 0 defaults to hardware concurrency
information.
--niter ITERATIONS Run the graph for niter iterations. 0, default, means
run until stopped by a cell or external forces.
--shell Bring up an ipython prompt, and execute
asynchronously.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment