mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Opt: Log appearance of perspective detection
This commit is contained in:
parent
9c7397ddde
commit
5c4d409b3e
@ -188,7 +188,7 @@ def point2str(x, y, length=4):
|
||||
Returns:
|
||||
str: String with numbers right aligned, such as '( 100, 80)'.
|
||||
"""
|
||||
return '(%s,%s)' % (str(int(x)).rjust(length), str(int(y)).rjust(length))
|
||||
return '(%s, %s)' % (str(int(x)).rjust(length), str(int(y)).rjust(length))
|
||||
|
||||
|
||||
def node2location(node):
|
||||
|
||||
@ -164,9 +164,6 @@ class Perspective:
|
||||
'/' if self.left_edge else ' ', '_' if self.upper_edge else ' ',
|
||||
'\\' if self.right_edge else ' ', len(self.vertical), len(vertical), len(edge_v))
|
||||
)
|
||||
if len(horizontal) - len(self.horizontal) >= 3 or len(vertical) - len(self.vertical) >= 3:
|
||||
logger.info('Too many deleted lines')
|
||||
# self.save_error_image()
|
||||
|
||||
def load_image(self, image):
|
||||
"""Method that turns image to monochrome and hide UI.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user