Generation of XLSX files by TableRecognitionPipelineV2? #16135
Unanswered
ganlei2025
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello dear developer,
I'd like to use TableRecognitionPipelineV2 to process a table image and output it as an Excel spreadsheet. However, I encountered an issue where the XLSX file cannot be generated. Below is my code:
from paddleocr import TableRecognitionPipelineV2
pipeline = TableRecognitionPipelineV2(
layout_detection_model_name=None,
layout_detection_model_dir=None,
wired_table_structure_recognition_model_name='SLANet_plus',
wired_table_cells_detection_model_name='RT-DETR-L_wired_table_cell_det',
doc_orientation_classify_model_name=None,
text_detection_model_name=None,
doc_unwarping_model_name=None,
text_recognition_model_name=None,
device='cpu'
)
output = pipeline.predict(
r"G:\meiling\output\img_top.png",
use_e2e_wired_table_rec_model=True,
use_wired_table_cells_trans_to_html=True,
use_ocr_results_with_table_cells=True
)
for res in output:
res.print() # Print structured prediction results
res.save_to_img("./output/")
res.save_to_xlsx("./output/") # Failing to output XLSX
res.save_to_html("./output/")
res.save_to_json("./output/")
I would greatly appreciate any suggestions!
Beta Was this translation helpful? Give feedback.
All reactions