Our project objective is to design a code that could measure a height of a person when passing an image of a person into it, the challenge was in finding the best approach to do this project, the following are some approaches that we thought of using:
- Identifying the person manually using mouse click and measuring the distance from the first click to the second click as the height of the person.
- Extract a person from the picture and measuring the distance between the highest point which is his head/hair and the lowest point to be his legs.
- Using a reference: by taking a picture of a person we know his height and compare between any given picture of a person, calculate the difference compared to the reference we have to be that person height. [1]
The first approach is a manual approach and the code must be able to detect a person and measure the height automatically, the last option would be suitable to calculate the real person’s height in meters or centimetres or other measurement scales. However, in the project, we are only asked to calculate the height in pixels so the second approach would be the most suitable one.
References:
[1]A. Rosebrock, “Measuring size of objects in an image with OpenCV – PyImageSearch”, PyImageSearch, 2018. [Online]. Available: https://www.pyimagesearch.com/2016/03/28/measuring-size-of-objects-in-an-image-with-opencv/. [Accessed: 22- Nov- 2018].