luxonis / depthai

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

Get depth of XY region or point XY [Feature-Request] {Title of feature request} #1172

Closed akshaydhame2001 closed 4 months ago

akshaydhame2001 commented 5 months ago

I want use YOLOv8 on Jetson and then use OAK-D to get just depth of object using bounding box or centroid cordinates

akshaydhame2001 commented 4 months ago

mock ROI

config = dai.SpatialLocationCalculatorConfigData() topLeft = dai.Point2f(0.4, 0.4) bottomRight = dai.Point2f(0.6, 0.6) config.roi = dai.Rect(topLeft, bottomRight)

spatial_calc.addROI(config)