luxonis / depthai

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

How to get depth of a custom BBOX or by passing a 2d-point (x,y) to Oak-D depthai implementation. #796

Open s91-maker opened 1 year ago

s91-maker commented 1 year ago

Hi, Recently got one Oak-d-Poe, I've gone through the depthai example. In Face detection+depth example , it's giving depth(z-coordinate) of face detection(BBOX). What if i need depth of a keypoint(that can be any 2d-pixel coordinate(x,y)). Or, how to get depth from a custom BBOX. If someone has done it or has any reference, please share. Thanks.

Erol444 commented 1 year ago

Hi @s91-maker . Please have a look at Spatial Locaton Calculator, which does exactly that:) Thanks, Erik