Giter VIP home page Giter VIP logo

student-face-recognize-ai-app's Introduction

Student Face Recognition System Documentation

Table of Contents

  1. Introduction
  2. Getting Started
  3. Usage
  4. Project Structure
  5. Contributing
  6. License

Introduction

The Student Face Recognition System is a Python application that allows users to manage student information and perform real-time face recognition. The application is built using Flask, OpenCV, and face_recognition library and provides features for adding, viewing, and deleting student records.

Getting Started

Prerequisites

Before you can run the Student Face Recognition System, ensure you have the following prerequisites installed:

  • Python 3.x
  • Flask
  • Flask-WTF
  • OpenCV (cv2)
  • face_recognition library

Environment Setup

Before running the Student Face Recognition project, it's essential to set up a Python environment and install the required dependencies. You can follow these steps to get your environment ready:

  1. Create a Virtual Environment (Optional): It's a good practice to create a virtual environment to isolate project dependencies. If you don't have virtualenv installed, you can install it using pip:

    pip install virtualenv
    

    Then, create a virtual environment for the project:

    virtualenv venv
    

    Activate the virtual environment:

    • On Windows:

      venv\Scripts\activate
      
    • On macOS and Linux:

      source venv/bin/activate
      
  2. Clone the Project Repository: You'll need to clone the project's GitHub repository to your local machine. If you haven't already cloned it, you can do so with the following command:

    git clone https://github.com/your_username/student-face-recognition.git
    
  3. Navigate to the Project Directory: Change your working directory to the project folder:

    cd student-face-recognition
    
  4. Install Dependencies: Additionally, you may need to install the dlib library using a specific Wheel file. If necessary, you can install dlib using the provided Wheel file with the following command:

    pip install dlib-19.22.99-cp39-cp39-win_amd64.whl
    

    To install the required Python libraries, you can use the provided requirements.txt file. Run the following command to install them:

    pip install -r requirements.txt
    

With these steps, you'll have a clean and isolated environment for your Student Face Recognition project with all the necessary dependencies installed.

Usage

Adding Students

  1. Run the application by executing app.py.

    python app.py
    
  2. Access the web interface via a web browser (e.g., http://localhost:8000).

    • Click on the "Add Student" link.
    • Fill in the student's information, including Student ID, Name, Roll No, and Class.
    • Upload a photo of the student.
    • Click the "Add Student" button to save the student's information.

Live Face Recognition

  • Click on the "Live Page" link to access the live face recognition page.
  • The application will automatically detect and recognize faces from your webcam feed.
  • Recognized students' names will be displayed in the video frame.

Viewing Students

  • Click on the "View Students" link to see the list of added students.
  • The students' details, including Student ID, Name, Roll No, Class, and photos, will be displayed.

Deleting Students

  • In the "View Students" page, each student's entry will have a "Delete" button.
  • Click the "Delete" button to remove a student from the database.
  • The student's photo will also be deleted from the media folder.

Project Structure

  • app.py: The main application script.
  • templates/: HTML templates used for rendering web pages.
  • media/: Directory to store uploaded student photos.
  • known_faces/: Directory to store known faces for face recognition.
  • requirements.txt: Lists the required Python packages.

Contributing

Contributions to this project are welcome. To contribute, follow these steps:

  1. Fork the repository on GitHub.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and test them.
  4. Create a pull request to the original repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Feel free to customize and expand this documentation to fit your project's specific needs. Documenting your project helps both users and potential contributors understand and engage with your work more effectively.

student-face-recognize-ai-app's People

Contributors

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