- im_h2 = im_h2.apply_filter(filters.components2)
- if show_all:
- do_something(im_h2.image, "components centers")
+ return im_h2
+
+def find_lines(image, show_image, logger):
+ """Find lines in the *image*."""
+ # TODO refactor into smaller functions
+
+ logger("preprocessing")
+ show_image(image, "original image")
+
+ im_h = prepare(image, show_image, logger)
+
+ hough = Hough.default(im_h)
+
+ logger("hough transform")
+
+ im_h2 = transform(im_h, hough, show_image)