Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -150,7 +150,7 @@ class DatasetCollectionApp:
|
|
| 150 |
gray = cv2.cvtColor(image_crop, cv2.COLOR_BGR2GRAY)
|
| 151 |
laplacian_var = cv2.Laplacian(gray, cv2.CV_64F).var()
|
| 152 |
|
| 153 |
-
if laplacian_var <
|
| 154 |
blur_rejected += 1
|
| 155 |
continue # Skip blurry image
|
| 156 |
|
|
|
|
| 150 |
gray = cv2.cvtColor(image_crop, cv2.COLOR_BGR2GRAY)
|
| 151 |
laplacian_var = cv2.Laplacian(gray, cv2.CV_64F).var()
|
| 152 |
|
| 153 |
+
if laplacian_var < 75: # Threshold for blur detection
|
| 154 |
blur_rejected += 1
|
| 155 |
continue # Skip blurry image
|
| 156 |
|