if show_all:
import matplotlib.pyplot as pyplot
- import Image
+ from PIL import Image
def plot_line_g((a, b, c), max_x):
find_y = lambda x: - (c + a * x) / b
from operator import itemgetter
import colorsys
-import ImageDraw
+from PIL import ImageDraw
import filters
import k_means
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]
"""Manual grid selection module"""
-import ImageDraw
+from PIL import ImageDraw
from math import sqrt, acos, copysign
from geometry import l2ad, line, intersection