Baseflow / Baseflow/PhotoView

Drawing boxes over faces in photo displayed by PhotoView

Open
#700 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
18.8k
Forks
3.9k
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/2919777/55253148-dec9ac00-5254-11e9-896c-54e370e61ec9.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.