Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leapuvc python extis a bug #15

Open
Christian-Louis opened this issue Nov 29, 2019 · 2 comments
Open

leapuvc python extis a bug #15

Christian-Louis opened this issue Nov 29, 2019 · 2 comments

Comments

@Christian-Louis
Copy link

Christian-Louis commented Nov 29, 2019

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)。

@jselstad
Copy link
Contributor

jselstad commented Feb 3, 2020

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants