flutterbackgroundremover 0.0.1 copy "flutterbackgroundremover: ^0.0.1" to clipboard
flutterbackgroundremover: ^0.0.1 copied to clipboard

Effortlessly remove backgrounds from images in your Flutter app with Background Remover. This cross-platform Flutter package leverages Apple Vision Selfie on macOS and Google ML Kit Selfie Segmentatio [...]

Background Remover #

A Flutter package for removing background from images using Apple Vision Selfie on macOS and Google ML Kit Selfie Segmentation on Android and iOS.

Features #

  • Cross-platform background removal support (macOS, Android, iOS)
  • Efficient background removal using Apple Vision Selfie or Google ML Kit Selfie Segmentation
  • Isolate computation for improved performance

Getting started #

Add the following to your pubspec.yaml file:

dependencies:
  flutterbackgroundremover: ^0.0.1

Usage #

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");
}

How Its Works #

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.

Contributing #

Contributions are welcome! Feel free to open issues or pull requests.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

5
likes
100
pub points
72%
popularity

Publisher

verified publisheralihassan143cool.blogspot.com

Effortlessly remove backgrounds from images in your Flutter app with Background Remover. This cross-platform Flutter package leverages Apple Vision Selfie on macOS and Google ML Kit Selfie Segmentation on Android and iOS to deliver efficient background removal. The package provides a simple API for developers, making it easy to integrate this powerful feature into your applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

apple_vision_selfie, flutter, google_mlkit_selfie_segmentation, image

More

Packages that depend on flutterbackgroundremover