降低control_central匹配阈值
This commit is contained in:
parent
517b18efbc
commit
8c7dad3d01
3 changed files with 7 additions and 3 deletions
|
@ -593,7 +593,7 @@ class BaseSchedulerSolver(SceneGraphSolver, BaseMixin):
|
|||
|
||||
def infra_main(self):
|
||||
"""位于基建首页"""
|
||||
if config.recog.match2d("control_central")[0] < 0.9:
|
||||
if config.recog.match2d("control_central")[0] < 0.7:
|
||||
self.back()
|
||||
return
|
||||
if self.task is not None:
|
||||
|
|
|
@ -128,7 +128,7 @@ class EnterRoomSolver(SceneGraphSolver, BaseMixin):
|
|||
start_time = datetime.now()
|
||||
while (datetime.now() - start_time).total_seconds() < 8:
|
||||
score, scope = config.recog.match2d("control_central")
|
||||
if score >= 0.9:
|
||||
if score >= 0.7:
|
||||
pos = self.segment(scope)[self.room]
|
||||
self.ctap(pos, 1, config.screenshot_avg / 1000)
|
||||
self.wait_start()
|
||||
|
|
|
@ -52,7 +52,11 @@ def riic(solver: BaseSolver):
|
|||
|
||||
@edge(Scene.INFRA_MAIN, Scene.CTRLCENTER_ASSISTANT)
|
||||
def control_central(solver: BaseSolver):
|
||||
solver.tap("control_central")
|
||||
score, scope = config.recog.match2d("control_central")
|
||||
if score >= 0.7:
|
||||
solver.tap(scope)
|
||||
else:
|
||||
solver.back()
|
||||
|
||||
|
||||
@edge(Scene.SANITY_CHARGE, Scene.INFRA_MAIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue