Giter Site home page Giter Site logo

smile-detector's Introduction

Smile Detector

This Python program uses cv2 to detect smiles from images and webcam.

It converts face data into greyscale for improved classification, and was made with reference to a Youtube livestream by Clever Programmer, which can be found here https://www.youtube.com/watch?v=uLY5JSE5WAU.

Dataset and Haar Cascades

The generated_haarcascade_grey_smile dataset was created using images from the GENKI4K dataset, which were then converted to greyscale for improved performance. This dataset was generated using Cascade Trainer GUI.

The haarcascade_frontalface_default and haarcascade_smile xml files are two of the OpenCV Haar Cascades, which can be found on the OpenCV Github under data.

Program Use

If the generated AI is having a hard time reading the face, ensure the face is in a bright area, and no parts are blocked from view.

To display the detected image(s) the program will open a tab. To close these tabs, press ESCAPE and alternatively for photo analysis click the X.

Image

Example image by leah hetteberg on Unsplash.

smile-detector's People

Contributors

demanr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.