class TensorflowLite::Image::FaceDetection::Output

Included Modules

Defined in:

tflite_image/face_detection/output.cr

Constructors

Instance Method Summary

Instance methods inherited from module TensorflowLite::Image::Detection::BoundingBox

bottom : Float32 bottom, boundary : Detection::Line boundary, left : Float32 left, right : Float32 right, top : Float32 top

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 | Symbol | Nil label, score : Float32 score

Instance methods inherited from module TensorflowLite::Image::Detection::Points

adjust(canvas_width : Int, canvas_height : Int, offset_left : Int, offset_top : Int)
adjust(image : Canvas, offset_left : Int, offset_top : Int)
adjust
, points : Hash(String, Detection::Point) points

Instance methods inherited from module TensorflowLite::Image::Detection

associated : Array(Detection) associated, type : Symbol type

Constructor methods inherited from module TensorflowLite::Image::Detection

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(top : Float32, left : Float32, bottom : Float32, right : Float32, score : Float32, index : Int32, points : Array(FaceDetection::Point)) #

[View source]

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


[View source]
def adjust(image : Canvas, offset_left : Int, offset_top : Int) #

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


[View source]
def area : Float32 #

[View source]
def boundary : Detection::Line #

[View source]
def lines : Indexable(Detection::Line) #

[View source]
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:


[View source]
def markup(image : Canvas, font : PCFParser::Font | Nil = nil) : Canvas #

[View source]
def points : Hash(String, Detection::Point) #

[View source]
def type : Symbol #
Description copied from module TensorflowLite::Image::Detection

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


[View source]