feat 人脸检测

This commit is contained in:
2024-08-26 15:08:30 +08:00
parent f80d36c9b2
commit 7493e5a3a3
29 changed files with 422 additions and 205 deletions

View File

@@ -0,0 +1,27 @@
using ViewFaceCore;
using ViewFaceCore.Core;
using ViewFaceCore.Model;
namespace Dlhis.InfoCheck;
public class QualityResultEx : QualityResult
{
public QualityType Type { get; set; }
}
public static class FaceQualityExtensions
{
public static QualityResultEx DetectEx<T>(this FaceQuality faceQuality, T image,
FaceInfo info,
FaceMarkPoint[] points,
QualityType type) where T : class
{
var result = faceQuality.Detect(image, info, points, type);
return new QualityResultEx
{
Level = result.Level,
Score = result.Score,
Type = type
};
}
}