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
bd32a900
"docs/source/en/using-diffusers/rl.mdx" did not exist on "4e2c1f3a4da7436a861dd444035e6e27a3f1c6b7"
Commit
bd32a900
authored
Aug 24, 2020
by
WenmuZhou
Browse files
路径添加{}
parent
8346621b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
doc/doc_ch/whl.md
doc/doc_ch/whl.md
+2
-2
doc/doc_en/whl_en.md
doc/doc_en/whl_en.md
+2
-2
No files found.
doc/doc_ch/whl.md
View file @
bd32a900
...
@@ -142,7 +142,7 @@ paddleocr --image_dir PaddleOCR/doc/imgs_words/ch/word_1.jpg --det false
...
@@ -142,7 +142,7 @@ paddleocr --image_dir PaddleOCR/doc/imgs_words/ch/word_1.jpg --det false
```
python
```
python
from
paddleocr
import
PaddleOCR
,
draw_ocr
from
paddleocr
import
PaddleOCR
,
draw_ocr
# 检测模型和识别模型路径下必须含有model和params文件
# 检测模型和识别模型路径下必须含有model和params文件
ocr
=
PaddleOCR
(
det_model_dir
=
'your_det_model_dir'
,
rec_model_dir
=
'your_rec_model_dir'
)
ocr
=
PaddleOCR
(
det_model_dir
=
'
{
your_det_model_dir
}
'
,
rec_model_dir
=
'
{
your_rec_model_dir
}
'
)
img_path
=
'PaddleOCR/doc/imgs/11.jpg'
img_path
=
'PaddleOCR/doc/imgs/11.jpg'
result
=
ocr
.
ocr
(
img_path
)
result
=
ocr
.
ocr
(
img_path
)
for
line
in
result
:
for
line
in
result
:
...
@@ -162,7 +162,7 @@ im_show.save('result.jpg')
...
@@ -162,7 +162,7 @@ im_show.save('result.jpg')
### 通过命令行使用
### 通过命令行使用
```
bash
```
bash
paddleocr
--image_dir
PaddleOCR/doc/imgs/11.jpg
--det_model_dir
your_det_model_dir
--rec_model_dir
your_rec_model_dir
paddleocr
--image_dir
PaddleOCR/doc/imgs/11.jpg
--det_model_dir
{
your_det_model_dir
}
--rec_model_dir
{
your_rec_model_dir
}
```
```
## 参数说明
## 参数说明
...
...
doc/doc_en/whl_en.md
View file @
bd32a900
...
@@ -147,7 +147,7 @@ First, refer to the first section of [inference_en.md](./inference_en.md) to con
...
@@ -147,7 +147,7 @@ First, refer to the first section of [inference_en.md](./inference_en.md) to con
```
python
```
python
from
paddleocr
import
PaddleOCR
,
draw_ocr
from
paddleocr
import
PaddleOCR
,
draw_ocr
# The path of detection and recognition model must contain model and params files
# The path of detection and recognition model must contain model and params files
ocr
=
PaddleOCR
(
det_model_dir
=
'your_det_model_dir'
,
rec_model_dir
=
'your_rec_model_dir'
)
ocr
=
PaddleOCR
(
det_model_dir
=
'
{
your_det_model_dir
}
'
,
rec_model_dir
=
'
{
your_rec_model_dir
}å
'
)
img_path
=
'PaddleOCR/doc/imgs_en/img_12.jpg'
img_path
=
'PaddleOCR/doc/imgs_en/img_12.jpg'
result
=
ocr
.
ocr
(
img_path
)
result
=
ocr
.
ocr
(
img_path
)
for
line
in
result
:
for
line
in
result
:
...
@@ -167,7 +167,7 @@ im_show.save('result.jpg')
...
@@ -167,7 +167,7 @@ im_show.save('result.jpg')
### Use by command line
### Use by command line
```
bash
```
bash
paddleocr
--image_dir
PaddleOCR/doc/imgs/11.jpg
--det_model_dir
your_det_model_dir
--rec_model_dir
your_rec_model_dir
paddleocr
--image_dir
PaddleOCR/doc/imgs/11.jpg
--det_model_dir
{
your_det_model_dir
}
--rec_model_dir
{
your_rec_model_dir
}
```
```
## Parameter Description
## Parameter Description
...
...
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