Skip to content

Commit

Permalink
removed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCataliasTNT2k committed Jul 20, 2023
1 parent dbbb250 commit b6e962e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ def generate_data(img: Image, prio_img: Optional[Image.Image], both_img: Optiona
# get color as hex (for json later)
color = input_img.getpixel((x, y))
hex_color = col_to_hex(color[0], color[1], color[2])
if hex_color not in allowed_colors:
wrong_colors.add(hex_color)
hex_color = get_nearest_color(hex_color)
#if hex_color not in allowed_colors:
# wrong_colors.add(hex_color)
# hex_color = get_nearest_color(hex_color)
if hex_color in ignore_colors:
continue
# get prio if needed
Expand Down

0 comments on commit b6e962e

Please sign in to comment.