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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user