Run smile detection

Run the following program on the smile detection Python example on the OpenMV IDE.

  • Select Files -> Examples -> 25-Machine-Learning ->

The program enables to identify a person smiling by braking the problem down in two distinct phases:

  1. Identify a face in an image using a Haar Cascade classifier.
  2. Identify whether the identified face is smiling or not.
  3. Display a yellow happy or sad face on the image on the top right.

Optional task: modify the python example

  1. Play around with the size of the rectangle used to limit the smile detection area.
  2. Add terminal output when a smile is detected.

Optional: final deployable model

Note: This step is not required if the previous steps have been executed successfully.

The final pre-trained and pre-converted models can be found on GitHub here.

Previous Next