zebrafish-measure
Segmentation, measurement, and scale-bar calibration functions for zebrafish larvae images, factored out of the Zebrafish_webapp Gradio app so they can be shared with the SlicerZebrafishEmbryoAnalyzer 3D Slicer extension without depending on Gradio.
Install
pip install -e .
Modules
zebrafish_measure.seg—segmentation_pipeline: runs the body/eye/edema/ swim-bladder Unet/FPN/Segformer models (downloaded from Hugging Face Hub) over a folder or list of images.zebrafish_measure.seg_helper— mask post-processing used byseg(hole filling, dilation, sub-pixel boundary offset) and image loading.zebrafish_measure.length— measurement geometry: fish body length viatube_length_border2border, eye metrics (compute_eye_metrics,compute_eye_diameters), and generic tube-shaped structure metrics (compute_tube_metrics, used for e.g. the swim bladder). Also includes the curvature classifier (FishClassifier,load_model,classification_curvature) and the standalone edge-curvature analysis (compute_curvature_profile).zebrafish_measure.scalebar— auto-detection and manual calibration of the image scale bar (detect_scalebar,calibrate_from_endpoints).
All public functions are re-exported from the top-level package, e.g.:
from zebrafish_measure import segmentation_pipeline, tube_length_border2border, detect_scalebar
Scope
This library intentionally excludes anything Gradio/UI-specific — that stays
in Zebrafish_webapp's app.py, which depends on this package instead of
containing the logic directly.
Metadata
Release files for zebrafish-measure 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| zebrafish_measure-0.1.0.tar.gz | 34.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zebrafish_measure-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 66.5 kB
Release files / zebrafish_measure-0.1.0.tar.gz
| Download URL | zebrafish_measure-0.1.0.tar.gz |
|---|---|
| Size | 34.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5e34ecaba78fe31e687cb2bf8c469a2300ddc0ef7792ca50d396165cf125986
|
|
BLAKE2b-256 checksum How to use checksums |
94ee2a0fbf82e5fc87642f786a17fead3d1e1b10fa9cfdbb324517ca35b5bef0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logRelease files / zebrafish_measure-0.1.0-py3-none-any.whl
| Download URL | zebrafish_measure-0.1.0-py3-none-any.whl |
|---|---|
| Size | 32.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56b5d2b18568ab01f29a0935d2d76871761ee4d9bf07b5a1e8325fb52cfbedf8
|
|
BLAKE2b-256 checksum How to use checksums |
009b5e0a179ba568ab48600a246466309ab3becf21d3267e6639570cf129495d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logSecurity for zebrafish-measure 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for zebrafish_measure-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.