Agisoft Metashape
Agisoft Metashape => Python and Java API => Topic started by: felipe on August 08, 2017, 10:52:53 PM
-
Hello,
I´m trying using the file Batch(XML) in script Python, but method findBatch not working as imagined.
import PhotoScan
chunk = PhotoScan.app.document.addChunk()
chunk.addPhotos(["C:\img\DSC09957.JPG","C:\img\DSC09959.JPG"])
chunk.loadReference ("C:\img\GEOAG_CAM_DIR_100.txt" , PhotoScan.ReferenceFormat.ReferenceFormatCSV, '[n|x|y|z|XYZ|a|b|c|ABC]', ' ')
batch_id = chunk.findBatch("C:\img\BatchPhotoscan_F.xml")
client.resumeBatch(batch_id)
This process is possible?
Thanks!
-
Hello felipe,
These batch commands that you are referring to are related to the network processing.
At the moment it is not possible to load XML file with the processing tasks directly via Python, unless you script XML parsing.
-
Alexey,
Thanks for your answer.