Can-remap
This commit is contained in:
@ -66,6 +66,7 @@ public class Configuration
|
||||
public float[]? RangeFaceAreaTolerance { get; set; }
|
||||
public float[]? RangeFaceConfidence { get; set; }
|
||||
public float[]? RectangleIntersectMinimums { get; set; }
|
||||
public bool? ReMap { get; set; }
|
||||
public bool? Reverse { get; set; }
|
||||
public string[]? SaveBlurHashForOutputResolutions { get; set; }
|
||||
public string[]? SaveFaceDistancesForOutputResolutions { get; set; }
|
||||
@ -163,6 +164,7 @@ public class Configuration
|
||||
// if (configuration?.RangeFaceAreaTolerance is null) throw new NullReferenceException(nameof(configuration.RangeFaceAreaTolerance));
|
||||
// if (configuration?.RangeFaceConfidence is null) throw new NullReferenceException(nameof(configuration.RangeFaceConfidence));
|
||||
// if (configuration?.RectangleIntersectMinimums is null) throw new NullReferenceException(nameof(configuration.RectangleIntersectMinimums));
|
||||
if (configuration?.ReMap is null) throw new NullReferenceException(nameof(configuration.ReMap));
|
||||
if (configuration?.Reverse is null) throw new NullReferenceException(nameof(configuration.Reverse));
|
||||
// if (configuration?.SaveBlurHashForOutputResolutions is null) throw new NullReferenceException(nameof(configuration.SaveBlurHashForOutputResolutions));
|
||||
// if (configuration?.SaveFaceDistancesForOutputResolutions is null) throw new NullReferenceException(nameof(configuration.SaveFaceDistancesForOutputResolutions));
|
||||
@ -247,6 +249,7 @@ public class Configuration
|
||||
configuration.RangeFaceAreaTolerance ?? Array.Empty<float>(),
|
||||
configuration.RangeFaceConfidence ?? Array.Empty<float>(),
|
||||
configuration.RectangleIntersectMinimums ?? Array.Empty<float>(),
|
||||
configuration.ReMap.Value,
|
||||
configuration.Reverse.Value,
|
||||
configuration.SaveBlurHashForOutputResolutions ?? Array.Empty<string>(),
|
||||
configuration.SaveFaceDistancesForOutputResolutions ?? Array.Empty<string>(),
|
||||
|
Reference in New Issue
Block a user