electricalgorithm / QualityConrolMirrorProduction

Line too long FLK-E501
Style
Minor
a year agoa year old
line too long (99 > 88 characters)
356
357        self.debug.result(
358            f"Image is cropped from {first_biggest_white_from_top} to {first_biggest_white_from_bottom}"
359            f" on vertical, and from {first_white_from_left} to {(first_white_from_right + 1)} on "360            f"horizontal."
361        )
362        image_cropped = image[
line too long (104 > 88 characters)
355                break
356
357        self.debug.result(
358            f"Image is cropped from {first_biggest_white_from_top} to {first_biggest_white_from_bottom}"359            f" on vertical, and from {first_white_from_left} to {(first_white_from_right + 1)} on "
360            f"horizontal."
361        )
line too long (96 > 88 characters)
11        dict: Includes the flag responses of the program.
12    """
13    parser = argparse.ArgumentParser(
14        description="This function gives you the angles of the lines in particular environment."15    )
16    parser.add_argument(
17        "-i",
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        """
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.