Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>

  • DriveWorks SDK Reference
    5.8.83 Release
    For Test and Development only

    All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    USB Camera Capture Sample

    Description

    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.

    Running the Sample

    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
    

    Examples

    To test the first camera present on the system

    ./sample_camera_usb
    

    To test the third camera present on the system

    ./sample_camera_usb --device=2
    

    Output

    The sample opens a window displaying the input from the camera.

    Single consumer-grade USB camera capturing input

    Additional information

    For more details see Camera.

    人人超碰97caoporen国产