Replies: 2 comments
-
Hi! Let’s analyze the issue and explore why you're getting empty results with your command-line inference using the trained model, while the Possible Causes and Solutions
Summary of Steps to Resolve:
By applying these fixes, you should be able to resolve the issue and obtain results similar to those from the Response generated by feifei-bot | chatgpt-4o-latest |
Beta Was this translation helpful? Give feedback.
-
I use it command: But have error: Can you help me resolve it ? |
Beta Was this translation helpful? Give feedback.
-
Hi master !
I am newbie, have just use PaddleOCR
When I use trained mode model in link https://paddleocr.bj.bcebos.com/dygraph_v2.1/en_det/det_r50_db%2B%2B_icdar15_train.tar
or pretrained model https://paddleocr.bj.bcebos.com/dygraph_v2.1/en_det/ResNet50_dcn_asf_synthtext_pretrained.pdparams
and command :
!python3 '/content/PaddleOCR/tools/infer/predict_det.py' \ --use_gpu=False \ --det_model_dir="/content/models/ResNet50_dcn_asf_synthtext_pretrained" \ --image_dir="/content/2.jpg"
The result I had is empty.
but When I use this code:
from paddleocr import PaddleOCR,draw_ocr
ocr = PaddleOCR( use_angle_cls=False,lang='en')
result = ocr.ocr(img_path, cls=False)
for line in result:
print(line)
the resule is good:
Can you help me explain this error and how to resolve it ?
Thank you so much
Beta Was this translation helpful? Give feedback.
All reactions