mediapipe
mediapipe copied to clipboard
Android Object Detection ResultListener get Current Bitmap from MPImage
As the samples code
setResultListener(this::returnLivestreamResult)
How can I get Current Bitmap from MPImage?
thank you .
You should use extract() method from BitmapExtractor class that mediapipe provides, e.g: val bitmap = BitmapExtractor.extract(result.generatedImage())