I'm working with OpenCV in Python. I want to get input from Asus Xtion .
I'm able to successfully run samples from PyOpenNI .
I want to use the image obtained (str format) by igen.get_synced_image_map_bgr()
in opencv.
igen-ImageGenerator
I want to convert it to IplImage
.
How can I do it,or How can I otherwise use the input from the depth sensor in Opencv python code.
I recently used the string format depth data from Kinect in PyOpenNI with OpenCV. Use numpy arrays which can be created from strings and which are the default data type in cv2 (OpenCV) for Python.
Code example here: http://euanfreeman.co.uk/pyopenni-and-opencv/
Not sure how Kinect differs from your depth sensor but that may be a useful starting point. Good luck!
Edit: added code