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

cvCaptureFromCAM

asked 2011-07-25 12:51:16 -0600

robwa gravatar image

Hello There, I am trying to save a stream of images from KInect camera. MY first line of code is: CvCapture* capture = cvCaptureFromCAM(-1)

I passed -1 so that It can search for the camera because I don't know the index for KInect Camera. Can someone help me find out what it is or another method used in the past. Many thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-07-25 20:12:28 -0600

Bram van de Klundert gravatar image

if you use the openni_kinect node to publish the data from the kinect, you could subscribe to one of the camera topics(/camera/rgb/image_color or /camera/rgb/image_mono). this would give you and image message which can be converted to an opencv iplimage using the cv_bridge package (http://www.ros.org/wiki/cv_bridge)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-07-25 12:51:16 -0600

Seen: 1,168 times

Last updated: Jul 25 '11