From b0f7a4890605eb423d659d54279b1d1ef5110e24 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 17 Oct 2022 16:40:21 -0600 Subject: [PATCH] Remove background whitening code --- main.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/main.py b/main.py index 8a7b627..7253cfc 100755 --- a/main.py +++ b/main.py @@ -234,13 +234,6 @@ def print_tool_label(wiki_num): res.raise_for_status() label = Image.open(res.raw) - pixel_data = label.load() - - # remove yellow background - for y in range(label.size[1]): - for x in range(label.size[0]): - r = min(pixel_data[x, y][0] + 4, 255) - pixel_data[x, y] = (r, r, r, 255) new_size = (1280, 640) label = label.resize(new_size, Image.ANTIALIAS)