Spaces:
Sleeping
Sleeping
Update utils/ocr_utils.py
Browse files- utils/ocr_utils.py +1 -0
utils/ocr_utils.py
CHANGED
|
@@ -2,6 +2,7 @@ from paddleocr import PaddleOCR
|
|
| 2 |
import numpy as np
|
| 3 |
from PIL import Image, ImageDraw, ImageFont
|
| 4 |
from scipy.spatial import ConvexHull
|
|
|
|
| 5 |
|
| 6 |
ocr_model = PaddleOCR(use_textline_orientation=True, lang='ch')
|
| 7 |
|
|
|
|
| 2 |
import numpy as np
|
| 3 |
from PIL import Image, ImageDraw, ImageFont
|
| 4 |
from scipy.spatial import ConvexHull
|
| 5 |
+
from utils.azure_translate import translate_text_azure
|
| 6 |
|
| 7 |
ocr_model = PaddleOCR(use_textline_orientation=True, lang='ch')
|
| 8 |
|