OpenKinect / libfreenect

Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X
http://openkinect.org
3.55k stars 1.15k forks source link

Unable to change resolution to low using the Python3 wrapper #595

Open josuerocha opened 4 years ago

josuerocha commented 4 years ago

Hello,

I am trying to grab depth and RGB frames from the sensor using the 320*240 resolution. Therefore I did the following:

context = freenect.init()
device = freenect.open_device(context, 0)
freenect.set_depth_mode(device, freenect.RESOLUTION_LOW, freenect.DEPTH_11BIT)
freenect.set_video_mode(device, freenect.RESOLUTION_LOW, freenect.VIDEO_RGB)

However, I get the following error:

freenect_set_depth_mode: freenect_frame_mode provided is invalid

Thanks

piedar commented 4 years ago

Looks like low resolution was never implemented. See cameras.c for the list of video and depth modes.

josuerocha commented 4 years ago

That explains it. Thank you for the clarification.

Are there any plans to implement low resolution?