mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Fix: [TW] SOS chapter 10 is OCRed as 0
This commit is contained in:
@@ -43,13 +43,17 @@ class Ocr:
|
||||
def cnocr(self) -> "AlOcr":
|
||||
return OCR_MODEL.__getattribute__(self.lang)
|
||||
|
||||
@cached_property
|
||||
@property
|
||||
def buttons(self):
|
||||
buttons = self._buttons
|
||||
buttons = buttons if isinstance(buttons, list) else [buttons]
|
||||
buttons = [button.area if isinstance(button, Button) else button for button in buttons]
|
||||
return buttons
|
||||
|
||||
@buttons.setter
|
||||
def buttons(self, value):
|
||||
self._buttons = value
|
||||
|
||||
def pre_process(self, image):
|
||||
"""
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user