Python scripting

Questions related to Python API in Metashape Professional

Where to find general Python scripts for Metashape (PhotoScan) Professional
Python scripts for Agisoft Metashape Professional 1.5+ (and PhotoScan Professional 1.3, 1.4) are available in GitHub repository:
Thu, 10 Jan, 2019 at 3:46 PM
How to run the script in headless mode from the command-line
To run the script from the command line without using Agisoft Metashape Professional GUI you need to use"-r" argument, like in the examples below ...
Tue, 1 Jan, 2019 at 2:16 PM
How to run Python script automatically on Metashape Professional start
In order to execute the script automatically when Agisoft Metashape Professional instance is run you need to place Python script to the following folder: ...
Tue, 1 Jan, 2019 at 2:18 PM
How to install external Python module to Metashape Professional package
To install external Python module to the package provided with Agisoft Metashape Professional it is necessary to perform the following single-line command f...
Tue, 30 Mar, 2021 at 7:33 PM
How to install Metashape stand-alone Python module
Stand-alone Metashape Python module allows to integrate Metashape functionality to the custom scripts without a need of full application installation. A...
Tue, 9 Feb, 2021 at 8:44 PM
How to calculate estimated Exterior Orientation parameters for the cameras using Python
The example that shows how to calculate the exterior orientation parameters (location and orientation angles) for the aligned camera in the chunk is availab...
Sat, 3 Apr, 2021 at 5:01 PM
Function .buildDenseCloud() doesn't work anymore in 1.5
Starting from the version 1.4 the dense cloud generation task has been split into two parts - depth maps generation and dense cloud generation: chunk.bu...
Tue, 1 Jan, 2019 at 2:14 PM
How to select fixed percent of the points (Gradual Selection) using Python
The following example shows how to use Python API for selection of the sparse cloud points similar to Gradual Selection option in GUI.  The exa...
Fri, 12 Jun, 2020 at 1:19 AM
How to make Python interpreter to use Metashape module
PyCharm makes possible to use the virtualenv tool to create a project-specific isolated virtual environment. The main purpose of such virtual environment...
Wed, 3 Mar, 2021 at 12:41 PM