Distance measurements with two cameras

  • Context: Undergrad 
  • Thread starter Thread starter tiphaine
  • Start date Start date
  • Tags Tags
    Cameras Measurements
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
tiphaine
Messages
2
Reaction score
0
Hello,
I would like to know if there are simple ways (using trigonometric functions) to calculate distances between an object and two cameras.
I am using two CMUcam5 (pixy), closely placed (the distance between the two cameras is known). And I would like to calculate the distance between the object and each camera.
Thank you for your help !
 

Attachments

  • photo.JPG
    photo.JPG
    42.8 KB · Views: 633
Physics news on Phys.org
I am not fully understanding your image. It lists f as a known variable, but that is not depicted on the graphic.
Also, are Ln and L2 the locations of your cameras?
Other than x' do you have any other information available about that smaller triangle you drew?
Do you have any information about the angles phi and theta?

The simplest solution I can see is if you know z', you can apply the fact that z'/z = x'/d, since they are similar triangles.
Otherwise, if you knew one of the angles, you could use tan(theta) = d/z, or tan(phi) = z/d to solve for z.
 
f is the focal distance of the two lenses, and L1 and L2 are the locations of the two cameras. We unfortunately don't have any further information on the little triangle nor on the angles.
Thank you for the tips!