看不懂识别结果, 感觉有问题 求解答 #12361
Unanswered
yanchujian
asked this question in
Q&A
看不懂识别结果, 感觉有问题 求解答
#12361
Replies: 2 comments
-
确认一下系统是否支持中文字符集? |
Beta Was this translation helpful? Give feedback.
0 replies
-
用命令行的方式可以正确显示中文 这是什么原因呢 同时下面一张图片也能正确识别出来. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
使用代码
from paddleocr import PaddleOCR, draw_ocr
Paddleocr目前支持的多语言语种可以通过修改lang参数进行切换
例如
ch
,en
,fr
,german
,korean
,japan
ocr = PaddleOCR(use_angle_cls=True, lang="ch") # need to run only once to download and load model into memory
img_path='./ppocr_img/imgs/11.jpg'
result = ocr.ocr(img_path, cls=True)
for idx in range(len(result)):
res = result[idx]
for line in res:
print(line)
得出结果如下:



使用的测试图片为:
求大佬解释一下
然后使用自己的图片测试,返回为空:
Beta Was this translation helpful? Give feedback.
All reactions