ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Using rostopic /image_raw for VideoCapture in OpenCV

asked 2014-05-23 22:10:45 -0500

Hello, All of a sudden, I need to change my approach from calling TheVideoCapturer.open(0); (TheVideoCapturer is of a class VideoCapture) to open my internet camera (id 0) to subscribing to published image_raw topic. What are the easiest steps here? I'd like to use my TheVideoCapturer object still, because changing everything would be really troublesome.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-05-24 19:32:37 -0500

Hamid Didari gravatar image

first you must change your cv::mat image in to ros_image that's possible by cv_bridge and you can publish it.(for publishing you can use sensor_msgs::imageor image_transport)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-05-23 22:10:45 -0500

Seen: 1,732 times

Last updated: May 24 '14