Skip to content

Commit

Permalink
Merge pull request #354 from EightyDollars/dev_shawn
Browse files Browse the repository at this point in the history
add:增加图片资源
  • Loading branch information
ZhaoZuohong authored Oct 23, 2023
2 parents 59bdc9a + 314e793 commit 97c95bf
Show file tree
Hide file tree
Showing 132 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arknights_mower/resources/recruit_no_lmb.png
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 97c95bf

Please sign in to comment.