Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.7.0.3以后部分图片识别有问题 #12147

Closed
jaminegod opened this issue May 21, 2024 · 7 comments
Closed

v2.7.0.3以后部分图片识别有问题 #12147

jaminegod opened this issue May 21, 2024 · 7 comments
Assignees
Labels
bug Something isn't working status/close

Comments

@jaminegod
Copy link

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

  • 系统环境/System Environment:aistudio
  • 版本号/Version:Paddle:2.6.1-gpu PaddleOCR:2.7.0.3以后 问题相关组件/Related components:paddleocr
  • 运行指令/Command Code:paddleocr --use_gpu=True --det=True --rec=True --ocr_version=PP-OCRv3 --image_dir=/home/aistudio/data/
  • 完整报错/Complete Error Message:无错误,但部分图片识别不对
    20240521093904
    但v2.7.0.2及之前版本可以识别,如下:
    20240521094149
@GreatV
Copy link
Collaborator

GreatV commented May 21, 2024

麻烦提供一下测试图片

@jaminegod
Copy link
Author

jaminegod commented May 21, 2024 via email

@GreatV
Copy link
Collaborator

GreatV commented May 21, 2024

@jaminegod 无法看到图片,可以通过邮件发给我。xinwang614@gmail.com

@jaminegod
Copy link
Author

jaminegod commented May 21, 2024 via email

@GreatV
Copy link
Collaborator

GreatV commented May 21, 2024

@jaminegod 需要指定 --use_angle_cls=True

@UserWangZz
Copy link
Collaborator

使用PIL读取图片有可能会造成图片方向问题
可以参考这个
https://blog.csdn.net/sxrkm6s4csx/article/details/117525646
from PIL import Image, ImageOps

img = Image.open(img_path)
img = ImageOps.exif_transpose(img)

@TingquanGao
Copy link
Collaborator

该问题已解决,issue关闭,如仍有问题可以reopen或新提issue~

@TingquanGao TingquanGao added the bug Something isn't working label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status/close
Projects
None yet
Development

No branches or pull requests

4 participants