|
24 | 24 | |`pp_layout_table`| 表格 | `layout_table.onnx` |`["table"]` | |
25 | 25 | | `pp_layout_publaynet`| 英文 | `layout_publaynet.onnx` |`["text", "title", "list", "table", "figure"]` | |
26 | 26 | | `pp_layout_cdla`| 中文 | `layout_cdla.onnx` | `['text', 'title', 'figure', 'figure_caption', 'table', 'table_caption', 'header', 'footer', 'reference', 'equation']` | |
27 | | -| `yolov8n_layout_paper`| 论文 | `yolov8n_layout_paper.onnx` | `['text', 'title', 'figure', 'figure_caption', 'table', 'table_caption', 'header', 'footer', 'reference', 'equation']` | |
28 | | -| `yolov8n_layout_report`| 研报 | `yolov8n_layout_report.onnx` | `['text', 'title', 'header', 'footer', 'figure', 'figure_caption', 'table', 'table_caption', 'toc']` | |
| 27 | +| `yolov8n_layout_paper`| 论文 | `yolov8n_layout_paper.onnx` | `['Text', 'Title', 'Header', 'Footer', 'Figure', 'Table', 'Toc', 'Figure caption', 'Table caption']` | |
| 28 | +| `yolov8n_layout_report`| 研报 | `yolov8n_layout_report.onnx` | `['Text', 'Title', 'Header', 'Footer', 'Figure', 'Table', 'Toc', 'Figure caption', 'Table caption']` | |
| 29 | +| `yolov8n_layout_publaynet`| 英文 | `yolov8n_layout_publaynet.onnx` | `["Text", "Title", "List", "Table", "Figure"]` | |
| 30 | +| `yolov8n_layout_general6`| 通用 | `yolov8n_layout_general6.onnx` | `["Text", "Title", "Figure", "Table", "Caption", "Equation"]` | |
29 | 31 |
|
30 | 32 | PP模型来源:[PaddleOCR 版面分析](https://github.com/PaddlePaddle/PaddleOCR/blob/133d67f27dc8a241d6b2e30a9f047a0fb75bebbe/ppstructure/layout/README_ch.md) |
31 | 33 |
|
@@ -58,28 +60,28 @@ if ploted_img is not None: |
58 | 60 | ``` |
59 | 61 |
|
60 | 62 | #### 终端运行 |
61 | | -- 用法: |
62 | | - ```bash |
63 | | - $ rapid_layout -h |
64 | | - usage: rapid_layout [-h] -img IMG_PATH [-m {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report}] |
65 | | - [--conf_thres {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report}] |
66 | | - [--iou_thres {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report}] [--use_cuda] [--use_dml] |
67 | | - [-v] |
68 | | - |
69 | | - options: |
70 | | - -h, --help show this help message and exit |
71 | | - -img IMG_PATH, --img_path IMG_PATH |
72 | | - Path to image for layout. |
73 | | - -m {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report}, --model_type {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report} |
74 | | - Support model type |
75 | | - --conf_thres {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report} |
76 | | - Box threshold, the range is [0, 1] |
77 | | - --iou_thres {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report} |
78 | | - IoU threshold, the range is [0, 1] |
79 | | - --use_cuda Whether to use cuda. |
80 | | - --use_dml Whether to use DirectML, which only works in Windows10+. |
81 | | - -v, --vis Wheter to visualize the layout results. |
82 | | - ``` |
| 63 | +```bash |
| 64 | +$ rapid_layout -h |
| 65 | +usage: rapid_layout [-h] -img IMG_PATH |
| 66 | + [-m {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report,yolov8n_layout_publaynet,yolov8n_layout_general6}] |
| 67 | + [--conf_thres {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report,yolov8n_layout_publaynet,yolov8n_layout_general6}] |
| 68 | + [--iou_thres {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report,yolov8n_layout_publaynet,yolov8n_layout_general6}] |
| 69 | + [--use_cuda] [--use_dml] [-v] |
| 70 | + |
| 71 | +options: |
| 72 | + -h, --help show this help message and exit |
| 73 | + -img IMG_PATH, --img_path IMG_PATH |
| 74 | + Path to image for layout. |
| 75 | + -m {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report,yolov8n_layout_publaynet,yolov8n_layout_general6}, --model_type {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report,yolov8n_layout_publaynet,yolov8n_layout_general6} |
| 76 | + Support model type |
| 77 | + --conf_thres {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report,yolov8n_layout_publaynet,yolov8n_layout_general6} |
| 78 | + Box threshold, the range is [0, 1] |
| 79 | + --iou_thres {pp_layout_cdla,pp_layout_publaynet,pp_layout_table,yolov8n_layout_paper,yolov8n_layout_report,yolov8n_layout_publaynet,yolov8n_layout_general6} |
| 80 | + IoU threshold, the range is [0, 1] |
| 81 | + --use_cuda Whether to use cuda. |
| 82 | + --use_dml Whether to use DirectML, which only works in Windows10+. |
| 83 | + -v, --vis Wheter to visualize the layout results. |
| 84 | +``` |
83 | 85 | - 示例: |
84 | 86 | ```bash |
85 | 87 | $ rapid_layout -v -img test_images/layout.png |
|
0 commit comments