Ask Your Question
0

Using rostopic /image_raw for VideoCapture in OpenCV

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

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

hamid 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

Stats

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

Seen: 937 times

Last updated: May 24 '14