April 2017
Intermediate to advanced
320 pages
7h 46m
English
The dataset we use is standardized. All faces are pointed exactly at the camera and the emotional expressions are exaggerated, and even comical in some situations. Now let's see what happens if we use a more natural image. First, we need to make sure that that there is no text overlaid on the face, the emotion is recognizable, and the face is pointed mostly at the camera.
I started with this .jpg image (it's a color image, as you can download it from the book's code repository):

Using matplotlib and other NumPy Python libraries, we convert the input color image into a valid input ...
Read now
Unlock full access