Giter Club home page Giter Club logo

doorautomation's Introduction

Face Recognition Door Access Control System

This project implements a face recognition-based door access control system using Python, OpenCV, Telegram Bot, and Arduino.

Overview

The system captures video frames from a camera, performs face detection using OpenCV's Haar Cascade Classifier, and sends the detected face image to a Telegram bot. The Telegram bot then prompts the user for access approval, and based on the response, it sends a command to an Arduino to either open or keep the door closed.

Requirements

  • Python 3.x
  • OpenCV
  • telepot (Telegram Bot API wrapper)
  • pyserial (Python Serial Library)
  • Arduino with appropriate firmware
  • Telegram Bot (Bot Token and Chat ID required)

Setup

  1. Install the required Python packages:

    pip install opencv-python telepot pyserial python-dotenv
    
  2. Connect the Arduino to the system and update the serial port in the Python script.

  3. Create a .env file in the project root with the following content:

    BOT_TOKEN=your_telegram_bot_token CHAT_ID=your_chat_id

  4. Run the Python script: python face_recognition.py

Project Structure

face_recognition.py: Main Python script for face detection and interaction with Telegram Bot and Arduino. haarcascade_frontalface_default.xml: Haar Cascade Classifier for face detection. face_detected.jpg: Image file saved when a face is detected.

Usage

Run the Python script. The camera captures frames and detects faces. Detected faces are sent to a Telegram bot. The Telegram bot prompts for access approval. Based on the response, the Arduino is commanded to open or close the door.

License

This project is closed to contributions. All rights reserved.

doorautomation's People

Contributors

beriamegha8 avatar mananbhimjiyani avatar kewalll 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.