parameters
[imago.git] / src / intrsc.py
index b0e798c..91801fe 100644 (file)
@@ -4,7 +4,7 @@ from math import cos, tan, pi
 from operator import itemgetter
 import colorsys
 
-import ImageDraw
+from PIL import ImageDraw
 
 import filters
 import k_means
@@ -68,7 +68,7 @@ def board(image, intersections, show_all, do_something, logger):
 
     if show_all:
         import matplotlib.pyplot as pyplot
-        import Image
+        from PIL import Image
         fig = pyplot.figure(figsize=(8, 6))
         luma = [s[0] for s in board_raw]
         saturation = [s[1] for s in board_raw]