Code Monkey home page Code Monkey logo

facial-detection-via-opencv's Introduction

Facial-Detection-via-OpenCV

A simple Python code that recognize the faces of humans, and rarely, faces of ghosts. More features coming soon as I continue to study the OpenCV documentation.

About

This is a project by Lin as a way to challenge himself to create a facial detection software within 2 days. As he is typing this right now, he is currently under immense headache from the back all the way to the front. If you wish to add more features into this project, you are free to contribute.

HOW TO

To use the code for your personal project, follow these easy steps (read everything first before doing so):

  1. Crop and copy the images of the faces of people you want the computer to identify to the resx folder. Using different folders, separate the images to their corresponding folder names (use their real name, or not; depends if you want to make a fool of somebody by labelling them something else). The name of the folders will be used as labels. The name of the images doesn't matter.
  2. Run os-walk.py. This will create the trainer.yml and labels.pickle files. These files contain the data necessary for person identification for main.py.
  3. Run main.py and enjoy!
  4. coco-detect.py is for object detection. It utilizes the files frozen_inference_graph.pb and ssd_mobilenet_v3_large_coco_2020_01_14.pbtxt, so it doesn't require steps #1-#3. You can simply run this as is!

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.