mirror of
https://gitee.com/open-visual/face-search.git
synced 2025-07-25 19:41:42 +08:00
update: 添加图片的模糊度,并进行0-100的量化
This commit is contained in:
parent
ca97197ae3
commit
297d1b525f
@ -5,6 +5,11 @@ import org.opencv.imgproc.Imgproc;
|
|||||||
|
|
||||||
public class QualityUtil {
|
public class QualityUtil {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据图片,判断当前图片的模糊分
|
||||||
|
* @param image 图片数据
|
||||||
|
* @return [0-100]的值域,分数越低越模糊,越高越清晰
|
||||||
|
*/
|
||||||
public static int blurForLaplacian(Mat image){
|
public static int blurForLaplacian(Mat image){
|
||||||
Mat imgDesc = null, imgResize = null;
|
Mat imgDesc = null, imgResize = null;
|
||||||
Mat img2gray = null, laplacian = null;
|
Mat img2gray = null, laplacian = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user