class TensorflowLite::Image::ObjectDetection::Output
- TensorflowLite::Image::ObjectDetection::Output
- Reference
- Object
Included Modules
Defined in:
tflite_image/object_detection/output.crConstructors
Instance Method Summary
-
#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
- #boundary : Detection::Line
- #lines : Indexable(Detection::Line)
-
#make_adjustment(original_width : Int, original_height : Int, canvas_width : Int, canvas_height : Int, offset_left : Int, offset_top : Int) : Nil
:nodoc:
- #markup(image : Canvas, minimum_score : Float32 = 0.3_f32, font : PCFParser::Font | Nil = nil, color = StumpyPNG::RGBA::BLACK) : Canvas
-
#type : Symbol
i.e.
Instance methods inherited from module TensorflowLite::Image::Detection::BoundingBox
adjust_bounding_box(target_aspect_ratio : Float64, image_width : Int32, image_height : Int32)
adjust_bounding_box,
area : Float32
area,
aspect_ratio : Float64
aspect_ratio,
bottom : Float32
bottom,
boundary : Detection::Line
boundary,
height : Float32
height,
left : Float32
left,
right : Float32
right,
to_pixel_coordinates(image_width : Int32, image_height : Int32)
to_pixel_coordinates,
top : Float32
top,
width : Float32
width
Instance methods inherited from module TensorflowLite::Image::Detection::Lines
lines : Indexable(Detection::Line)
lines
Instance methods inherited from module TensorflowLite::Image::Detection::Classification
index : Int32
index,
label : String | Nil
label,
score : Float32
score
Instance methods inherited from module TensorflowLite::Image::Detection
associated : Array(Detection)
associated,
associated=(associated : Array(Detection))
associated=,
label : String | Nil
label,
markup(image : Canvas, minimum_score : Float32 = 0.3_f32, font : PCFParser::Font | Nil = nil, color = StumpyPNG::RGBA::WHITE) : Canvas
markup,
type : Symbol
type
Constructor methods inherited from module TensorflowLite::Image::Detection
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Constructor Detail
def self.new(top : Float32, left : Float32, bottom : Float32, right : Float32, score : Float32, index : Int32, label : String | Nil = nil)
#
Instance Method Detail
def 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
def make_adjustment(original_width : Int, original_height : Int, canvas_width : Int, canvas_height : Int, offset_left : Int, offset_top : Int) : Nil
#
Description copied from module TensorflowLite::Image::Detection
:nodoc:
def markup(image : Canvas, minimum_score : Float32 = 0.3_f32, font : PCFParser::Font | Nil = nil, color = StumpyPNG::RGBA::BLACK) : Canvas
#
def type : Symbol
#
Description copied from module TensorflowLite::Image::Detection
i.e. object, pose, face, age, class