Skip to content

Instantly share code, notes, and snippets.

@neonankiti
Created December 3, 2019 14:21
Show Gist options
  • Save neonankiti/32427763e7c84c6c5535c6ad00fbc073 to your computer and use it in GitHub Desktop.
Save neonankiti/32427763e7c84c6c5535c6ad00fbc073 to your computer and use it in GitHub Desktop.
Pose Estimation with TensorFlow Lite in Android Sample
private fun classifyFrame() {
// Get a bitmap with requested width and height.
// Also, this bitmap uses ARGB_8888 format.
val bitmap = textureView!!.getBitmap(classifier!!.imageSizeX, classifier!!.imageSizeY)
// This classifier's function internally has the byte data converted from this bitmap.
classifier!!.classifyFrame(bitmap)
bitmap.recycle()
// mPrintPointArray is the output(results) of inference from input(byte data above)
drawView!!.setDrawPoint(classifier!!.mPrintPointArray!!, 0.5f)
}
@neonankiti
Copy link
Author

neonankiti commented Dec 3, 2019

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