Hi afsana ,
Please see docs here: https://docs.luxonis.com/projects/api/en/latest/components/nodes/stereo_depth/#calculate-depth-using-disparity-map
erik Can you please answer Asfanas question here? I am also trying to get the dispartiy converted into depth and can not find in the link you provided the basis for assuming 7.5 as a effective focal lenghth..
Kindly help as soon as you are able to
Hi, @FS93 . I'm working on a similar application like yours. After you implement Erik's tips what was the new error between real Z coordinate and that measured by OAK-D camera?
(AlexandreRibeiro for the stereo depth accuracy, see report here)
erik What model of the OAK-D POE camera provides error less than 1.5% at 1m ground truth distance ?
I have some clarification about OAK Camera
We can capture the 7-segment display and convert to number ? Using OAK Camera ?
@asif just replied here: https://discuss.luxonis.com/d/343-accuracy-of-spatial-detection-and-possible-improvements/8
Hi MamoonIsmailKhalid ,
Please see the documentation here.
erik Thank you!!!
I wanted to just follow up on this, I am using the code given here:
(RGB, DEPT, CONFIDENCE aligned.py)
Essentially I would need to take the disparity output and apply the formula:
to calculate the depth??
Please answer this as I have been stuck on this for past 3 days and my head has been noodling up everday.
THANK YOU IN ADVANCE!!!!
Hi MamoonIsmailKhalid ,
If you have 7.5cm baseline distance and 441 [pixels] focal length then yes, that's the correct formula🙂 Otherwise, I would strongly suggest using depth output instead of calculating it yourself on the host.
How would one extract the depth data directly? Any code examples you can refer me to??I am using the depth data to extract depth information and to overlay it on the output of 2D pose estimation (Google Mediapie) to recosntruct a 3D pose of the key points extracted from Google mediapipe
Thank you for your help and prompt responses! !
You can extract depth data directly with depthai.node.StereoDepth.depth (reference to docs). One example which might help you, compares manual depth calculation (the formula you have been using above) to directly accessing depth trough ".depth" attribute.
Hope this helps.
jakaskerl THANK YOU SO MUCH!! I will try that approach and post here if that solved my porblem. But I really appreciate your guidance already