electricalgorithm / QualityConrolMirrorProduction

Doc line too long FLK-W505
Style
Minor
a year agoa year old
doc line too long (101 > 88 characters)
113
114    def order_corners(self, corners: list) -> list:
115        """
116        This function gets four corners coordinates, and orders it from left to right, top to bottom.117        :param corners: A list contains four corners.
118        :return: [left_top, right_top, left_bottom, right_bottom]
119        """
doc line too long (97 > 88 characters)
263        self, image: numpy.ndarray, corners: list, new_image_size: tuple = (1000, 500)
264    ) -> numpy.ndarray:
265        """
266        This function applies Warp transformation to get right perspective for the object that is267        described with its corners.
268        :param image: A image to apply transformation.
269        :param corners: A list of corners of the object to get from the image.
doc line too long (109 > 88 characters)
217
218    def apply_harris_corner_detection(self, image: numpy.ndarray):
219        """
220        This function applies the Harris Corner detection algorithm and removes the redundant near-by pixels.221        :param image: The binary image to look for corners.
222        :return: A list that includes corner coordinates.
223        """
doc line too long (109 > 88 characters)
189
190    def apply_contour_find(self, image: numpy.ndarray):
191        """
192        This method firstly finds the contour of each object in the image, select the biggest one, and try to193        find a polygon within the contour. It returns the corners of the polygon.
194        :param image: Binary image to search for contour.
195        :return: A list that includes corner coordinates for the biggest blob.
doc line too long (111 > 88 characters)
173        self, image: numpy.ndarray, window_size=51, gaussian_sigma=5
174    ) -> numpy.ndarray:
175        """
176        Function returns the cv2 Image instance that has Gaussian blur with predefined window size and gaussian177        sigma ratio.
178        :param image: Original image to perform blur onto.
179        :param window_size: Default is 5.