Skip to main content

caber — capillary-breakup video analysis

CI

A pip-installable, Pyodide-compatible library for analyzing capillary-breakup (CaBER) extensional rheometry videos: video in → filament neck radius vs time → thinning analysis.

import caber

# headless: video -> neck size vs time
df = caber.measure_video("filament.mp4", polarity="dark", axis="horizontal", fps=100)

# Newtonian thinning analysis (Papageorgiou similarity solution)
summary = caber.thinning_summary(df, mm_per_px=0.0263,
                                 surface_tension_mN_per_m=30.0)
print(summary["fit"])            # slope, t_c, R^2 ...
print(summary["viscosity_Pa_s"]) # from the thinning slope

Interactive ROI definition in a notebook (works in JupyterLite/Pyodide):

%pip install -q opencv-python pillow ipywidgets
from caber.widgets import CaberVideo
viewer = CaberVideo("filament.mp4")  # tune ROI, then "Run Full Analysis"
viewer.result  # DataFrame: frame, time_s, neck_px

Or from the shell:

caber analyze filament.mp4 --polarity dark --axis horizontal --fps 100 \
    --mm-per-px 0.0263 --surface-tension 30 -o neck.csv

The method

Each frame is cropped to a region of interest, thresholded to a binary mask of the filament, and the filament's minimum extent is measured — row widths for a vertical filament, column heights for a horizontal one. A fully empty line inside the filament span means breakup (neck = 0).

Close to breakup a Newtonian filament thins linearly (R(t) = 0.0709·(σ/η)·(t_c − t), Papageorgiou 1995), so the thinning slope gives the viscosity once the surface tension is known.

Test clip

A short Newtonian test clip is available via caber.data.test_clip_path() (downloaded once from the repo's public URL, then cached — not shipped in the wheel): a 6000 cP viscosity-standard oil filament thinning to breakup, 100 fps (rate taken from the camera overlay timestamps — the container metadata is wrong on the source file).

License

MIT

Metadata

Release files for rheopy-caber 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 rheopy-caber 0.1.0
File Size Uploaded
rheopy_caber-0.1.0.tar.gz 101.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rheopy-caber 0.1.0
File Interpreter ABI Platform
rheopy_caber-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 115.5 kB

Release files / rheopy_caber-0.1.0.tar.gz

Download URL rheopy_caber-0.1.0.tar.gz
Size 101.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ce2161a9a3745a2a5afcbd715eac12b047488dffcabf60362b6018eb29e5b7a9
BLAKE2b-256 checksum
How to use checksums
8cf73ef948c14844f49617e9171d07dc127bab1260fc03aa25bef44ff9fe7e87
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 2, 2026.

Transparency log

Release files / rheopy_caber-0.1.0-py3-none-any.whl

Download URL rheopy_caber-0.1.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0eb5cc140fbc1f7197b9d530b89109bb0d13fff41498f0d7b82b71162e86ac26
BLAKE2b-256 checksum
How to use checksums
88baac6c673ff33696975c8201425245a5c99def63ed6d6c7adb7dcf328e05b1
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 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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