There exist two generations of luxonis depthai libraries: Gen and Gen2

Gen1 uses python library: depthai v 1.0.0.0

Gen2 uses python library: depthai v 2.0.0.1

Gen1 examples repository: https://github.com/luxonis/depthai

Gen2 examples repository:

If you're using usb 2 you need to force it

https://discord.com/channels/790680891252932659/819663531003346994/819681702585565205

If you use a program made with depthai 1.0.0.0 and after switch to a program made for depthai 2.0.0.0 you need to restart the camera. Not only disconnecting and connecting the USB 3.0, but also powering it On and Off

Using depthai as webcam

To use the oak-D camera as webcam you should use this version of the depthai library:

python3 -m pip install depthai==0.0.2.1+e70becfe1c1908c6148f842006b9986ebab39cab --extra-index-url <https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local>

And run the following script:

luxonis/depthai-python

Guillermo Sahonero: