|
@ -60,7 +60,7 @@ def image (path, threshold=128): |
|
|
try: |
|
|
try: |
|
|
from PIL import Image |
|
|
from PIL import Image |
|
|
except ImportError: |
|
|
except ImportError: |
|
|
print('The image patter requires pillow to be installed.') |
|
|
print('ERROR: The image pattern requires Pillow to be installed.\nInstall using `pip install pillow`') |
|
|
exit() |
|
|
exit() |
|
|
|
|
|
|
|
|
im = Image.open(path).convert('L') |
|
|
im = Image.open(path).convert('L') |
|
|