The USB Camera Capture sample captures video input from USB cameras, and displays the output in an opened window. This sample is compatible with Linux and NVIDIA DRIVE™ platforms.
A camera must be connected to a USB port. The USB Camera Capture sample, sample_camera_usb, accepts the following parameters:
./sample_camera_usb --device=[integer] --mode=[a|b|integer] --record-file=[path/to/output/file]
Where:
--device=[integer] Is the device ID of the camera. Default value: 0 --mode=[a|b|integer] Applicable for generic camera only. Specifies a method for selecting capture settings: `a`: choose mode with maximum resolution `b`: choose mode with maximum fps integer number: choose mode by index Default value: 0 --record-file=[path/to/output/file] Specifies the path to the captured video. This option is only available on x86. Default value: none
./sample_camera_usb
./sample_camera_usb --device=2
The sample opens a window displaying the input from the camera.
For more details see Camera.