2026-02-15 15:16:56 +01:00
|
|
|
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" };
|
2026-02-15 18:06:03 +01:00
|
|
|
// When true, recognition crops will be saved to disk for diagnostics. Disabled by default.
|
|
|
|
|
public bool EnableCropSaving { get; set; } = false;
|
2026-02-15 15:16:56 +01:00
|
|
|
}
|
|
|
|
|
}
|