'Process image.'

def process_image(self, image):

    import face_recognition
    fak_file = io.BytesIO(image)
    fak_file.name = 'snapshot.jpg'
    fak_file.seek(0)
    image = face_recognition.load_image_file(fak_file)
    face_locations = face_recognition.face_locations(image)
    face_locations = [{ATTR_LOCATION: location} for location in face_locations]
    self.process_faces(face_locations, len(face_locations))
