Giter VIP home page Giter VIP logo

face_recognition's Introduction

Real-time Face Detection with OpenCV and Multiprocessing

This is a Python script that performs real-time face detection using OpenCV and multiprocessing. The script uses Haar cascades for detecting faces and draws bounding boxes around the detected faces.

Requirements

  • Python 3.x
  • OpenCV 4.x
  • NumPy
  • A webcam or video file

Installation

Clone the repository: git clone.

Change into the project directory:

cd real-time-face-detection

Install the required dependencies:

pip install -r requirements.txt

You can install these packages by running the following command:

pip install -r requirements.txt

Usage

To run the script, use the following command:

python face_detection.py

This will start the script, which will capture video from your default camera and display it on the screen with bounding boxes around any detected faces. The output video will also be saved to a file named "output.avi" in the same directory as the script.

To exit the script, press the "q" key on your keyboard.

Options

You can change the number of worker processes used for face detection by editing the num_processes variable in the if name == 'main': block.

License This script is licensed under the MIT License.

face_recognition's People

Contributors

gopi-vamsi-penaganti 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.