logidelic
logidelic

Reputation: 1695

Given dlib's 68-point facial landmarks, determine how good they are

I'm using dlib to do face detection, followed by 68-point facial landmark detection. Generally this works very well.

However, dlib's face detector sometimes detects faces where (for example) only one eye is visible, or the person's mouth is not visible (or in rare cases, non-faces). Obviously in these cases some of the 68-points detected are garbage.

How can I detect these cases?

Upvotes: 0

Views: 2592

Answers (1)

sascha
sascha

Reputation: 33522

This is a bit broad.

In general, the face-detector should have a score to read out. That's one info to use.

Also: after you obtained the landmarks, which are ordered like this, you can:

  • check if left-eye is left of right-eye
  • eye's are within bounding-box
  • eyes above nose / mouth
  • ... (you get the idea)

These kind of rules / filterings worked good for me in the past.

Upvotes: 1

Related Questions