Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
097f5808
Commit
097f5808
authored
Aug 03, 2021
by
WenmuZhou
Browse files
add import cv2 to whl doc
parent
5e257c2b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
doc/doc_ch/whl.md
doc/doc_ch/whl.md
+1
-0
doc/doc_en/whl_en.md
doc/doc_en/whl_en.md
+1
-0
No files found.
doc/doc_ch/whl.md
View file @
097f5808
...
...
@@ -297,6 +297,7 @@ paddleocr --image_dir http://n.sinaimg.cn/ent/transform/w630h933/20171222/o111-f
### 4.2 numpy数组
仅通过代码使用时支持numpy数组作为输入
```
python
import
cv2
from
paddleocr
import
PaddleOCR
,
draw_ocr
# Paddleocr目前支持中英文、英文、法语、德语、韩语、日语,可以通过修改lang参数进行切换
# 参数依次为`ch`, `en`, `french`, `german`, `korean`, `japan`。
...
...
doc/doc_en/whl_en.md
View file @
097f5808
...
...
@@ -305,6 +305,7 @@ paddleocr --image_dir http://n.sinaimg.cn/ent/transform/w630h933/20171222/o111-f
Support numpy array as input only when used by code
```
python
import
cv2
from
paddleocr
import
PaddleOCR
,
draw_ocr
ocr
=
PaddleOCR
(
use_angle_cls
=
True
,
lang
=
"ch"
)
# need to run only once to download and load model into memory
img_path
=
'PaddleOCR/doc/imgs/11.jpg'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment