| --- |
| title: Background Remover Pro |
| emoji: ๐จ |
| colorFrom: blue |
| colorTo: purple |
| sdk: docker |
| app_port: 7860 |
| pinned: false |
| license: mit |
| --- |
| |
| # ๐ฌ Background Remover Pro |
|
|
| AI-powered background removal for images and videos with alpha channel support. |
|
|
| ## Features |
|
|
| - โจ **AI Background Removal** - Multiple models for quality vs speed |
| - ๐ฅ **Video Processing** - Up to 1080p resolution |
| - ๐ผ๏ธ **Image Processing** - PNG transparency, JPEG with white background |
| - ๐ฎ **Multiple Formats** - MP4, AVI, WebM, MOV, PNG, JPEG, WebP |
| - ๐ **Fast Processing** - Optimized for CPU environments |
|
|
| ## API Endpoints |
|
|
| ### `POST /api/process/image` |
| Remove background from images |
|
|
| **Parameters:** |
| - `model`: u2net, u2netp, silueta, u2net_human_seg |
| - `transparent`: true/false |
| - `max_size`: 256-2048 (default: 1024) |
| - `quality`: 50-100 (JPEG only, default: 95) |
|
|
| ### `POST /api/process/video` |
| Remove background from videos |
|
|
| **Parameters:** |
| - `model`: silueta (recommended), u2net, u2netp |
| - `transparent`: true/false |
| - `max_size`: 144-1080 (default: 360) |
| - `fps`: 5-30 (default: 10) |
| - `frame_skip`: 0-5 (default: 1) |
| - `format`: mp4, avi, webm, mov |
|
|
| ### `GET /api/health` |
| Check API status and available models |
|
|
| ### `GET /api/models` |
| List available AI models with descriptions |
|
|
| ## Deployment |
|
|
| This Space uses a custom Dockerfile with Python 3.11 for optimal compatibility. |
|
|
| ## Models |
|
|
| | Model | Description | Size | |
| |-------|-------------|------| |
| | u2net | Best quality - general purpose | 176MB | |
| | u2netp | Fast processing - lightweight | 4.7MB | |
| | silueta | Optimized for videos | 43MB | |
| | u2net_human_seg | Specialized for portraits | 176MB | |