ros-drivers / video_stream_opencv

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

Add option to set resolution of video stream. #2

Closed wiebevr closed 7 years ago

wiebevr commented 7 years ago

Add an option to set the resolution of the video stream using the CV_CAP_PROP_FRAME parameters. I needed this to be able to use the full angle of view of a camera with an aspect ratio of 16:9.

Thought this would be useful to have.

awesomebytes commented 7 years ago

Awesome!

wiebevr commented 7 years ago

Thanks!

awesomebytes commented 7 years ago

@wiebevr I've made a few more changes (to make optional the width and height). I've also tried it myself and it works. Also did a bit of cleanup of prints and so. Updated the license to BSD... and made a release for indigo! (well, it's here https://github.com/ros/rosdistro/pull/13198) If it goes well I guess I'll try on jade and kinetic.

wiebevr commented 7 years ago

Nice, thanks!