Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
KeyPoint, Position, and BodyPart classes in details.
// 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 {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.