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