This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PIL.Image | |
import PIL.ImageDraw | |
import face_recognition | |
# Load the jpg file into a numpy array | |
given_image = face_recognition.load_image_file('SchoolKids.jpg') | |
# Find all the faces in the image | |
face_locations = face_recognition.face_locations(given_image) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We found 5 face(s) in this image. | |
A face is detected at pixel location Top: 1454, Left: 3451, Bottom: 1775, Right: 3130 | |
A face is detected at pixel location Top: 1784, Left: 1904, Bottom: 1939, Right: 1749 | |
A face is detected at pixel location Top: 1818, Left: 2351, Bottom: 1973, Right: 2196 | |
A face is detected at pixel location Top: 1830, Left: 1529, Bottom: 1959, Right: 1400 | |
A face is detected at pixel location Top: 1878, Left: 2445, Bottom: 1967, Right: 2355 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PIL.Image | |
import PIL.ImageDraw | |
import face_recognition | |
# Load the jpg file into a numpy array | |
given_image = face_recognition.load_image_file('SchoolKids.jpg') | |
# Find all the faces in the image | |
face_locations = face_recognition.face_locations(given_image) |