Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - JayS

Pages: [1]
1
General / Importing Cameras into PhotoScan
« on: February 26, 2018, 07:49:06 PM »
Hello Support Team,

I am having trouble importing cameras into PhotoScan. After adding photos to my chunk, I want to import custom camera location and calibration information instead of using PhotoScan's align tool. I have created an xml file using what I believe is the correct formatting to load the calibration information. The problem is, that only the position and orientation (tilt of the cameras) seems to be loaded in as when I click on camera calibration all of the parameters (cx, cy, k1, k2) have not loaded in properly and the values are all 0 in those categories. I have attached a copy of my camera calibration xml file.

Additionally, I tried loading the camera calibration and then manually entering the parameters that were not updated. The settings seemed to be saved but the projection of the markers I placed on the photos did not change position at all. This leads me to believe that even though the information was entered it wasn't loaded into the cameras as that would cause the markers to move to a more accurate position on the Model. 

Please let me know if my formatting is correct or if there is some other solution to this problem. Let me know if you need more information from my side.

Thanks,
- Jay S

2
Hello Agisoft Community,

I am working with PhotoScan Pro Version 1.4.0,
I have developed a script to load images and cameras (calibrated position information) into PhotoScan. Now I have a list of 2D coordinates for each image. I want to place a marker at those given locations on each image and then export the estimated position of the marker in 3D. I have read the Python API guide but I am still confused about how to do this. A few community posts suggest the following:

import PhotoScan
doc = PhotoScan.app.document

local_chunk = doc.chunk

## import photos and cameras ... ##

marker = local_chunk.addMarker()
marker.projections[local_chunk.cameras[0]] = (100,100)

But this produces a TypeError: invalid item value

Also, is there anyway I can import a text file or something with all of the marker positions for each camera and do this?
Finally, I just want to add that I have NOT created a mesh or point cloud as I only care about getting the estimated position of these markers in 3D

Thanks,
- Jay S






Pages: [1]