Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,8 +88,8 @@ def process_video(video_path):
|
|
| 88 |
cv2.imwrite("fused_board_selective.jpg", selective)
|
| 89 |
|
| 90 |
# Step 5: Sharpen
|
| 91 |
-
blur = cv2.GaussianBlur(selective, (
|
| 92 |
-
sharp = cv2.addWeighted(selective,
|
| 93 |
cv2.imwrite("sharpened_board_color.jpg", sharp)
|
| 94 |
|
| 95 |
return "sharpened_board_color.jpg"
|
|
|
|
| 88 |
cv2.imwrite("fused_board_selective.jpg", selective)
|
| 89 |
|
| 90 |
# Step 5: Sharpen
|
| 91 |
+
blur = cv2.GaussianBlur(selective, (3, 3), 0)
|
| 92 |
+
sharp = cv2.addWeighted(selective, 2.0, blur, -1.0, 0)
|
| 93 |
cv2.imwrite("sharpened_board_color.jpg", sharp)
|
| 94 |
|
| 95 |
return "sharpened_board_color.jpg"
|