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

猜你喜欢

转载自www.cnblogs.com/herd/p/11735374.html