example.py 188 B

1234567
  1. from PIL import Image
  2. from ipfml import image_processing
  3. path = './images/test_img.png'
  4. img = Image.open(path)
  5. blocks = image_processing.divide_in_blocks(img, (10, 10))
  6. print(len(blocks))