mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-22 21:03:45 +08:00
Dev: Faster relative_record
This commit is contained in:
@@ -17,7 +17,19 @@ class Config:
|
|||||||
"""
|
"""
|
||||||
Paste the config of map file here
|
Paste the config of map file here
|
||||||
"""
|
"""
|
||||||
pass
|
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
|
||||||
|
'height': (80, 255 - 17),
|
||||||
|
'width': (0.9, 10),
|
||||||
|
'prominence': 10,
|
||||||
|
'distance': 35,
|
||||||
|
}
|
||||||
|
EDGE_LINES_FIND_PEAKS_PARAMETERS = {
|
||||||
|
'height': (255 - 17, 255),
|
||||||
|
'prominence': 10,
|
||||||
|
'distance': 50,
|
||||||
|
'wlen': 1000
|
||||||
|
}
|
||||||
|
HOMO_EDGE_COLOR_RANGE = (0, 17)
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@@ -54,6 +66,7 @@ if __name__ == '__main__':
|
|||||||
cfg = AzurLaneConfig(CONFIG).merge(Config())
|
cfg = AzurLaneConfig(CONFIG).merge(Config())
|
||||||
al = ModuleBase(cfg)
|
al = ModuleBase(cfg)
|
||||||
al.device.disable_stuck_detection()
|
al.device.disable_stuck_detection()
|
||||||
|
al.device.screenshot_interval_set(0.11)
|
||||||
view = View(cfg)
|
view = View(cfg)
|
||||||
al.device.screenshot()
|
al.device.screenshot()
|
||||||
view.load(al.device.image)
|
view.load(al.device.image)
|
||||||
|
|||||||
Reference in New Issue
Block a user