From ae4c4c1ca88498a80eabea28f9f1b746a3e3fc4e Mon Sep 17 00:00:00 2001 From: tink2123 Date: Fri, 16 Apr 2021 13:49:21 +0800 Subject: [PATCH] short multi-doc --- doc/doc_ch/multi_languages.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/doc_ch/multi_languages.md b/doc/doc_ch/multi_languages.md index 696c07d9..dda9f55f 100755 --- a/doc/doc_ch/multi_languages.md +++ b/doc/doc_ch/multi_languages.md @@ -138,11 +138,11 @@ from paddleocr import PaddleOCR, draw_ocr # 同样也是通过修改 lang 参数切换语种 ocr = PaddleOCR(lang="korean") # 首次执行会自动下载模型文件 +img_path = 'doc/imgs/korean_1.jpg ' +result = ocr.ocr(img_path) # 可通过参数控制单独执行识别、检测 # result = ocr.ocr(img_path, det=False) 只执行识别 # result = ocr.ocr(img_path, rec=False) 只执行检测 -img_path = 'doc/imgs/korean_1.jpg ' -result = ocr.ocr(img_path) # 打印检测框和识别结果 for line in result: print(line) -- GitLab