Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excel file returning empty with no error [URGENT] #10524

Open
adnanshafi99 opened this issue Jun 11, 2024 · 1 comment
Open

Excel file returning empty with no error [URGENT] #10524

adnanshafi99 opened this issue Jun 11, 2024 · 1 comment
Assignees

Comments

@adnanshafi99
Copy link

I have downloaded the English model and pasted it into the correct file. Still, the Excel output file is empty. Please help

D:\xyz\code\PaddleOCR\ppstructure\inference

image

This is the code that I used:

!git clone https://github.com/PaddlePaddle/PaddleOCR.git
!pip install paddleocr --upgrade
!pip install paddlepaddle

Change directory to PaddleOCR\ppstructure

%cd d:\xyz\code\PaddleOCR\ppstructure

Run the Python script for table prediction

!python table\predict_table.py --det_model_dir=inference\en_PP-OCRv3_det_infer
--rec_model_dir=inference\en_ppocr_mobile_v2.0_table_rec_infer
--table_model_dir=inference\en_ppocr_mobile_v2.0_table_structure_infer
--image_dir=michael_jordan_stats.png
--rec_char_dict_path=..\ppocr\utils\dict\table_dict.txt
--table_char_dict_path=..\ppocr\utils\dict\table_structure_dict.txt
--output=.\output\table

Result :

[2024/06/11 16:02:12] ppocr INFO: [0/1] michael_jordan_stats.png
[2024/06/11 16:02:14] ppocr DEBUG: dt_boxes num : 113, elapse : 0.03500866889953613
[2024/06/11 16:02:14] ppocr DEBUG: rec_res num : 113, elapse : 0.2700634002685547
[2024/06/11 16:02:14] ppocr INFO:

colspan="5" colspan="10" colspan="2" colspan="5" colspan="10" colspan="2" colspan="5" colspan="10" colspan="2" colspan="5" colspan="10" colspan="2"<td

[2024/06/11 16:02:14] ppocr INFO: excel saved to .\output\table\michael_jordan_stats.xlsx
[2024/06/11 16:02:14] ppocr INFO: Predict time : 2.211s

excel file :
image

Html file:
image

@ddchenhao66
Copy link
Collaborator

ddchenhao66 commented Jun 13, 2024

Based on the code in table\predict_table.py , I think you've found the wrong code repository. You should raise an issue in the inference repository instead. https://github.com/PaddlePaddle/Paddle-Inference-Demo/tree/master
paddleocr
Thank you for your attention to our code repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants