Answers.Body: <p>There may be software to look at a photo and determine the lens, lens height, and lens angle.  But I only know of software that does this with video clips.</p>
  
  <p>However the way to do would be to look at the shot and overlay the photo with the scene, and play with 3D cameras lens, lens height, and lens angle and get it close.  Due to lens distortion there is some margin of error but you can probably get very close.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-01-14T07:34:22.623Z
Answers.Text: which software can do it easy?
Answers.UserDisplayName: saber tabatabaee yazdi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-01-14T14:23:19.607Z
Answers.Text: The OP could make a video clip of his photo (every frame would be identical) and then use the software you are referring to. Could you please post a link to that software?
Answers.UserDisplayName: Saaru Lindestøkke
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-01-15T19:21:38.573Z
Answers.Text: No that would not work, it uses the movement of the camera and objects in the scene to determine parallax of objects, etc.  @saber there is no easy software to do this, even with video it takes tons of training to be able to do this correctly,
  
  But here are some software that does it with video
  Boujou - http://www.vicon.com/boujou/
  The Foundrys Camera Tracker - http://www.thefoundry.co.uk/products/cameratracker/
  PFTrack - http://www.thepixelfarm.co.uk/product.php?productId=PFTrack
  
  And AE CS6 also has one built in, but again I can not stress this enough, these will not work with a still image
Answers.UserDisplayName: Chris James Champeau
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-01-14T07:19:06.843Z
Answers.LastActivityDate: 2013-01-14T07:19:06.843Z
Answers.UserDisplayName: Chris James Champeau
Answers.Body: <p>Production Software Used:</p>
  
  <p><a href="http://www.thepixelfarm.co.uk/product.php?productId=PFTrack" rel="nofollow">PfTrack</a>, <a href="http://www.thepixelfarm.co.uk/product.php?productId=PFMatchit" rel="nofollow">PfMatchit</a>, <a href="http://www.vicon.com/boujou/" rel="nofollow">Boujou</a>, <a href="http://www.ssontech.com/synovu.htm" rel="nofollow">Syntheyes</a>, <a href="http://www.thefoundry.co.uk/products/nuke/" rel="nofollow">Nuke Camera Tracker</a>...</p>
  
  <p>Student free use:
  <a href="http://usa.autodesk.com/maya/" rel="nofollow">Autodesk Matchmover</a></p>
  
  <p>All of the above software is used to 3D Match Move Cameras to video sequences. Most of them are very expensive. PfTrack is my personal favorite.</p>
  
  <p>Although all of the above mentioned software is used to solve cameras for video sequences they work just as well with stills. PfTrack has tools to orient a scene based on hints that you give it about scale, x-axis, y-axis,z-axis, FOV and so on. The solve is easier with more reference images that have been taken from different angles looking at the same scene.</p>
  
  <p>As was mentioned above looking for key signs in the photo that give hints for y-axis and z-axis will help you align your scene. If you Place grids down you can try to ballpark the perspective of the shot and give yourself a good horizon line. You can also place proxy geometry of some of the objects in your scene to guess depth and so on. Many of these techniques are what is used to match CG to video.</p>
  
  <p>In the end the more information you have about the original physical scene is what will make matching CG easier. such as actual dimensions of the scene and as many measurements as possible. If you have access to any of the above software you can undistort your stills and have assistance on producing good solutions to your scenes 3D camera.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-01-14T23:34:13.717Z
Answers.LastActivityDate: 2013-01-15T14:08:00.453Z
Answers.LastEditDate: 2013-01-15T14:08:00.453Z
Answers.UserDisplayName: Luke Fraser
Body: <p>I have a Sketchup scene with a 3D model and a geolocation, but I also have a photo for the scene. </p>
  
  <p>How cam I match/create a virtual camera in the 3D application to match the viewpoint of the physical camera's viewpoint ? </p>
  
  <p>Would be cool if the solution is also in Sketchup, but can be done using other 3D packages as well.</p>
  
  <p>Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2013-01-13T08:32:16.393Z
Comments.Text: do you have one more photo from a different angle?
Comments.UserDisplayName: Inan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2013-01-13T16:12:24.343Z
Comments.Text: someone who knows about this should really answer this.
Comments.UserDisplayName: b2550
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2013-01-13T21:30:11.117Z
Comments.Text: @InanBerbatov I've got several. The only catch in my situation is the resolution/quality as some images come from a compact camera and most of the others from an IP camera
Comments.UserDisplayName: George Profenza
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2013-01-14T10:32:47.790Z
Comments.Text: Do you have one more photo from the _same camera_? If so, two angles from same lens **may be** enough to recreate the scene with a camera. I am trying to figure out if a solution involving [Blender](http://blender.org/)'s built in camera tracker would be possible. In this situation you obviously know the camera model and have lens information, right?
Comments.UserDisplayName: Inan
Tags: <camera><3d>
Title: Matching a camera in a 3D scene based on a photo
UserDisplayName: George Profenza
ThreadText: # Matching a camera in a 3D scene based on a photo
  
  (Asked by: username_0 on 2012-07-26)
  
  I have a Sketchup scene with a 3D model and a geolocation, but I also have a photo for the scene.
  
  How cam I match/create a virtual camera in the 3D application to match the viewpoint of the physical camera's viewpoint ?
  
  Would be cool if the solution is also in Sketchup, but can be done using other 3D packages as well.
  
  Thanks!
  
  **Tags:** camera, 3d
  
  > **Comments:**
  > **username_1**: do you have one more photo from a different angle?  
  > **username_2**: someone who knows about this should really answer this.  
  > **username_0**: @InanBerbatov I've got several. The only catch in my situation is the resolution/quality as some images come from a compact camera and most of the others from an IP camera  
  > **username_1**: Do you have one more photo from the _same camera_? If so, two angles from same lens **may be** enough to recreate the scene with a camera. I am trying to figure out if a solution involving [Blender](http://blender.org/)'s built in camera tracker would be possible. In this situation you obviously know the camera model and have lens information, right?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_6 on 2013-01-14. Score: 5 | Accepted answer
  
  Production Software Used:
  
  [PfTrack](http://www.thepixelfarm.co.uk/product.php?productId=PFTrack), [PfMatchit](http://www.thepixelfarm.co.uk/product.php?productId=PFMatchit), [Boujou](http://www.vicon.com/boujou/), [Syntheyes](http://www.ssontech.com/synovu.htm), [Nuke Camera Tracker](http://www.thefoundry.co.uk/products/nuke/)...
  
  Student free use:
  [Autodesk Matchmover](http://usa.autodesk.com/maya/)
  
  All of the above software is used to 3D Match Move Cameras to video sequences. Most of them are very expensive. PfTrack is my personal favorite.
  
  Although all of the above mentioned software is used to solve cameras for video sequences they work just as well with stills. PfTrack has tools to orient a scene based on hints that you give it about scale, x-axis, y-axis,z-axis, FOV and so on. The solve is easier with more reference images that have been taken from different angles looking at the same scene.
  
  As was mentioned above looking for key signs in the photo that give hints for y-axis and z-axis will help you align your scene. If you Place grids down you can try to ballpark the perspective of the shot and give yourself a good horizon line. You can also place proxy geometry of some of the objects in your scene to guess depth and so on. Many of these techniques are what is used to match CG to video.
  
  In the end the more information you have about the original physical scene is what will make matching CG easier. such as actual dimensions of the scene and as many measurements as possible. If you have access to any of the above software you can undistort your stills and have assistance on producing good solutions to your scenes 3D camera.
  
  
  ---
  
  ### Answer by username_3 on 2013-01-14. Score: 1
  
  There may be software to look at a photo and determine the lens, lens height, and lens angle. But I only know of software that does this with video clips.
  
  However the way to do would be to look at the shot and overlay the photo with the scene, and play with 3D cameras lens, lens height, and lens angle and get it close. Due to lens distortion there is some margin of error but you can probably get very close.
  
  > **Comments:**
  > **username_4**: which software can do it easy?  
  > **username_5**: The OP could make a video clip of his photo (every frame would be identical) and then use the software you are referring to. Could you please post a link to that software?  
  > **username_3**: No that would not work, it uses the movement of the camera and objects in the scene to determine parallax of objects, etc.  @username_4 there is no easy software to do this, even with video it takes tons of training to be able to do this correctly,  But here are some software that does it with video Boujou - http://www.vicon.com/boujou/ The Foundrys Camera Tracker - http://www.thefoundry.co.uk/products/cameratracker/ PFTrack - http://www.thepixelfarm.co.uk/product.php?productId=PFTrack  And AE CS6 also has one built in, but again I can not stress this enough, these will not work with a still image  
  
  ---
  
  