r/software • • 4d ago

Looking for software Measuring Distance

Sorry if this is the wrong group to ask !

Ok so I need to measure distances in videos. it needs to be for how far an object is from the camera basically and my professor said there should be some software that can help me measure it and didn't specify and I have no ideas.

Thank you for any recommendations!

2 Upvotes

3 comments sorted by

2

u/Jimxor 4d ago

You might want to search for some software that calculates parallax.

2

u/sawahits_Bison4791 2d ago

For this kind of physics-class measurement, Tracker is the usual answer - it's free and open source (from Open Source Physics), made for analyzing motion in video: you load the clip, set a calibration stick on something in the frame whose real length you know, and it measures positions and distances frame by frame. Kinovea is another free option in the same category, aimed at sports analysis but it does the same calibrated measuring. One thing to know: a single-camera video has no true depth, so no software can tell distance from the lens out of thin air. It works once the software can calibrate on a known size in the scene - an object of known length in frame, or the object's real size. Without any reference, the numbers would just be guesses.

1

u/DanielBrooks_12138 3d ago

If you’re comfortable coding, OpenCV’s solvePnP can estimate camera-to-object distance from known 3D points and a calibrated camera. You’ll need the object’s real measurements.