20 lines
810 B
C#
20 lines
810 B
C#
|
|
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" };
|
||
|
|
}
|
||
|
|
}
|