场景图导航改写为solver
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful

This commit is contained in:
zhbaor 2025-01-30 10:14:54 +08:00
parent 8bfc70d7c3
commit c86e7ac651
80 changed files with 225 additions and 184 deletions

View file

@ -9,12 +9,12 @@ import numpy as np
from mower.utils import config
from mower.utils import typealias as tp
from mower.utils.csleep import MowerExit
from mower.utils.graph import SceneGraphSolver
from mower.utils.image import cropimg, loadres, thres2
from mower.utils.log import logger
from mower.utils.matcher import Matcher
from mower.utils.rapidocr import ocr_rec
from mower.utils.scene import Scene
from mower.utils.solver import BaseSolver
src_pts = np.float32([[0, 97], [1920, 97], [-400, 1080], [2320, 1080]])
dst_pts = np.float32([[0, 0], [1920, 0], [0, 1000], [1920, 1000]])
@ -41,7 +41,7 @@ class Map:
return scope if score >= 0.5 else score
class ReclamationAlgorithm(SceneGraphSolver):
class ReclamationAlgorithm(BaseSolver):
fast_tap_scenes = [Scene.RA_GUIDE_DIALOG]
places = {
"base": [[1623, 588], [1943, 906]],