s
This commit is contained in:
parent
71bf72991d
commit
cf316ba065
@ -247,11 +247,11 @@ namespace VOL.Ai.Services
|
||||
|
||||
public async Task<Ai_StudentFaceInfo> StudentFace(GetFaceParam paramDto)
|
||||
{
|
||||
var faces = await ALiYunFace.SearchFace(paramDto.Base64, false);
|
||||
var faces = await ALiYunFace.SearchFace(paramDto.Base64, true);
|
||||
|
||||
foreach (var body in faces)
|
||||
{
|
||||
if (body != null && body.Confidence >= 72.62)
|
||||
if (body != null && body.Confidence >= 70)
|
||||
{
|
||||
var student = await (from s in _studentRepository.FindAsIQueryable(x => x.SchoolCode == paramDto.SchoolCode && x.StudentNo == body.EntityId)
|
||||
join c in _studentRepository.DbContext.Set<S_Class>() on s.ClassId equals c.Id
|
||||
@ -269,7 +269,7 @@ namespace VOL.Ai.Services
|
||||
}).FirstOrDefaultAsync();
|
||||
|
||||
if (student == null)
|
||||
throw new Exception("未查询到学生信息");
|
||||
continue;
|
||||
|
||||
return student;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user