Skip to content

LembergAI/flutter_face_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d99aba3 · Mar 22, 2019

History

28 Commits
Feb 27, 2019
Feb 17, 2019
Feb 17, 2019
Feb 17, 2019
Feb 27, 2019
Feb 17, 2019
Feb 27, 2019
Feb 17, 2019
Feb 17, 2019
Feb 17, 2019
Feb 17, 2019
Feb 17, 2019
Mar 22, 2019
Feb 17, 2019
Feb 27, 2019
Feb 17, 2019
Feb 17, 2019
Feb 17, 2019
Feb 27, 2019
Feb 17, 2019
Feb 17, 2019
Feb 18, 2019
Feb 19, 2019

Repository files navigation

Flutter Face Detection

Project license Pub package Dartdoc reference Travis CI build status

This is a Flutter plugin for real-time, on-device, offline face & eye detection.

Screenshot

Screenshot

Features

  • Finds face mid-points, eye positions, and face poses in images.

Compatibility

Android only, at present. (iOS support is planned.)

Examples

Detecting faces in a static image

import 'package:flutter_face_detection/flutter_face_detection.dart';

var photo = Image.asset("images/einstein.png");

var bitmap = Bitmap.fromAssetImage(photo.image as AssetImage);
var detector = FaceDetector(width: 280, height: 396);

for (var face in await detector.findFaces(bitmap)) {
  print("Found a face at (${face.midPoint.x}, ${face.midPoint.y}) with confidence ${face.confidence}");
}

Caveats

  • At present, iOS is not supported. This will be addressed in a future major release.