1 Star 3 Fork 1

QQ技术 / arc-soft-py

加入 Gitee
与超过 600 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
face_feature_compare.py 669 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
QQ技术 提交于 2021-03-19 15:56 . 初始化代码
import face_dll
import face_class
import face_function as fun
import face_feature_extract
'''
本地图片提取的特征值与内存的特征值对比
'''
def face_feature_compare(faceFeature):
# 结果比对
faceFeatures = face_feature_extract.loadFaceFeature('images/')
for item in faceFeatures:
ret, result = fun.faceFeatureCompare(faceFeature, item['faceFeature'])
if ret == 0:
print('name %s similarity %s' % (item['name'], result))
if __name__ == "__main__":
ret, faceFeature = face_feature_extract.faceFeatureExtract(
'images/JuJingyi.jpg')
if ret == 0:
face_feature_compare(faceFeature)

评论 ( 0 )

你可以在登录后,发表评论

Python
1
https://gitee.com/JerryWCloud_admin/arc-soft-py.git
git@gitee.com:JerryWCloud_admin/arc-soft-py.git
JerryWCloud_admin
arc-soft-py
arc-soft-py
master

搜索帮助

182229 41614e54 1850385 182230 7885ed45 1850385