未验证 提交 035cd69a 编写于 作者: A andyj 提交者: GitHub

[doc] format code (#9201)

* add finetune en doc & test=document_fix

* fix dead link & test=document_fix

* fix dead link & test=document_fix

* update check img

* fix det res dtype

* update args default type & test=document_fix

* fix numpy version

* support numpy1.24.0

* fix doc & test=document_fix
上级 1139a6c9
...@@ -210,7 +210,7 @@ from paddleocr import PaddleOCR, draw_ocr ...@@ -210,7 +210,7 @@ from paddleocr import PaddleOCR, draw_ocr
# Paddleocr目前支持的多语言语种可以通过修改lang参数进行切换 # Paddleocr目前支持的多语言语种可以通过修改lang参数进行切换
# 例如`ch`, `en`, `fr`, `german`, `korean`, `japan` # 例如`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' img_path = './xxx.pdf'
result = ocr.ocr(img_path, cls=True) result = ocr.ocr(img_path, cls=True)
for idx in range(len(result)): for idx in range(len(result)):
......
...@@ -223,7 +223,7 @@ from paddleocr import PaddleOCR, draw_ocr ...@@ -223,7 +223,7 @@ from paddleocr import PaddleOCR, draw_ocr
# Paddleocr supports Chinese, English, French, German, Korean and Japanese. # Paddleocr supports Chinese, English, French, German, Korean and Japanese.
# You can set the parameter `lang` as `ch`, `en`, `fr`, `german`, `korean`, `japan` # You can set the parameter `lang` as `ch`, `en`, `fr`, `german`, `korean`, `japan`
# to switch the language model in order. # 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' img_path = './xxx.pdf'
result = ocr.ocr(img_path, cls=True) result = ocr.ocr(img_path, cls=True)
for idx in range(len(result)): for idx in range(len(result)):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册