Skip to content

Instantly share code, notes, and snippets.

View tanjinprity4's full-sized avatar
🎯
Focusing

Tanjin Prity tanjinprity4

🎯
Focusing
View GitHub Profile
// 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
}
@tanjinprity4
tanjinprity4 / PoseNet library: estimateSinglePose()
Last active August 5, 2019 21:27
estimateSinglePose() function
// Estimate the body part positions of a single person.
// Pass in a Bitmap and obtain a Person object.
estimateSinglePose(bitmap: Bitmap): Person {...}
@tanjinprity4
tanjinprity4 / PoseNet library: KeyPoint, Position, BodyPart
Last active August 5, 2019 22:26
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