{"adoption": {"forks": 225, "observed_at": "2026-08-28T04:05:53.610273+00:00", "stars": 1914}, "canonical_url": "https://ross.abutalabs.com/products/pymatting", "card": {"archived": false, "artifact_type": "library", "description": "A Python library for alpha matting", "domain": ["image-processing", "computer-vision", "graphics"], "enriched": true, "function": ["image-processing", "machine-learning"], "health_score": 83, "homepage": "https://pymatting.github.io", "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["pymatting/pymatting"], "name": "pymatting/pymatting", "platform": ["python", "cross-platform"], "pushed_at": "2026-04-07T17:41:58+00:00", "repo": "pymatting/pymatting", "stars": 1914, "tags": ["alpha-matting", "trimap", "foreground-extraction", "cutout", "image-segmentation", "numba", "cuda", "opencl", "gpu"], "topics": ["alpha-matting", "image-processing", "foreground", "python3"], "urls": [], "use_cases": ["cut out a subject from an image given a trimap", "estimate the alpha channel of a foreground object", "extract foreground pixels from a photo for compositing onto a new background", "compute alpha mattes with GPU acceleration", "compare alpha matting algorithm implementations in Python"], "what_it_is": "PyMatting is a Python library for alpha matting that estimates an alpha matte from an input image and a hand-drawn trimap to extract foreground objects. It implements multiple matting algorithms, foreground estimation, fast KNN search, and GPU-accelerated (CUDA/OpenCL) computation.", "when_to_avoid": ["you need automatic background removal without a trimap", "you work outside Python or need a standalone GUI tool", "you need real-time video matting at high frame rates"], "when_to_choose": ["you have a trimap and need high-quality alpha matte estimation in Python", "you need multiple matting algorithms (closed-form, KNN, random walk, etc.) in one library", "you want GPU-accelerated foreground estimation via CUDA or OpenCL", "you need a simple cutout function for image editing pipelines"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pymatting", "repo": "pymatting/pymatting", "role": "main", "score": 67}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:10:26.234956+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74382753f31761955d2b62b52a2bd38e4b72a4523445785e5a39e356ea5ed349", "fetched_at": "2026-08-28T04:05:53.610273+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pymatting/pymatting"}, {"content_hash": "6a921a31cd769d6de2cff89256fd195a939396eda41d7a779a44a1cf890ed9c8", "fetched_at": "2026-08-29T10:49:40.312033+00:00", "kind": "homepage", "missing": false, "url": "https://pymatting.github.io"}, {"content_hash": "d5649416f2b36a96ae590f5fb0be907667f1938922310826b141fb944e5773cc", "fetched_at": "2026-08-29T10:49:40.314559+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pymatting/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:10:26.234956+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74382753f31761955d2b62b52a2bd38e4b72a4523445785e5a39e356ea5ed349", "fetched_at": "2026-08-28T04:05:53.610273+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pymatting/pymatting"}, {"content_hash": "6a921a31cd769d6de2cff89256fd195a939396eda41d7a779a44a1cf890ed9c8", "fetched_at": "2026-08-29T10:49:40.312033+00:00", "kind": "homepage", "missing": false, "url": "https://pymatting.github.io"}, {"content_hash": "d5649416f2b36a96ae590f5fb0be907667f1938922310826b141fb944e5773cc", "fetched_at": "2026-08-29T10:49:40.314559+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pymatting/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:10:26.234956+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74382753f31761955d2b62b52a2bd38e4b72a4523445785e5a39e356ea5ed349", "fetched_at": "2026-08-28T04:05:53.610273+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pymatting/pymatting"}, {"content_hash": "6a921a31cd769d6de2cff89256fd195a939396eda41d7a779a44a1cf890ed9c8", "fetched_at": "2026-08-29T10:49:40.312033+00:00", "kind": "homepage", "missing": false, "url": "https://pymatting.github.io"}, {"content_hash": "d5649416f2b36a96ae590f5fb0be907667f1938922310826b141fb944e5773cc", "fetched_at": "2026-08-29T10:49:40.314559+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pymatting/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:10:26.234956+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74382753f31761955d2b62b52a2bd38e4b72a4523445785e5a39e356ea5ed349", "fetched_at": "2026-08-28T04:05:53.610273+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pymatting/pymatting"}, {"content_hash": "6a921a31cd769d6de2cff89256fd195a939396eda41d7a779a44a1cf890ed9c8", "fetched_at": "2026-08-29T10:49:40.312033+00:00", "kind": "homepage", "missing": false, "url": "https://pymatting.github.io"}, {"content_hash": "d5649416f2b36a96ae590f5fb0be907667f1938922310826b141fb944e5773cc", "fetched_at": "2026-08-29T10:49:40.314559+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pymatting/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:10:26.234956+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74382753f31761955d2b62b52a2bd38e4b72a4523445785e5a39e356ea5ed349", "fetched_at": "2026-08-28T04:05:53.610273+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pymatting/pymatting"}, {"content_hash": "6a921a31cd769d6de2cff89256fd195a939396eda41d7a779a44a1cf890ed9c8", "fetched_at": "2026-08-29T10:49:40.312033+00:00", "kind": "homepage", "missing": false, "url": "https://pymatting.github.io"}, {"content_hash": "d5649416f2b36a96ae590f5fb0be907667f1938922310826b141fb944e5773cc", "fetched_at": "2026-08-29T10:49:40.314559+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pymatting/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:10:26.234956+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74382753f31761955d2b62b52a2bd38e4b72a4523445785e5a39e356ea5ed349", "fetched_at": "2026-08-28T04:05:53.610273+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pymatting/pymatting"}, {"content_hash": "6a921a31cd769d6de2cff89256fd195a939396eda41d7a779a44a1cf890ed9c8", "fetched_at": "2026-08-29T10:49:40.312033+00:00", "kind": "homepage", "missing": false, "url": "https://pymatting.github.io"}, {"content_hash": "d5649416f2b36a96ae590f5fb0be907667f1938922310826b141fb944e5773cc", "fetched_at": "2026-08-29T10:49:40.314559+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pymatting/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:53.610273+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:10:26.234956+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74382753f31761955d2b62b52a2bd38e4b72a4523445785e5a39e356ea5ed349", "fetched_at": "2026-08-28T04:05:53.610273+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pymatting/pymatting"}, {"content_hash": "6a921a31cd769d6de2cff89256fd195a939396eda41d7a779a44a1cf890ed9c8", "fetched_at": "2026-08-29T10:49:40.312033+00:00", "kind": "homepage", "missing": false, "url": "https://pymatting.github.io"}, {"content_hash": "d5649416f2b36a96ae590f5fb0be907667f1938922310826b141fb944e5773cc", "fetched_at": "2026-08-29T10:49:40.314559+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pymatting/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:10:26.234956+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74382753f31761955d2b62b52a2bd38e4b72a4523445785e5a39e356ea5ed349", "fetched_at": "2026-08-28T04:05:53.610273+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pymatting/pymatting"}, {"content_hash": "6a921a31cd769d6de2cff89256fd195a939396eda41d7a779a44a1cf890ed9c8", "fetched_at": "2026-08-29T10:49:40.312033+00:00", "kind": "homepage", "missing": false, "url": "https://pymatting.github.io"}, {"content_hash": "d5649416f2b36a96ae590f5fb0be907667f1938922310826b141fb944e5773cc", "fetched_at": "2026-08-29T10:49:40.314559+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pymatting/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:10:26.234956+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74382753f31761955d2b62b52a2bd38e4b72a4523445785e5a39e356ea5ed349", "fetched_at": "2026-08-28T04:05:53.610273+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pymatting/pymatting"}, {"content_hash": "6a921a31cd769d6de2cff89256fd195a939396eda41d7a779a44a1cf890ed9c8", "fetched_at": "2026-08-29T10:49:40.312033+00:00", "kind": "homepage", "missing": false, "url": "https://pymatting.github.io"}, {"content_hash": "d5649416f2b36a96ae590f5fb0be907667f1938922310826b141fb944e5773cc", "fetched_at": "2026-08-29T10:49:40.314559+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pymatting/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:10:26.234956+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "74382753f31761955d2b62b52a2bd38e4b72a4523445785e5a39e356ea5ed349", "fetched_at": "2026-08-28T04:05:53.610273+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pymatting/pymatting"}, {"content_hash": "6a921a31cd769d6de2cff89256fd195a939396eda41d7a779a44a1cf890ed9c8", "fetched_at": "2026-08-29T10:49:40.312033+00:00", "kind": "homepage", "missing": false, "url": "https://pymatting.github.io"}, {"content_hash": "d5649416f2b36a96ae590f5fb0be907667f1938922310826b141fb944e5773cc", "fetched_at": "2026-08-29T10:49:40.314559+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pymatting/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 76, "longevity": 100, "rhythm": 36}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2413, "days_push": 148, "days_rel": 219, "gap_med": 385, "n_releases_24m": 2}, "score": 67, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}