I am a beginner in Python but perhaps someone could help
instead reading the template from the SD-Card
template = image.Image("/template.pgm")
i would prefer something like to generate a low resolution image:
templateLowRes = image.Image(grayscale (5,3) raw = [0, 255, 255, 255, 255, 0 , 255, 0, 255, 0, 0, 255, 255, 255, 255]
and then zoom it by a factor of 3
template = templateLowRes.resize(3.0, 3.0)
If the “zoom” is not possible I am also happy with the initialization of a grayscale image in a size (w =15, h = 9) and the assigment with const