Coder Social home page Coder Social logo

harshbalwanix / homesecurity Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 108 KB

The Face Recognition Alert System, implemented in Python, utilizes OpenCV and face_recognition to provide real-time face recognition. It sends alerts for unknown faces via Firebase Cloud Messaging, supporting dynamic addition of known faces during runtime.

Java 48.44% Python 51.56%
java opencv python firebase

homesecurity's Introduction

Face Recognition Alert System

Overview

This Face Recognition Alert System, implemented in Python using OpenCV, NumPy, and face_recognition library, provides real-time face recognition. It detects known faces and sends alerts for unknown faces, utilizing Firebase Cloud Messaging (FCM) for notifications.

Features

  • Face Recognition: Utilizes the face_recognition library to recognize known faces.
  • Real-time Alerts: Sends real-time alerts for unknown faces detected in the webcam feed.
  • Firebase Cloud Messaging: Sends push notifications using FCM for both known and unknown face events.
  • Dynamic Arrival Tracking: Tracks the arrival of known faces, sending arrival alerts.

Setup Instructions

  1. Install the required libraries:

    pip install opencv-python numpy face_recognition requests
  2. Update the path variable in the code to the directory where images for face recognition are stored.

  3. Set up Firebase Cloud Messaging (FCM):

    • Replace serverToken with your FCM server token.
    • Replace deviceToken with the FCM device token for the recipient.
  4. Run the script:

    python <script_filename>.py

Usage

  • The system continuously captures the webcam feed and alerts for unknown faces.
  • Upon detecting an unknown face, a push notification is sent to the specified device.
  • The user can provide feedback by confirming whether they know the detected person.

Note

  • The system supports dynamic addition of known faces through user input during runtime.

Feel free to explore and customize the code to fit your specific use case!

homesecurity's People

Contributors

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