face_ncnn icon indicating copy to clipboard operation
face_ncnn copied to clipboard

detectYuv调用问题

Open XiFanYin opened this issue 1 year ago • 0 comments

使用Camera 设置图片格式NV21,拍照后调用detectYuv 出现崩溃,请问图片格式怎么转才可以正确使用该API: mParameters.pictureFormat = ImageFormat.NV21 Bitmap rawBitmap = BitmapFactory.decodeByteArray(data, 0, data.length); detector.detectYuv(data,rawBitmap.getWidth(),rawBitmap.getHeight());

如果需要转换能提供一下转换工具类嘛?谢谢

XiFanYin avatar Jan 29 '24 07:01 XiFanYin