This is a background removal app that uses machine learning models to remove the background from an image. The app is available for download here. You'll just need to unzip the files, place them in a directory, and add it to your PATH. You can rename the executable to your preferred name. The app can also be built from source using the .NET SDK. If you'd like to read more about the idea and initial development behind the app you can read the blog post I wrote about it here.
The app is meant to be run from the command line. For example:
bgr /path/to/image.jpg --output /path/to/output.pngYou can find the full list of commands, arguments, and options using the --help option:
bgr --helpBy default, BGR applies feathering to create smooth transitions between the foreground and background, reducing harsh edges and halos. You can control the feathering range using two options:
--feather-min- Mask values below this threshold become fully transparent. Default:70--feather-max- Mask values above this threshold become fully opaque. Default:117
Values between feather-min and feather-max are linearly scaled to produce partial transparency, creating a smooth gradient at edges.
bgr /path/to/image.jpg --feather-min 60 --feather-max 130A wider range (e.g., 50 to 150) produces softer edges, while a narrower range (e.g., 90 to 100) produces sharper edges.
If you encounter any issues while using the app, please open an issue on the repository. If you have any suggestions or feature requests, feel free to open an issue as well.
If you'd like to contribute to the project, feel free to fork the repository and submit a pull request. If you have any questions or suggestions, feel free to open an issue.

