class TensorflowLite::Image::PoseEstimation::Output

Included Modules

Defined in:

tflite_image/pose_estimation/output.cr

Constant Summary

LINES = [[BodyJoint::LeftEar, BodyJoint::LeftEye, BodyJoint::Nose, BodyJoint::RightEye, BodyJoint::RightEar], [BodyJoint::LeftWrist, BodyJoint::LeftElbow, BodyJoint::LeftShoulder, BodyJoint::RightShoulder, BodyJoint::RightElbow, BodyJoint::RightWrist], [BodyJoint::LeftShoulder, BodyJoint::LeftHip, BodyJoint::LeftKnee, BodyJoint::LeftAnkle], [BodyJoint::RightShoulder, BodyJoint::RightHip, BodyJoint::RightKnee, BodyJoint::RightAnkle], [BodyJoint::LeftHip, BodyJoint::RightHip]]

Constructors

Instance Method Summary

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::Lines

lines : Indexable(Detection::Line) lines

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(points : Array(PoseEstimation::Point)) #

[View source]

Instance Method Detail

def lines : Indexable(Detection::Line) #

[View source]
def markup(image : Canvas, minimum_score : Float32 = 0.3_f32) : Canvas #

add the detection details to an image

if marking up the original image, you'll need to take into account how it was scaled and provide offsets


[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]