Skip to main content

Easy Agisoft MetaShape (EasyAMS) Plugin with extended functions for smart agriculture.

Project description

EasyAMS

Easy Agisoft MetaShape (EasyAMS) Plugin with extended functions for smart agriculture.

img

How to use

Please ensure you have the Metashape Professional License to have access to automation option/Built-in python scripting function

Download the tools/installer.py in this project to your computer, and launch the installer.py script in the metashape to open the GUI.

img

Developer

1) Source code install

Please clone this repo to your local path.

Then Install this plugin by chosing the installer located at /Your/Local/Path/to/EasyAMS/tools/installer.py with argument --dev.

img

It will use folder at /Your/Local/Path/to/EasyAMS/src/easyams/ as easyams source code package, after any modification, restart Metashape to make effects.

If you have any modification for installer.py, rerun the Run Python Script with --dev arguement to refresh the cached installer file at User\AppData\Local\Agisoft\Metashape Pro\scripts\easyams_launcher.py. Please refer How to run Python script automatically on Metashape Professional start : Helpdesk Portal for more details.

2) Environment setup

Recommend using uv as virtual enviroment manager.

> uv --version
uv 0.6.14

For example, the git repo folder is located at: C:\path\to\source\code\EasyAMS with the following folder structure:

C:\path\to\source\code\EasyAMS
├─ docs/
├─ src/
├─ tests/
readme.md
pyproject.toml
...

Using the following command to setup development enviroment:

> cd C:\path\to\source\code\EasyAMS
...EasyAMS > uv sync --all-groups

It will create a .venv at current project folder and install the tests dependency group and train dependency group inside pyproject.toml.

PS: The default easyams plugin dependency is free of pytorch and ultralytics, only using the onnx(cpu) to inferencing and ensure the ease of installation.
For model training and exporting, labelme is used for data annotation and the pytorch package is required.

Error Fixs

Plugin installation

1. Python venv creation failed on Arch-Linux with libcrypt errors

[EasyAMS] [CMD] /home/crest/.local/share/Agisoft/Metashape Pro/easyams-packages-py39/bin/uv venv /home/crest/.local/share/Agisoft/Metashape Pro/easyams-packages-py39/venv --python 3.9.13
[EasyAMS] [Error]:
[EasyAMS]     × Querying Python at
[EasyAMS]     │ `/home/crest/.local/share/uv/python/cpython-3.9.13-linux-x86_64-gnu/bin/python3.9`
[EasyAMS]     │ failed with exit status exit status: 127
[EasyAMS]   
[EasyAMS]     │ [stderr]
[EasyAMS]     │ /home/crest/.local/share/uv/python/cpython-3.9.13-linux-x86_64-gnu/bin/python3.9:
[EasyAMS]     │ error while loading shared libraries: libcrypt.so.1: cannot open shared
[EasyAMS]     │ object file: No such file or directory
[EasyAMS]   
[EasyAMS] [EasyAMS] virtual isolated python venv creation failed

Solution: sudo pacman -S --needed libxcrypt libxcrypt-compat

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easyams-0.1.3.tar.gz (596.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easyams-0.1.3-py3-none-any.whl (432.7 kB view details)

Uploaded Python 3

File details

Details for the file easyams-0.1.3.tar.gz.

File metadata

  • Download URL: easyams-0.1.3.tar.gz
  • Upload date:
  • Size: 596.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.5

File hashes

Hashes for easyams-0.1.3.tar.gz
Algorithm Hash digest
SHA256 50b2eec5adab8283156f6434bd9c3c9fa2cf96f0da7f26b83880f2b53c1594fa
MD5 82c2351ebb9c625bad5ace9e41948ed4
BLAKE2b-256 06a87a49f9164c55071495cce91a56b0772e1eecc39ab2a73d548d7ca7205f63

See more details on using hashes here.

File details

Details for the file easyams-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: easyams-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 432.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.5

File hashes

Hashes for easyams-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 67be089ac2645f1de1dc4777e475649f130aeeb0832ebb6b52719d984fb7c151
MD5 cd52fa90457de793fadecc8ce597df9b
BLAKE2b-256 f2805cbe3abc5df59f850554702a332af1dc3577a05d67c35f88886da469f762

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page