// Estimate the body part positions of a single person. // Pass in a Bitmap and obtain a Person object. estimateSinglePose(bitmap: Bitmap): Person {...}
// Person class holds a list of key points and an associated confidence score. class Person { var keyPoints: List<KeyPoint> = listOf<KeyPoint>() var score: Float = 0.0f }
// KeyPoint class holds information about each bodyPart, position, and score. class KeyPoint { var bodyPart: BodyPart = BodyPart.NOSE var position: Position = Position() var score: Float() = 0.0f } // Position class contains the x and y coordinates of a key point on the bitmap. class Position { var x: Int = 0 var y: Int = 0 } // BodyPart class holds the names of seventeen body parts. enum class BodyPart { NOSE, LEFT_EYE, RIGHT_EYE, ... RIGHT_ANKLE }