Skip to content
A library of scripts to make it easier to run metashape in batch on individual computers, or as jobs on a compute cluster
Python R Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmark_data
calibration
config
python
report
shell
.gitignore
LICENSE
README.md

README.md

metashape-scripts

A library of scripts to make it easier to run metashape in batch on individual computers, or as jobs on a compute cluster.

Software

You need a license for Metashape. UC Davis users see

If you have a node locked license copy the auth.template file and call it auth.auth, replace the #### with your key code. Should look like this.

#!/bin/sh
KEY="#####-#####-#####-#####-#####"

Usage

Command line:

  1. Path to metashape program
  2. Path to python script
  3. Path to project folder which contains photos

Linux

Windows

& 'C:\Program Files\Agisoft\Metashape Pro\metashape.exe' -r C:\Users\vulpes\Documents\metashapebenchmark\benchmark_simple.py D:\Public\Pictures\Latimer_lab\thinned_set_subset >> nightfury-20190827.out

Analysis

A log recording the times of each major step is written in the following format. See the R scripts in the reports folder for ways to work with the results data.

Writing Python Code

You can install the Metashape python module to make writing code easier. While it will normally be executed in a Metashape env it does not need to be. Things like autocompletion and testing of scripts will work from your code editor.

  1. Download the python module from agisoft
  2. Install into the python environment you want to use it in (details).
python3 -m pip install Metashape-1.5.2-cp35.cp36.cp37-abi3-linux_x86_64.whl
You can’t perform that action at this time.