From cf1385a7f29ea52b510f31f3214cd8f8500c6afd Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Thu, 10 Jun 2021 17:17:46 +0800 Subject: [PATCH] add table ch readme --- ppstructure/README_ch.md | 12 +++++++++++- ppstructure/table/README_ch.md | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ppstructure/README_ch.md b/ppstructure/README_ch.md index ecd05cc3..4fce135b 100644 --- a/ppstructure/README_ch.md +++ b/ppstructure/README_ch.md @@ -56,4 +56,14 @@ im_show.save('result.jpg') paddlestructure --image_dir=../doc/table/1.png ``` -### 参数说明 \ No newline at end of file +### 参数说明 +大部分参数和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 | + + diff --git a/ppstructure/table/README_ch.md b/ppstructure/table/README_ch.md index b229eb2f..a32807d0 100644 --- a/ppstructure/table/README_ch.md +++ b/ppstructure/table/README_ch.md @@ -34,7 +34,7 @@ TBD 准备完成后使用如下命令进行评估,评估完成后会输出teds指标。 ```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 --table_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 --structure_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 先cd到PaddleOCR/ppstructure目录下 ```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 --table_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 --structure_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字段指定的目录下 -- GitLab