Bianco Michael, Bertolini Matteo, Todaro Marco
live-demo.mp4
We present an approach to detect and recognize automatically the actors present in a movie scene. This method is in general applicable to all systems where the task is to identify a person between a list of other subjects, the only need is to have a proper dataset and fine-tune the model on these new data. The algorithm also makes use of a generator able to reconstruct the frontal face if an actor is standing sideways or if is wearing something that covers his face, for example a cap or a pair of glasses. Similar task is performed by Amazon Prime video X-Ray but we focus on the single frame. This project can help new video services to provide better user experiences, for instance displaying other useful information on the actor detected or similar movies in which he/her acts.
pip install -r requirements.txt
In order to run the code you can download our modified FaceScrub dataset, our pretrained weights and preprocessed data at this page.
python triplet_parallel.py
It is necessary to create some directories indicated in this file.
python server.py
Then run the live demo browsing localhost:5000 You can load every movie you want, for higher precision it is recommended to have an HD video in .mp4 format.