This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Estimate the body part positions of a single person. | |
// Pass in a Bitmap and obtain a Person object. | |
estimateSinglePose(bitmap: Bitmap): Person {...} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |