update: 添加图片的模糊度,并进行0-100的量化

This commit is contained in:
divenswu 2023-08-16 15:44:36 +08:00
parent ca97197ae3
commit 297d1b525f

View File

@ -5,6 +5,11 @@ import org.opencv.imgproc.Imgproc;
public class QualityUtil {
/**
* 根据图片判断当前图片的模糊分
* @param image 图片数据
* @return [0-100]的值域分数越低越模糊越高越清晰
*/
public static int blurForLaplacian(Mat image){
Mat imgDesc = null, imgResize = null;
Mat img2gray = null, laplacian = null;