Facial Recognition System from Scratch with OpenCV and TensorFlow
This project is a facial recognition system built from scratch. It uses OpenCV for face detection and TensorFlow to train a model based on convolutional neural networks (CNNs).
The main objective is to offer a simple but effective solution for applications such as security, attendance management, or automated access.
Modularity: Code easily customized for specific applications.
Follow these steps to configure and run the project:
git clone https://github.com/FredyHoundayi/Computer-Vision-CV-Deep-Learning-DL-.git
cd Computer-Vision-CV-Deep-Learning-DL-
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python creation_data.py
python model6.py
python recognition.py
Example configuration for data collection:
import cv2
camera = cv2.VideoCapture(0)
while True:
_, frame = camera.read()
cv2.imshow("Capture", frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
camera.release()
cv2.destroyAllWindows()
This system can be integrated into various fields, such as:
Contributions are welcome! If you'd like to improve this project or suggest new features, please submit a pull request or open an issue on the GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for details.
.png?Expires=1776564345&Key-Pair-Id=K2V2TN6YBJQHTG&Signature=G3dto3QvoYq2xCZ56QSB7VCCJK8JIg8pLw63Ds3hbx1oKrN6ieSHtw4Th6bmNdFBBKSlx1S7fXr9d~9lKcqimUnnEQcry4j3~6HmAwIPMaUAN8AK6Ht6JAHx~rlOVpt09nIrOSAbjIqmadD1ba7Ev2CPYiiXNowiijkCaVdbLJVFTEfizxb1-IKcfn6LPqsWS7x46T11l6sMSsyHAykGh8aGtJ~upsntq-C~YA4HD0wWa68TbDCJELRuHtfHKLZ8-sKb2Hmzem9s44pHBHG0VZqC0vIZVMrK5A8w~59iVAFbLlsVxRiwQ4dRjRbgsSyxNr2t7mLKQqRxaTaDzt8HSw__)