Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

阈值问题 #3

Open
sleepy-syr opened this issue Nov 6, 2020 · 2 comments
Open

阈值问题 #3

sleepy-syr opened this issue Nov 6, 2020 · 2 comments

Comments

@sleepy-syr
Copy link

在detect_face_align_rec这个Python文件中,此句的threshold表示的是阈值还是一个评分呢,默认是0.65,但是输出发现识别我的图片都在1以上甚至有的达到了2.5以上,跟图片质量有关系么,谢谢

drawimg, threshold = srcimg.copy(), 0.65

@hpc203
Copy link
Owner

hpc203 commented Nov 6, 2020

此句的threshold表示的是特征向量距离的阈值,距离有可能大于1的

@hpc203
Copy link
Owner

hpc203 commented Nov 6, 2020

关于人脸特征向量的计算和阈值 的问题,可以参考我发布的另一篇代码:https://github.com/hpc203/libface-detect-recognition
这里面对输出的人脸特征向量做长度归一化,用余弦距离作为相似性度量,这时候距离就都保证在-1到1之间的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants