計算類似度,而後比對this
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