mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 02:33:34 +08:00
Revert "Fix: jp commission suffix pre_process (#4435)"
This reverts commit 52a29aa288.
This commit is contained in:
@@ -41,9 +41,8 @@ class SuffixOcr(Ocr):
|
|||||||
# will need to pad white background for better recognization
|
# will need to pad white background for better recognization
|
||||||
image = image[8:-10, :]
|
image = image[8:-10, :]
|
||||||
cv2.normalize(image, image, -55, 255, cv2.NORM_MINMAX)
|
cv2.normalize(image, image, -55, 255, cv2.NORM_MINMAX)
|
||||||
image = (image > 80).astype(np.uint8) * 255
|
image = (image > 128).astype(np.uint8) * 255
|
||||||
image = np.pad(image, ((0, 1), (0, 0)), mode='edge')
|
image = np.pad(image, ((4, 4), (0, 0)), mode='constant', constant_values=255)
|
||||||
image = np.pad(image, ((4, 3), (0, 0)), mode='constant', constant_values=255)
|
|
||||||
return image
|
return image
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user