"FacialExpression" (Built-in Classifier)
Classes
Details
- The classifier is applied to the largest face found in the image.
Examples
open all close allBasic 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 :
See Also
Classify FacialFeatures NetModel FindFaces CurrentImage ImageIdentify
Classifiers: FacialAge FacialGender NotablePerson NSFWImage
Related Guides
History
Introduced in 2018 (11.3)