Coder Social home page Coder Social logo

video-face-recognition's Introduction

Detect video character relations using face recognition

Goal: create visual characters / actors relationship graph by detecting which characters appear in the same video frames.

Popular The Office (U.S.) season 1 series were chosen for processing.

Result:

Relations graph and red rectangles highlighting actors faces

Workflow

  1. Use ageitgey/face_recognition (uses dlib) to detect faces and extract facial features from video into JSON.
    1. Decodes video frames using OpenCV
    2. Uses 1 frame per second from the video input
    3. Streams faces features as JSON output
  2. Match extracted faces with known faces using euclidean distance.
    1. Face features are 128-th dimensional vectors of floats.
    2. I had to add manually inspect which actor's faces were not detected and add face sample and character name mappings for each pair.
  3. Record which faces appeared together in the same frames
  4. Draw a graph where two frequently together appearing characters are close in the graph too.
    1. Used networkx and matplotlib libraries

video-face-recognition's People

Contributors

tautrimas avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

aayush17125

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.