I have some clarification about OAK Camera
We can capture the 7-segment display and convert to number ? Using OAK Camera ?
OAK-D Absolute Depth Precision
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 MamoonIsmailKhalid ,
Please see the documentation here.
Thanks, Erik
erik Thank you!!!
I wanted to just follow up on this, I am using the code given here:
(RGB, DEPT, CONFIDENCE aligned.py)
https://github.com/luxonis/depthai-python/blob/main/examples/StereoDepth/rgb_depth_aligned.py
Essentially I would need to take the disparity output and apply the formula:
depth=441.25โ7.5/disparity(pixel)
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!!!!
Regards,
Mamoon
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.
Thanks, Erik
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! !
Hi MamoonIsmailKhalid,
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.
Jaka
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
afsana Can you please share your code for measuring the depth of the object.
thanks
erik can you please provide me the github link or code link to get the depth of the object
Check examples under Spatial detection.
Thanks,
Jaka