Open adnanshafi99 opened 2 weeks ago
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
Thank you for your attention to our code repository.
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
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:
excel file :![image](https://github.com/PaddlePaddle/Paddle-Lite/assets/112738018/cb5d49ca-2e08-43f3-92a5-c15e2a7687da)
Html file:![image](https://github.com/PaddlePaddle/Paddle-Lite/assets/112738018/9b77fe4f-c2a6-4f35-a1ef-3d6bc3d4a90c)