mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 04:05:36 +08:00
Fix: Failed to get zone name after oil buy count OCR
They use the same ocr model and oil buy count set an alphabet whitelist, result in empty zone name - Opt: Faster click after handle_action_point
This commit is contained in:
@@ -79,8 +79,7 @@ class Ocr:
|
||||
def ocr(self, image, direct_ocr=False):
|
||||
start_time = time.time()
|
||||
|
||||
if self.alphabet is not None:
|
||||
self.cnocr.set_cand_alphabet(self.alphabet)
|
||||
self.cnocr.set_cand_alphabet(self.alphabet)
|
||||
if direct_ocr:
|
||||
image_list = [self.pre_process(np.array(i)) for i in image]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user