# nadermx/backgroundremover

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/nadermx-backgroundremover).**

7,932 stars · 648 forks · Python · MIT

## Links

- GitHub: https://github.com/nadermx/backgroundremover
- Homepage: https://backgroundremoverai.com
- awesome-repositories: https://awesome-repositories.com/repository/nadermx-backgroundremover.md

## Topics

`ai` `background-removal` `background-remover` `backgroundremover` `photo-editing` `python` `pytorch` `remove-background` `remove-background-image` `remove-background-video` `removebackground` `video` `video-editing`

## Description

Backgroundremover is an AI-powered tool that removes backgrounds from both images and videos, accessible through a command-line interface and a Python API. At its core, it uses a pre-trained deep learning model to classify each pixel as foreground or background, producing a binary mask for removal.

The tool distinguishes itself through multiple integration methods and output capabilities. It can process images and videos via Unix pipeline data streams, operate as an HTTP API server, or be called programmatically within Python scripts. Users can choose among different AI models to balance processing speed and quality, and apply alpha matting edge refinement for sharper results on complex subjects. For video content, it supports frame extraction and compositing, transparent MOV output, matte key generation, and overlay compositing onto static images or other videos.

Beyond single-file processing, backgroundremover handles batch operations across entire folders of images and videos, with configurable GPU-accelerated batch processing. Output options include transparent images, solid color or custom image background replacement, binary masks, and animated transparent GIFs from video. The tool also provides preview functionality to inspect results before saving final files.

## Tags

### Artificial Intelligence & ML

- [AI Background Removal and Inpainting](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-powered-image-selection/ai-background-removal-and-inpainting.md) — Provides AI-powered background removal from images and videos via CLI and Python API.
- [Background Removal Python APIs](https://awesome-repositories.com/f/artificial-intelligence-ml/training-configurations/python-api/background-removal-python-apis.md) — Exposes a Python API for programmatic background removal with configurable model and alpha matting parameters. ([source](https://github.com/nadermx/backgroundremover/blob/main/README.md))
- [Background Removal Batch Processors](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-skill-management/file-management/agentic-run-file-exposers/batch-file-processors/background-removal-batch-processors.md) — Processes all files in a folder with background removal, saving results with a configurable prefix.
- [Background Removal Model Selectors](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-model-configurations/background-removal-model-selectors.md) — Lets users choose among different AI models to balance processing speed and quality for background removal. ([source](https://github.com/nadermx/backgroundremover/blob/main/GUI_README.md))
- [Background Removal Model Selectors](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-model-configurations/model-selection-policies/background-removal-model-selectors.md) — Lets users choose among different AI models to control accuracy and performance for background removal. ([source](https://github.com/nadermx/backgroundremover/blob/main/background_remover_gui.py))
- [Background Removal Model Selectors](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-powered-image-selection/ai-background-removal-and-inpainting/background-removal-model-selectors.md) — Lets users choose among different AI models to control the quality and style of background removal. ([source](https://github.com/nadermx/backgroundremover/blob/main/LICENSE.txt))
- [Batch Image Processing](https://awesome-repositories.com/f/artificial-intelligence-ml/facial-landmark-detection/batch-image-processing.md) — Applies background removal to every image or video file in a folder with configurable output prefixes. ([source](https://github.com/nadermx/backgroundremover/blob/main/README.md))
- [Background Removal Batchers](https://awesome-repositories.com/f/artificial-intelligence-ml/structured-data-extraction/asynchronous-extraction-engines/document-extraction-engines/batch-folder-processors/background-removal-batchers.md) — Processes entire folders of images and videos through automated background removal in batch. ([source](https://github.com/nadermx/backgroundremover))

### Development Tools & Productivity

- [Background Removal Python APIs](https://awesome-repositories.com/f/development-tools-productivity/python-api-integrations/background-removal-python-apis.md) — Exposes a callable Python function for background removal with configurable model and alpha matting options.
- [Programmatic Process Controls](https://awesome-repositories.com/f/development-tools-productivity/programmatic-process-controls.md) — Provides a Python API for integrating background removal into automated scripts.

### Graphics & Multimedia

- [Background Segmentation](https://awesome-repositories.com/f/graphics-multimedia/background-segmentation.md) — Uses a pre-trained deep learning model to classify each pixel as foreground or background for removal.
- [Background Removal Pipelines](https://awesome-repositories.com/f/graphics-multimedia/batch-video-processing/background-removal-pipelines.md) — Processes images and videos from the terminal with batch operations, Unix pipes, and model selection. ([source](https://github.com/nadermx/backgroundremover))
- [Image Background Removal](https://awesome-repositories.com/f/graphics-multimedia/image-background-removal.md) — Removes backgrounds from single image files using AI segmentation, supporting JPG, PNG, and HEIC formats. ([source](https://github.com/nadermx/backgroundremover))
- [Temporal Video Background Removal](https://awesome-repositories.com/f/graphics-multimedia/temporal-video-background-removal.md) — Removes backgrounds from video files, outputting transparent MOV files with ProRes 4444 for editing software. ([source](https://github.com/nadermx/backgroundremover))
- [AI Background Removal Tools](https://awesome-repositories.com/f/graphics-multimedia/temporal-video-background-removal/ai-background-removal-tools.md) — Removes backgrounds from images and videos using AI models through a command-line interface and Python API.
- [Background Removal Frame Compositors](https://awesome-repositories.com/f/graphics-multimedia/video-frame-extraction/background-removal-frame-compositors.md) — Extracts video frames, applies background segmentation, and re-encodes with transparency or background overlays.
- [Alpha Matting](https://awesome-repositories.com/f/graphics-multimedia/media-processing-analysis/face-portrait-manipulation/image-masking/binary-mask-extraction/alpha-matting.md) — Applies a second-pass alpha matting refinement with configurable thresholds to sharpen edges on complex subjects.
- [Image Background Replacers](https://awesome-repositories.com/f/graphics-multimedia/ml-background-replacements/image-background-replacers.md) — Replaces the removed background of an image with a user-provided background image. ([source](https://cdn.jsdelivr.net/gh/nadermx/backgroundremover@main/README.md))
- [Image Compositing Replacements](https://awesome-repositories.com/f/graphics-multimedia/ml-background-replacements/image-compositing-replacements.md) — Composites extracted foreground subjects onto user-supplied background images for creative editing. ([source](https://github.com/nadermx/backgroundremover/blob/main/README.md))
- [Video Compositing](https://awesome-repositories.com/f/graphics-multimedia/video-compositing.md) — Composites foreground video subjects onto static images or other video backgrounds. ([source](https://github.com/nadermx/backgroundremover))

### Part of an Awesome List

- [Image Processing Pipelines](https://awesome-repositories.com/f/awesome-lists/devtools/command-line-shells/image-processing-pipelines.md) — Reads image data from standard input and writes processed results to standard output for Unix pipeline integration.
- [Image and Background Processing](https://awesome-repositories.com/f/awesome-lists/devtools/image-and-background-processing.md) — Automated command-line tool for removing backgrounds from images and video.

### Data & Databases

- [GPU-Accelerated Batch Processors](https://awesome-repositories.com/f/data-databases/large-scale-dataset-management/gpu-accelerated-processing/gpu-accelerated-batch-processors.md) — Uses GPU acceleration for parallel batch processing of frames with configurable batch size and worker count.

### DevOps & Infrastructure

- [Background Color Replacements](https://awesome-repositories.com/f/devops-infrastructure/background-processing/background-removal-tools/background-color-replacements.md) — Fills the removed background area with a solid color specified by the user. ([source](https://github.com/nadermx/backgroundremover))

### Operating Systems & Systems Programming

- [Standard Stream Piping](https://awesome-repositories.com/f/operating-systems-systems-programming/standard-stream-piping.md) — Reads image data from standard input and writes processed results to standard output for shell pipeline integration. ([source](https://github.com/nadermx/backgroundremover))
- [Background Removal Pipe Commands](https://awesome-repositories.com/f/operating-systems-systems-programming/standard-stream-piping/background-removal-pipe-commands.md) — Reads images from standard input and writes background-removed results to standard output for Unix pipes. ([source](https://github.com/nadermx/backgroundremover))

### System Administration & Monitoring

- [Background Removal Folder Processors](https://awesome-repositories.com/f/system-administration-monitoring/administrative-operations/folder-management/programmatic-folder-managers/folder-removers/folder-background-images/background-removal-folder-processors.md) — Processes all files in a folder through background removal with automatic output prefixing. ([source](https://github.com/nadermx/backgroundremover))
