"FacialGender" (Built-in Classifier)
Predict what gender a face appears to be.
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 allBasic Examples (2)
Determine the gender of a person:
Obtain the probabilities for the possible classes:
Obtain a ClassifierFunction for this classifier:
Use the classifier function to find the gender of an example:
Scope (2)
Use the classifier on each face:
For images with many faces, the "FacialGender" classifier selects the largest face automatically:
Load the ClassifierFunction corresponding to the built-in classifier:
Obtain the possible classes using Information:
Options (3)
ClassPriors (1)
Use a custom ClassPriors for the possible outputs:
IndeterminateThreshold (1)
Use a custom IndeterminateThreshold: