Change to support 7680 x 4320 and
Configuration additions
This commit is contained in:
.vscode
FaceRecognitionDotNet
Instance
DlibDotNet.cs
Models
appsettings.Development.jsonappsettings.Staging.jsonappsettings.jsonMap/Models
Metadata/Models
Property/Models
Resize/Models
Shared/Models
Tests
TestsWithFaceRecognitionDotNet
@ -94,25 +94,4 @@ public class UnitTestCalculations
|
||||
Assert.IsTrue(checkB > checkA);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestMethodRoundB()
|
||||
{
|
||||
const int DistanceDigits = 3;
|
||||
const int DistanceFactor = 1000;
|
||||
const int ToleranceAfterFactor = 600;
|
||||
Assert.IsTrue(DistanceDigits == 3);
|
||||
Assert.IsTrue(DistanceFactor == 1000);
|
||||
Assert.IsTrue(Shared.Models.Stateless.IFaceDistance.Tolerance == 0.6d);
|
||||
Assert.IsTrue(ToleranceAfterFactor == 600);
|
||||
double valueA = 0.00001d;
|
||||
int checkA = (int)(Math.Round(valueA, Shared.Models.Stateless.ILocation.Digits) * Shared.Models.Stateless.ILocation.Factor);
|
||||
Assert.IsTrue(checkA == 10);
|
||||
double valueB = 0.01d;
|
||||
int checkB = (int)(Math.Round(valueB, Shared.Models.Stateless.ILocation.Digits) * Shared.Models.Stateless.ILocation.Factor);
|
||||
Assert.IsTrue(checkB == 10000);
|
||||
Assert.IsTrue(checkB > checkA);
|
||||
int checkC = (int)(Shared.Models.Stateless.IFaceDistance.Tolerance * DistanceFactor);
|
||||
Assert.IsTrue(checkC == ToleranceAfterFactor);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user