Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,10 +20,7 @@ def detect_dead_pixels(image,dead_threshold = 10):
|
|
| 20 |
|
| 21 |
dead_ratio = (dead_count / total_pixels) * 100
|
| 22 |
|
| 23 |
-
stats = (
|
| 24 |
-
f"Dead Pixels: {dead_count}\n",
|
| 25 |
-
f"Dead Pixel Ratio (%): {round(dead_ratio,3)}",
|
| 26 |
-
)
|
| 27 |
|
| 28 |
return output,stats
|
| 29 |
|
|
|
|
| 20 |
|
| 21 |
dead_ratio = (dead_count / total_pixels) * 100
|
| 22 |
|
| 23 |
+
stats = f"🟥 Dead Pixels: {dead_count} ({dead_ratio:.4f}%)"
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
return output,stats
|
| 26 |
|