Comments (3)
[2024/05/16 11:00:15] ppocr ERROR: error in loading image:abc/four-part.1.3.jpg Traceback (most recent call last): File "paddle_and_annotate.py", line 25, in result = ocr_model.ocr(img_path) File "/usr/local/lib/python3.8/site-packages/paddleocr/paddleocr.py", line 660, in ocr img = preprocess_image(img) File "/usr/local/lib/python3.8/site-packages/paddleocr/paddleocr.py", line 650, in preprocess_image _image = alpha_to_color(_image, alpha_color) File "/usr/local/lib/python3.8/site-packages/paddleocr/ppocr/utils/utility.py", line 86, in alpha_to_color if len(img.shape) == 3 and img.shape[2] == 4: AttributeError: 'NoneType' object has no attribute 'shape'
from this error, make sure the image path that you give is correct, this error show's that paddleocr is not read the image correctly.
from paddleocr.
understood and I was able to resolve it by changing the version of paddlepaddle-gpu to 2.5.2
can you please help me understand why am I seeing the following warning log possibly from PaddleOCR
W0517 10:00:34.561643 259 default_variables.cpp:95] Fail to fscanf: Success [0]
from paddleocr.
This is a C++ error, seems to be a warning about file reading, more context is needed to determine the specific problem.
from paddleocr.
Related Issues (20)
- OCR on bounding boxes of an image HOT 1
- Dynamic Merging of Word Bounding Boxes HOT 1
- 混贴票据识别 HOT 1
- ch_PP-OCRv4_rec_svtr_large.yml训练导出的模型,使用predict_rec.py预测宽度比较大的图片时出现(InvalidArgument) Broadcast dimension mismatch HOT 5
- server模型推理出错(core dumped) HOT 3
- How to find rotated image.
- 长文本行识别,偶尔会出现单个字符被识别成2个相同字符的错误,比如,只有一个"一",识别成2个了,怎样改善? HOT 5
- Notice of PPOCRLabel and StyleText Project Migration HOT 5
- 表格识别内容没有正常转义 '<' '>'
- ppocrv4 det 微调 HOT 1
- svtr yml用来训练,爆显存,batch_size=1也不行 HOT 4
- How to recognize the digital numbers in the rectangle box with paddleocr? HOT 1
- Error about ppocrlabel, when start ppocrlabl HOT 2
- pdf扫描件表格识别不准确,如何优化? HOT 7
- cudaErrorInitializationError at ../paddle/phi/backends/gpu/cuda/cuda_info.cc:178 HOT 5
- PP-ChatOCRv2-common 默认的提示词规则是什么样的呢?以及数据微调格式
- paddleocr 在华为910b的npu上跑很慢且只跑了一张卡 HOT 2
- 报错-非法指令 coredump HOT 4
- OCR system producing no output when run on GPU HOT 5
- Using multiple dictionaries with paddleocr HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paddleocr.