class

TensorflowLite::Image::ObjectDetection::Output

Inherits TensorflowLite::Image::Detection::BoundingBox < TensorflowLite::Image::Detection::Lines < TensorflowLite::Image::Detection::Classification < TensorflowLite::Image::Detection < JSON::Serializable < Reference < Object

Constructors

new(top : Float32, left : Float32, bottom : Float32, right : Float32, score : Float32, index : Int32, label : String | Nil = nil)
Source

Instance methods

adjust(canvas_width : Int, canvas_height : Int, offset_left : Int, offset_top : Int)

adjust the detections so they can be applied directly to the source image

Source
adjust(image : Canvas, offset_left : Int, offset_top : Int)

adjust the detections so they can be applied directly to the source image

Source
boundary
Source
lines
Source
make_adjustment(original_width : Int, original_height : Int, canvas_width : Int, canvas_height : Int, offset_left : Int, offset_top : Int) : Nil

:nodoc:

Source
markup(image : Canvas, font : PCFParser::Font | Nil = nil) : Canvas
Source
type

i.e. object, pose, face, age, class

Source