def __init__(self, align_path, net_path):
# Init align and net
"""
Dlib / Openface Face recognizer
:param align_path: Dlib align path
:param net_path: Openface neural network path
"""
self._align = openface.AlignDlib(os.path.expanduser(align_path))
self._net = openface.TorchNeuralNet(os.path.expanduser(net_path), imgDim=96, cuda=False)
self._face_detector = dlib.get_frontal_face_detector()
self._trained_faces = []
评论列表
文章目录