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=1770611258&Key-Pair-Id=K2V2TN6YBJQHTG&Signature=fHUDmxe5aVHqlqM-pZpBbuhQFIpLcZr4VRHQZwpfND5Rov~wLKcqjZOy~GXk-ixy6d-hKeOIganz9TeMo1N74QKCpUj00Vovd42BJUkiwJGnFu6bbUvPZoHsE5gEXZYq4xSxncqR-Au5pYaUZ-J153B60Ce9gu0dXyMeuNQ69MIrNbt~8G5Kr4LHOEmbo~FD8U~f0m4ibhjAeviVPzGxnW3xxKR45T8rGsi7YBoVM9TJb~o-IgyG1F8x8uZaw2iA3q-DvnPbiCvL4szmJROLHKtQLJ9e5C3g7lUjwUT9ytbvFqn4XPuj-PmkBNABydS1D3UbMmDqdDuwgYOu3mtzTw__)