Skip to content

Is it possible to estimate the real-world distance of a detected object from the camera ?

0

I need to identify how far an object is from the source at the time it is detected in an image, for example when a vehicle is detected while moving, I want to know the approximate distance between the detection point and the source at that moment. Is it possible to calculate this distance using only the image and detection results such as bounding boxes or object size, or does this require additional depth information or other methods? Please suggest what is the correct approach to estimate distance in this type of image-based detection system

asked 9 months ago192 views

1 Answer
0
Accepted Answer

Estimating the real-world distance of a detected object from a camera using only a single 2D image is challenging but possible with certain limitations and assumptions.

Using only image data and detection results (like bounding boxes), you can implement these approaches:

  1. Known object size method: If you know the actual physical dimensions of the detected object (like standard vehicle sizes), you can estimate distance using the relationship between the apparent size in the image and the actual size. This requires camera calibration information (focal length).

  2. Perspective geometry: Using the position of objects relative to the horizon line or vanishing points in the image, along with camera height and angle information.

  3. Machine learning approaches: Training models to estimate distance based on visual cues in the image, though this requires training data with ground truth distances.

However, these methods have limitations in accuracy. For more precise distance measurements, you would need:

  • Depth sensors (LiDAR, ToF cameras)
  • Stereo vision (two cameras)
  • Structured light systems
  • Sequential frames if the camera or object is moving (structure from motion)

The best approach depends on your accuracy requirements and hardware constraints. If you're working with a single camera and need approximate distances, the known object size method is often most practical, but requires calibration of your specific camera setup and knowledge of the objects you're detecting.
Sources
PositionalAccuracy - Amazon Location Service

answered 9 months ago

EXPERT

reviewed 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.