Created
December 3, 2019 14:21
-
-
Save neonankiti/32427763e7c84c6c5535c6ad00fbc073 to your computer and use it in GitHub Desktop.
Pose Estimation with TensorFlow Lite in Android Sample
This file contains hidden or 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
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) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is copy of https://github.com/edvardHua/PoseEstimationForMobile/ projects.
This software includes the work that is distributed in the Apache License 2.0.