A tool to do foreground extraction in batches leaving behind a white background where the original background used to be. It is meant to be used in to help with generating datasets for training neural networks through removing unwanted things in the background of the image.
python background_remover.py [IMG_SOURCE_DIR] [IMG_OUTPUT_DIR]
e.g
python background_remover.py images/ output/
Before
After
Before
After