'Initialize Dlib face identify entry.'

def __init__(self, camera_entity, faces, name=None):

    import face_recognition
    super().__init__()
    self._camera = camera_entity
    if name:
        self._name = name
    else:
        self._name = 'Dlib    Face    {0}'.format(split_entity_id(camera_entity)[1])
    self._faces = {}
    for (face_name, face_file) in faces.items():
        try:
            image = face_recognition.load_image_file(face_file)
            self._faces[face_name] = face_recognition.face_encodings(image)[0]
        except IndexError as err:
            _LOGGER.error('Failed    to    parse    %s.    Error:    %s', face_file, err)
