Instructions to use PaddlePaddle/SLANeXt_wireless_onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use PaddlePaddle/SLANeXt_wireless_onnx with PaddleOCR:
# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle # 2. pip install paddleocr from paddleocr import TableStructureRecognition model = TableStructureRecognition(model_name="SLANeXt_wireless_onnx") output = model.predict(input="path/to/image.png", batch_size=1) for res in output: res.print() res.save_to_img(save_path="./output/") res.save_to_json(save_path="./output/res.json") - Notebooks
- Google Colab
- Kaggle
SLANeXt_wireless
Introduction
Table structure recognition is an important component of table recognition systems, capable of converting non-editable table images into editable table formats (such as HTML). The goal of table structure recognition is to identify the positions of rows, columns, and cells in tables. The performance of this module directly affects the accuracy and efficiency of the entire table recognition system. The table structure recognition module usually outputs HTML code for the table area, which is then passed as input to the table recognition pipeline for further processing.
| Model | Accuracy (%) | GPU Inference Time (ms) [Normal Mode / High Performance Mode] |
CPU Inference Time (ms) [Normal Mode / High Performance Mode] |
Model Storage Size (M) |
|---|---|---|---|---|
| SLANeXt_wireless | 69.65 | -- | -- | 351M |
Note: The accuracy of SLANeXt_wireless comes from the results of joint testing with SLANeXt_wired.
Model Usage
Install Dependencies
pip install -U paddleocr
pip install -U onnxruntime-gpu
CLI Usage
paddleocr table_structure_recognition -i ./demo.jpg --model_name SLANeXt_wireless --engine onnxruntime
Python API Usage
from paddleocr import TableStructureRecognition
model = TableStructureRecognition(
model_name="SLANeXt_wireless",
engine="onnxruntime",
)
output = model.predict("./demo.jpg", batch_size=1)
for res in output:
res.print()
res.save_to_json(save_path="./output/res.json")
- Downloads last month
- 33