A tool to measure pictures with scale_bars
Project description
# Measury
![GitHub release (latest by date)](https://img.shields.io/github/v/release/ullmannJan/measury) [![tests](https://github.com/ullmannJan/measury/actions/workflows/pytest.yml/badge.svg)](https://github.com/ullmannJan/measury/actions/workflows/pytest.yml)
![Measury_Logo](img/logo/tape_measure_128.ico)
Measury is a measurement tool for microscope images. The goal ist to simplify and accelerate the measurements of structures from images.
## Functionality
<!– Add image of program –> ![grafik](https://github.com/ullmannJan/measury/assets/102742052/44ee3b11-9188-4198-8e00-994649d147e1)
### Load Images Supports all image formats supported by `opencv`.
### Automatic Scaling Bar Detection Automatic Detection of Scaling bar. Just select the tool identify scaling and click on the scale bar. Microscope profiles can store locations of scale bar for certain types of microscopes for easier detection.
### Moving/Handling You can move the image by dragging the mouse wheel or by selecting move mode
### Various Measurement Tools There are several Tools available to measure your structures.
Select (select objects without changing them)
Line
- Rectangle
Square (by pressing Ctrl)
- Ellipse
Circle (by pressing Ctrl)
Angle
## Running
First create an empty miniconda environment
conda create -n measury conda activate measury
Then install the measury package
pip install .
To run Measury simply
python run.py
### Running tests
To run tests you will need to install pytest as well
pip install pytest
Then, simply calling pytest will run the tests
pytest #or python -m pytest
## Compiling
To compile this project it is advised to use `pyinstaller`. > It is important to use Pyinstaller >= 6.0.0
This guides you through all steps that are needed for running it. First, `pyinstaller` should be installed via pip or conda
pip install pyinstaller # or with conda conda install -c conda-forge pyinstaller
Finally, run the compiling script which calls pyinstaller
python compile.py
This will result in a folder `dist` where the compiled project will be placed.
The `compile.py` script has the option to create a compressed .zip file of the project. You can set
zipped = True
to achieve this behavior.
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
File details
Details for the file measury-1.3.1.tar.gz
.
File metadata
- Download URL: measury-1.3.1.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2251960a26d3d8431e6fdc8dd1b0224bd3612933d533a9f3047d03d3adb89d3 |
|
MD5 | 2bb792fb56d5c75ca170fdd00e376ee0 |
|
BLAKE2b-256 | 299aa75edd5041f7ae442e00bdb74727850d79c67859e9f4f9781d80ba6925be |
File details
Details for the file measury-1.3.1-py3-none-any.whl
.
File metadata
- Download URL: measury-1.3.1-py3-none-any.whl
- Upload date:
- Size: 50.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1946bcf5fc313457b2591578c2bf39af0f6b9e90ed86eb45e1618e5679c79ca9 |
|
MD5 | f9cfbc291ca91d58357196ec9a5ad5e1 |
|
BLAKE2b-256 | a24b4e681e5a2d5665d28fcf011736657ae12d5da91ea93aa691ac737e00834c |