Skip to content

From a video frame extract faces of the actors and then show name and similar images with AI

Notifications You must be signed in to change notification settings

Michy2690/ActorDetector

Repository files navigation

Bianco Michael, Bertolini Matteo, Todaro Marco

live-demo.mp4

Abstract

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.

[Paper]

Implementation

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.

Training and fine-tuning

python triplet_parallel.py

It is necessary to create some directories indicated in this file.

Evaluation

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.

About

From a video frame extract faces of the actors and then show name and similar images with AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published