(self, canny_low_thresh, canny_high_thresh, canny_kernel_size,
                     hough_rho_res, hough_theta_res, hough_votes_thresh,
                     gray_conversion=cv2.COLOR_BGR2GRAY)
return self.lines_hough
Detect lines in input image using hough transform.
        Return detected lines as list with tuples:
        (rho, theta, normalized theta with 0 <= theta_norm < np.pi, DIRECTION_VERTICAL or DIRECTION_HORIZONTAL)
Detect lines in input image using hough transform.
        Return detected lines as list with tuples:
        (rho, theta, normalized theta with 0 <= theta_norm < np.pi, DIRECTION_VERTICAL or DIRECTION_HORIZONTAL)
Detect lines in input image using hough transform . Return detected lines as list with tuples : ( rho theta normalized theta with 0 < = theta_norm < np . pi DIRECTION_VERTICAL or DIRECTION_HORIZONTAL )
def detect_lines(self, canny_low_thresh, canny_high_thresh, canny_kernel_size,
                     hough_rho_res, hough_theta_res, hough_votes_thresh,
                     gray_conversion=cv2.COLOR_BGR2GRAY):
        """
        Detect lines in input image using hough transform.
        Return detected lines as list with tuples:
        (rho, theta, normalized theta with 0 <= theta_norm < np.pi, DIRECTION_VERTICAL or DIRECTION_HORIZONTAL)
        """
        
        self.gray_img = cv2.cvtColor(self.input_img, gray_conversion)
        self.edges = cv2.Canny(self.gray_img, canny_low_thresh, canny_high_thresh, apertureSize=canny_kernel_size)
        
        # detect lines with hough transform
        lines = cv2.HoughLines(self.edges, hough_rho_res, hough_theta_res, hough_votes_thresh)
        if lines is None:
            lines = []
        
        self.lines_hough = self._generate_hough_lines(lines)
        
        return self.lines_hough
def detect_lines ( self , canny_low_thresh , canny_high_thresh , canny_kernel_size , hough_rho_res , hough_theta_res , hough_votes_thresh , gray_conversion = cv2 . COLOR_BGR2GRAY ) : self . gray_img = cv2 . cvtColor ( self . input_img , gray_conversion ) self . edges = cv2 . Canny ( self . gray_img , canny_low_thresh , canny_high_thresh , apertureSize = canny_kernel_size ) # detect lines with hough transform lines = cv2 . HoughLines ( self . edges , hough_rho_res , hough_theta_res , hough_votes_thresh ) if lines is None : lines = [ ] self . lines_hough = self . _generate_hough_lines ( lines ) return self . lines_hough