1
Python and Java API / Report language
« on: June 08, 2017, 07:59:21 PM »
In PhotoScan Windows version it generates PDF report in the same language that is used for GUI (Tools > Preferences > General > Language) so if you choose spanish, it will generate PDF report in spanish, if you choose german - the PDF is in german, etc.
How to get the same result in Python script on Linux using exportReport() method?
Some test code:
How to get the same result in Python script on Linux using exportReport() method?
Some test code:
Code: [Select]
import PhotoScan
project_path = "C:/project4/Agisoft Project/project.psx"
report_path = "C:/project4/report.pdf"
app = PhotoScan.Application()
doc = PhotoScan.app.document
doc.open(project_path)
chunk = doc.chunk
chunk.exportReport(report_path)
app.quit()