https://github.com/kounelisagis/actors-matching---face-recognition
:open_mouth: = :relaxed: Find common Movies and Series
https://github.com/kounelisagis/actors-matching---face-recognition
dlib-library
Last synced: 8 months ago
JSON representation
:open_mouth: = :relaxed: Find common Movies and Series
- Host: GitHub
- URL: https://github.com/kounelisagis/actors-matching---face-recognition
- Owner: kounelisagis
- License: mit
- Created: 2018-11-25T16:28:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-30T13:33:39.000Z (over 6 years ago)
- Last Synced: 2025-06-10T21:10:51.025Z (about 1 year ago)
- Topics: dlib-library
- Language: JavaScript
- Homepage:
- Size: 2.67 MB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Actors Matching!
Online Preview: https://kounelisagis.me/actors_matching/
## 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.