(self, lines_hough)
return [(p1, p2, line_dir) for (p1, p2), (_, _, _, line_dir) in zip(projected, lines_hough)]
From a list of lines <lines_hough> in polar coordinate space, generate lines in cartesian coordinate space
        from points A to B in image dimension space. A and B are at the respective opposite borders
        of the line projected into the image.
        Will return a list with tuples (A, B, DIRECTION_HORIZONTAL or DIRECTION_VERTICAL).
From a list of lines <lines_hough> in polar coordinate space, generate lines in cartesian coordinate space
        from points A to B in image dimension space. A and B are at the respective opposite borders
        of the line projected into the image.
        Will return a list with tuples (A, B, DIRECTION_HORIZONTAL or DIRECTION_VERTICAL).
From a list of lines <lines_hough > in polar coordinate space generate lines in cartesian coordinate space from points A to B in image dimension space . A and B are at the respective opposite borders of the line projected into the image . Will return a list with tuples ( A B DIRECTION_HORIZONTAL or DIRECTION_VERTICAL ) .
def ab_lines_from_hough_lines(self, lines_hough):
        """
        From a list of lines <lines_hough> in polar coordinate space, generate lines in cartesian coordinate space
        from points A to B in image dimension space. A and B are at the respective opposite borders
        of the line projected into the image.
        Will return a list with tuples (A, B, DIRECTION_HORIZONTAL or DIRECTION_VERTICAL).
        """
        
        projected = project_polarcoord_lines([l[:2] for l in lines_hough], self.img_w, self.img_h)
        return [(p1, p2, line_dir) for (p1, p2), (_, _, _, line_dir) in zip(projected, lines_hough)]
def ab_lines_from_hough_lines ( self , lines_hough ) : projected = project_polarcoord_lines ( [ l [ : 2 ] for l in lines_hough ] , self . img_w , self . img_h ) return [ ( p1 , p2 , line_dir ) for ( p1 , p2 ) , ( _ , _ , _ , line_dir ) in zip ( projected , lines_hough ) ]