Good, I have the inconvenience in which I need to make a facial comparison between faces and through my research I determined that it is done by the facial reference points found in a face. For now I can get and process this information using the Vision API with its simple way of getting faces and facial landmarks from them. For now I'm doing well but my drawbackIt occurs when trying to obtain the distance between facial points since these, according to the proximity of the camera, vary in size and it does not help me to be able to compare. In conclusion, what I am looking for is the way to be able to compare the distance between reference points regardless of the distance, only the image quality, I understand that in theory it is the best way to compare a face.
The code I use to get the Facial Reference Points:
for (int i = 0; i < faces.size(); ++i) {
Face face = faces.valueAt(i);
for (Landmark landmark : face.getLandmarks()) {
//aqui obtengo los tamaños pero estos varían
float x = landmark.getPosition().x;
float y = landmark.getPosition().y;
}
}
This small fraction of code allows me to obtain the Landmarks or Facial Reference Points . This way I get the distance between each point but this varies according to the proximity of the camera.
Thank you very much and I look forward to your support.