颤振中的人脸识别

问题描述 投票:-1回答:2

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

是否有任何面部识别包可用于颤振

flutter dart face-recognition
2个回答
0
投票

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


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}");
}
© www.soinside.com 2019 - 2024. All rights reserved.