Agisoft Metashape
Agisoft Metashape => Python and Java API => Topic started by: jan on March 02, 2012, 12:37:04 AM
-
Hello,
where to find PhotoScan.py?
as I understand with my little knowledge about python, has to be somewhere,
because the tutorial begins with
import PhotoScan
I've found a map in photoscan-pro/python/lib/python3.2 with a lot of *.py files; but no file has the name PhotoScan.py
-
Hello Jan,
PhotoScan is a built-in module in PhotoScan.
-
Hello Alexey,
but I don't know how to access it.
If I open a python console, by typing python in a terminal in Ubuntu Linux; and type 'import Photoscan' (without quotes)
I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named PhotoScan
Do I have to open the python console in a specific folder, or what else could I do wrong?
I use the latest PhotoScan version 0.8.4.1289,
I'm using Ubuntu 10.04 LTS
regards
-
Hello Jan,
Currently PhotoScan Python module is only accessible from PhotoScan GUI.
-
Does anybody know if it is possible to access the GUI of photoscan on a remote linux machine, from a windows machine with xming and x11-forwarding enabled putty.
I always run into this error:
xlib: extension "NV-GLX" missing on display "localhost:11.0"
google didn't help much. Maybe this is just not possible with photoscan?
Is there anyhow a way to use photoscan remotely from a to z:
1) uploading pictures as photoscan input to the remote machine (of course no problem)
2) starting and running photoscan remotely (all steps)
3) downloading photoscan output (e.g. orthophoto)
?
kind regards,
Jan
-
Hello Jan,
Currently PhotoScan Python module is only accessible from PhotoScan GUI.
Ah! I am in the same position as Jan - I would like to run photoscan on a big compute box from a remote machine so invoking the whole process from a command-line script is very desirable!
I take it, that this means I need to open the photoscan GUI over the network in order to make it go?
Thanks
Adam