128 self.debug.info("order_corners(): Function ended.")
129 return sorted_coordinates_by_location
130
131 """132 #################################################
133 IMAGE PROCESSING METHODS
134 #################################################
72 """
73 return self.end_image if self.is_algorithm_finished else None
74
75 """ 76 #################################################
77 ADDITIONAL FUNCTIONS
78 #################################################
18 self.end_image = None
19 self.is_algorithm_finished = False
20
21 """ 22 #################################################
23 INTERFACE FOR END-USERS
24 #################################################
92 """
93 return self.angles if self.is_algorithm_finished else None
94
95 """ 96 #################################################
97 ADDITIONAL FUNCTIONS
98 #################################################
193 self.debug.info("divide_the_image(): Function ended.")
194 return mini_images
195
196 """197 #################################################
198 IMAGE PROCESSING METHODS
199 #################################################
The string statement has not been assigned to anything. This is pointless and should be removed if not necessary. In case this is supposed to describe what's happening in the code, it is recommended to use comments or docstrings instead.
'Define a function to add 2 numbers here.'
def add(a, b):
return a + b
Use Comments:
# Define a function to add 2 numbers here.
def add(a, b):
return a + b
or, use docstrings:
def add(a, b):
'''Function to add 2 numbers here.'''
return a + b