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

Kinect - bitmap file

asked 2012-12-13 03:54:54 -0600

JaRu gravatar image

updated 2012-12-13 03:56:35 -0600


Does anybody know how I can save a greyscale image from the Kinect as a bitmap file? (python code)

Thanks for help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-12-13 09:54:21 -0600

autorover gravatar image

This may be a somewhat roundabout approach, and something faster could be possible, but you could first get the openni driver from your Kinect, which is the openni_launch and openni_camera packages, then use rosbag to capture the data from the /camera/rgb/image_mono topic, which is the greyscale image. I don't know whether rosbag would save the captured data in the format you want so you will have to check on that. You can learn how to go about doing that in further detail with these links and

edit flag offensive delete link more


I tried this tutorial, its works all till point 2.3, but when I will checking the conects of my bag with rosbag info kinect.bag I get this error message: ERROR reading kinect.bag: [Errno 2] No such file or directory: 'kinect.bag'

JaRu gravatar image JaRu  ( 2012-12-13 10:59:22 -0600 )edit

You probably don't have a file called 'kinect.bag'. It probably has a longer filename based on the time you captured the data. Make sure that you use the right filename in the command, and if you have issues with a corrupted rosbag file, use rosbag reindex kinect.bag.

autorover gravatar image autorover  ( 2012-12-15 19:12:05 -0600 )edit

Question Tools


Asked: 2012-12-13 03:54:54 -0600

Seen: 218 times

Last updated: Dec 13 '12