struct

GS::Vision::DetectorConfig

Inherits Struct < Value < Object

YOLO detector configuration

Constructors

high_precision

Preset for high precision

Source
high_recall

Preset for high recall (more detections)

Source
new(confidence_threshold : Float32 = 0.5_f32, nms_threshold : Float32 = 0.45_f32, max_detections : Int32 = 100, filter_classes : Nil | Array(Int32) = nil)
Source
vehicles

Preset for vehicle detection

Source

Instance methods

confidence_threshold
Source
confidence_threshold=(confidence_threshold : Float32)
Source
filter_classes
Source
filter_classes=(filter_classes : Array(Int32) | Nil)
Source
max_detections
Source
max_detections=(max_detections : Int32)
Source
nms_threshold
Source
nms_threshold=(nms_threshold : Float32)
Source