TengineKit - Free, Fast, Easy, Real-Time Face Detection & Face Landmarks & Face Attributes & Hand Detection & Hand Landmarks & Body Detection & Body Landmarks & Iris Landmarks & Yolov5 SDK On Mobile.
fun getPixelsRGBA(image: Bitmap): ByteArray {
// calculate how many bytes our image consists of
val bytes = image.byteCount
val buffer: ByteBuffer = ByteBuffer.allocate(bytes) // Create a new buffer
image.copyPixelsToBuffer(buffer) // Move the byte data to the buffer
return buffer.array() // Get the underlying array containing the
}
getInit()方法拿到了true,应该是初始化成功的。 getPixelsRGBA方法是closed issue里面的那个方法
是哪里出了问题呢???感谢解答