face_contour_detector 0.0.2 copy "face_contour_detector: ^0.0.2" to clipboard
face_contour_detector: ^0.0.2 copied to clipboard

A Flutter plugin for detecting face contours in rgb image.

face_contour_detector #

A Flutter plugin for detecting face contours in rgb image.

  • Currently support only android and in future I'll add feature for support iOS.
  • This plugin take time 20ms -> 80ms for detect face contour from image base on image size.

Getting Started #

Add this plugin to your pubspec.yaml:

dependencies:
  face_contour_detector: ^0.0.2

Initialization #

Need initialize the detector before using it:


import 'package:face_contour_detector/face_contour_detector.dart';

bool status = await FaceContourDetector.initialize();

Detect Faces from image bytes #


List<Rect> faces = await FaceContourDetector.detectFromImage(imageBytes);


Detect Faces from image yuv bytes #


List<Rect> faces = await FaceContourDetector.detectFromYuv(yuvBytes: yuvBytes,width: width,height: height);


Cleanup #

Destroy the detector when it’s no longer needed:


FaceContourDetector.destroy();

1
likes
150
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for detecting face contours in rgb image.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on face_contour_detector

Packages that implement face_contour_detector