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)
Please provide the following information to quickly locate the problem:
I am working on making License Plate Module for the below project and I am getting the below errors.
System Environment:Python 3.7
Paddle Version:paddlepaddle==2.3.2
PaddleOCR Version:paddleocr==2.6.1.0
Command Code:
from paddleocr import PaddleOCR ocr = PaddleOCR(lang='en', rec_algorithm='CRNN', \ cls_model_dir='paddleocr/ch_ppocr_mobile_v2.0_cls_infer', \ det_model_dir='paddleocr/en_PP-OCRv3_det_infer', \ rec_model_dir='paddleocr/en_PP-OCRv3_rec_infer') with io.BytesIO() as plate_buffer : image.save(plate_buffer, format='PNG') plate_buffer.seek(0) ocr_response = ocr.ocr(('image.png', plate_buffer, 'image/png'), cls=True)
Complete Error Message:
Error Traceback (most recent call last): Error File "E:\Repos\CodeProject.AI-Server\src\modules\ALPR\ALPR_adapter.py", line 15, in <module> Error from ALPR import detect_platenumber Error File "E:\Repos\CodeProject.AI-Server\src\modules\ALPR\ALPR.py", line 14, in <module> Error from paddleocr import PaddleOCR Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddleocr\__init__.py", line 14, in <module> Error from .paddleocr import * Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddleocr\paddleocr.py", line 21, in <module> Error import paddle Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddle\__init__.py", line 71, in <module> Error import paddle.dataset # noqa: F401 Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddle\dataset\__init__.py", line 27, in <module> Error import paddle.dataset.flowers # noqa: F401 Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddle\dataset\flowers.py", line 39, in <module> Error from paddle.dataset.image import load_image_bytes Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddle\dataset\image.py", line 51, in <module> Error stderr=subprocess.PIPE) Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\lib\subprocess.py", line 800, in __init__ Error restore_signals, start_new_session) Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\lib\subprocess.py", line 1207, in _execute_child Error startupinfo) Error FileNotFoundError: [WinError 2] The system cannot find the file specified
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Please provide the following information to quickly locate the problem: I am working on making License Plate Module for the below project and I am getting the below errors.
Project Link: https://github.com/codeproject/CodeProject.AI-Server
License Plate Module Link: https://github.com/MikeLud/CodeProject.AI-Server/tree/main/src/modules/ALPR
System Environment:Python 3.7 Paddle Version:paddlepaddle==2.3.2 PaddleOCR Version:paddleocr==2.6.1.0 Command Code:
from paddleocr import PaddleOCR ocr = PaddleOCR(lang='en', rec_algorithm='CRNN', \ cls_model_dir='paddleocr/ch_ppocr_mobile_v2.0_cls_infer', \ det_model_dir='paddleocr/en_PP-OCRv3_det_infer', \ rec_model_dir='paddleocr/en_PP-OCRv3_rec_infer') with io.BytesIO() as plate_buffer : image.save(plate_buffer, format='PNG') plate_buffer.seek(0) ocr_response = ocr.ocr(('image.png', plate_buffer, 'image/png'), cls=True)
Complete Error Message:
Error Traceback (most recent call last): Error File "E:\Repos\CodeProject.AI-Server\src\modules\ALPR\ALPR_adapter.py", line 15, in <module> Error from ALPR import detect_platenumber Error File "E:\Repos\CodeProject.AI-Server\src\modules\ALPR\ALPR.py", line 14, in <module> Error from paddleocr import PaddleOCR Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddleocr\__init__.py", line 14, in <module> Error from .paddleocr import * Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddleocr\paddleocr.py", line 21, in <module> Error import paddle Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddle\__init__.py", line 71, in <module> Error import paddle.dataset # noqa: F401 Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddle\dataset\__init__.py", line 27, in <module> Error import paddle.dataset.flowers # noqa: F401 Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddle\dataset\flowers.py", line 39, in <module> Error from paddle.dataset.image import load_image_bytes Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\venv\lib\site-packages\paddle\dataset\image.py", line 51, in <module> Error stderr=subprocess.PIPE) Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\lib\subprocess.py", line 800, in __init__ Error restore_signals, start_new_session) Error File "E:\Repos\CodeProject.AI-Server\src\AnalysisLayer\bin\windows\python37\lib\subprocess.py", line 1207, in _execute_child Error startupinfo) Error FileNotFoundError: [WinError 2] The system cannot find the file specified