| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Flutter package for removing background from images using Apple Vision Selfie on macOS and Google ML Kit Selfie Segmentation on Android and iOS.
Add the following to your pubspec.yaml file:
dependencies: flutterbackgroundremover: ^0.0.1
import 'package:flutterbackgroundremover/flutterbackgroundremover.dart';
// Example usage
final File imageFile = ...; // Provide your image file
try {
final Uint8List result = await FlutterBackgroundRemover.removeBackground(imageFile);
// Use the result as needed, e.g., display it in your Flutter app
} catch (e) {
print("Error: $e");
}
The package uses Apple Vision Selfie on macOS and Google ML Kit Selfie Segmentation on Android and iOS. Background removal is achieved by processing an input image and generating a new image with the background removed.
Contributions are welcome! Feel free to open issues or pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |