DriveWorks SDK Reference
3.0.4260 Release
For Test and Development only

/dvs/git/dirty/gitlab-master_av/dw/sdk/samples/sensors/camera/camera_usb/README.md
Go to the documentation of this file.
1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_camera_usb_sample USB Camera Capture Sample
4 @tableofcontents
5 
6 @note SW Release Applicability: This sample is available in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
7 
8 @section dwx_camera_usb_sample_description Description
9 
10 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<sup>&trade;</sup> platforms.
11 
12 @section dwx_camera_usb_sample_running Running the Sample
13 
14 A camera must be connected to a USB port.
15 The USB Camera Capture sample, sample_camera_usb, accepts the following parameters:
16 
17  ./sample_camera_usb --device=[integer]
18  --mode=[a|b|integer]
19  --record-file=[path/to/output/file]
20 
21 Where:
22 
23  --device=[integer]
24  Is the device ID of the camera.
25  Default value: 0
26 
27  --mode=[a|b|integer]
28  Applicable for generic camera only. Specifies
29  a method for selecting capture settings:
30  `a`: choose mode with maximum resolution
31  `b`: choose mode with maximum fps
32  integer number: choose mode by index
33  Default value: 0
34 
35  --record-file=[path/to/output/file]
36  Specifies the path to the captured video.
37  This option is only available on x86.
38  Default value: none
39 
40 @subsection dwx_camera_usb_sample_examples Examples
41 
42 #### To test the first camera present on the system
43 
44  ./sample_camera_usb
45 
46 #### To test the third camera present on the system
47 
48  ./sample_camera_usb --device=2
49 
50 @section dwx_camera_usb_sample_output Output
51 
52 The sample opens a window displaying the input from the camera.
53 
54 ![Single consumer-grade USB camera capturing input](sample_camera_usb.png)
55 
56 @section dwx_camera_usb_sample_more Additional information
57 
58 For more details see @ref camera_mainsection.