Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dainius Tamošiūnas

Pages: [1]
1
Python and Java API / Re: Report language
« on: June 12, 2017, 11:33:41 AM »
Thanks Alexey.

at least without interface restart.

What do you mean by that?

2
Python and Java API / Re: Report language
« on: June 11, 2017, 10:34:55 PM »
Anybody? :)

3
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:
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()

Pages: [1]