January 2019
Intermediate to advanced
316 pages
8h 16m
English
In this section, we will crop out faces from images. We will be using python-animeface to crop the faces from the images. This is an open source GitHub repository that automatically crops faces from images from the command line. It is publicly available at the following link: https://github.com/nya3jp/python-animeface.
Execute the following steps to crop and resize the images:
pip install animeface
import globimport osimport animefacefrom PIL import Image
total_num_faces = 0
for index, filename in enumerate ...
Read now
Unlock full access