leapuvc icon indicating copy to clipboard operation
leapuvc copied to clipboard

leapuvc python extis a bug

Open Christian-Louis opened this issue 5 years ago • 2 comments

I read the Leapuvc mannual and find the encoding of leapmotion‘s raw image is 'YUY2'. but in the python leapuvc sdk , the shape of the frame i get is (480,640,3) and the three-dimensional image can't reshape into a proper side-by-side image which has a shape of (480,640*2)。

Christian-Louis avatar Nov 29 '19 08:11 Christian-Louis

The OpenCV Python API attempts to request the raw byte frame data, but it doesn’t work on Mac, which tries to convert the YUY2 to RGB.

Are you using a Mac?

jselstad avatar Feb 03 '20 15:02 jselstad

Alternatively, it could be trying to access a different web cam hooked into your machine; if that's the case you can either unplug/disable your current webcam in the DeviceManager (on Windows). Or you can feed an incremented "Source" argument in through the constructor of the leapImageThread.

jselstad avatar Feb 11 '20 22:02 jselstad