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[
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 )
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",
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 """
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.
Line length greater than configured max_line_length
detected, defaults to 79 character. This limit can be configured docs