Skip to content

Commit

Permalink
Dev: Faster relative_record
Browse files Browse the repository at this point in the history
  • Loading branch information
LmeSzinc committed Jul 25, 2024
1 parent 69b5730 commit 7ec61a7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion dev_tools/relative_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@ class Config:
"""
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)


"""
Expand Down Expand Up @@ -54,6 +66,7 @@ class Config:
cfg = AzurLaneConfig(CONFIG).merge(Config())
al = ModuleBase(cfg)
al.device.disable_stuck_detection()
al.device.screenshot_interval_set(0.11)
view = View(cfg)
al.device.screenshot()
view.load(al.device.image)
Expand Down

0 comments on commit 7ec61a7

Please sign in to comment.