Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to estimate the actual distance of the object in image?

Status
Not open for further replies.

alibarghi

Member level 2
Member level 2
Joined
Jun 30, 2013
Messages
42
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,559
log0.jpg

The camera is 3 meters away from the playground. How do I get the actual distance between the balls?
 

The camera appears to be directly over the center line and presumably you know the horizontal and vertical scale (or use distace between the other lines) so think of a triangle 3m high and with a base of the horizontal distance then use trig functions to work out the angle between them and hence their spacing.

Brian.
 

The camera is 3 meters away from the playground.

Distance is defined between two points. 3 meter distance between which points?

First, you need to correct for the distortion. The camera lens is too close and is showing the wide angle effect. (side lines are looking curved whereas they are straight lines).

Simplest way is to use the middle black line as a scale. You can also measure the frame size from the focal length of the lens and the distance of the lens from the centre of the field (of the frame).

They will give you some idea. If the camera is not exactly vertically above (looking down straight), more information is needed.
 

A general solution that doesn't depend on a specific camera position and lens properties would be a calibration grid placed on the playground. Then determine a mapping function (e.g. 2-D look-up table) that calculates x-y coordinates for pixel positions.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top