PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
Apache License 2.0
39.77k stars 7.39k forks source link

Did not recongnize last number #12050

Closed stccorp closed 1 month ago

stccorp commented 1 month ago

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem I uploaded an image with the following number 777-88-8877 After running result = ocr.ocr(img_path, cls=True) I get [[[[7.0, 2.0], [93.0, 2.0], [93.0, 14.0], [7.0, 14.0]], ('777-88-887', 0.9906673431396484)]]

Why it didnt recognize the last number 7??

img_path = 'output_image.png' img = cv2.imread(img_path,cv2.IMREAD_UNCHANGED) cv2_imshow(img) result = ocr.ocr(img_path, cls=True) for line in result: print(line)

This is the file output_image

UserWangZz commented 1 month ago

https://github.com/PaddlePaddle/PaddleOCR/blob/main/doc/doc_ch/recognition.md#32-%E6%B5%8B%E8%AF%95%E8%AF%86%E5%88%AB%E6%95%88%E6%9E%9C you can try by this document