{"id":26720925,"url":"https://github.com/cospectrum/microwink","last_synced_at":"2025-04-14T05:51:57.500Z","repository":{"id":268159890,"uuid":"903513116","full_name":"cospectrum/microwink","owner":"cospectrum","description":"Lightweight instance segmentation of card IDs","archived":false,"fork":false,"pushed_at":"2025-01-11T00:53:10.000Z","size":21040,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T19:43:06.879Z","etag":null,"topics":["id-card","id-card-extraction","identity-documents"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cospectrum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-14T19:42:32.000Z","updated_at":"2025-01-11T00:53:04.000Z","dependencies_parsed_at":"2025-01-17T19:01:52.200Z","dependency_job_id":null,"html_url":"https://github.com/cospectrum/microwink","commit_stats":null,"previous_names":["cospectrum/microwink"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cospectrum%2Fmicrowink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cospectrum%2Fmicrowink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cospectrum%2Fmicrowink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cospectrum%2Fmicrowink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cospectrum","download_url":"https://codeload.github.com/cospectrum/microwink/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830388,"owners_count":21168272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["id-card","id-card-extraction","identity-documents"],"created_at":"2025-03-27T19:35:02.624Z","updated_at":"2025-04-14T05:51:57.477Z","avatar_url":"https://github.com/cospectrum.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# microwink\n[![github]](https://github.com/cospectrum/microwink)\n[![ci]](https://github.com/cospectrum/microwink/actions)\n\n[github]: https://img.shields.io/badge/github-cospectrum/microwink-8da0cb?logo=github\n[ci]: https://github.com/cospectrum/microwink/workflows/ci/badge.svg\n\nLightweight instance segmentation of card IDs.\n\n\u003cp\u003e\n  \u003cimg src=\"assets/data/us_card.png\" width=\"49%\"\u003e\n  \u003cimg src=\"assets/us_card.result.png\" width=\"49%\"\u003e\n\u003c/p\u003e\n\n## Usage\n\n### Python\n```sh\npip install microwink\n```\n```python\nfrom microwink import SegModel\nfrom microwink.common import draw_mask, draw_box\nfrom PIL import Image\n\nseg_model = SegModel.from_path(\"./models/seg_model.onnx\")\n\nimg = Image.open(\"./assets/data/us_card.png\").convert(\"RGB\")\ncards = seg_model.apply(img)\n\nfor card in cards:\n    print(f\"score={card.score}, box={card.box}\")\n    img = draw_box(img, card.box)\n    img = draw_mask(img, card.mask \u003e 0.5)\nimg.save(\"./output.png\")\n```\n\n## License\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcospectrum%2Fmicrowink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcospectrum%2Fmicrowink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcospectrum%2Fmicrowink/lists"}