Skip to content

edumorlom/smile-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smile Detection

I created this smile/neutral CNN while I was bored during COVID-19 isolation to practice my ML skills. NOTE: It can only detect neutral and smile faces, not intended to detect frowning, laughing, etc...

Demo

Demo

Install Dependencies

  1. Install Python.
  2. Run python3 -m pip install -r requirements.txt inside the smile-detection/ directory.

Train Model (Optional)

NOTE: By default, this GitHub repository comes with a pre-trained model. Training a new model will take a while to run. Please be patient.

  1. Open smile-detection/Train.ipynb with Jupyter Notebook.
  2. In Jupyter Notebook, click: Cell -> Run All.
  3. The model data will be written inside the smile-detection/ directory as smile.model/.

How to Run

  1. Run python3 main.py inside the smile-detection/ directory.

Data

The data can be found inside smile-detection/data.csv, where each image is represented as an Numpy array for simplicty. One can iterate through each image and read the numpy array as an image.

About

ML app that can detect neutral and smiley faces.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published