from PIL import Image, ImageCms from crop_card import BASE_DIR with Image.open(BASE_DIR / 'sheets' / 'sheet001.jpg') as im: print(im.getpixel((5151, 9996))) with Image.open(BASE_DIR / 'sheets' / 'sheet003_corrected.jpg') as im: print(im.getpixel((5151, 9996)))