ros-drivers / video_stream_opencv

A package to open video streams and publish them in ROS using the opencv videocapture mechanism
224 stars 159 forks source link

add config to enable MJPG encoded stream #81

Open machinekoder opened 3 years ago

machinekoder commented 3 years ago

This patch allows forcing MJPG steam support of the camera.

machinekoder commented 3 years ago

As far as I understand, this only forces the USB camera to use MJPEG encoding to transport the image from the camera to the PC, which adds additional CPU load to the PC for decoding and of course decreases the stream quality. Depending on the camera this may improve the frame rate of the capture stream. The captured image encoding in OpenCV is not affected by this change.

machinekoder commented 3 years ago

@furushchev @awesomebytes Rebased on master. On a new camera I have here, enabling MJPG stream is necessary to unlock all resolutions.

awesomebytes commented 3 years ago

That said, @machinekoder would you mind adding to the documentation in the README this new option?

machinekoder commented 3 years ago

@awesomebytes done