Forum Discussion
Easy way to erase background from photos on my Win11 PC?
BackgroundRemover (CLI) uses AI models like U-2-Net to remove backgrounds from images and videos entirely on your Windows 11 PC. This makes it a powerful and private image background eraser for PC, as you don't need to upload your files to any online service.
Here is a step-by-step guide to using the tool:
1. Install Prerequisites
Install Python: winget install python
Install the tool: pip install backgroundremover
2. Remove Background from a Single Image
Once installed, you can process images with a simple command:
backgroundremover -i "C:\path\to\your\image.jpg" -o "C:\path\to\output.png"
The -i flag specifies the input file, and -o specifies the output file (which must be a .png for transparency).
3. Improve Image Results
The tool offers several options to refine the output and is an effective image background eraser for PC for various scenarios:
Use the -a flag for better edge detection, which is especially useful for hair or complex edges.
backgroundremover -i "image.jpg" -a -ae 15 -o "output.png"
4. Batch Process Multiple Images
A key strength of this image background eraser for PC is its ability to process folders in bulk. Use the --input-folder (-if) and --output-folder (-of) flags:
backgroundremover -if "C:\input-folder" -of "C:\output-folder"
This command will process all supported images (.jpg, .jpeg, .png) in the folder.