0

How can I use the facial landmarks, to compare two faces?

The code below sets the landmarks on face:

for (int i = 0; i < faces.size(); ++i) {
Face face = faces.valueAt(i);
for (Landmark landmark : face.getLandmarks()) {
    int cx = (int) (landmark.getPosition().x * scale);
    int cy = (int) (landmark.getPosition().y * scale);
    canvas.drawCircle(cx, cy, 10, paint);
}
}

But the value of those positions changes with a minimum change of the position camera.

Rodrigo Paixão
  • 246
  • 5
  • 12

0 Answers0