Kinect - bitmap file
Hello!
Does anybody know how I can save a greyscale image from the Kinect as a bitmap file? (python code)
Thanks for help!
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Hello!
Does anybody know how I can save a greyscale image from the Kinect as a bitmap file? (python code)
Thanks for help!
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 www.ros.org/wiki/openni_launch/Tutorials/BagRecordingPlayback and www.ros.org/wiki/openni_launch.
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
.
Asked: 2012-12-13 03:54:54 -0600
Seen: 243 times
Last updated: Dec 13 '12