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=1762015169&Key-Pair-Id=K2V2TN6YBJQHTG&Signature=D5jD3fjgT1AGD5ntetYAsAJC8GqSbiPIN46TfHtOE8ZpdjNyBDnF9-6t47z0Qxu5wBUd9yraGVrrj1VXdC4g8Zj1xhykW-3pqeUCpm60Q7QzIBKWEouvetuvF69morElowSD5D2keSBnxJUyfKqK8rIl19htjpYWSqjqRb0rM2GpcsD2QC0VjwTPSiAmKCXpHgsme0RJDvn37v8Ilex~lV8BEUi5e1ZwpvDOAXErJn-E88QSQTbIWz8pUmWe2zTNaBBQn7cXU3r1yzbP4MOyQb7nhLrLK4hxHH7pKENruyrJzfXuxGRYV8Zxe7FSIC9wLUL2ikk9vJ4sbdfIF1rifA__)