How to detect Blur rate of a face effectively in c++?
问题 I am trying to detect blur rate of the face images with below code. cv::Mat greyMat; cv::Mat laplacianImage; cv::Mat imageClone = LapMat.clone(); cv::resize(imageClone, imageClone, cv::Size(150, 150), 0, 0, cv::INTER_CUBIC); cv::cvtColor(imageClone, greyMat, CV_BGR2GRAY); Laplacian(greyMat, laplacianImage, CV_64F); cv::Scalar mean, stddev; // 0:1st channel, 1:2nd channel and 2:3rd channel meanStdDev(laplacianImage, mean, stddev, cv::Mat()); double variance = stddev.val[0] * stddev.val[0]; cv: