Skip to main content

microwink

github ci

Lightweight instance segmentation of card IDs.

Usage

Python

pip install microwink
from microwink import SegModel
from microwink.common import draw_mask, draw_box
from PIL import Image

seg_model = SegModel.from_path("./models/seg_model.onnx")

img = Image.open("./assets/data/us_card.png").convert("RGB")
cards = seg_model.apply(img)

for card in cards:
    print(f"score={card.score}, box={card.box}")
    img = draw_box(img, card.box)
    img = draw_mask(img, card.mask > 0.5)
img.save("./output.png")

License

Apache-2.0

Metadata

Release files for microwink 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for microwink 0.0.4
File Size Uploaded Provenance Actions
microwink-0.0.4.tar.gz 17.9 MB Without provenance Details for microwink-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for microwink 0.0.4
File Interpreter ABI Platform Actions
microwink-0.0.4-py3-none-any.whl Python 3 none any Details for microwink-0.0.4-py3-none-any.whl

Total release size: 17.9 MB

Release files / microwink-0.0.4.tar.gz

Download URL microwink-0.0.4.tar.gz
Size 17.9 MB
Tags Source
SHA-256 checksum
How to use checksums
cc312da40571c61e6f70cfec2b795fca8d794f5d85c0e2b220c80dda6ba38abb
BLAKE2b-256 checksum
How to use checksums
d1f952c7c1b762e9adb2b593b8e7aec07972591cdc12c01a5760c452a33c193a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.8

Release files / microwink-0.0.4-py3-none-any.whl

Download URL microwink-0.0.4-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e4bfd668b71cede2763c0a10b5f93590a04d0c693efd0a38dc999ee59bfc6c0
BLAKE2b-256 checksum
How to use checksums
1bd5e89809c12daa990adcf479a37e65f64a94ded4600eb4a4dd78094b69d850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.8

Security for microwink 0.0.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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