Claculate Width/Height of object
Hello Everyone,
I hope you all are doing well.I would like to ask you if it's possible to calculate width/height of custom made model.
I created a custom made model for human detection and wanted to calculate both width and height of human but not getting accurate measurements.
Are there any ways to make it more accurate.
Thank you in advance.
Regards,
Suraj Balore
*In following image it shows width(inaccurate), accuracy of class and distance using realsense d455.

-
Hi Surajbalore888 Measuring between two points on the same image instead of between the camera and a point may enable you to meet your goal.
C++
https://github.com/IntelRealSense/librealsense/tree/master/examples/measure
Python
https://github.com/soarwing52/RealsensePython/blob/master/separate%20functions/measure_new.py
The RealSense SDK also has a TensorFlow compatibility wrapper for use with Python that has a height measuring example similar to your image above.
It may be possible to edit the example's code to also detect the width of a person, though I do not have information on how to do this.
Please sign in to leave a comment.
Comments
1 comment