object-detection-android icon indicating copy to clipboard operation
object-detection-android copied to clipboard

Draw box on bitmap (Image)

Open MeysamSMH7 opened this issue 3 years ago • 1 comments

Hi,

                       Bitmap bitmap = camera2Fragment.textureView.getBitmap();
                        // draw on bitmap
                        Canvas canvas = new Canvas(bitmap);
                        MultiBoxTracker multiBoxTracker = new MultiBoxTracker(context);
                        multiBoxTracker.trackResults(recognitions, 0, null);
                        multiBoxTracker.draw(canvas);

Im wanna draw bitmap and storage it, on preview (when camera is open every thing is ok but when i get RecF (or location of box) and draw on bitmap, the location of boxes are not in the place

black is the activity reed is frame yellow is box (that user can see it) green is bitmap (storaged) white is box

location of the box is not ok how can i solve it?

image

MeysamSMH7 avatar Feb 28 '21 19:02 MeysamSMH7

I’m not sure I understand the question?

bourdakos1 avatar Feb 28 '21 23:02 bourdakos1