This project demonstrates a real-time face recognition system built using Python, OpenCV, and the face_recognition library. It captures video through a webcam, detects faces, and recognizes individuals based on pre-trained images.
dlib via face_recognition for precise accuracyTo run this project locally, follow these steps:
Install required dependencies
bash
pip install face_recognition opencv-python numpy
βοΈ Usage Place your known face images in the project folder (e.g., person.jpg).
Update the image filename in the script.
Run the script:
bash Copy Edit python face_recognition_live.py Press Q to quit the webcam window.
π§ How It Works Loads a known image and encodes it.
Opens a webcam stream.
Detects faces and encodes them in real-time.
Compares detected faces with known encodings.
Displays the name if matched, otherwise βUnknownβ.
π€ Contributing Contributions are welcome and appreciated! Hereβs how you can contribute:
Fork this repository
Create a new branch (git checkout -b feature/YourFeature)
Commit your changes (git commit -m βAdd your featureβ)
Push to the branch (git push origin feature/YourFeature)
Open a Pull Request
π¬ Contact Feel free to reach out with suggestions or questions:
π Website: www.aditibelwal.dev
πΌ GitHub: @aditibelwal007
π LinkedIn: Aditi Belwal