Please can you help me understand the correct flow for detecting markers and providing their coordinates.
I would also like to understand how I can set the bounding box to be limited to the markers in x and y with whatever is required for z.
Current code:
import Metashape
doc = Metashape.Document()
chunk = doc.addChunk()
chunk.addPhotos(["1.JPG", "2.JPG", ...])
chunk.detectMarkers()
chunk.importReference(os.getcwd() + "/markers.txt")
chunk.matchPhotos(downscale=1, generic_preselection=False, reference_preselection=False)
...
markers.txt
# CoordinateSystem: LOCAL_CS["Local Coordinates (m)",LOCAL_DATUM["Local Datum",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]]]
#Label,X,Y,Z,Error_(m),X_error,Y_error,Z_error,X_est,Y_est,Z_est
target 1,0.750000,0.750000,0.000000,,,,,,,
target 2,0.750000,0.000000,0.000000,,,,,,,
target 3,0.750000,-0.750000,0.000000,,,,,,,
target 4,0.000000,-0.750000,0.000000,,,,,,,
target 5,-0.750000,-0.750000,0.000000,,,,,,,
target 6,-0.750000,0.000000,0.000000,,,,,,,
target 7,-0.750000,0.750000,0.000000,,,,,,,
target 8,0.000000,0.750000,0.000000,,,,,,,
EDIT: Updated code