Slow image registration using OpenNI in Python

Hi,

I need to use the rgb stream and the depth stream on the orbbec persee running ubuntu 14.04 using python. I have managed to get both streams, using OpenCV and OpenNI, and even managed to get them registered. However, the line which enables the registration causes the camera to run very slowly. Removing this line alone restores the expected speed.

dev = openni2.Device.open_any()
depth_stream = dev.create_depth_stream()
dev.set_image_registration_mode(1)
depth_stream.start()

Is there another way of achieving this without this without the unacceptable slowdown?

Hi, I am also facing same issue. What is the solution?
Actually I am getting depth values 0 when I set the registration. self.depth_stream = self.dev.create_depth_stream() self.color_stream = self.dev.create_color_stream() self.dev.set_image_registration_mode(openni2.c_api.OniImageRegistrationMode.ONI_IMAGE_REGISTRATION_DEPTH_TO_COLOR)

what camera do you use?