ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question


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

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 (

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


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

Seen: 1,063 times

Last updated: Jul 25 '11