Coder Social home page Coder Social logo

face-detection-in-openframeworks-opencv's Introduction

Face Detection-in-OpenFrameworks-OpenCV wiki;

With the following code you can perform face detection in openFrameworks. For this the openCV x openFrameworks library is used.

For running this code all you need are the header files and the files containing the actual code, as well as the HAAR Classifiers which can be found in the bin folder.

In order to get this code running, make sure that you set the right location for the HAAR Classifiers in your ofApp.cpp file. If not, it will throw an error.

In the setup method, you can find face_cascade.load and eye_cascade.load these are the locations where you want to change path to your local path to the HAAR classifiers.

Why use an eye classifier and a face classifier for face detection?

By creating a cascade of different classifiers, you drastically improve the accuracy of your system. When you're only considering the face classifier, a lot of false positives can occurs (the system thinks it's a face, but it's actually not). When first trying to detect a face, and then trying to detect if there are eyes, the system has to pass 2 tests before it can say it has detected a face. You might wonder, what if I want to use other criteria to detect a face (or a person)? Just import the according classifier and add it to the code like already done with the previous examples. Here is a link that contains some useful HAAR Classifiers

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.