Code Monkey home page Code Monkey logo

actors-matching---face-recognition's Introduction

Actors Matching!

Online Preview: https://kounelisagis.me/actors_matching/

Example

Example

Inspiration

A big number of people spend plenty of time watching Movies and Series. You can easily find and watch movies of your favorite actor. What if you could find movies with more than one actor of your choice?

What it does

Actors Matching is a web application which finds all the common Movies and Series based on the input actors.

Built With

  • HTML, CSS, JQuery
  • dlib face recognision library using Python
  • SQLite
  • themoviedb API
  • imgur API

Preparatory Work

For the identification of the the input face a database is obviously needed. I used dlib library so my SQLite database looks like this:

id name vec0 . . . vec127
. . . . . . . . . . . . . . .
1461 George Clooney -0.141083955764771 . . . 0.0466132797300816
72129 Jennifer Lawrence -0.0845887884497643 . . . 0.100062392652035
2037 Cillian Murphy 0.0598341822624207 . . . -0.0251330602914095
. . . . . . . . . . . . . . .

Explanation
id: themoviedb id of the actor
name: the name of the actor
vec0 - vec127: a set of 128 face points

Actors Input

Actors can be inserted with two ways. Method #1 - Image: It can contain one or more actors. Their faces are recognised using dlib library running on a python server. Method #2 - Text: It can contain only the name of one actor.

Text-Based Name Search

Name search just makes a simple request to themoviedb and return the first result

Image-Based Face Recognition Search

  • upload image(jpg and png tested and working) using JQuery and get the Imgur photo_id (imgur API)
  • pass the photo_id to the python and return actor(s) (python server, SQLite)

Post-Search Procedure

  • add each new actor to actors' list and find their movies and series (themoviedb API)
  • update the UI with pictures, names and links
  • delete image if the Image-Based Search was used

Future Updates - Current Problems

  • Problem with photos which contain more than one actors.
  • Enter press causes page refresh when the text method is used.
  • Some movies have no photos. That makes them disappear.
  • Upload of the same actor isn't detected.
  • Image Uploading might take big amount of time when the internet connection is slow. Maybe resizing the image before the upload would help.
  • App renders images of varying size and that can be visually bad in some cases. Fixed size images would be better.

actors-matching---face-recognition's People

Contributors

kounelisagis avatar

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.