Visual Guard is a facial recognition system designed to securely identify students by comparing their faces against pre-stored data. Ideal for educational institutions and government agencies, Visual Guard enhances student authentication processes, offering real-time recognition and comprehensive student data verification.
-
Facial Recognition: Captures student faces via live camera or uploaded images and matches them with pre-registered data.
-
Real-Time Processing: Utilizes Flask-SocketIO for instant feedback and processing.
-
Student Data Verification: Matches faces with data fields like Name, Age, Registration Number, etc., stored in users.json.
-
Flexible Image Input: Accepts Base64-encoded images from cameras or file uploads.
-
Optimized for Efficiency: Fast image resizing and preprocessing for large images.
-
Error Handling: Returns specific error messages for failed image decoding, face detection, or recognition.
-
Flask: Web framework for server-side operations.
-
Flask-SocketIO: Enables real-time server-client communication.
-
face_recognition (dlib): Library for face detection and recognition.
-
OpenCV (cv2): For image processing.
-
NumPy: Image data handling.
-
Pillow (PIL): Image manipulation.
-
User Data Initialization: Loads student data and facial encodings from users.json.
-
Real-Time Image Processing: Processes submitted images, resizing them and extracting face encodings.
-
Identity Verification: Compares face encodings with stored data to confirm identity.
-
Response to Client: Returns the student profile or an error message in real-time.
-
Python 3.12
-
pip for installing dependencies
- bashCopy code
git clone cd visual-guard
- bashCopy code
pip install -r requirements.txt
-
Prepare User Data: Add student details in users.json. Include paths to student images.
-
Run the Application:
python app.py
json
{
"Name": "L",
"Age": 19,
"Designation": "Student",
"Registration No.": "PT22CS092"
}
-
Invalid Image Format: "Failed to decode image."
-
No Face Detected: "No face found in the image."
-
Recognition Failure: "Could not encode face features."
-
No Match: "No match found in database."
-
Centralized student databases
-
Enhanced AI-based recognition
-
Mobile and cloud integration
For detailed project documentation, click here.