class TensorflowLite::Image::FaceDetection::Output
- TensorflowLite::Image::FaceDetection::Output
- Reference
- Object
Included Modules
- TensorflowLite::Image::Detection
- TensorflowLite::Image::Detection::BoundingBox
- TensorflowLite::Image::Detection::Points
Defined in:
tflite_image/face_detection/output.crConstant Summary
-
LABEL =
"face"
Constructors
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::WHITE) : Canvas
- #points : Hash(String, Detection::Point)
-
#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::Points
adjust(canvas_width : Int, canvas_height : Int, offset_left : Int, offset_top : Int)
adjust,
make_adjustment(original_width : Int, original_height : Int, canvas_width : Int, canvas_height : Int, offset_left : Int, offset_top : Int) : Nil
make_adjustment,
points : Hash(String, Detection::Point)
points
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, points : Array(FaceDetection::Point))
#
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::WHITE) : Canvas
#
def type : Symbol
#
Description copied from module TensorflowLite::Image::Detection
i.e. object, pose, face, age, class