JacSchn / 5G-Beamforming-from-Visual-and-Lidar-Rendering

Regent Scholarship Research with UWW where we are using machine learning in an autonomous driving lab to collect visual and lidar-based models to have optimal guidance of 60GHz Wireless Network.
GNU Lesser General Public License v2.1
2 stars 1 forks source link

Compress USB Camera Image #20

Open flynn248 opened 2 years ago

flynn248 commented 2 years ago

The USB camera image is currently being saved as an uncompressed image array. This causes the files to be larger than if the video stream is capturing a compressed image. A compressed image is able to be uncompressed to represent the full image and this method uses less storage and potentially less processing power. The current image is being captured as MJPEG. It may be better to capture this in H264 format, but I am unsure.

The file that would need to be modified is the sony_cam.py file.

To list the possible formats for a video device, use $ v4l2-ctl --info -d /dev/video3 --list-formats-ext This example assumes the device is on video poet 3. The list of video devices can be seen by using $ ls /dev/video then hit \ twice to list the possible video ports.