High School How to calculate the real size of an object from image

  • Thread starter Thread starter DetectiveT
  • Start date Start date
  • Tags Tags
    Image
Click For Summary
To calculate the real size of an object from images or video, understanding the relationship between 3D space and 2D projections is crucial. The size of a moving object changes based on its distance from the camera, and knowing the rate of this size change can help deduce its actual size and position. Using a reference object in the scene can aid in establishing a mapping equation for accurate measurements. Stereo vision, involving two viewpoints, can also determine distances and sizes through triangulation. Constant velocity of the object is important, as varying speeds can complicate size estimation based on image changes.
DetectiveT
Messages
9
Reaction score
1
Hello everyone, I have been doing researches on this, but those topics I found are a bit different from what I am doing,

I am trying to determine the actual size of an object in image/video (CCTV video tracks), my thinking is, if this object is moving, the size appears on the screen changes, and depending on the position of this object (its distance from the camera), the size changing rate should be different, vice versa, if the object image size changing rate is known, it should be possible to deduce its actual position and actual size? If this is not right, "put a reference object in the scene" method is also acceptable.

However, the current problem is, I do not really understand the 3D real world projecting to 2D image geometrical math, perhaps with a reference object, some mapping equation f(x,y)→g(x_real, y_real, z_real) can be found? Or with the changing rate way, f(dr/dt, x, y)→g(x_real, y_real, z_real) is possible?

Please, any fundamental ideas, corrections or suggestions will be appreciated, thanks!
 
Physics news on Phys.org
If you have two view points then you can determine the distance between the view point and the object, such as in stereo vision.

https://en.wikipedia.org/wiki/Triangulation

You require however two view points and a known distance between them. For example our eyes are two view points with a distance of 2 inches in between them. From there you can determine the other lengths of the triangle and size of the object.
 
DetectiveT said:
I am trying to determine the actual size of an object in image/video (CCTV video tracks)

For clarification, is the lens a fixed focal length or is it a zoom?

DetectiveT said:
my thinking is, if this object is moving, the size appears on the screen changes, and depending on the position of this object (its distance from the camera), the size changing rate should be different, vice versa, if the object image size changing rate is known, it should be possible to deduce its actual position and actual size

That sounds like it might only work if the velocity of the object is constant. If it's close by and moving slowly, it's image size will change slowly, similar to it being far away and moving quickly.
 
From a still image, you convert perspective projection to orthographic projection, and you'd also need at least one object in the image of known length.
 
I do not have a good working knowledge of physics yet. I tried to piece this together but after researching this, I couldn’t figure out the correct laws of physics to combine to develop a formula to answer this question. Ex. 1 - A moving object impacts a static object at a constant velocity. Ex. 2 - A moving object impacts a static object at the same velocity but is accelerating at the moment of impact. Assuming the mass of the objects is the same and the velocity at the moment of impact...

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 11 ·
Replies
11
Views
1K
  • · Replies 10 ·
Replies
10
Views
48K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 1 ·
Replies
1
Views
703
  • · Replies 5 ·
Replies
5
Views
2K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
6K