Spaces:
Running
Running
Sebastiankay
commited on
Commit
•
8558a57
1
Parent(s):
8a2392c
24. Sept. 2024, 22:51
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def image_get_dominant_color(image_path):
|
|
111 |
for pixel in pixels:
|
112 |
r, g, b = pixel
|
113 |
h, s, v = colorsys.rgb_to_hsv(r / 255, g / 255, b / 255)
|
114 |
-
if v > 0.
|
115 |
continue
|
116 |
if v > 0.99: # Filteriere Weiß aus
|
117 |
continue
|
|
|
111 |
for pixel in pixels:
|
112 |
r, g, b = pixel
|
113 |
h, s, v = colorsys.rgb_to_hsv(r / 255, g / 255, b / 255)
|
114 |
+
if v > 0.5: # Filteriere hellere Farben aus
|
115 |
continue
|
116 |
if v > 0.99: # Filteriere Weiß aus
|
117 |
continue
|