Sitemap

CineFace

A Database for Faces in Movies and Television

2 min readJun 21, 2025

--

https://github.com/astaileyyoung/CineFace

The face is cinema’s most favored subject, a place where “the soul can be revealed,” as Ingrid Bergman thought. Understanding cinema requires us to interpret the meaning of the slightest gesture, to scrutinize a sudden twitch of an eyebrow or the almost imperceptible quiver of a lip. So when I was considering how to apply artificial intelligence to the study of cinema, it was hard to think of a more fitting subject than the human face.

Get Amos Stailey-Young’s stories in your inbox

Join Medium for free to get updates from this writer.

The goal of CineFace is to provide a comprehensive database of identified faces in film and television. Doing so allows us to measure such things as character frequency (by title, year, genre, season, etc.) and face size (who gets the most close-ups, how has the frequency of close-ups changed over time, which directors prefer close-ups and which prefer longer shots, etc.). The data is available to download on my GitHub. It’s also available as a public dashboard, though it’s still in development.

CineFace uses facial detection and recognition to automatically tag images as belonging to a particular actor/character. It downloads headshots from TMDb and matches them to a detected face. It is built with Yolov11m for face detection and Facenet for encoding/matching, combining accurate detection with good performance. It relies on Visage (written in C++ with hardware-accelerated decoding and high-performance inference using TensorRT) as a backend.

Press enter or click to view image in full size
Facial landmarks drawn with MediaPipe Face Mesh.

If you would like to analyze your own video files with CineFace, head over to the GitHub repository and download the code. I’ve tried to make the script as user-friendly as possible. Just follow the instructions in the Readme. In the future, I plan on setting up a way for users to submit their own results to the database.

CineFace is still in development, so expect updates detailing new features and changes. I also plan on writing a series of analyses using information from the database in the coming months. Since I’ve been working on this project for awhile, I may have forgotten to include some important details. If anyone has questions, leave a comment below.

--

--

Amos Stailey-Young
Amos Stailey-Young

Written by Amos Stailey-Young

I work at the intersection between cultural history and data science, developing new analytical methods and strategies for use in the Digital Humanities.