Forum

Author Topic: Command line access and Python scripting  (Read 31928 times)

Nico

  • Newbie
  • *
  • Posts: 23
    • View Profile
Command line access and Python scripting
« on: August 15, 2012, 11:59:43 AM »
Run pscan pro from command line by passing in python script.

Hlawktir

  • Newbie
  • *
  • Posts: 12
    • View Profile
Command line access and Python scripting
« Reply #1 on: October 26, 2013, 11:00:35 PM »
Hi,

I was wondering if there was a possibility to access PhotoScan functions through a command line interface (Linux environment)? I saw that it was possible to put the path of an already saved PhotoScan project as an argument for the start phase of the program (using ./photoscan.sh /pathtomysavedproject): When the program starts the chosen project is loaded immediately.
Is it also possible to run a PhotoScan Python script from an external command line interface (not from the internal CLI)?
The reason behind my question is that I currently can access a high-performance cluster via SSH and I wanted to run PhotoScan on it. Installation worked and it starts from the cluster. The problem is, that - to be able to use the cluster resources - I have to create a (special) batch process, which of course shouldn't require any user interaction after it was started.
Is that possible with the current Agisoft PhotoScan version?
If not, is it true, that the CLI access was possible with an earlier version (0.8.3?)? If so, where can I download this earlier version?

Thx in advance ;)

viper_0711

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Command line access and Python scripting
« Reply #2 on: October 27, 2013, 10:05:52 AM »
i second that. it could be a motivation for us to consider purchasing pro version. I was wondering why this feature was dropped like about a year ago?

viper

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15276
    • View Profile
Re: Command line access and Python scripting
« Reply #3 on: October 28, 2013, 04:25:25 PM »
Hello,

Python scripts can only be run from PhotoScan Pro GUI and cannot be executed headless from the command-line.

Best regards,
Alexey Pasumansky,
Agisoft LLC

Hlawktir

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Command line access and Python scripting
« Reply #4 on: October 28, 2013, 05:39:52 PM »
Hi Alexey,

thanks for the speedy reply! Do you have plans to implement such a feature in the near future?
As viper, I (or my institution) would consider buying the pro version (i did my tests with the trial version), if this feature was implemented.
And looking at these posts, I think, there are more people out there, who would really like to have this option:

http://www.agisoft.ru/forum/index.php?topic=1144.0

Next question: What about the earlier version 0.8.3 of Agisoft PhotoScan? According to the release notes, it had a headless CLI access implemented: Do you (or anyone else) know where to download this old version?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15276
    • View Profile
Re: Command line access and Python scripting
« Reply #5 on: October 28, 2013, 05:46:53 PM »
Hello Hlawktir,

Currently we are not planning to extend Pro version functionality and include command-line access.

Version 0.8.3 is two year old and is lacking most of current features and functionality, apart from being very slow compared to the actual release. So we do not provide installation packages for old version.
Best regards,
Alexey Pasumansky,
Agisoft LLC

jedfrechette

  • Full Member
  • ***
  • Posts: 136
  • Lidar Guys
    • View Profile
    • www.lidarguys.com
Re: Command line access and Python scripting
« Reply #6 on: October 28, 2013, 07:59:11 PM »
Currently we are not planning to extend Pro version functionality and include command-line access.

That is unfortunate as it would be a very valuable feature.
Jed

Hlawktir

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Command line access and Python scripting
« Reply #7 on: October 28, 2013, 11:05:34 PM »
Hi Alexey,

thx for the info (although it's a bit sad, that this feature won't be seen in the near future).

Regarding the old version 0.8.3: I understand that your company doesn't want to support old versions. Nevertheless I'm going to ask other forum members, who may still have a copy of this old version or know a link where to download it (i would need the 0.8.3 Professional PhotoScan Demo or Trial version, just to see if it would even work in this HPC environment). Or wouldn't that be legal/against your company policies? If so, I want to apologize.
It's just the case, that I have this HPC access granted only for a limited time period, so I wanted to test as fast as possible if Agisoft Photoscan could be used on it.

Again, thanks to all for the comments and information so far!

Matt

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: Command line access and Python scripting
« Reply #8 on: October 31, 2013, 01:29:34 AM »
0.8.3 while not having all the bells and whistles of the newer builds was solid and stable and I managed to get the most accurate Ortho's and DEM's from historical scanned photographs out of that release. From memory about that time they changed the detection and or mesh generating algorithms.  I have windows and linux installers for 8.3, 8.4 and 8.5 sitting around somewhere and as long as Alexey is OK with it happy to dig through the archives link. If there is an issue I have access to a couple of different clusters and could give it a run here.

Hlawktir

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Command line access and Python scripting
« Reply #9 on: October 31, 2013, 11:13:44 PM »
Hi Matt,

I would really appreciate it, if you could upload the 0.8.3 Linux version (as far as I know, all the releases after 0.8.3 no longer had the possibility to be accessed headlessly). Alexey, would that be ok?

Thanks a lot in advance!

Hlawktir

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Command line access and Python scripting
« Reply #10 on: November 02, 2013, 05:43:17 PM »
Alexey, would it be ok, if Matt uploaded the 0.8.3 Linux version? Or send me a link via PM?

Hlawktir

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Command line access and Python scripting
« Reply #11 on: November 08, 2013, 07:40:01 PM »
Push!

formidable

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Command line access and Python scripting
« Reply #12 on: January 31, 2014, 04:38:56 AM »
Estimates as I could get the ps version 0.8.3 linux to testing in cluster

thanks
« Last Edit: January 31, 2014, 04:40:36 AM by formidable »

Wishgranter

  • Hero Member
  • *****
  • Posts: 1202
    • View Profile
    • Museum of Historic Buildings
Re: Command line access and Python scripting
« Reply #13 on: January 31, 2014, 11:18:41 AM »
Fomidable, what sort of Cluster you have ??
----------------
www.mhb.sk

soerentsch

  • Newbie
  • *
  • Posts: 4
    • View Profile
HeadLess Running via Python Interface nor Network Interface
« Reply #14 on: June 09, 2016, 12:36:38 PM »
I wish there were a capability to create new projects via Python and/or a Network Interface on a Server/Cluster Setup