Hackvent_2018/Day 1/decode.py

15 lines
295 B
Python
Raw Normal View History

2018-12-04 12:54:01 +01:00
#!/usr/bin/python
from PIL import Image
# Load Image
im = Image.open('HV18_Ball_Day1_color.png')
offsetX = 307
offsetY = 362
imageSize = 364
# Crop Image
im.crop((offsetX, offsetY, offsetX+imageSize, offsetY+imageSize)).save("data.png")
# Go on https://jabcode.org/scan/ and upload image :]