Baseflow / PhotoView

Implementation of ImageView for Android that supports zooming, by various touch gestures.
https://baseflow.com
Apache License 2.0
18.79k stars 3.92k forks source link

Drawing boxes over faces in photo displayed by PhotoView #700

Open dominolog opened 5 years ago

dominolog commented 5 years ago

I am having issues with handling drawing white boxes over faces in the image displayed by PhotoView. Basically I have coordinates of boxes relative to photo width and height. The PhotoView displays the photo using scaleType=centerInside. I load the photo using Picasso library. I am struggling with which matrix to take from PhotoView and how to handle zooming correctly. How to calculate boxes coordinates correctly?

image

GrishinSergey commented 5 years ago

Hello, Firstly thanks, for this cool lib. It really simplify work :).

I have same question as ts. I tryied to add marker to the photo (like on image).r device-2019-04-07-153320 The problems are that I can't correctly hadle such events on image:

So, the question is:

Will be glad for soon answer