从图像数据集中计算独特的面孔
我使用 OpenCV 的 haar 级联(haar-classifier)来检测图像中的面部并将这些面部(从图像中裁剪)存储在一个文件夹中。 我使用 Haar Cascade 检测到了大约 10000 多张人脸图像。
现在我想找到这 10000 张图像中独特面孔的数量。 (一个人应该只有一张图像)
我尝试了 DeepFace 和 Face_recognition 库,但是这些库效率不高,因为它们需要对齐眼睛和鼻子的位置,而我的数据集中不是这种情况。
有没有我可以使用的库或方法?
I'm using OpenCV's haar cascade(haar-classifier) to detect faces in the image and storing those faces(cropped from the image) in one folder.
I've around 10000+ images of faces detected using haar cascade.
Now I want to find the Number of Unique faces in these 10000 images. (One person should have only one image)
I tried DeepFace and face_recognition library but, these libraries are not that efficient as they need to have eyes and nose position aligned which is not the case in my dataset.
is there any library or method which I can use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Retinaface 是最强的人脸检测器。 在这里,您可以找到它的存储库。
在这里,响应对象将每个面孔存储为字典。然后,您可以通过以下方式找出图像中的人脸数量:
retinaface is the strongest face detector. here, you can find its repo.
Here, response object stores each face as dictionary. Then, you can find out the number of faces in an image as: