Coder Social home page Coder Social logo

rafaelmenesesribeiro / facerecognition Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 5.0 91.79 MB

Detect actor / actress faces in an image and list their work (movies / series)

Python 100.00%
imdb imdb-movie imdb-information imdb-dataset facial-recognition face-detection facial-detection facial-landmarks facial-features facial-similarity

facerecognition's Introduction

FaceRecognition

The Haar Cascades for face detection are NOT mine and can be found in OpenCV's GitHub repository

The Shape Predictor pre trained model is NOT mine and can be found in Davisking's dlib-models GitHub repository

The Face Recognition pre trained model is NOT mine and can be found in Davisking's dlib-models GitHub repository

Features

Identify the actors detected in an image

⚠️❗ The names of the movies are in Portuguese - known issue - being fixed ❗⚠️

Example 1 - Tom Cruise - in Mission Impossible 4 and in IMDB

Identifies Tom Cruise in Mission Impossible 4 (left picture) and in the his IMDB page (rigth, used to encode 
his face the first time).

Example1

List the movies / series the detected actor have been together

Example 2 - Alexandra Daddario (in Baywatch)

Identifies Alexandra Daddario in Baywatch and lists the movies she's been in.

⚠️❗ The names of the movies are in Portuguese - known issue - being fixed ❗⚠️

Example2

Example 3 - Gal Gadot and Vin Diesel

Identifies Gal Gadot and Vin Diesel and lists the movies they've been in.

⚠️❗ The names of the movies are in Portuguese - known issue - being fixed ❗⚠️

Example3

⚠️❗ The names of the movies are in Portuguese - known issue - being fixed ❗⚠️

Requirements

* mss 				- Screen capture
* Numpy 			- Matrix calculations
* CSV				- Data storing and loading
* CV2				- Image rendering
* Dlib				- Face recognition
* requests			- HTTP requests
* BeautifulSoup 		- Image download

Download mss from BoboTig's GitHub repository

How to use

Download the pictures of the first X actors / actresses in IMDB

#Set IMAGES_TO_DONWLOAD in IMDBActors.py:11 to the number of images to be downloaded.
IMAGES_TO_DONWLOAD = 100 #Number of images to download. MUST BE A MULTIPLE OF 50. 
#Run the script to download the images. The images will be donwloaded to a folder with
#the name 'actors' created by the script in the same directory.
$ python IMDBActors.py

Run FaceDetection.py to detect all the faces on the screen. Only the top corner (0, 0) to (800, 600) is detected.

#Run the script to identify the actors / actresses. The movies / series where
#they have been together are listed in the terminal.
$ python FaceDetection.py

⚠️⚠️Known issues

* The names of the movies are in Portuguese;

✔️✔️Previously known issues - SHOULD be fixed now

* When a face is detected but the reply from IMDB is not expected, the program crashes;

facerecognition's People

Contributors

rafaelmenesesribeiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

facerecognition's Issues

Train set

Hi, can you share your training set? Thanks so much!

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.