Implement console application for recognition of actors' faces in the movies. Analyse methods of face recognition in face_recognition library. Application will primarily use IMDB actors faces dataset and TMDB API for retrieving actors faces and movie casts.
Output of the application will be:
- copy of the input video with highlighted and named faces
- actors' appearances throughout the movie in csv format
- visualization of actors appearances throughout the movie
Report will also containe a description of the algorithms and methods used in face_recognition library.
- Python3.6+
- virtualenv
git clone [email protected]:kuzmoyev/face-recognition-in-movies.git FaceRecognition
cd FaceRecognition
virtualenv -p /usr/bin/python3 venv
source venv/bin/activate
pip install -r requirements.txt
cd src
./movie_face_recognition.py --help
Following command will run analysis on Reservoir Dogs trailer. It will download casts
photos to imdb/imdb_data/tmdb_images
.
./movie_face_recognition.py "test_data/Reservoir Dogs.mp4" -fd
Should run at ~10 fps. It analyses 4 out of 20 frames per second (every 5th frame) hence those jumps.