Skip to content

Instantly share code, notes, and snippets.

@neonankiti
Created December 4, 2019 02:37
Show Gist options
  • Save neonankiti/738aa3de664d5fe557f4c385becea93f to your computer and use it in GitHub Desktop.
Save neonankiti/738aa3de664d5fe557f4c385becea93f to your computer and use it in GitHub Desktop.
Pose Estimation with TensorFlow Lite in Android Sample
fun addPixelValue(pixelValue: Int) {
val red = (pixelValue and 0x00FF0000 shr 16) / 255f * 2.0f - 1.0f
val green = (pixelValue and 0x0000FF00 shr 8) / 255f * 2.0f - 1.0f
val blue = (pixelValue and 0x000000FF) / 255f * 2.0f - 1.0f
}
@neonankiti
Copy link
Author

This is copy of https://github.com/edvardHua/PoseEstimationForMobile/ projects.
This software includes the work that is distributed in the Apache License 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment