Height Measurement

The final step in the project will be to get the height in pixels, after obtaining the extreme top and extreme bottom coordinates, the height could be measured by subtracting the extreme top y (row) value from the extreme bottom y (row) value, to do that the coordinates must be separated into two:

 

x_Top, y_Top = extTop
x_Bot, y_Bot = extBot

height = (y_Bot-y_Top)

print("---------------- Printing Results ----------------")
print(" The top point: ", extTop)
print(" The bottom point: ", extBot)
print(" The height of the person in pixels: ", height)

 

The results will be printed as below:

 

resultsV4print.JPG

 

With that, the aim of the project was achieved.

tenor.gif

Leave a comment