Skip to content

cls结果可视化左侧图为旋转后的图,正常应为原始图 #616

@SWHL

Description

@SWHL

问题描述 / Problem Description

今天在测试方向分类模型时,发现可视化结果中,左侧图为旋转后的图。

Image

运行环境 / Runtime Environment

python: 3.10
rapidocr: 3.4.5

复现代码 / Reproduction Code

from rapidocr import RapidOCR

engine = RapidOCR()

img_url = "https://raw.githubusercontent.com/RapidAI/RapidOCR/refs/heads/main/python/tests/test_files/text_cls.jpg"
result = engine(img_url, use_cls=True, use_det=False, use_rec=False)
print(result)

result.vis("vis_result.jpg")

可能解决方案 / Possible solutions

img_list = copy.deepcopy(img_list)

区分img_list变量

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions