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
cf1385a7
Commit
cf1385a7
authored
Jun 10, 2021
by
WenmuZhou
Browse files
add table ch readme
parent
6b0b416d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
ppstructure/README_ch.md
ppstructure/README_ch.md
+11
-1
ppstructure/table/README_ch.md
ppstructure/table/README_ch.md
+2
-2
No files found.
ppstructure/README_ch.md
View file @
cf1385a7
...
@@ -57,3 +57,13 @@ paddlestructure --image_dir=../doc/table/1.png
...
@@ -57,3 +57,13 @@ paddlestructure --image_dir=../doc/table/1.png
```
```
### 参数说明
### 参数说明
大部分参数和paddleocr whl包保持一致,见
[
whl包文档
](
../doc/doc_ch/whl.md
)
| 字段 | 说明 | 默认值 |
|------------------------|------------------------------------------------------|------------------|
| output | excel和识别结果保存的地址 | ./output/table |
| structure_max_len | structure模型预测时,图像的长边resize尺度 | 488 |
| structure_model_dir | structure inference 模型地址 | None |
| structure_char_type | structure 模型所用字典地址 | ../ppocr/utils/dict/table_structure_dict.tx |
ppstructure/table/README_ch.md
View file @
cf1385a7
...
@@ -34,7 +34,7 @@ TBD
...
@@ -34,7 +34,7 @@ TBD
准备完成后使用如下命令进行评估,评估完成后会输出teds指标。
准备完成后使用如下命令进行评估,评估完成后会输出teds指标。
```
python
```
python
python3
table
/
eval_table
.
py
--
det_model_dir
=
path
/
to
/
det_model_dir
--
rec_model_dir
=
path
/
to
/
rec_model_dir
--
structure_model_dir
=
path
/
to
/
structure_model_dir
--
image_dir
=
..
/
doc
/
table
/
1.
png
--
rec_char_dict_path
=
..
/
ppocr
/
utils
/
dict
/
table_dict
.
txt
--
tabl
e_char_dict_path
=
..
/
ppocr
/
utils
/
dict
/
table_structure_dict
.
txt
--
rec_char_type
=
EN
--
det_limit_side_len
=
736
--
det_limit_type
=
min
--
gt_path
=
path
/
to
/
gt
.
json
python3
table
/
eval_table
.
py
--
det_model_dir
=
path
/
to
/
det_model_dir
--
rec_model_dir
=
path
/
to
/
rec_model_dir
--
structure_model_dir
=
path
/
to
/
structure_model_dir
--
image_dir
=
..
/
doc
/
table
/
1.
png
--
rec_char_dict_path
=
..
/
ppocr
/
utils
/
dict
/
table_dict
.
txt
--
structur
e_char_dict_path
=
..
/
ppocr
/
utils
/
dict
/
table_structure_dict
.
txt
--
rec_char_type
=
EN
--
det_limit_side_len
=
736
--
det_limit_type
=
min
--
gt_path
=
path
/
to
/
gt
.
json
```
```
...
@@ -42,6 +42,6 @@ python3 table/eval_table.py --det_model_dir=path/to/det_model_dir --rec_model_di
...
@@ -42,6 +42,6 @@ python3 table/eval_table.py --det_model_dir=path/to/det_model_dir --rec_model_di
先cd到PaddleOCR/ppstructure目录下
先cd到PaddleOCR/ppstructure目录下
```
python
```
python
python3
table
/
predict_table
.
py
--
det_model_dir
=
path
/
to
/
det_model_dir
--
rec_model_dir
=
path
/
to
/
rec_model_dir
--
structure_model_dir
=
path
/
to
/
structure_model_dir
--
image_dir
=
..
/
doc
/
table
/
1.
png
--
rec_char_dict_path
=
..
/
ppocr
/
utils
/
dict
/
table_dict
.
txt
--
tabl
e_char_dict_path
=
..
/
ppocr
/
utils
/
dict
/
table_structure_dict
.
txt
--
rec_char_type
=
EN
--
det_limit_side_len
=
736
--
det_limit_type
=
min
--
output
..
/
output
/
table
python3
table
/
predict_table
.
py
--
det_model_dir
=
path
/
to
/
det_model_dir
--
rec_model_dir
=
path
/
to
/
rec_model_dir
--
structure_model_dir
=
path
/
to
/
structure_model_dir
--
image_dir
=
..
/
doc
/
table
/
1.
png
--
rec_char_dict_path
=
..
/
ppocr
/
utils
/
dict
/
table_dict
.
txt
--
structur
e_char_dict_path
=
..
/
ppocr
/
utils
/
dict
/
table_structure_dict
.
txt
--
rec_char_type
=
EN
--
det_limit_side_len
=
736
--
det_limit_type
=
min
--
output
..
/
output
/
table
```
```
运行完成后,每张图片的excel表格会保存到table_output字段指定的目录下
运行完成后,每张图片的excel表格会保存到table_output字段指定的目录下
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