Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Tanjin Prity tanjinprity4

🎯
Focusing
Block or report user

Report or block tanjinprity4

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tanjinprity4
tanjinprity4 / PoseNet library: KeyPoint, Position, BodyPart
Last active Aug 5, 2019
KeyPoint, Position, and BodyPart classes in details.
View PoseNet library: KeyPoint, Position, BodyPart
// 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
View PoseNet library: 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
}
View PoseNet library: estimateSinglePose()
// Estimate the body part positions of a single person.
// Pass in a Bitmap and obtain a Person object.
estimateSinglePose(bitmap: Bitmap): Person {...}
You can’t perform that action at this time.