Created
June 9, 2022 09:45
-
-
Save zaleslaw/6569d9b28d16856914bf4cc01744629b to your computer and use it in GitHub Desktop.
Pose detection
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
model.use { poseDetectionModel -> | |
val imageFile = … | |
val detectedPose = poseDetectionModel.detectPose(imageFile = imageFile) | |
detectedPose.poseLandmarks.forEach { | |
println("Found ${it.poseLandmarkLabel} with probability ${it.probability}") | |
} | |
detectedPose.edges.forEach { | |
println("The ${it.poseEdgeLabel} starts at ${it.start.poseLandmarkLabel} and ends with ${it.end.poseLandmarkLabel}") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment