Ask Your Question

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 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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 1,334 times

Last updated: May 24 '14