SpectacularAI / sdk-examples

Spectacular AI SDK examples
Apache License 2.0
203 stars 35 forks source link

Low USB Speed Error with PoE #16

Closed MadlyFX closed 2 years ago

MadlyFX commented 2 years ago

Hi, using an Oak-D PoE, I can't get any of the examples to run. Getting this error:

RuntimeError: Spectacular AI SDK:  error: LOW USB SPEED!

############################################################################
Your USB connection speed 'UNKNOWN' is lower than required.
Please check that you have connected the device to an USB 3 port with an
undamaged USB 3 cable (blue interior). Speed SUPER or better is recommended.
############################################################################

I can get image and run other (non-Spectacular) scripts so the camera is definitely visible to the network.

Bercon commented 2 years ago

We haven't (yet) tested with Oak-D PoE, but it should work. You can disable the USB speed check like this:

config = spectacularAI.depthai.Configuration()
config.ensureSufficientUsbSpeed = False
vio_pipeline = spectacularAI.depthai.Pipeline(pipeline, config)
Bercon commented 2 years ago

I finally had a chance to test Oak-D PoE and by disabling the ensureSufficientUsbSpeed check as mentioned above I got it working without any other changes.

We'll fix this in the next version, so you'll just see the warning that the bandwidth may be limited, but it wont fail on it by default.