Skip to content

Commit

Permalink
#80 删除调试代码
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorReid committed Nov 5, 2023
1 parent b6cf9d7 commit 19dca56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sr/image/sceenshot/large_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ def get_active_region_name(screen: MatLike, ocr: OcrMatcher) -> str:
return None
rect = Rect(left[0] - 10, top[1] - 10, right[0] + 10, bottom[1] + 10)
to_ocr: MatLike = cv2_utils.crop_image(bw, rect)[0]
cv2_utils.show_image(to_ocr, win_name='get_active_region_name')
lang = game_config.get().lang
# cv2_utils.show_image(to_ocr, win_name='get_active_region_name')
return ocr.ocr_for_single_line(to_ocr, strict_one_line=False)


Expand Down

0 comments on commit 19dca56

Please sign in to comment.