GithubHelp home page GithubHelp logo

mohdalibn / haarcascade-smile-detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3.21 MB

⚡Python scripts that use Haarcascade Algorithm in OpenCV to detect smiling faces on both Images & Videos

Python 100.00%

haarcascade-smile-detection's Introduction

haarcascade-smile-detection

Smile Detection Main Image

RockSmileDetection

RobertSmileDetection

project-description (14)

This is a Python Project featuring Smile Detection Scripts for both Images & Videos made using Python. The Smile Detection is achieved through the Haar Cascaade Pretrained Face Data Model & Pretrained Smile Model loaded using OpenCV Python.

technologies-used (14)

Python Haarcascade Algorithm OpenCV Figma

how-to-use-project (9)

Install the following Python libraries in your Virtual Environment using PIP.

Note: The library names are CASE-SENSITIVE for PIP installations below. Make sure your type them correctly.

Install OpenCV for Python

pip install opencv-python

Download a copy of this repository onto your local machine and extract it into a suitable folder.

  • Create a Virtual Environment in that folder.
  • Install all the required Python libraries mentioned above.
  • Open a Command Prompt/Terminal in the Root Directory of the Project.
  • To test an image, run the following script-
python ImageSmileDetection.py
  • To test a video, run the following script-
python VideoSmileDetection.py
  • There are already some images and videos provided in the Assets folder for testing. To test a different image/video for smile detection, place the desired image/video in the Assets folder in the Root Directory and change the file name on the 10th line of the ImageSmileDetection.py script in the case of an image and 5th line of the VideoSmileDetection.py in the case of a video.
  • Enjoy playing around with the scripts!

haarcascade-smile-detection's People

Contributors

mohdalibn avatar

Stargazers

 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.