Forum

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

bisenberger

  • Full Member
  • ***
  • Posts: 248
    • View Profile
    • Digital Mapping & Graphics
Re: Python scripts collection?
« Reply #15 on: January 25, 2016, 03:17:10 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
Thanks Alexey

bisenberger

  • Full Member
  • ***
  • Posts: 248
    • View Profile
    • Digital Mapping & Graphics
Re: Python scripts collection?
« Reply #16 on: January 25, 2016, 03:36:55 PM »
I'm getting the following error when I run Split in chunks.py:

2016-01-25 06:24:47 Traceback (most recent call last):
2016-01-25 06:24:47   File "E:/Photoscan/scripts/Split in chunks.py", line 80, in <lambda>
2016-01-25 06:24:47     proc_split = lambda : self.splitChunks()
2016-01-25 06:24:47   File "E:/Photoscan/scripts/Split in chunks.py", line 159, in splitChunks
2016-01-25 06:24:47     doc.addChunk(new_chunk)
2016-01-25 06:24:47 TypeError: addChunk() takes no arguments (1 given)
>>>

PhotoScan version 1.2.3

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 9045
    • View Profile
Re: Python scripts collection?
« Reply #17 on: January 25, 2016, 03:54:46 PM »
Hello Bill,

You need to comment that line - doc.addChunk(new_chunk), as chunk.copy() operation automatically creates chunk duplicate in the document.
Best regards,
Alexey Pasumansky,
AgiSoft LLC

gatsri

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: Python scripts collection?
« Reply #18 on: February 01, 2016, 09:33:46 AM »
Dear Alexey

Can you please poste the actual "split in chuncs"-Script. for me it does not work with comment that line..:-/

Thank you

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 9045
    • View Profile
Re: Python scripts collection?
« Reply #19 on: February 01, 2016, 11:00:48 AM »
Hello ristag,

Which version of PhotoScan you are using? If you are no 1.2, then it should work without commenting or uncommenting anything.
Best regards,
Alexey Pasumansky,
AgiSoft LLC

bisenberger

  • Full Member
  • ***
  • Posts: 248
    • View Profile
    • Digital Mapping & Graphics
Re: Python scripts collection?
« Reply #20 on: March 10, 2016, 09:32:58 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
http://wiki.agisoft.com/wiki/Split_in_chunks.py
Also handy variables for modifying the Split_in_chunks script:
PhotoScan.FilterMode.AggressiveFiltering
PhotoScan.FilterMode.ModerateFiltering
PhotoScan.FilterMode.MildFiltering
PhotoScan.FilterMode.NoFiltering
« Last Edit: March 10, 2016, 09:39:37 PM by bisenberger »

enocsanz

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Python scripts collection?
« Reply #21 on: May 11, 2016, 03:01:37 PM »
Error

jpvega

  • Newbie
  • *
  • Posts: 10
    • View Profile

Ryan Fox

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Python scripts collection?
« Reply #23 on: June 24, 2017, 12:19:45 AM »
Is there still interest in a repository of scripts?  I'd be willing to maintain it.  I set up a repo here: https://github.com/FoxRow/Agisoft-Scripting

I can pull in the scripts already in http://wiki.agisoft.com/wiki/Python.  If we get a critical mass, it would be nice to release it as a companion package on PyPI.  I don't see any license on the scripts already in the wiki, does maybe someone from Agisoft know their provenance?  I'd like to have a coherent license for the repository in that case.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 9045
    • View Profile
Re: Python scripts collection?
« Reply #24 on: October 17, 2017, 07:51:27 PM »
Hello all,

We have moved the scripts from Wiki to GitHub repository, so that it should be easier to contribute for the community:
https://github.com/agisoft-llc/photoscan-scripts
Best regards,
Alexey Pasumansky,
AgiSoft LLC

SAV

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Python scripts collection?
« Reply #25 on: November 01, 2017, 03:45:30 AM »
Good to see that it has been moved to GitHub.
 ;D

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 9045
    • View Profile
Re: Python scripts collection?
« Reply #26 on: November 01, 2017, 11:32:47 AM »
Now it should be easier for community to contribute.

We are also trying to update the collection with the commonly requested scripts.
Best regards,
Alexey Pasumansky,
AgiSoft LLC