How to convert FirebaseVisionImage to a bitmap

526 Views Asked by At

I am using ml kit for text detection . We pass in FirebaseVisionImage to a detector.

I need to set this FirebaseVisionImage to Image view. How can I extract hr bitmap from FirebaseVisionImage

Thank you

1

There are 1 best solutions below

0
AskNilesh On

You can use getBitmap() method of FirebaseVisionImage

getBitmap()

  • Returns its bitmap representation.
  • The image will be rotated to up-right if it's created with rotation info via setRotation(int).