Toolset for analysis of plant growth in wells.
Project description
Lemna
A simple app utilizing computer vision which identifies wells and calculates the area for any region that matches the given mask (HSV lower-upper).
Getting Started
Installing
Install via pip (recommended to use a virtual environment):
pip install lemna
Usage
This tool provides several commands via the CLI.
You can use the app by typing lemna in the terminal. Typing lemna --help will show available commands.
threshold — Tune HSV Thresholds
Determine optimal HSV thresholds for identifying areas of interest in wells.
lemna threshold -i path/to/image.jpg -w 640 -c config.toml
Options:
-i, --image: Path to the image file-w, --width: Optional display width for thresholding UI-c, --config: Path to the config file to update HSV values
process — Analyze Images
Detect wells, analyze plant area, and output CSV + annotated images.
lemna process -i path/to/image_or_folder -o ./output -c config.toml
Options:
-i, --image: Path to image or folder of images-o, --output: Output directory-c, --config: Path to config file--dp: Inverse accumulator resolution ratio (default:1)--min_dist: Minimum distance between circle centers (default:270)--param1: First Canny param (default:45)--param2: Accumulator threshold (default:20)--min_radius: Minimum circle radius (default:120)--max_radius: Maximum circle radius (default:145)
If a config file is provided, values are defaulted as list above.
config — Generate Config File
Create a new default configuration TOML file which can be used while processing images.
lemna config -f config.toml
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lemna-0.1.1.tar.gz.
File metadata
- Download URL: lemna-0.1.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b2e665c07ddc77643a18207eb5b634859aa22b5f20b6b7574d6ff46d567876d
|
|
| MD5 |
efaaff5a5fd168a6ba3243dad091f60f
|
|
| BLAKE2b-256 |
96aae15dfe742cd84aa84b21dd3337a78cbccf5efebe5486d86ab0f64652a539
|
File details
Details for the file lemna-0.1.1-py3-none-any.whl.
File metadata
- Download URL: lemna-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b746f50e2036cf2c34323b19ced8fa22984009b9a1deb477b2e11180e31081c8
|
|
| MD5 |
33f528b6848702d5bc29ccbbabf651c2
|
|
| BLAKE2b-256 |
02a89bf2a391708ad2a5e5540f7da39a13a5095101aec783ae53b159952e8a74
|