This is a C# library for removing the background of an image. It provides a Remover class with a RemoveBackground method that takes an IFormFile representing the input image and an optional thresholdDegree parameter that determines the degree of color separation between the foreground and background.
$ dotnet add package remove_backgroundThis is a C# library for removing the background of an image. It provides a Remover class with a RemoveBackground method that takes an IFormFile representing the input image and an optional thresholdDegree parameter that determines the degree of color separation between the foreground and background.
To use this library in your C# project, you can install it via NuGet:
Install-Package BackgroundRemover
Here is an example of how to use the RemoveBackground method of the Remover class:
using BackgroundRemover;
var remover = new Remover();
var outputImage = remover.RemoveBackground(inputImage, thresholdDegree);
In this example, inputImage is an instance of IFormFile representing the input image, and thresholdDegree is an optional parameter representing the degree of color separation between the foreground and background.
This library is licensed under the MIT License. See the LICENSE file for details.