Skip to content

Commit

Permalink
撤销read_screen的修改
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Oct 13, 2023
1 parent 953403d commit 8e78127
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arknights_mower/solvers/base_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,10 +918,6 @@ def double_read_time(self, cord, upperLimit=None, use_digit_reader=False):
def read_screen(self, img, type="mood", limit=24, cord=None):
if cord is not None:
img = img[cord[1]:cord[3], cord[0]:cord[2]]
if 'name' in type:
binary = cv2.threshold(img, 1, 255, cv2.THRESH_BINARY)[1]
x, y, w, h = cv2.boundingRect(binary)
img = img[x:x + w, y:y + h]
try:
ret = rapidocr.engine(img, use_det=False, use_cls=False, use_rec=True)[0]
logger.debug(ret)
Expand Down

0 comments on commit 8e78127

Please sign in to comment.