Skip to content
/ rmbg Public

A tool for solid color background removal and automatic subject cropping.

Notifications You must be signed in to change notification settings

YuXHe15/rmbg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rmbg

A tool for solid color background removal and automatic subject cropping.

How to use

Move to the dir of rmbg:

cd dist

First change the file permission of the executable:

chmod +x rmbg
  • For images in a folder:

    ./rmbg -i path/to/folder
    

    Images are stored in the folder "output_figs"

  • For one single image:

    ./rmbg -i path/to/the/image

    The image will be output to the same dir.

Note

The module samples color from a 5x5 block on the upper left corner as the background color. To change the tolerance of the color sampleing (default 40), try

./rmbg -i <path> -t <new tolerance value>

About

A tool for solid color background removal and automatic subject cropping.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages