Video Face Detection with OpenCV_Python (Not Perfect)
INTRODUCTION:
I build this project just for my interest in Technology. This Python file may be not as good as that of other contributors on GITHUB. But I hope that it is still useful for those really need it for their project even in high school or univeristy.
This project is about a PYTHON code with OpenCV library to detect the faces in a video
The detected objects are football managers (Klopp, Mourinho, Hansi Flick, Pep Guardiola, Lampard)
The code will detect the face of each manager through video clip name "managerdetection.mp4"
When detect a face of a manager, the code also show the name of the manager in a interview. This process is done by using the train model file "project1a.py".
To run the face detection, running the project1b.py file
TUTORIALS:
- Download the cropped images dataset which includes the faces of the five managers. You can download your own dataset by your self
- If you download the data by yourself, download run "datachangename.ipynb" first to change the name of the file Then run the dataprocessing.ipynb file to crop the image for the training model
- After having the training data, run the project1a.py to train the model After completing the training model phase, we will have the trained model file face_trained.py with labels.npy and features.npy
- When the trained model is ready, run the project1b.py to see the results
Link Google Drive for images, videos and code: https://drive.google.com/drive/folders/1176CCPad_jLu03SmJ1DbOFED-tkI8Vew?usp=sharing
NOTE: This README.md is edited in 2024, which is 2 years later this file is uploaded. This library and the code may be out-of-date if you have any recommended fixes, be free contact to me via email [email protected]
THANK YOU FOR USING AND UPGRADING THIS PROJECT <3 <3.