mirror of
https://github.com/283375/arcaea-offline-ocr.git
synced 2025-07-01 12:26:27 +00:00
fix: typing annotations for cv2.Mat
, see #5
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
from cv2 import IMREAD_UNCHANGED, Mat, imdecode
|
||||
from cv2 import IMREAD_UNCHANGED, imdecode
|
||||
from numpy import fromfile as np_fromfile
|
||||
from numpy import uint8
|
||||
|
||||
from .types import Mat
|
||||
|
||||
|
||||
def imread_unicode(filepath: str) -> Mat:
|
||||
# https://stackoverflow.com/a/57872297/16484891
|
||||
|
Reference in New Issue
Block a user