Hi,
I am using the 12-bit coded markers, and Photoscan 1.3.1. I plan to use PhotoScan.detectMarkers() to automatically detect.
I have GPS coordinates for each marker, but I don't know how to import the marker reference coordinates into Photoscan so that the detected markers are mapped properly to the imported markers. Should I use chunk.importMarkers() or chunk.loadReference()? And how do I specify which marker is which? Do I need to know the numeric ID of the coded marker that I selected when printing?
Currently my plan is the following:
# Assume I already have the chunk set up and photos imported.
chunk.crs = PhotoScan.CoordinateSystem("EPSG::32613")
chunk.matchPhotos(accuracy=PhotoScan.HighAccuracy)
chunk.alignCameras(adaptive_fitting=True)
chunk.buildDenseCloud(quality=PhotoScan.UltraQuality, filter=PhotoScan.MildFiltering)
PhotoScan.app.document.save("project.psx")
chunk.loadReference(path='reference.csv', format=PhotoScan.ReferenceFormatCSV, columns=’nxyzXYZ’,
delimiter=',')
chunk.detectMarkers(type=PhotoScan.CircularTarget12bit)
PhotoScan.app.document.save("project.psx")
...But I'm not sure if the order is correct, or if loadReference() is correct, or if I need to save the project.psx at a different place.
Here is my reference.csv layout:
label,easting,northing,altitude,easting_accuracy,northing_accuracy,altitude_accuracy
???,X.X,X.X,X.X,X.X,X.X,X.X
Can I get some help? Thanks.