颤振中的人脸识别

时间:2019-11-22 10:31:15

标签: flutter dart face-recognition

我想在我的应用中实现人脸识别。

是可用于 Flutter 的任何人脸识别软件包。

2 个答案:

答案 0 :(得分:0)

这里是一个有关Face Recognition...的软件包 还有一篇文章,checkout here...

答案 1 :(得分:0)

您可以尝试flutter_face_detection

示例

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