Find Object Height Using OpenCV

I have an image. I have to find the height of an object in it.

If we directly take the length of the pixel, it will not give the exact height. How to approach this problem?

+4
source share
2 answers

After you have calibrated your camera, you will have a transition from the image plane to world coordinates. Using this information, you can predict the height of the object you are looking for, of course, at this stage you somehow need to identify the object of interest to you.

In general, this question is too broad and covers many fundamental concepts of computer vision, so consult your favorite tutorial before attacking a problem.

+4
source

Alternative approach: place the subject on top of A4 paper and take a picture on top. Since you know the paper size, you can calculate the size of an object based on this.

To identify a piece of paper, mark this post or this .

+1
source

All Articles