mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 10:01:10 +00:00
Fix: import BoxedResult
This commit is contained in:
parent
04e9e39384
commit
f85be40c98
@ -3,7 +3,7 @@ import time
|
||||
from datetime import timedelta
|
||||
|
||||
import cv2
|
||||
from ppocronnx.predict_system import BoxedResult
|
||||
from pponnxcr.predict_system import BoxedResult
|
||||
|
||||
import module.config.server as server
|
||||
from module.base.button import ButtonWrapper
|
||||
|
@ -1,6 +1,6 @@
|
||||
import itertools
|
||||
|
||||
from ppocronnx.predict_system import BoxedResult
|
||||
from pponnxcr.predict_system import BoxedResult
|
||||
|
||||
from module.base.utils import area_in_area, area_offset
|
||||
|
||||
@ -45,6 +45,9 @@ def merge_buttons(buttons: list[BoxedResult], thres_x=20, thres_y=20) -> list[Bo
|
||||
Returns:
|
||||
|
||||
"""
|
||||
if thres_x <= 0 and thres_y <= 0:
|
||||
return buttons
|
||||
|
||||
dic_button = {button.box: button for button in buttons}
|
||||
set_merged = set()
|
||||
for left, right in itertools.combinations(dic_button.items(), 2):
|
||||
|
@ -1,6 +1,6 @@
|
||||
import cv2
|
||||
import numpy as np
|
||||
from ppocronnx.predict_system import BoxedResult
|
||||
from pponnxcr.predict_system import BoxedResult
|
||||
|
||||
from module.base.base import ModuleBase
|
||||
from module.base.timer import Timer
|
||||
|
Loading…
Reference in New Issue
Block a user