image_face 1.0.1 image_face: ^1.0.1 copied to clipboard
this plugin only one class ImageFace and only one static function hasFace do one thing only to check the image has image.
image_face #
this plugin only one class ImageFace this class only one static function hasFace accept one parameter image , get native detect result by _channel.invokeMethod , type is bool
. if true
the image has face, if false
the image has no face. this plugin do one thing only.
Getting Started #
This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
install #
add plugin in pubspec.yaml
image_face: ^1.0.0
and run in shell
flutter pub get
usage #
import 'package:image_face/image_face.dart';
File pickedFile = await ImagePicker.pickImage(
source: ImageSource.gallery,
);
bool _has = await ImageFace.hasFace(pickedFile);
print('this image ${_has?'has':'no'} face');