(self, lines)
return lines_hough
From a list of lines in <lines> detected by cv2.HoughLines, create a list with a tuple per line
        containing:
        (rho, theta, normalized theta with 0 <= theta_norm < np.pi, DIRECTION_VERTICAL or DIRECTION_HORIZONTAL)
From a list of lines in <lines> detected by cv2.HoughLines, create a list with a tuple per line
        containing:
        (rho, theta, normalized theta with 0 <= theta_norm < np.pi, DIRECTION_VERTICAL or DIRECTION_HORIZONTAL)
From a list of lines in <lines > detected by cv2 . HoughLines create a list with a tuple per line containing : ( rho theta normalized theta with 0 < = theta_norm < np . pi DIRECTION_VERTICAL or DIRECTION_HORIZONTAL )
def _generate_hough_lines(self, lines):
        """
        From a list of lines in <lines> detected by cv2.HoughLines, create a list with a tuple per line
        containing:
        (rho, theta, normalized theta with 0 <= theta_norm < np.pi, DIRECTION_VERTICAL or DIRECTION_HORIZONTAL)
        """
        lines_hough = []
        for l in lines:
            rho, theta = l[0]  # they come like this from OpenCV's hough transform
            theta_norm = normalize_angle(theta)
                
            if abs(PIHLF - theta_norm) > PI4TH:  # vertical
                line_dir = DIRECTION_VERTICAL
            else:
                line_dir = DIRECTION_HORIZONTAL
            
            lines_hough.append((rho, theta, theta_norm, line_dir))
        
        return lines_hough
def _generate_hough_lines ( self , lines ) : lines_hough = [ ] for l in lines : rho , theta = l [ 0 ] # they come like this from OpenCV's hough transform theta_norm = normalize_angle ( theta ) if abs ( PIHLF - theta_norm ) > PI4TH : # vertical line_dir = DIRECTION_VERTICAL else : line_dir = DIRECTION_HORIZONTAL lines_hough . append ( ( rho , theta , theta_norm , line_dir ) ) return lines_hough