# withoutbg/withoutbg-python

Python SDK for local and cloud background removal (pip install withoutbg)

Repository: https://github.com/withoutbg/withoutbg-python
Canonical: https://ross.abutalabs.com/products/withoutbg-python
Homepage: https://withoutbg.com/docs/open-model/python
Language: Python
License: NOASSERTION
License Family: other
Topics: computer-vision, image-matting, image-processing, ai-background-removal, image-background-removal, background-removal-open-source, background-removal-toolkit, python-background-removal, computer-vision-ai, background-remover-onnx-model, background-removal, background-remover, open-source-background-removal, open-source-background-remover
Last push: 2026-07-23T22:01:22+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 93, longevity 27
- inputs: {"age_days": 380, "days_push": 41, "days_rel": 45, "gap_med": 0, "n_releases_24m": 6}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1246, forks 62 (observed 2026-08-28T04:04:07.227537+00:00)

## What it is
A Python SDK (pip install withoutbg) for removing image backgrounds, offering a free local open-weights ONNX model and an optional paid cloud API behind the same interface. It returns PIL RGBA images, supports batch processing, and includes a CLI for one-off removals.

## Use cases
- remove background from a photo in python
- make image background transparent locally without uploading
- batch remove backgrounds from a folder of images
- extract alpha matte for compositing
- cut out product photos for e-commerce listings
- remove background from car photos with shadows
- offline background removal with no api key

## When to choose
- you want free, private, offline background removal in Python with a simple API
- you need batch processing in scripts, notebooks, or backends
- you want to start locally and switch to a higher-quality cloud API with one line

## When to avoid
- you need a GUI editor for manual cutout refinement
- you need non-Python languages or non-image matting tasks
- you cannot download ~455 MB of model weights locally and don't want a paid API

## Facets
- artifact type: library
- maturity: active
- function: image-processing, computer-vision, machine-learning, sdk, cli
- domain: computer-vision, image-processing, machine-learning, developer-tools
- platform: python, cross-platform, cli
- tags: background-removal, image-matting, onnx, alpha-matte, cloud-api, open-weights, batch-processing

## Member repositories
- withoutbg/withoutbg-python (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:07.227537+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:08:06.668208+00:00, confidence not recorded.
  - readme: https://github.com/withoutbg/withoutbg-python (fetched 2026-08-28T04:04:07.227537+00:00, sha 5513dc1ea516)
  - homepage: https://withoutbg.com/docs/open-model/python (fetched 2026-08-29T12:19:39.002891+00:00, sha 9760160864a9)
  - site_page: https://withoutbg.com/docs/pro-model (fetched 2026-08-29T12:19:39.006705+00:00, sha b76ca4431445)
  - site_page: https://withoutbg.com/docs/pro-model/background-removal-binary (fetched 2026-08-29T12:19:39.008508+00:00, sha 2b49b37fdbdc)
  - site_page: https://withoutbg.com/docs/pro-model/background-removal-base64 (fetched 2026-08-29T12:19:39.010330+00:00, sha e66691cdeba1)
  - site_page: https://withoutbg.com/docs/pro-model/alpha-matte-binary (fetched 2026-08-29T12:19:39.012241+00:00, sha 8fee047724ba)
  - site_page: https://withoutbg.com/docs/pro-model/alpha-matte-base64 (fetched 2026-08-29T12:19:39.014040+00:00, sha 116fb6ac4f6d)
  - site_page: https://withoutbg.com/docs/pro-model/car-background-removal-binary (fetched 2026-08-29T12:19:39.015827+00:00, sha b198fc4beb4e)
  - site_page: https://withoutbg.com/docs/pro-model/car-background-removal-base64 (fetched 2026-08-29T12:19:39.017505+00:00, sha de1fc6ab37c8)
  - site_page: https://withoutbg.com/docs/pro-model/car-cutout-and-shadow-base64 (fetched 2026-08-29T12:19:39.019162+00:00, sha ec8665fec7a0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
