Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ def brighten_image(image):
|
|
| 8 |
image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
| 9 |
|
| 10 |
# Apply CLAHE (with reduced intensity)
|
| 11 |
-
clahe = cv2.createCLAHE(clipLimit=0.
|
| 12 |
cl1 = clahe.apply(image)
|
| 13 |
|
| 14 |
# Create a mask for darker regions (e.g., craters)
|
|
|
|
| 8 |
image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
| 9 |
|
| 10 |
# Apply CLAHE (with reduced intensity)
|
| 11 |
+
clahe = cv2.createCLAHE(clipLimit=0.3, tileGridSize=(16, 16)) # Reduced clipLimit and increased tileGridSize
|
| 12 |
cl1 = clahe.apply(image)
|
| 13 |
|
| 14 |
# Create a mask for darker regions (e.g., craters)
|