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.

Topics - Aleksei

Pages: [1]
Python and Java API / Exporting Undistorted Cameras
« on: December 06, 2014, 03:14:55 AM »

Hello, all. I found this script in an old thread on the forums and have been trying to edit it to make it work. When I try using it, my Photoscan client lags for a few minutes, prints that it's done, and exports the UNDISTORTED photos.

When I try and export undistorted cameras through the GUI, the console reports that it is unable to open the photos:
Code: [Select]
Undistorting photos...
Can't open image: [image path removed]
Finished processing in 0.002 sec (exit code 1)

Does anyone have a solution? Thanks! Programmatic method preferred, but at this point all information is appreciated.

Python and Java API / Setting Ground Control Coord Mode to WGS-84?
« on: July 23, 2014, 12:53:35 AM »
I would like to be able to automatically set my PhotoScan Document to WGS-84.

How I do this through the GUI:
Ground Control Pane -> Settings -> Coordinate Mode --> WGS-84 (Defaults to local coordinates).

What is the command to do this in Python?


Python and Java API / build mesh method
« on: July 08, 2014, 06:31:48 AM »
I don't see a function in the API to build a mesh. It looks like buildDepth() used to be the same but has since been removed? Anyone know the solution?


Python and Java API / open directory of photos from predefined path
« on: July 07, 2014, 10:48:15 PM »
Code: [Select]
importpath1 = glob.glob(importpath1)
listlen1 = len(importpath1)
x = 0
while (x < listlen1):
cam = PhotoScan.Camera()[x])
pic = doc.chunks.add()
print("FILE LOADED: " + importpath1[x])
x = x + 1
print("PROGRESS: Asset photos imported!")
Error: Executes print command for every photo, but does not load the name of the .jpg (just loads blank).

Thanks for the help.

Pages: [1]