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

Gen1 uses python library: depthai v

Gen2 uses python library: depthai v

Gen1 examples repository:

Gen2 examples repository:

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

If you use a program made with depthai and after switch to a program made for depthai 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== --extra-index-url <>

And run the following script:


Guillermo Sahonero: