mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Android Object Detection ResultListener get Current Bitmap from MPImage

Open FaceAISDK opened this issue 2 years ago • 1 comments

As the samples code

setResultListener(this::returnLivestreamResult)

image

How can I get Current Bitmap from MPImage?

thank you .

FaceAISDK avatar Nov 22 '23 09:11 FaceAISDK

You should use extract() method from BitmapExtractor class that mediapipe provides, e.g: val bitmap = BitmapExtractor.extract(result.generatedImage())

ArtanBerisha1 avatar May 26 '24 14:05 ArtanBerisha1