Skip to content

A python command-line program for removing the background of an image with a lot of features.

Notifications You must be signed in to change notification settings

ASACHIT/IMG-Background-Remover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remove Background

A Python command-line tool for removing the background from an image, cropping, formatting, masking, adding a background image, adding colors to the background, and so on...

It uses Remove-bg's Api

Get Api Key From Here, If the API key is not saved, you will be asked for it while running the tool.

Installation

Install Background Remover

  git clone https://github.com/ASACHIT/IMG-Background-Remover.git
  cd IMG-Background-Remover
  pip3 install -r requirements.txt
  python3 removebg.py  

All Input Flags

Flag/Arg Type Description
--setapi string Required. Your API key. Set or Edit Existing Api key
--img URL or IMG path Required. Direct Image Url or Image File Path
--filename string Optional. Set Output File Name. Default: bg_remove.png
--size string Optional. Output Image Resolution Size
--type string Optional. Type Of Foreground Object. Default: 'autodetect'
--format string Optional. Output Image File Format (PNG,JPG,ZIP). Default: 'png'
--crop boolean Optional. Wheather To Crop All Empty Regions Of Image. Default: 'False'
--bgcolor Hex/Name Optional. Add Solid Background Color. Accepts Hex color code or color name
--bgimgurl IMG URL Optional. Paste Another image in Background. Accepts Direct Image URL
--bgimgfile IMG FILE Optional. Paste Another Image in Background. Accepts Image File

or

use -h for manual list

Screenshot 📷

App Screenshot

small tutorial

Bg.Remover.mp4

Features

  • In a couple seconds, removes the background with just one command.
  • Both IMAGE FILE and DIRECT IMAGE URI are supported.
  • user can define output format
  • user can provide image resolution
  • Background color, image can be masked
  • Output image Can be Cropped
  • Cross platform
  • Everything can be done with just a few commands 😉😜

Found a bug ? or got an error? okay Feel Open to open an issue😅

About

A python command-line program for removing the background of an image with a lot of features.

Topics

Resources

Stars

Watchers

Forks

Languages