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

Merge branch 'nightly' into dev

This commit is contained in:
Erik
2020-07-24 02:42:45 -03:00
committed by GitHub

View File

@@ -43,6 +43,8 @@ class View(MapDetector):
if area_in_area(area1=corner2area(points), area2=self.config.DETECTING_AREA):
grids[loca] = Grid(location=loca, image=image, corner=points, config=self.config)
# Handle grids offset
offset = np.min(list(grids.keys()), axis=0)
if np.sum(np.abs(offset)) > 0:
@@ -81,6 +83,7 @@ class View(MapDetector):
grid.predict()
logger.attr_align('predict', len(self.grids.keys()), front=float2str(time.time() - start_time) + 's')
def update(self, image):
"""
Update image to all grids.