This commit is contained in:
meelstorm
2025-10-15 13:13:47 +02:00
parent 97ac18eac6
commit dec036dbcf
16 changed files with 534 additions and 678 deletions

View File

@@ -20,6 +20,8 @@ public class YoloDetectionOperation:BaseOperation
private FilePath _modelFilePath = new FilePath(){ Format = "Onnx format(*.onnx)|*.onnx" };
public int IgnoreType { get; set; } = -1;
public FilePath ModelFilePath
{
get => _modelFilePath;
@@ -101,9 +103,9 @@ public class YoloDetectionOperation:BaseOperation
continue;
}
if (box.Class.Id + 1 == 10)
if (box.Class.Id + 1 == IgnoreType)
{
continue;
}
classes[box.Class.Id + 1] = box.Class.Name;
var rect = box.Bounds;