diff --git a/module/map_detection/view.py b/module/map_detection/view.py index 89d96559d..ebc52e898 100644 --- a/module/map_detection/view.py +++ b/module/map_detection/view.py @@ -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.