Ask Your Question
-1

How to know height and distance of the object from camera??

asked 2018-06-30 00:34:50 -0600

Razz1234 gravatar image

I have a pedestrian detection algorithm which draw bounding box around the detected pedestrian.Now i want to calculate the height of pedestrian in real world and the distance of pedestrian from the camera.How can i do it??

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-06-30 00:44:06 -0600

berak gravatar image

updated 2018-06-30 01:28:05 -0600

have a look at the pinhole camera model

the gist is: there are fov, distance and size, and you need know 2 of those, to calulate the 3rd.

again, this is a limitation of using a single rgb camera. using a stereo rig, or an ir sensor (like a kinect), you can acquire depth images, which wil give you the distance / height

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-06-30 00:34:50 -0600

Seen: 178 times

Last updated: Jun 30 '18