Skip to main content

A tool to measure pictures with scale_bars

Project description

Measury

GitHub release (latest by date) tests

Measury_Logo

Measury is a measurement tool for microscope images. The goal ist to simplify and accelerate the measurements of structures from images.

Functionality

grafik

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


Download files

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

Source Distribution

measury-1.3.7.tar.gz (3.9 MB view details)

Uploaded Source

Built Distribution

measury-1.3.7-py3-none-any.whl (52.9 kB view details)

Uploaded Python 3

File details

Details for the file measury-1.3.7.tar.gz.

File metadata

  • Download URL: measury-1.3.7.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for measury-1.3.7.tar.gz
Algorithm Hash digest
SHA256 1089953bfd22f83cb56ed211f6235ddb05ad6bbe305596af93583c44bc952353
MD5 b3e44d78bd2dcfaeacf93d95fa159ba3
BLAKE2b-256 319e7057fe7c9fd3cb1d67544ed1d944fc55eb206b1b69a3b27104f08cd37a9a

See more details on using hashes here.

File details

Details for the file measury-1.3.7-py3-none-any.whl.

File metadata

  • Download URL: measury-1.3.7-py3-none-any.whl
  • Upload date:
  • Size: 52.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for measury-1.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b1bbceb6c1d7af271675255326a1640c193b1e4a3db8e4aaeb29e06f6050eb82
MD5 c0f7d39b8692e7dffabd12b776c08a92
BLAKE2b-256 1e81b97cfe9fbfe78f5bff0f611371e3f6b57dc3905fcf7c0680a1775fc28ec8

See more details on using hashes here.

Supported by

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