-
Notifications
You must be signed in to change notification settings - Fork 10k
Open
Description
🔎 Search before asking
- 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 (问题描述)
正在处理第 2 张图片: images/weixin.png
Unknown exception
处理 images/weixin.png 出错: Unknown exception, 已跳过
所有图片处理完成!
🏃♂️ Environment (运行环境)
OS Windows11
Environment Python
Python 3.12.12
PaddleOCR 3.3.3
Install Wheel
RAM 32G
CPU Intel i7
CUDA None
🌰 Minimal Reproducible Example (最小可复现问题的Demo)
for idx, img_path in enumerate(image_list, 1):
if not os.path.exists(img_path):
print(f"文件不存在: {img_path}, 已跳过")
continue
print(f"正在处理第 {idx} 张图片: {img_path}")
try:
# 使用 OpenCV 读取图片并转换成 RGB
img = cv2.imread(img_path)
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
# 传给 OCR
result = ocr.predict(img)
except Exception as e:
print(e)
print(f"处理 {img_path} 出错: {e}, 已跳过")
continueReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels