Giter VIP home page Giter VIP logo

face-recognition's Introduction

Real-time Face Recognition ๐Ÿ˜ƒ

This Python script uses the face_recognition library and OpenCV to perform real-time face recognition from a webcam. It loads known faces from a specified folder, captures video frames from the webcam, and detects faces in the frames. It then compares the detected faces with the known faces to recognize individuals in real-time. The recognized names are displayed on the video frames.

Requirements

  • Python 3.x
  • OpenCV (cv2)
  • face_recognition
  • NumPy

You can install the required packages using the following commands:

pip install opencv-python
pip install face-recognition
pip install numpy

Usage

  1. Clone the repository to your local machine: git clone <repository_url>

  2. Run the face_recognition.py script: python face_recognition.py

  3. Enter the folder path containing the known faces when prompted. The script will load the known faces from the specified folder.

  4. The script will start capturing video frames from the webcam and performing real-time face recognition.

  5. Recognized names will be displayed on the video frames.

  6. Press 'q' to quit the script.

Note: The script assumes that there is only one face per image in the known faces folder, and the images are in JPG format. If the script encounters any issues with loading or encoding the images, it will skip those images and continue with the rest.

Feel free to customize the code to suit your specific requirements, such as changing the face recognition parameters, video frame size, or display settings.

Happy face recognition! ๐Ÿ˜„

face-recognition's People

Contributors

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