Skip to main content

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 by seg (hole filling, dilation, sub-pixel boundary offset) and image loading.
  • zebrafish_measure.length — measurement geometry: fish body length via tube_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)

Source distribution for zebrafish-measure 0.1.0
File Size Uploaded Provenance
zebrafish_measure-0.1.0.tar.gz 34.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for zebrafish-measure 0.1.0
File Interpreter ABI Platform
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page