Skip to content

Commit

Permalink
fix:添加公招龙门币不足素材
Browse files Browse the repository at this point in the history
  • Loading branch information
EightyDollars committed Oct 19, 2023
1 parent c9ad8bb commit ceee70a
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions arknights_mower/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ def simulate():
[base_scheduler.tasks[0].type.value.split("_")[1]], one_time=True
)
continue

base_scheduler.run()
reconnect_tries = 0
except ConnectionError or ConnectionAbortedError or AttributeError as e:
Expand Down
Binary file added arknights_mower/resources/recruit_no_lmb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion arknights_mower/utils/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ def score(self, query: tp.GrayImage, draw: bool = False, scope: tp.Scope = None,
query, qry_kp, self.origin, ori_kp, good, None)
plt.imshow(result, 'gray')
plt.show()

# if the number of good matches no more than 4
if len(good) <= 4:
logger.debug(
Expand Down
2 changes: 1 addition & 1 deletion arknights_mower/utils/recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
class RecognizeError(Exception):
pass


class Recognizer(object):

def __init__(self, device: Device, screencap: bytes = None) -> None:
Expand Down Expand Up @@ -296,6 +295,7 @@ def find(self, res: str, draw: bool = False, scope: tp.Scope = None, thres: int
if thres is not None:
# 对图像二值化处理
res_img = thres2(loadimg(res, True), thres)

gray_img = cropimg(self.gray, scope)
matcher = Matcher(thres2(gray_img, thres))
ret = matcher.match(res_img, draw=draw, judge=judge,prescore=score)
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

LONG_DESC = Path('README.md').read_text('utf8')
VERSION = arknights_mower.__version__

setuptools.setup(
name='arknights_mower',
version=VERSION,
Expand Down

0 comments on commit ceee70a

Please sign in to comment.