mirror of
https://github.com/283375/arcaea-offline-ocr.git
synced 2025-11-14 08:12:13 +00:00
feat, wip: device V2
This commit is contained in:
9
src/arcaea_offline_ocr/device/v2/shared.py
Normal file
9
src/arcaea_offline_ocr/device/v2/shared.py
Normal file
@ -0,0 +1,9 @@
|
||||
from cv2 import MORPH_CROSS, MORPH_ELLIPSE, MORPH_RECT, getStructuringElement
|
||||
|
||||
PFL_DENOISE_KERNEL = getStructuringElement(MORPH_RECT, [2, 2])
|
||||
PFL_ERODE_KERNEL = getStructuringElement(MORPH_RECT, [3, 3])
|
||||
PFL_CLOSE_HORIZONTAL_KERNEL = getStructuringElement(MORPH_RECT, [10, 1])
|
||||
|
||||
MAX_RECALL_DENOISE_KERNEL = getStructuringElement(MORPH_RECT, [3, 3])
|
||||
MAX_RECALL_ERODE_KERNEL = getStructuringElement(MORPH_RECT, [2, 2])
|
||||
MAX_RECALL_CLOSE_KERNEL = getStructuringElement(MORPH_RECT, [20, 1])
|
||||
Reference in New Issue
Block a user