model与部分图片移至static下
This commit is contained in:
parent
78e6cca458
commit
40dd9c1f32
108 changed files with 106 additions and 365 deletions
|
@ -2,7 +2,7 @@ from typing import Literal
|
|||
|
||||
import cv2
|
||||
|
||||
from mower.models import Digtal
|
||||
from mower.static import Digital
|
||||
from mower.utils import config
|
||||
from mower.utils import typealias as tp
|
||||
from mower.utils.image import cropimg, thres2
|
||||
|
@ -48,11 +48,11 @@ class NumberRecognizer:
|
|||
target_range: list = range(10),
|
||||
) -> str:
|
||||
if font == "riic_base":
|
||||
templates = Digtal().riic_base_digits
|
||||
templates = Digital().riic_base_digits
|
||||
elif font == "noto":
|
||||
templates = Digtal().noto_sans
|
||||
templates = Digital().noto_sans
|
||||
elif font == "secret_front":
|
||||
templates = Digtal().secret_front
|
||||
templates = Digital().secret_front
|
||||
value = ""
|
||||
for i in range(len(rect)):
|
||||
if len(rect[i]) != 4:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue