Skip to main content

Lightweight instance segmentation model for card IDs

Project description

microwink

Lightweight instance segmentation model for card IDs

Usage

from microwink import SegModel
from microwink.common import draw_mask
from PIL import Image

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

img = Image.open("...").convert("RGB")
cards = seg_model.apply(img)

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

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

microwink-0.0.1.tar.gz (14.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microwink-0.0.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file microwink-0.0.1.tar.gz.

File metadata

  • Download URL: microwink-0.0.1.tar.gz
  • Upload date:
  • Size: 14.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.8

File hashes

Hashes for microwink-0.0.1.tar.gz
Algorithm Hash digest
SHA256 80bbdcf0b797050b19e31467b923c09d5d2071e32cf1fdcd12bcb7d13affc153
MD5 6ba393138c8c51785aaff77bcff9e6a3
BLAKE2b-256 57703ed1c3723cae5d524e88fb06f3cd1b8ee4db392ea3c6a853d00718ba0ade

See more details on using hashes here.

File details

Details for the file microwink-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: microwink-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.8

File hashes

Hashes for microwink-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ed364ce9dccebd57def1007311623747de8f98264caa7d4b5a3474540ba275f
MD5 ef3ac3b11c6b1e9df66bba8ade0fd2c4
BLAKE2b-256 6838e2df90cbd5cd779e58836ac15dc8a6c003c58266553e630ac80ab0cec487

See more details on using hashes here.

Supported by

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