Update app_pages/ocr_comparator.py
Browse files
app_pages/ocr_comparator.py
CHANGED
|
@@ -12,7 +12,7 @@ import cv2
|
|
| 12 |
from PIL import Image, ImageColor
|
| 13 |
import PIL
|
| 14 |
import easyocr
|
| 15 |
-
from paddleocr
|
| 16 |
from mmocr.utils.ocr import MMOCR
|
| 17 |
import pytesseract
|
| 18 |
from pytesseract import Output
|
|
@@ -209,7 +209,8 @@ def app():
|
|
| 209 |
Returns:
|
| 210 |
ppocr reader: the ppocr reader instance
|
| 211 |
"""
|
| 212 |
-
out_ocr = PaddleOCR(lang=in_params[0], **in_params[1])
|
|
|
|
| 213 |
return out_ocr
|
| 214 |
|
| 215 |
###
|
|
|
|
| 12 |
from PIL import Image, ImageColor
|
| 13 |
import PIL
|
| 14 |
import easyocr
|
| 15 |
+
from paddleocr import PaddleOCR
|
| 16 |
from mmocr.utils.ocr import MMOCR
|
| 17 |
import pytesseract
|
| 18 |
from pytesseract import Output
|
|
|
|
| 209 |
Returns:
|
| 210 |
ppocr reader: the ppocr reader instance
|
| 211 |
"""
|
| 212 |
+
#out_ocr = PaddleOCR(lang=in_params[0], **in_params[1])
|
| 213 |
+
out_ocr = PaddleOCR(lang=in_params[0], use_gpu=False)
|
| 214 |
return out_ocr
|
| 215 |
|
| 216 |
###
|