1
Python and Java API / Re: Ortho projection to exact plane
« on: January 17, 2015, 01:32:30 PM »
Thank you!

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.
import PhotoScan
import os
import sys
app = PhotoScan.Application()
doc = PhotoScan.app.document
chunk = PhotoScan.app.document.chunk
folder = PhotoScan.app.getExistingDirectory("Select folder where to export ortho photos")
folder = os.path.normpath(folder) + os.sep
app.messageBox("Photo number: " + str(len(chunk.cameras)))
for camera in chunk.cameras:
X = camera.key
camera.enabled = True
path = folder + str(X) + ".tif"
chunk.exportOrthophoto(path, format="tif", blending=PhotoScan.MosaicBlending, color_correction=False, write_kml=False, write_world=False)
camera.enabled = False
app.messageBox("All photos exported")