Skip to main content

A background removal CLI tool using InSPyReNet model

Project description

RemoveBG CLI

A Python command-line tool for background removal from images and videos.

Installation

pip install snapbox-api

Usage

  1. Process a single image:
snapbox-api image -i "input.jpg" -o "output.png"
  1. Process a video:
snapbox-api video -i "input.mp4" -o "output.mp4"
  1. Extract video mask only:
snapbox-api video -i "input.mp4" -mk -o "output.mp4"

Requirements

  • Python 3.8 or higher
  • Dependencies are automatically installed with the package:
    • Pillow (for image processing)
    • rembg (for background removal)
    • OpenCV (for video processing)
    • NumPy (for array operations)

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snapbox_api-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snapbox_api-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file snapbox_api-0.1.0.tar.gz.

File metadata

  • Download URL: snapbox_api-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.10

File hashes

Hashes for snapbox_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4283c1e8214a95a985882f868df642aba7158d6147bac997a126118f25adac23
MD5 cbe4698e2b3bb456de90c8db9cec3a6f
BLAKE2b-256 4ad4128b887d0aeff3ffd79230fc0fefbe1cd2a72ce9bc9f21067b4f79306c09

See more details on using hashes here.

File details

Details for the file snapbox_api-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: snapbox_api-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.10

File hashes

Hashes for snapbox_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e373d8ee250c3e431d4bfba8211d9a2933e09e5804a3b34530999183ef82812
MD5 84cc2b19970733356ad5919d8c816e0a
BLAKE2b-256 922b77aa1e6490db2498aec6acfb9304e293da456894fdad3f7999af5c6a34c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page