This example demonstrates how to use the Video API routines to communicate with a video device, and encode/decode the data.
You would use this example if you needed a node to talk directly to a video device, and didn’t want to use the generic-video-device driver, which supports all V4L USB video devices.
It connects to a USB webcam (that must be Video4Linux (V4L) compatible), encodes the sensor data, and then decodes the same image stream to show the image processing pipeline.
This DOES NOT connect to a node defined in the SDF, it connects directly to the hardware device using the Video API.
It expects XXXXX pixel format
Sensors: LiDAR, RADAR Video Device
Packages: libglib2.0-dev libgstreamer1.0-0
To install on Ubuntu:
sudo apt-get install libglib2.0-dev libgstreamer1.0-0$ cd VideoDeviceViewer
$ mkdir build && cd build
$ cmake ..
$ make
$ ./polysync-video-encode-decode-cppFor more API examples, visit the "Tutorials" and "Development" sections in the PolySync Help Center here.