Skip to content

Flyaps/foregrox

Repository files navigation

Foreground extraction model.

Getting started

sudo apt-get update
sudo apt-get install python3.7
sudo apt-get install python-virtualenv

cd titlematch/
virtualenv --python=python3.7 venv
source venv/bin/activate
pip install -r requirements.txt
sudo apt-get install python3.7-tk

Example

python -m foregrox -h
python -m foregrox --input='images/input/photo_2019-02-12_15-54-31.jpg'\
               --output='images/output'\ 
               --show=True

If you got insufficient results with the main model, you can try the alternative one:

python -m foregrox --input='images/input/photo_2019-02-12_15-54-31.jpg'\ 
               --show=True\
               --alt=True

If you want to additionally check, if image already has white background:

python -m foregrox --input='images/input/photo_2019-02-12_15-54-31.jpg'\ 
               --show=True\
               --bg=True

Results

Before After

Before After

Before After

Before After

Before After

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages