"FacialAge" (Built-in Classifier)

Estimate a person's age from a face in the image.

Classes

Details

  • The classifier is applied to the largest face found in the image.
  • The classifier is based on the MobileNet Model Trained on UTKFace Large-Scale Face Dataset.
  • The classifier may download resources that will be stored in your local object store at $LocalBase, and that can be listed using LocalObjects[] and removed using ResourceRemove.

Examples

open allclose all

Basic Examples  (2)

Determine the age of a person:

Obtain the probabilities for the 3 most likely ages:

Obtain a ClassifierFunction for this classifier:

Use the classifier function to find the age from an image:

Find the age of many examples at once:

Scope  (2)

Find faces in an image:

Use the classifier on each face:

Load the ClassifierFunction corresponding to the built-in classifier:

Obtain the possible classes:

Options  (2)

ClassPriors  (1)

Use a custom ClassPriors to restrict the possible outputs:

IndeterminateThreshold  (1)

Use a custom IndeterminateThreshold: