from hough import Hough
def find_lines(image, show_all, do_something, verbose):
from hough import Hough
def find_lines(image, show_all, do_something, verbose):
return lines, lines_m[0][0], lines_m[1][0], bounds, im_hough
def combine(image1, image2):
return lines, lines_m[0][0], lines_m[1][0], bounds, im_hough
def combine(image1, image2):
if pi / 4 < angle < 3 * pi / 4:
y1 = - size[1] / 2
x1 = int(round((y1 * cos(angle) + distance) / sin(angle))) + size[0] / 2
if pi / 4 < angle < 3 * pi / 4:
y1 = - size[1] / 2
x1 = int(round((y1 * cos(angle) + distance) / sin(angle))) + size[0] / 2