Skip to content

多lang同时检测 #12700

Closed Answered by ericyeyeye
dhl961123 asked this question in Q&A
Discussion options

You must be logged in to vote

paddleocr --image_dir C:\Users\huili.dong\Desktop\第一轮测试复核.pdf --use_gpu false --page_num 5 --lang='ch,en' 报错: File "D:\Python\Miniconda\envs\paddle_env\lib\site-packages\paddleocr\paddleocr.py", line 468, in parse_lang assert lang in MODEL_URLS['OCR'][DEFAULT_OCR_MODEL_VERSION][ AssertionError: param lang must in dict_keys(['ch', 'en', 'korean', 'japan', 'chinese_cht', 'ta', 'te', 'ka', 'latin', 'arabic', 'cyrillic', 'devanagari']), but got 'ch,en' 请问如何修改

最後--lang='ch,en' 改成 --lang='ch',ch中包含英文了,一次只能選定一種語言
paddleocr --image_dir C:\Users\huili.dong\Desktop\第一轮测试复核.pdf --use_gpu false --page_num 5 --lang='ch'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SWHL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #11325 on June 05, 2024 01:39.