Giter Site home page Giter Site logo

btarg / smile-detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 225 KB

A Python program to detect when someone is smiling, and say something mean.

Home Page: https://opencv.org/

License: MIT License

Python 98.53% Batchfile 0.68% Shell 0.79%
opencv-python opencv face-detection smile-detection insult funny python python3

smile-detection's Introduction

Depress-o-matic

Python OpenCV-Python

This program will track faces in its vision, and detect any smiles. It will then add "True" to the list if it detected a smile, or "False" if it did not. If "True" is the most common value in the list, then the program detects that the person in the image is happy, and will try to make them sad by insulting them.

Installing dependencies

To install the requirements, run the following command in the code's directory:

py -m pip install -r requirements.txt

You can replace py with python, python3 or a specific version such as python3.6 if the above command doesn't work. On Linux, you can also use pip3 or pip without the python command:

pip3 install -r requirements.txt

Running the program

You can run the program through the Python command within the command line. You can also use the provided Shell Script or Batch File, or use an IDE such as Thonny.

Running under Python 2.x

Currently, this version of the program only works with Python 3, however, it would be very easy to port it to Python 2, by replacing print(stuff) with print stuff etc.

Feel free to Fork the repo and create your own version!

Video Demonstration

Coming soon™

smile-detection's People

Contributors

btarg avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

joshuadarron

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.