fix: typing annotations for cv2.Mat, see #5

This commit is contained in:
2023-07-07 13:32:44 +08:00
parent e01f6cd6bc
commit 922fed8efe
7 changed files with 16 additions and 8 deletions

View File

@ -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