Sebastiankay commited on
Commit
8a2392c
1 Parent(s): c0643a5

24. Sept. 2024, 22:27

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.7: # Filteriere hellere Farben aus
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.6: # Filteriere hellere Farben aus
115
  continue
116
  if v > 0.99: # Filteriere Weiß aus
117
  continue