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

Add: [CN] event_20200723_cn B3 D3

- Fix homography error when no edge detected
- Increase battle function try count, just for pool logic currently
This commit is contained in:
LmeSzinc
2020-07-25 03:40:40 +08:00
parent 69afef4844
commit 673e8422a4
8 changed files with 195 additions and 2 deletions

View File

@@ -311,7 +311,10 @@ class Homography:
"""
lines = cv2.HoughLines(image, 1, np.pi / 180, hough_th)
if lines is None:
return None, None
self.lower_edge, self.upper_edge = separate_edges([], inner=self.map_inner[1])
self.left_edge, self.right_edge = separate_edges([], inner=self.map_inner[0])
self._map_edge_count = (0, 0)
return None
lines = lines[:, 0, :]
rho, theta = lines[:, 0], lines[:, 1]