Remove Person Require People File,
PersonContainer and bug fix for GetRightPadded
This commit is contained in:
@ -28,6 +28,21 @@ internal abstract class Face
|
||||
return result;
|
||||
}
|
||||
|
||||
internal static List<Models.Face> GetVerifiedFaces(int locationDigits, int locationFactor, List<Models.Face> faces)
|
||||
{
|
||||
List<Models.Face> results = new();
|
||||
foreach (Models.Face face in faces)
|
||||
{
|
||||
if (face.Location?.NormalizedPixelPercentage is null)
|
||||
results.Add(face);
|
||||
else if (face.Location.NormalizedPixelPercentage.ToString() == ILocation.GetRightPadded(locationDigits, face.Location.NormalizedPixelPercentage.Value))
|
||||
results.Add(face);
|
||||
else
|
||||
results.Add(new(face, face.Location, locationDigits, locationFactor, faces.Count));
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
private static JsonElement[] GetJsonElements(string jsonFileFullName)
|
||||
{
|
||||
string json = GetJson(jsonFileFullName);
|
||||
|
Reference in New Issue
Block a user