Forum

Author Topic: Python scripts collection?  (Read 102732 times)

Andrew

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Python scripts collection?
« on: April 13, 2014, 09:30:33 PM »
I use Photoscan Standard edition - looking at feature list (considering my needs) I just couldn't find justification for upgrade. When looking at "Python scripting support" line I assumed it meant basically a more advanced and open alternative to "Batch Process" feature, but every now and then I read it can do lots more, hence my question: are any useful scripts included in Pro demo installation package? Or maybe there is some repository of useful scripts available? Or at least a list of what some more advanced scripts can accomplish? I think more insight into this can help push me and many other over the edge to upgrade.

-Andrew

Marcel

  • Sr. Member
  • ****
  • Posts: 309
    • View Profile
Re: Python scripts collection?
« Reply #1 on: April 13, 2014, 09:35:20 PM »
That would indeed be nice.

We got two scripts from Agisoft directly, one removes duplicate cameras and the other splits up a project into a grid of chunks (for meshing Dense Clouds with a huge amount of points). Both are pretty simple, but big timesavers.

It would be great to have a repository of scripts, it might even spark some more development from us users as well.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15074
    • View Profile
Re: Python scripts collection?
« Reply #2 on: April 13, 2014, 10:52:29 PM »
Hello Andrew,

Currently there's no script repository or collection available.

Most of scripts that we have were created for special tasks (by user requests or for our internal needs), so they require description that could be even longer than the script itself. Another reason why we do not put all the scripts online, the need to keep them up-to-date. Sometimes PhotoScan Python API changes and older scripts need to be modified according to such changes, but keeping the entire collection updates is not reasonable, since most of scripts will not be used due to their specifics.

But still we have Python scripting sub-forum here and will surely help any PhotoScan user that require some assistance in script creation.
Best regards,
Alexey Pasumansky,
Agisoft LLC

frank.stremke

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: Python scripts collection?
« Reply #3 on: April 14, 2014, 01:47:12 PM »
I I could imagine that a solution like the plug ins in qgis with an online repository would be grat and I could imagine this would be a good place to share and improve on existing stuff so users could update the scripts if needed if they are able to do so which iam am not honestly ...
but I wold think to have a kind of central registry at least would be good so people could see whats possible using ps pro
yours
frank

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15074
    • View Profile
Re: Python scripts collection?
« Reply #4 on: January 27, 2015, 12:19:38 PM »
Hello Frank,

We've added Python scripting section to our Wiki: http://wiki.agisoft.com/wiki/Python
So everyone is free to post there his own script, also we'll try to publish there some general scripts that might be useful.
Best regards,
Alexey Pasumansky,
Agisoft LLC

nickc

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Python scripts collection?
« Reply #5 on: February 06, 2015, 08:07:41 PM »
NICE, thanks Alexey!

tforward2

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Python scripts collection?
« Reply #6 on: February 11, 2015, 03:00:12 AM »
Wouldn't a GIT style environment make more sense? Better collaboration etc.

bisenberger

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Digital Mapping & Graphics
Re: Python scripts collection?
« Reply #7 on: June 25, 2015, 10:43:43 AM »
The script, PS110_split_in_chunks_dialog.py, leaves a seam between chunks in an ortho created after merged back.
Digital Mapping & Graphics LLC
https://digital-mapping.net/

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15074
    • View Profile
Re: Python scripts collection?
« Reply #8 on: June 25, 2015, 10:47:00 AM »
Hello Bill,
It is possible that there's a one pixel wide gap between merged chunks.

The problem can be avoided if region.size is increased, for example, by 1%.
Best regards,
Alexey Pasumansky,
Agisoft LLC

bisenberger

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Digital Mapping & Graphics
Re: Python scripts collection?
« Reply #9 on: June 25, 2015, 02:50:53 PM »
Thanks Alexey, I'll give it a try.
Digital Mapping & Graphics LLC
https://digital-mapping.net/

bisenberger

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Digital Mapping & Graphics
Re: Python scripts collection?
« Reply #10 on: November 04, 2015, 09:06:49 PM »
What are the variables for changing dense cloud quality?
Digital Mapping & Graphics LLC
https://digital-mapping.net/

bisenberger

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Digital Mapping & Graphics
Re: Python scripts collection?
« Reply #11 on: November 10, 2015, 06:17:09 PM »
Couldn't find where to download a manual on python on the Agisoft web site, but this turned up on a Google search:


downloads.agisoft.ru/pdf/photoscan_python_api_1_0_0.pdf
Digital Mapping & Graphics LLC
https://digital-mapping.net/

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15074
    • View Profile
Re: Python scripts collection?
« Reply #12 on: November 10, 2015, 06:30:06 PM »
Hello Bill,

Python API reference can be found here:
http://www.agisoft.com/downloads/user-manuals/

The options for the dense cloud quality are the following:
PhotoScan.Quality.UltraQuality
PhotoScan.Quality.HighQuality
PhotoScan.Quality.MediumQuality
PhotoScan.Quality.LowQuality
PhotoScan.Quality.LowestQuality
Best regards,
Alexey Pasumansky,
Agisoft LLC

eberkund

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Python scripts collection?
« Reply #13 on: January 13, 2016, 06:33:50 PM »
Wouldn't a GIT style environment make more sense? Better collaboration etc.

I'd like to second this suggestion. A GitHub repository where people could submit pull requests with new scripts or changes would be great.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15074
    • View Profile
Re: Python scripts collection?
« Reply #14 on: January 13, 2016, 06:43:29 PM »
If there is any repository with PhotoScan scripts driven by community, we can put a link to it here and in wiki pages.
Best regards,
Alexey Pasumansky,
Agisoft LLC