1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 02:48:23 +08:00

Add files via upload

posible fix for crashes when boss spawns on bottom right:

"IndexError: index 0 is out of bounds for axis 0 with size 0"
This commit is contained in:
Cerz0
2020-07-13 19:59:01 +02:00
committed by GitHub
parent 0cf716740a
commit 2dfd7a1702

View File

@@ -49,23 +49,23 @@ step_on = SelectedGrids([C3])
road_boss = RoadGrids([C3, H4, [C5, C7], G6, G8]) road_boss = RoadGrids([C3, H4, [C5, C7], G6, G8])
class Config: class Config:
pass
# INTERNAL_LINES_HOUGHLINES_THRESHOLD = 40 INTERNAL_LINES_HOUGHLINES_THRESHOLD = 35
# EDGE_LINES_HOUGHLINES_THRESHOLD = 40 EDGE_LINES_HOUGHLINES_THRESHOLD = 35
# COINCIDENT_POINT_ENCOURAGE_DISTANCE = 1.5 COINCIDENT_POINT_ENCOURAGE_DISTANCE = 1.3
# INTERNAL_LINES_FIND_PEAKS_PARAMETERS = { INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
# 'height': (150, 255 - 24), 'height': (150, 255 - 24),
# 'width': (0.9, 10), 'width': (0.9, 10),
# 'prominence': 10, 'prominence': 10,
# 'distance': 35, 'distance': 35,
# } }
# EDGE_LINES_FIND_PEAKS_PARAMETERS = { EDGE_LINES_FIND_PEAKS_PARAMETERS = {
# 'height': (255 - 24, 255), 'height': (255 - 24, 255),
# 'prominence': 10, 'prominence': 10,
# 'distance': 50, 'distance': 50,
# 'width': (0, 10), 'width': (0, 10),
# 'wlen': 1000, 'wlen': 1000,
# } }
class Campaign(CampaignBase): class Campaign(CampaignBase):