I am trying to determine the distance of an object and the height of an object towards my camera. Is it possible or do I need to use OpenCV calibrate.py
to gather more information? I am confused because the Logitech C920HD has 3 MP and scales to 15 MP via software.
I have following info:
- Resolution (pixel): 1920x1080
- Focal Length (mm): 3.67mm
- Pixel Size (µm): 3.98
- Sensor Size (inches): 1/2.88
- Object real height (mm): 180
- Object image height (px): 370
distance (mm) = 3.67(mm) * 180(mm) * 1080(px) / 511 (px) * (1/2.88)(inches)*2.54 (mm/inches)
Which gives me 15.8 cm. Altough it should be about 60cm.
What am I doing wrong?
Thanks for help!