"FacialExpression" (Built-in Classifier)

Recognize what expression a face displays from an image.

Classes

Details

  • The classifier is applied to the largest face found in the image.

Examples

open allclose all

Basic Examples  (2)

Determine the facial expression of a person:

Obtain the probabilities for the 3 most likely classes:

Obtain a ClassifierFunction for this classifier:

Use the classifier function to classify the facial expression of an example:

Classify many examples at once:

Scope  (2)

Find faces in an image:

Use the classifier on each face:

For images with many faces, the "FacialExpression" classifier selects the largest face automatically:

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:

Interactive Examples  (1)

Interact with the classifier using a dynamic interface:

Neat Examples  (1)

Obtain different expressions with their corresponding probabilities:

Visualize the result using WordCloud:

Introduced in 2018
 (11.3)