2.0.9
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user