OpenCV and ROS

Hello everyone,

I have a question regarding OpenCV and ROS. Does ROS have OpenCV 3 installed by default? I already have cv_bridge and vision_opencv. I believe I also have most of the dependencies in my CMakelist and package.xml. What other steps do I have to take to be able to use OpenCV to process a video stream for example?

Eric

Hello Eric,

If you have cv_bridge installed, OpenCV3 should be also installed.
I advice you to follow this tutorial
There is covered how to subscribe to image topic and how to convert message into openCV format.

Just to clarify, if you want to process video, each message you receive will represent single frame of video.

Regards,
Łukasz

1 Like