Ask Your Question
0

cvCaptureFromCAM

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

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

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

Your Answer

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

Add Answer

Question Tools

Stats

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

Seen: 907 times

Last updated: Jul 25 '11