1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-21 19:51:44 +08:00

Fix: Perspective parameters in Universe in Unison

- Adjust MAP.camera_sight, because combo status on event maps will cover some grids
- Opt camera data from SP1 to SP4
This commit is contained in:
LmeSzinc
2020-10-30 18:23:57 +08:00
parent 08e4242229
commit a8442cd0c5
6 changed files with 29 additions and 6 deletions

View File

@@ -5,8 +5,9 @@ from module.logger import logger
MAP = CampaignMap('SP1')
MAP.shape = 'G7'
MAP.camera_data = ['D2', 'D5']
MAP.camera_data_spawn_point = ['D5']
MAP.camera_data = ['C2', 'C5']
MAP.camera_data_spawn_point = ['C5']
MAP.camera_sight = (-2, -1, 3, 2)
MAP.map_data = """
++ ++ -- ME -- ++ ++
++ ++ ME __ ME -- ++
@@ -53,6 +54,23 @@ class Config:
MAP_HAS_AMBUSH = False
# ===== End of generated config =====
DETECTION_BACKEND = 'perspective'
INTERNAL_LINES_HOUGHLINES_THRESHOLD = 40
EDGE_LINES_HOUGHLINES_THRESHOLD = 40
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
'height': (150, 255 - 12),
'width': (0.9, 10),
'prominence': 10,
'distance': 35,
}
EDGE_LINES_FIND_PEAKS_PARAMETERS = {
'height': (255 - 9, 255),
'prominence': 10,
'distance': 50,
# 'width': (0, 7),
'wlen': 1000
}
class Campaign(CampaignBase):
MAP = MAP