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
Identifies Tom Cruise in Mission Impossible 4 (left picture) and in the his IMDB page (rigth, used to encode
his face the first time).
Identifies Alexandra Daddario in Baywatch and lists the movies she's been in.
Identifies Gal Gadot and Vin Diesel and lists the movies they've been in.
* 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
#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
* The names of the movies are in Portuguese;
* When a face is detected but the reply from IMDB is not expected, the program crashes;