luxonis / depthai

DepthAI Python API utilities, examples, and tutorials.
https://docs.luxonis.com
MIT License
946 stars 234 forks source link

Detect Oak-D vs. Oak-D Lite #598

Closed bobdavies2000 closed 2 years ago

bobdavies2000 commented 2 years ago

The IMU is quite useful and my code has assumed it is present. Oak-D Lite does not have the IMU so my code must distinguish between Oak-D and Oak-D Lite. The IMU examples in depthai-python do not make this effort and probably need to. The IMU examples hang with no explanation when the Oak-D Lite is attached. They work fine for the Oak-D.

If you could point me to something in the current distribution that allows detecting which camera is present, that would be great. If not, please consider adding that feature detection. The depthai_demo.py shows a device info:

[0] 14442C10912AE3D200 [X_LINK_UNBOOTED] <<<<< Oak-D [0] 1844301011ADAC1200 [X_LINK_UNBOOTED] <<<<< Oak-D Lite

Is it in there?

Bob Davies

Luxonis-Brandon commented 2 years ago

Thanks. We’ll correct this. In terms of differentiating you can do so based on the eeprom contents, which say the product name.

@saching13 can likely give the API call for this.

saching13 commented 2 years ago

So for detecting which device you can use the following method

calib = device.readCalibration()
boardName=  calib.getEepromData().boardName

boardName will be

The IMU examples in depthai-python do not make this effort and probably need to.

Sorry for this issue. We will add a similar check there too.

bobdavies2000 commented 2 years ago

Sachin - thanks for the response. I will read the eeprom data. No need to apologize. I am disappointed there is no IMU on the Oak-D Lite but I understand the shortages. Will the Oak-D Pro have an IMU?

Bob Davies

Luxonis-Brandon commented 2 years ago

Yes all other OAK-D have IMU. Only the Lite does not.

ShubhamNandi commented 2 months ago

Yes all other OAK-D have IMU. Only the Lite does not.

but here on the official website, it mentiones that OAK-D Lite has IMU

image Is this a new update to OAK-D LITE