AIFotoOnlus/src/AIFotoONLUS.Core/ModelConfiguration.cs

22 lines
970 B
C#
Raw Normal View History

using OpenCvSharp;
namespace AIFotoONLUS.Core
{
public class ModelConfiguration
{
public string DetectionCfg { get; set; } = "models/detection.cfg";
public string DetectionWeights { get; set; } = "models/detection.weights";
public string RecognitionCfg { get; set; } = "models/recognition.cfg";
public string RecognitionWeights { get; set; } = "models/recognition.weights";
public double ConfidenceThreshold { get; set; } = 0.5;
public double NmsThreshold { get; set; } = 0.4;
public Size DetectionInputSize { get; set; } = new Size(416, 416);
public Size RecognitionInputSize { get; set; } = new Size(140, 120);
public string[] NumberClasses { get; set; } = new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
// When true, recognition crops will be saved to disk for diagnostics. Disabled by default.
public bool EnableCropSaving { get; set; } = false;
}
}