X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/e3b0b7b8f5accc4f6af935923e6db9b34a40b362..bcca367769de787a06e04d957d49468975ac2616:/linef.py diff --git a/linef.py b/linef.py index 1dd35d4..fbd1368 100755 --- a/linef.py +++ b/linef.py @@ -100,6 +100,12 @@ def find_lines(image, show_all, do_something, verbose): if show_all: do_something(im_c, "hough x lines") + image_g = image.copy() + draw = ImageDraw.Draw(image_g) + for line in [l for s in lines for l in s]: + draw.line(line_from_angl_dist(line, image.size), fill=(120, 255, 120)) + if show_all: + do_something(image_g, "the grid") return lines