A tool to measure pictures with scale_bars
Project description
Measury
Measury is a measurement tool for microscope images. The goal ist to simplify and accelerate the measurements of structures from images.
Functionality
Start with
The program can be started via python or via the executable which is provided in the releases. Install via
pip install measury
In Python one simply calls:
import measury
measury.run()
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
Development
First create a Python environment of your choice (conda, venv, ect.) and activate it.
python -m venv venv
Then install the measury package from source
pip install .
To run Measury simply by using the run.py file (which shows detailed logs)
python run.py
or via
import measury
measury.run()
Running tests
To run tests you will need to install pytest as well
pip install pytest
Then, simply calling pytest will run the tests. For the graphical tests a display server has to be installed on the system.
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.6.0.tar.gz
.
File metadata
- Download URL: measury-1.6.0.tar.gz
- Upload date:
- Size: 7.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9d0f60c826d448e8716f86ffb9a03554cd3200d53a411d870ea929c804f8818 |
|
MD5 | b4d479f6a07ef2988229cc460b15d4f6 |
|
BLAKE2b-256 | 3513f3873f5ee647a24641c8de44a9476846b191915d4b7d64cc43c445914b36 |
File details
Details for the file measury-1.6.0-py3-none-any.whl
.
File metadata
- Download URL: measury-1.6.0-py3-none-any.whl
- Upload date:
- Size: 60.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3d1f6214df22b772e39cbc0b366c452d75e1e1b3f0fd0518ac30ad44d3528c6 |
|
MD5 | dee501e6769b36c54a4f0ea83cf23980 |
|
BLAKE2b-256 | 372794509fb25d1190c02a586e15456c2221435257b63afa85b89e0c77bbec6f |