depthai icon indicating copy to clipboard operation
depthai copied to clipboard

[BUG] {Depth quality difference between OAK-D-LITE models}

Open MoscowskyAnton opened this issue 2 years ago • 7 comments

Hi! I am working with OAK-D-Lite cameras and found that depth quality is different between cameras. I have some cameras that my team won in OpenCV AI competition, and some we bought after via aliexpress retailer. And here is difference on its depth images (obtained with ROS) on default settings: Screenshot_20231128_111001 Also I provide mono images of same place Screenshot_20231128_111037

On the left is new camera (been bought) and on the right is old (been won). Also the ranges in old depth is not seems to be very accurate in comparison to new. Is there a way to improve quality of olds cameras? Thanks!

MoscowskyAnton avatar Nov 28 '23 08:11 MoscowskyAnton

Isn't the photo on the right over-exposed? There is a (much) brighter light-source in the door - will be harder for feature-extraction.

brmarkus avatar Nov 28 '23 09:11 brmarkus

@brmarkus I tried many different places, always the story like this

MoscowskyAnton avatar Nov 28 '23 09:11 MoscowskyAnton

Where the cameras calibrated before? Both models are the same, i.e. both are auto-focus or both fixed-focus? Clean lense?

brmarkus avatar Nov 28 '23 09:11 brmarkus

@brmarkus I don't know where calibration was conducted, I didn't do any (should I? where can I get instruction?) Also not sure about focus, how can I check this? Lens looks good, and EVERY of three 'old' cams works in the same manner

MoscowskyAnton avatar Nov 28 '23 10:11 MoscowskyAnton

Have a look here regardng auto-focus versus fixed-focus: https://docs.luxonis.com/projects/hardware/en/latest/pages/guides/af_ff/

There are a few resources regarding calibration. Maybe start checking what has been stored on the device(s), like "https://docs.oakchina.cn/projects/api/samples/calibration/calibration_reader.html". Calibration itself, e.g.: https://docs.luxonis.com/en/latest/pages/calibration/

Let's see what Luxonis team can recommend.

brmarkus avatar Nov 28 '23 12:11 brmarkus

I tried to check my cameras with

import depthai as dai
with dai.Device() as device:
    print(device.getConnectedCameraFeatures())

Like https://docs.luxonis.com/projects/hardware/en/latest/pages/guides/af_ff/ sais But I got next error AttributeError: 'depthai.Device' object has no attribute 'getConnectedCameraFeatures'

But seems every my camera has fixed-focus And still wait for recommendation from luxonis

MoscowskyAnton avatar Dec 07 '23 12:12 MoscowskyAnton

@MoscowskyAnton You'll have to update the depthai version to latest. python3 -m pip install -U depthai. Its likely too old version

themarpe avatar Dec 07 '23 13:12 themarpe