make the 50% tranparency 10% because transparency is working at this value
Browse files
app.py
CHANGED
|
@@ -126,7 +126,7 @@ def inference(
|
|
| 126 |
# Add 50% transparency to the white background
|
| 127 |
data = qrcode_image.getdata()
|
| 128 |
new_data = [
|
| 129 |
-
(item[0], item[1], item[2],
|
| 130 |
for item in data
|
| 131 |
]
|
| 132 |
qrcode_image.putdata(new_data)
|
|
|
|
| 126 |
# Add 50% transparency to the white background
|
| 127 |
data = qrcode_image.getdata()
|
| 128 |
new_data = [
|
| 129 |
+
(item[0], item[1], item[2], 26) if item[:3] == (255, 255, 255) else item
|
| 130 |
for item in data
|
| 131 |
]
|
| 132 |
qrcode_image.putdata(new_data)
|