-
-
Notifications
You must be signed in to change notification settings - Fork 519
Open
Description
问题描述 / Problem Description
PNG图片,经ocr识别后使用vis('result.png')后结果图片色彩有误。
如原图:
结果可视化保存后:
运行环境 / Runtime Environment
Win10 22H2
复现代码 / Reproduction Code
from rapidocr import RapidOCR
engine = RapidOCR()
img_url = "img.jpg"
result = engine(img_url)
print(result)
result.vis("vis_result.jpg")
可能解决方案 / Possible solutions
图片转np后剔除alpha通道,并按bgr传入engine,最终result.vis能够正常显示。
Metadata
Metadata
Assignees
Labels
No labels