depthai-python
depthai-python copied to clipboard
X_LINK_COMMUNICATION_NOT_OPEN error when using OAK as webcam
branch: gen2_uvc
Describe the bug
I get an X_LINK_COMMUNICATION_NOT_OPEN error when running script to use OAK as a WebCam.
RuntimeError: Failed to connect to device, error message: X_LINK_COMMUNICATION_NOT_OPEN
To Reproduce
- install python3.10 in windows.
- follow steps as mentioned in here
- I get the error in the last step
python3 examples/rgb_uvc.py
Expected behavior
The expected behaviour is: the output should be:
Device started, please keep this process running
...
@chandan-naik-rupeek This is a known issue on Windows only. Sorry for this, we'll try to fix it these days. It's a problem with the USB descriptors on Windows, due to addition of the UVC interface, the XLink VSC interface no longer works to send the depthai pipeline to device.
Is there any other method using which I can use the OAK as a uvc device?
Yes, in the meantime using a loopback device in Windows likely should work: https://docs.luxonis.com/en/latest/pages/oak_webcam/