i've recently started playing with Android's camera api. And i'm using face detection and it's callback setFaceDetectionListener
. I'm having trouble trying to understand how to convert the faces[0].rect.centerX();
and faces[0].rect.centerY()
to something i can use on screen like move a image around the face centered on that point.
can anyone help me understand how to convert from the coord system given by the camera to something i can use to set elements on my activity.