Commit ·
b7e96b9
1
Parent(s): d1eea16
Removed transparent background
Browse files13 unmodified lines141516171819202113 unmodified linesdef run(image_path, threshold):image = Image.open(image_path).convert('RGBA')canvas = Image.new('RGBA', image.size, (0, 0, 0, 0))# We copy the image that and fill it with black, to get the dimensionsrgb = np.array(canvas)13 unmodified lines141516171819202113 unmodified linesdef run(image_path, threshold):image = Image.open(image_path).convert('RGB')canvas = Image.new('RGB', image.size, (0, 0, 0))# We copy the image that and fill it with black, to get the dimensionsrgb = np.array(canvas)
app.py+2-2