libfacedetection 人臉識別

计算相似度,然后比对

QVector<cv::Point> vec_point1 = facedetect_frontal_surveillance4(face_img.clone());
QString thisUserName = judgeWho(vec_point1);
if (thisUserName !="")
{
    QByteArray qBytearrayName = thisUserName.toLocal8Bit();
    char *strNowName = qBytearrayName.data();
    putTextZH(result_frontal_surveillance, strNowName, cv::Point(x, y), Scalar(0, 0, 255), 22, "微软雅黑", false, false);
}

similar1:178.82     similar:52.481

 

posted @ 2019-10-24 22:17  西北逍遥  阅读(492)  评论(0编辑  收藏  举报