luxonis / depthai-python

DepthAI Python Library
MIT License
336 stars 185 forks source link

Size estimation using the OAK-D Lite camera #1028

Open srivabhi22 opened 1 month ago

srivabhi22 commented 1 month ago

Hi there, I am trying to estimate the size of objects on a conveyer belt using the OAK-D- Lite camera.

Can you please help me in converting the dimensions of the bounding box which are in pixels into actual metric dimensions?? NOTE:The objects are in same depth so the conversion factor for one would work upon for every other object also

Erol444 commented 1 month ago

Hi @srivabhi22 . We have a demo for box measurement here: https://github.com/luxonis/depthai-experiments/tree/master/gen2-box_measurement If it's not a box, but some irregular shape, then I'd suggest going with pointcloud fitting approach, as it's not that trivial. Thanks, Erik