将年龄和性别预测添加到人脸聚类项目中

2024-05-06 21:04:37 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个人脸分类项目,通过DBSCAN使用集群。 我想在每个标签上加上对他的年龄和性别的预测。 我已经保存了每个人脸的编码,以及FASE在图像中的位置

    # detect the (x, y)-coordinates of the bounding boxes
    # corresponding to each face in the input image
    boxes = face_recognition.face_locations(image,
        model=args["detection_method"])

    # compute the facial embedding for the face
    encodings = face_recognition.face_encodings(image, boxes)

是否有人已经有了一个可以用于此目的的训练有素的模型的想法? 我试过使用age_net.caffemodel和gender_net.caffemodel,但绝对不对。 请再给我一个主意好吗


Tags: the项目imagenet分类集群标签dbscan