AppSettings and Configuration changes,

major changes to E_Distance and minor for D_Face
This commit is contained in:
2022-08-19 21:37:36 -07:00
parent 004017b9dd
commit be7a6abbf4
60 changed files with 1269 additions and 1344 deletions

View File

@ -471,7 +471,7 @@ public sealed class FaceRecognition : DisposableObject
/// <returns>An enumerable collection of face location correspond to all faces in specified image.</returns>
/// <exception cref="NullReferenceException"><paramref name="image"/> is null.</exception>
/// <exception cref="ObjectDisposedException"><paramref name="image"/> or this object is disposed.</exception>
public List<Location> FaceLocations(Model model, Image image, int numberOfTimesToUpsample, bool sortByPixelPercentage)
public List<Location> FaceLocations(Model model, Image image, int numberOfTimesToUpsample, bool sortByNormalizedPixelPercentage)
{
if (image == null)
throw new NullReferenceException(nameof(image));
@ -487,8 +487,8 @@ public sealed class FaceRecognition : DisposableObject
face.Dispose();
results.Add(new Location(confidence, ret, image.Width, image.Height));
}
if (sortByPixelPercentage)
results = (from l in results orderby l.PixelPercentage select l).ToList();
if (sortByNormalizedPixelPercentage)
results = (from l in results orderby l.NormalizedPixelPercentage select l).ToList();
return results;
}