Spaces:
Running
Running
dev(narugo): init commit
Browse files
app.py
CHANGED
@@ -7,6 +7,9 @@ from imgutils.data import load_image
|
|
7 |
|
8 |
|
9 |
def variance_of_laplacian(np_image):
|
|
|
|
|
|
|
10 |
return cv2.Laplacian(np_image, cv2.CV_64F).var()
|
11 |
|
12 |
|
|
|
7 |
|
8 |
|
9 |
def variance_of_laplacian(np_image):
|
10 |
+
"""
|
11 |
+
Inspired by https://pyimagesearch.com/2015/09/07/blur-detection-with-opencv/
|
12 |
+
"""
|
13 |
return cv2.Laplacian(np_image, cv2.CV_64F).var()
|
14 |
|
15 |
|