Giter VIP home page Giter VIP logo

facial-recognition's Introduction

Facial Recognition with OpenCV

 OpenCV is an open-source computer vision library supported by Intel. As a basic open-source project for computer vision, image processing and pattern recognition. It uses a face detector called Haar Cascade Classifier, which uses data stored in an XML file to determine the location of each local search image and detects it using its built-in function, which uses a Cascade Classifier trained on a target object to find rectangular regions in the image containing the target object and returns these regions as a sequence of rectangular boxes, with the final detection result stored in a variable.

 Haar features shown in the below image are used. They are just like convolutional kernels. Each feature is a single value obtained by subtracting sum of pixels under the white rectangle from sum of pixels under the black rectangle.

  

 Consider the image above on the right. The top row shows two good features. The first feature selected seems to focus on the property that the region of the eyes is often darker than the region of the nose and cheeks. The second feature selected relies on the property that the eyes are darker than the bridge of the nose. [1]

 Considering that the task we want to implement is relatively simple, the size of the dataset is relatively small, and the performance of Raspberry Pi is not enough for fast deep learning, so I used OpenCV-based face recognition. The QT library is used to develop the graphical interface under Raspbian (extended version of Debian), and the OpenCV image processing library is used as the basis to carry out various processes using the relevant functions provided in the library: image data are collected by the camera, face detection uses the trained Haar classifier to pattern match the collected images, and the detection results can be used for face image training and identity recognition.

  I have successfully built a car with a Raspberry Pi camera and hope to use convolutional neural networks in the future to achieve fully autonomous driving capabilities. Below I provided all the parts to build the car along with its workflow.

  

Simulations

4 Predisents 6 Presidents

Reference

[1]: OpenCV: Cascade Classifier

facial-recognition's People

Contributors

sang-buster avatar

Watchers

 avatar  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.