AppSettings and Configuration changes,
major changes to E_Distance and minor for D_Face
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user