mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 21:37:22 +08:00
Upd: Moving FleetOcr feature files
This commit is contained in:
@@ -28,7 +28,7 @@ def cosine_similarity(x1, x2) -> float:
|
|||||||
class FleetOcr(Digit):
|
class FleetOcr(Digit):
|
||||||
def __init__(self, buttons, lang='azur_lane', letter=..., threshold=128, alphabet='0123456789', name=None):
|
def __init__(self, buttons, lang='azur_lane', letter=..., threshold=128, alphabet='0123456789', name=None):
|
||||||
super().__init__(buttons, lang=lang, letter=letter, threshold=threshold, alphabet=alphabet, name=name)
|
super().__init__(buttons, lang=lang, letter=letter, threshold=threshold, alphabet=alphabet, name=name)
|
||||||
self.digit_features = [np.load(f'./module/retire/npy/{i}.npy', allow_pickle=True) for i in range(1, 7)]
|
self.digit_features = [np.load(f'./bin/fleet_ocr_features/{i}.npy', allow_pickle=True) for i in range(1, 7)]
|
||||||
|
|
||||||
def pre_process(self, image):
|
def pre_process(self, image):
|
||||||
# Invert
|
# Invert
|
||||||
|
|||||||
Reference in New Issue
Block a user