depthai icon indicating copy to clipboard operation
depthai copied to clipboard

[BUG] depthai_demo cannot start oak-d-pro-w-poe

Open David9696 opened this issue 3 years ago • 9 comments

Hi,

When i tried to run python3 depthai_demo.py ,

I got the following error:

RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND

The X_LINK_BOOTLOADER could detect the available device.

May I know what is the problem?

Thanks.

David9696 avatar Jul 21 '22 10:07 David9696

What host OS and device? Sometimes some USB controllers have trouble with the USB3 transition off of the USB2 bootloader.

Luxonis-Brandon avatar Jul 21 '22 21:07 Luxonis-Brandon

Hi @Luxonis-Brandon

I tried demo with my oak-d-pro-w-poe camera. May I know how does it related to USB issue?

Separately, I have tried this demo with my oak-d poe. It is working fine. I think this demo could not supporting oak-d-pro w poe.

David9696 avatar Jul 22 '22 10:07 David9696

Sorry about the trouble. We're trying to figure out what's going on here.

Luxonis-Brandon avatar Jul 22 '22 14:07 Luxonis-Brandon

@David9696

Are you on the latest main commit? Also, do you mind running the following example under depthai-python repository: examples/calibration/calibration_dump.py and post back the results

themarpe avatar Jul 22 '22 19:07 themarpe

@David9696

In case the above won't work - do you mind checking out the branch eeprom_version_v7_multi_cam_support_4lane in depthai-python repository, then run the python3 examples/install_requirements.py and afterwards the python3 examples/calibration/calibration_dump.py

Thanks!

themarpe avatar Jul 23 '22 09:07 themarpe

examples/calibration/calibration_dump.py

Hi @themarpe ,

Yes, I am using the latest main commit.

The required log is listed as follows: 0.9999340772628784, -0.0034196018241345882, -0.010961289517581463 ], [ 0.003386666299775243, 0.9999896883964539, -0.003021862357854843 ], [ 0.010971510782837868, 0.0029845410026609898, 0.9999353289604187 ] ], "specTranslation": { "x": -7.5, "y": 0.0, "z": 0.0 }, "toCameraSocket": 2, "translation": { "x": -7.513543605804443, "y": 0.044343046844005585, "z": -0.02899990789592266 } }, "height": 800, "intrinsicMatrix": [ [ 571.7001953125, 0.0, 635.6285400390625 ], [ 0.0, 571.7001953125, 411.1789855957031 ], [ 0.0, 0.0, 1.0 ] ], "lensPosition": 0, "specHfovDeg": 127.0, "width": 1280 } ], [ 0, { "cameraType": 0, "distortionCoeff": [ 1.7602559328079224, 19.0605525970459, 0.0017925817519426346, 0.0006700769881717861, 2.215480327606201, 1.863311529159546, 19.879070281982422, 6.134221076965332, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], "extrinsics": { "rotationMatrix": [ [ 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0 ] ], "specTranslation": { "x": -0.0, "y": -0.0, "z": -0.0 }, "toCameraSocket": -1, "translation": { "x": 0.0, "y": 0.0, "z": 0.0 } }, "height": 2160, "intrinsicMatrix": [ [ 2299.099853515625, 0.0, 1919.19482421875 ], [ 0.0, 2299.099853515625, 1071.754638671875 ], [ 0.0, 0.0, 1.0 ] ], "lensPosition": 128, "specHfovDeg": 108.0, "width": 3840 } ] ], "hardwareConf": "F1-FV01-BC000", "imuExtrinsics": { "rotationMatrix": [ [ 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0 ] ], "specTranslation": { "x": 0.0, "y": 0.0, "z": 0.0 }, "toCameraSocket": -1, "translation": { "x": 0.0, "y": 0.0, "z": 0.0 } }, "miscellaneousData": [], "productName": "OAK-D Pro-W PoE", "stereoRectificationData": { "leftCameraSocket": 1, "rectifiedRotationLeft": [ [ 0.9999315738677979, -0.009309538640081882, -0.007083844393491745 ], [ 0.00929875299334526, 0.9999555349349976, -0.0015540528111159801 ], [ 0.007097996771335602, 0.0014880754752084613, 0.999973714351654 ] ], "rectifiedRotationRight": [ [ 0.9999751448631287, -0.00590160209685564, 0.0038595886435359716 ], [ 0.005895724520087242, 0.9999814629554749, 0.0015324773266911507 ], [ -0.003868561238050461, -0.0015096841380000114, 0.9999913573265076 ] ], "rightCameraSocket": 2 }, "version": 7 } Factory calibration: { "batchName": "Leonardo", "batchTime": 1655894221, "boardConf": "IR-C00M00-00", "boardCustom": "", "boardName": "NG9097", "boardOptions": 3, "boardRev": "R3M2E2", "cameraData": [ [ 2, { "cameraType": 0, "distortionCoeff": [ 0.19513152539730072, -0.05879658833146095, 5.876300929230638e-05, 6.0128335462650284e-05, -0.0009062296594493091, 0.5274710655212402, -0.07126843184232712, -0.008759371004998684, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], "extrinsics": { "rotationMatrix": [ [ 0.9999480843544006, -0.0041889906860888, 0.009286466985940933 ], [ 0.004016131162643433, 0.9998197555541992, 0.018555250018835068 ], [ -0.009362521581351757, -0.018516991287469864, 0.9997847080230713 ] ], "specTranslation": { "x": 3.75, "y": 0.0, "z": 0.0 }, "toCameraSocket": 0, "translation": { "x": 3.768287181854248, "y": 0.007790789008140564, "z": -0.0015523902839049697 } }, "height": 800, "intrinsicMatrix": [ [ 569.5403442382812, 0.0, 639.467529296875 ], [ 0.0, 569.5403442382812, 394.3494873046875 ], [ 0.0, 0.0, 1.0 ] ], "lensPosition": 0, "specHfovDeg": 127.0, "width": 1280 } ], [ 1, { "cameraType": 0, "distortionCoeff": [ 4.985419750213623, 1.3778401613235474, -1.573723420733586e-05, 0.00018916773842647672, 0.012612370774149895, 5.356302738189697, 2.905151605606079, 0.1619599461555481, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], "extrinsics": { "rotationMatrix": [ [ 0.9999340772628784, -0.0034196018241345882, -0.010961289517581463 ], [ 0.003386666299775243, 0.9999896883964539, -0.003021862357854843 ], [ 0.010971510782837868, 0.0029845410026609898, 0.9999353289604187 ] ], "specTranslation": { "x": -7.5, "y": 0.0, "z": 0.0 }, "toCameraSocket": 2, "translation": { "x": -7.513543605804443, "y": 0.044343046844005585, "z": -0.02899990789592266 } }, "height": 800, "intrinsicMatrix": [ [ 571.7001953125, 0.0, 635.6285400390625 ], [ 0.0, 571.7001953125, 411.1789855957031 ], [ 0.0, 0.0, 1.0 ] ], "lensPosition": 0, "specHfovDeg": 127.0, "width": 1280 } ], [ 0, { "cameraType": 0, "distortionCoeff": [ 1.7602559328079224, 19.0605525970459, 0.0017925817519426346, 0.0006700769881717861, 2.215480327606201, 1.863311529159546, 19.879070281982422, 6.134221076965332, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], "extrinsics": { "rotationMatrix": [ [ 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0 ] ], "specTranslation": { "x": -0.0, "y": -0.0, "z": -0.0 }, "toCameraSocket": -1, "translation": { "x": 0.0, "y": 0.0, "z": 0.0 } }, "height": 2160, "intrinsicMatrix": [ [ 2299.099853515625, 0.0, 1919.19482421875 ], [ 0.0, 2299.099853515625, 1071.754638671875 ], [ 0.0, 0.0, 1.0 ] ], "lensPosition": 128, "specHfovDeg": 108.0, "width": 3840 } ] ], "hardwareConf": "F1-FV01-BC000", "imuExtrinsics": { "rotationMatrix": [ [ 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0 ] ], "specTranslation": { "x": 0.0, "y": 0.0, "z": 0.0 }, "toCameraSocket": -1, "translation": { "x": 0.0, "y": 0.0, "z": 0.0 } }, "miscellaneousData": [], "productName": "OAK-D Pro-W PoE", "stereoRectificationData": { "leftCameraSocket": 1, "rectifiedRotationLeft": [ [ 0.9999315738677979, -0.009309538640081882, -0.007083844393491745 ], [ 0.00929875299334526, 0.9999555349349976, -0.0015540528111159801 ], [ 0.007097996771335602, 0.0014880754752084613, 0.999973714351654 ] ], "rectifiedRotationRight": [ [ 0.9999751448631287, -0.00590160209685564, 0.0038595886435359716 ], [ 0.005895724520087242, 0.9999814629554749, 0.0015324773266911507 ], [ -0.003868561238050461, -0.0015096841380000114, 0.9999913573265076 ] ], "rightCameraSocket": 2 }, "version": 7 }

David9696 avatar Jul 23 '22 12:07 David9696

Hi,

I tried to run the depthai_demo again and I got the following errors:

Depthai version installed: 2.17.1.0 Setting up demo... Available devices: [0] ********************** [X_LINK_BOOTLOADER] Traceback (most recent call last): File "depthai_demo.py", line 1070, in runQt() File "depthai_demo.py", line 1054, in runQt app.start() File "depthai_demo.py", line 780, in start exit_code = self.startGui() File "/home/mikat/depthai/gui/main.py", line 373, in startGui self.showSetupFrame("Starting demo...") File "/home/mikat/depthai/gui/main.py", line 363, in showSetupFrame setupFrame = createBlankFrame(w, h) File "/home/mikat/depthai/depthai_sdk/src/depthai_sdk/utils.py", line 287, in createBlankFrame image = np.zeros((height, width, 3), np.uint8) ValueError: negative dimensions are not allowed Error while running demo script... Command '"/usr/bin/python3" depthai_demo.py --noSupervisor --guiType qt' returned non-zero exit status 1. Waiting 5s for the device to be discoverable again... Setting up demo... Available devices: [0] ********************* [X_LINK_BOOTLOADER] Traceback (most recent call last): File "depthai_demo.py", line 1073, in runOpenCv() File "depthai_demo.py", line 1063, in runOpenCv demo.run_all(confManager) File "depthai_demo.py", line 132, in run_all self.setup(conf) File "depthai_demo.py", line 216, in setup self._device = dai.Device(self._pm.pipeline.getOpenVINOVersion(), self._deviceInfo, usb2Mode=self._conf.args.usbSpeed == "usb2") RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND Error in atexit._run_exitfuncs: Traceback (most recent call last): File "depthai_demo.py", line 345, in stop self._pv.closeQueues() AttributeError: 'Demo' object has no attribute '_pv'

PS: Device id has been hidden.

David9696 avatar Jul 23 '22 12:07 David9696

@David9696

Thanks, all looks good from the EEPROM contents.

Do you mind testing out the following:

git checkout v3.1.0
python3 install_requirements.py
python3 depthai_demo.py

themarpe avatar Jul 25 '22 15:07 themarpe

@David9696

Thanks, all looks good from the EEPROM contents.

Do you mind testing out the following:

git checkout v3.1.0
python3 install_requirements.py
python3 depthai_demo.py

Hi @themarpe ,

Yes, it worked with v3.1.0. May I know why?

David9696 avatar Jul 26 '22 08:07 David9696