struct

GS::Vision::Detection

Inherits Struct < Value < Object

Detection result

Constructors

new(x : Float32, y : Float32, width : Float32, height : Float32, confidence : Float32, class_id : Int32, track_id : Int32 = -1)
Source

Instance methods

bbox

Bounding box as tuple

Source
class_id
Source
class_id=(class_id : Int32)
Source
class_name
Source
confidence
Source
confidence=(confidence : Float32)
Source
height
Source
height=(height : Float32)
Source
is_vehicle?
Source
to_pixels(img_width : Int32, img_height : Int32) : Tuple(Int32, Int32, Int32, Int32)

Convert to pixel coordinates

Source
track_id
Source
track_id=(track_id : Int32)
Source
width
Source
width=(width : Float32)
Source