You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the PaddleOCR Docs and found no similar bug report.
I have searched the PaddleOCR Issues and found no similar bug report.
I have searched the PaddleOCR Discussions and found no similar bug report.
🐛 Bug (问题描述)
I've tried out the C++ version of PaddleOCR in the last few days and noticed that there are some slight differences on the results when using both of them on the same image with the same parameters. I have two examples.
The first image:
Here is the result when using the C++ version:
.\paddleocr.exe -det_model_dir="C:\Users\GPUVM\Desktop\projects\cpp\PaddleOCR\PaddleOCR\deploy\cpp_infer\build\Release\PP-OCRv4\det\en\en_PP-OCRv3_det_infer"
-rec_model_dir="C:\Users\GPUVM\Desktop\projects\cpp\PaddleOCR\PaddleOCR\deploy\cpp_infer\build\Release\PP-OCRv4\rec\latin\latin_PP-OCRv3_rec_infer"
-image_dir="C:\Users\GPUVM\Downloads\402374996-663c3ab7-10a0-475b-820a-df862a4fc049.png" -use_angle_cls="true"
-cls_model_dir="C:\Users\GPUVM\Desktop\projects\cpp\PaddleOCR\PaddleOCR\deploy\cpp_infer\build\Release\PP-OCRv4\cls\ch_ppocr_mobile_v2.0_cls_infer"
-rec_char_dict_path="C:\Users\GPUVM\Desktop\projects\cpp\PaddleOCR\PaddleOCR\deploy\cpp_infer\ppocr\utils\dict\latin_dict.txt"
...
predict img: C:\Users\GPUVM\Downloads\402374996-663c3ab7-10a0-475b-820a-df862a4fc049.png
0 det boxes: [[114,21],[564,20],[564,44],[114,45]] rec text: et cesser de orétendre chercher rec score: 0.942833
1 det boxes: [[140,59],[539,59],[539,85],[140,85]] rec text: qui se fait passer pour nous. rec score: 0.988313
The detection visualized image saved in ./output//402374996-663c3ab7-10a0-475b-820a-df862a4fc049.png
Both are having trouble with the word "prétendre". But they are getting different results! The recognition confidence differs aswell.
Here is another example:
Here is the result when using the C++ version:
.\paddleocr.exe -det_model_dir="C:\Users\GPUVM\Desktop\projects\cpp\PaddleOCR\PaddleOCR\deploy\cpp_infer\build\Release\PP-OCRv4\det\en\en_PP-OCRv3_det_infer"
-rec_model_dir="C:\Users\GPUVM\Desktop\projects\cpp\PaddleOCR\PaddleOCR\deploy\cpp_infer\build\Release\PP-OCRv4\rec\en\en_PP-OCRv4_rec_infer"
-image_dir="C:\Users\GPUVM\Downloads\402374329-cb1397c6-888f-45e6-b205-4f18f830430f.png" -use_angle_cls="true"
-cls_model_dir="C:\Users\GPUVM\Desktop\projects\cpp\PaddleOCR\PaddleOCR\deploy\cpp_infer\build\Release\PP-OCRv4\cls\ch_ppocr_mobile_v2.0_cls_infer"
-rec_char_dict_path="C:\Users\GPUVM\Desktop\projects\cpp\PaddleOCR\PaddleOCR\deploy\cpp_infer\ppocr\utils\en_dict.txt"
...
predict img: C:\Users\GPUVM\Downloads\402374329-cb1397c6-888f-45e6-b205-4f18f830430f.png
0 det boxes: [[91,55],[734,59],[734,117],[91,113]] rec text: My mommy always said rec score: 0.965158
1 det boxes: [[89,149],[731,153],[731,198],[89,194]] rec text: there were no monsters. rec score: 0.984143
The detection visualized image saved in ./output//402374329-cb1397c6-888f-45e6-b205-4f18f830430f.png
🔎 Search before asking
🐛 Bug (问题描述)
I've tried out the C++ version of PaddleOCR in the last few days and noticed that there are some slight differences on the results when using both of them on the same image with the same parameters. I have two examples.
The first image:
![Image](https://private-user-images.githubusercontent.com/150205162/410710294-7ed27efa-e21e-4d1b-b5bb-f9473c2fff8b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDUwMDYsIm5iZiI6MTczODkwNDcwNiwicGF0aCI6Ii8xNTAyMDUxNjIvNDEwNzEwMjk0LTdlZDI3ZWZhLWUyMWUtNGQxYi1iNWJiLWY5NDczYzJmZmY4Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QwNTA1MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lOGI3MDMwN2RmN2NiMjM2YjE4ODMwYzk5Njc0YmMwMWU3ZTVkY2FhYjRiZTMxODM1NzYxMTA2YWE1ZDRmNjMwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.qVvsrxTJXOjPq4UOV2ycqdDp8QcDHd0CSkk29gzItb0)
Here is the result when using the C++ version:
And here using Python:
Both are having trouble with the word "prétendre". But they are getting different results! The recognition confidence differs aswell.
Here is another example:
![Image](https://private-user-images.githubusercontent.com/150205162/410712001-5246e147-7b39-41a6-87af-258da1722abf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDUwMDYsIm5iZiI6MTczODkwNDcwNiwicGF0aCI6Ii8xNTAyMDUxNjIvNDEwNzEyMDAxLTUyNDZlMTQ3LTdiMzktNDFhNi04N2FmLTI1OGRhMTcyMmFiZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QwNTA1MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZWFiMjYxYzg5MGVjNGJkZjQyMmE2ZGE1YmI3ZmZhNDhhNjFjZDk0NjgwNzNhODBkZmMyODFmZTVjYWM1MTYwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Jwr-1mV0W7BGdvP0FlJ2fy8FVKVhULWpUC1zhO1ShdU)
Here is the result when using the C++ version:
And here using Python:
The text is recognized correctly on both, but the confidence numbers differ again.
The question is: Is this behaviour expected and is this the correct behaviour?
If thats the case, what causes this?
🏃♂️ Environment (运行环境)
Windows 11 23H2
PaddleOCR 2.9
paddlepaddle-gpu 3.0.0-rc0 for C++ and Python
🌰 Minimal Reproducible Example (最小可复现问题的Demo)
No further code required.
The text was updated successfully, but these errors were encountered: