|
@@ -3,11 +3,11 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
from pydantic import BaseModel
|
|
from pydantic import BaseModel
|
|
from paddleocr import PaddleOCR
|
|
from paddleocr import PaddleOCR
|
|
|
|
|
|
-from ocr_core.direction import AngleDetector
|
|
|
|
|
|
+from core.direction import AngleDetector
|
|
from utils.image import *
|
|
from utils.image import *
|
|
from utils.time import timeit
|
|
from utils.time import timeit
|
|
from utils.web import web_try
|
|
from utils.web import web_try
|
|
-from ocr_core.ocr import IdCardOcr
|
|
|
|
|
|
+from core.ocr import IdCardOcr
|
|
import os
|
|
import os
|
|
|
|
|
|
app = FastAPI()
|
|
app = FastAPI()
|