google_mlkit_selfie_segmentation 0.8.1 google_mlkit_selfie_segmentation: ^0.8.1 copied to clipboard
Flutter plugin to use Google's ML Kit Selfie Segmentation API to easily separate the background from users within a scene and focus on what matters.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add google_mlkit_selfie_segmentation
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
google_mlkit_selfie_segmentation: ^0.8.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:google_mlkit_selfie_segmentation/google_mlkit_selfie_segmentation.dart';