+
+ return im_h
+
+
+def find_lines(image, show_all, do_something, verbose):
+ """Find lines in the *image*."""
+ # TODO refactor into smaller functions
+
+ if verbose:
+ print >> sys.stderr, "preprocessing"
+
+ if show_all:
+ do_something(image, "original image")
+
+ im_h = prepare(image, show_all, do_something, verbose)
+