mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
[doc] Fix doc (#9203)
* add en doc * fix dead link & test=document_fix * fix dead link & test=document_fix * update args default type & test=document_fix * fix doc & test=document_fix
This commit is contained in:
parent
a923f35de5
commit
b61ee47066
@ -211,7 +211,7 @@ from paddleocr import PaddleOCR, draw_ocr
|
||||
|
||||
# Paddleocr目前支持的多语言语种可以通过修改lang参数进行切换
|
||||
# 例如`ch`, `en`, `fr`, `german`, `korean`, `japan`
|
||||
ocr = PaddleOCR(use_angle_cls=True, lang="ch", page_num=2) # need to run only once to download and load model into memory
|
||||
ocr = PaddleOCR(use_angle_cls=True, lang="ch", page_num=2) # need to run only once to download and load model into memory
|
||||
img_path = './xxx.pdf'
|
||||
result = ocr.ocr(img_path, cls=True)
|
||||
for idx in range(len(result)):
|
||||
|
@ -223,7 +223,7 @@ from paddleocr import PaddleOCR, draw_ocr
|
||||
# Paddleocr supports Chinese, English, French, German, Korean and Japanese.
|
||||
# You can set the parameter `lang` as `ch`, `en`, `fr`, `german`, `korean`, `japan`
|
||||
# to switch the language model in order.
|
||||
ocr = PaddleOCR(use_angle_cls=True, lang="ch", page_num=2) # need to run only once to download and load model into memory
|
||||
ocr = PaddleOCR(use_angle_cls=True, lang="ch", page_num=2) # need to run only once to download and load model into memory
|
||||
img_path = './xxx.pdf'
|
||||
result = ocr.ocr(img_path, cls=True)
|
||||
for idx in range(len(result)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user