X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/2ce682559a6257f5822ebfc545b4f07b43a42ce7..92f288e8b33a67060a4553d8e71d618038885bf9:/src/intrsc.py?ds=sidebyside diff --git a/src/intrsc.py b/src/intrsc.py index 6f78f8d..a740212 100644 --- a/src/intrsc.py +++ b/src/intrsc.py @@ -163,7 +163,7 @@ def stone_color_raw(image, (x, y)): pass norm = float(len(points)) if norm == 0: - return 0, 0, 0 #TODO trow exception here + return 0, 0, (0, 0, 0) #TODO trow exception here color = (sum(p[0] for p in points) / norm, sum(p[1] for p in points) / norm, sum(p[2] for p in points) / norm)