0

So we can detect some objects and so on with VisionImageProcessor like this

imageProcessor.processImageProxy(imageProxy, graphicOverlay)

and it shows results on GraphicOverlay view which we can add to Activity/Fragment

But how can I get the result in Bitmap instead for example so I could save it to an image file (png/jpg) or a video file? Basically blend Camera frame with image result from VisionImageProcessor and save it to image/video file

user924
  • 8,146
  • 7
  • 57
  • 139
  • The sample app has the option to also render camera frame together with result into the GraphicOverlay. https://github.com/googlesamples/mlkit/blob/master/android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/VisionProcessorBase.java#L334 So you can just search generally for how to convert view to bitmap. e.g. https://stackoverflow.com/questions/5536066/convert-view-to-bitmap-on-android – zhouyi Apr 26 '23 at 18:05

0 Answers0