欧氏距离人脸比对
欧氏距离判断是否同一人脸
embedding_reshape = np.array(face.embedding).reshape((1, -1))
face.embedding_normalize = preprocessing.normalize(embedding_reshape)
# 欧式距离
diff=np.subtract(
self.fixed_face.embedding_normalize,face.embedding_normalize)
dist = np.sum(np.square(diff), 1)
if dist > 1.28:return True