Skip to content

Commit 7ec61a7

Browse files
committed
Dev: Faster relative_record
1 parent 69b5730 commit 7ec61a7

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

dev_tools/relative_record.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,19 @@ class Config:
1717
"""
1818
Paste the config of map file here
1919
"""
20-
pass
20+
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
21+
'height': (80, 255 - 17),
22+
'width': (0.9, 10),
23+
'prominence': 10,
24+
'distance': 35,
25+
}
26+
EDGE_LINES_FIND_PEAKS_PARAMETERS = {
27+
'height': (255 - 17, 255),
28+
'prominence': 10,
29+
'distance': 50,
30+
'wlen': 1000
31+
}
32+
HOMO_EDGE_COLOR_RANGE = (0, 17)
2133

2234

2335
"""
@@ -54,6 +66,7 @@ class Config:
5466
cfg = AzurLaneConfig(CONFIG).merge(Config())
5567
al = ModuleBase(cfg)
5668
al.device.disable_stuck_detection()
69+
al.device.screenshot_interval_set(0.11)
5770
view = View(cfg)
5871
al.device.screenshot()
5972
view.load(al.device.image)

0 commit comments

Comments
 (0)