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: https://github.com/agisoft-...
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 command from the comm...
Tue, 28 Apr, 2020 at 5:41 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...
Thu, 22 Oct, 2020 at 12:16 PM
How to calculate estimated Exterior Orientation parameters for the cameras using Python
The example below shows how to calculate the exterior orientation parameters (location and orientation angles) for the camera in the georeferenced chunk: ...
Tue, 1 Jan, 2019 at 2:21 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...
Thu, 13 Aug, 2020 at 11:34 AM