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

Add: Predict swipe to handle random game stuck

- Fix: Urgent commission in OS
- Fix: More accurate predict_current_fleet
- Opt: Increase edge tolerance in homography detection
- Opt: Shorten swipe distance in OS, because swipe predict needs something in common
This commit is contained in:
LmeSzinc
2021-02-17 01:09:23 +08:00
parent fd03a211a3
commit ddbd15b26e
14 changed files with 161 additions and 58 deletions

View File

@@ -299,7 +299,7 @@ class Homography:
logger.attr_align('tile_rectangle', f'{len(location)} rectangles ({message})')
return message != 'bad match'
def detect_edges(self, image, hough_th=120, theta_th=0.005, edge_th=5):
def detect_edges(self, image, hough_th=120, theta_th=0.005, edge_th=9):
"""
Detect map edges