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

fix:修复check_img对图像检查的逻辑,统一输出为三通道,并增加对四通道图像兼容的调用,以修复paddlelabel无法启动的问题 #10835

Closed
wants to merge 2 commits into from

Conversation

Gmgge
Copy link
Contributor

@Gmgge Gmgge commented Sep 6, 2023

fix:修复通道数不匹配造成的PPOCRLabel启动失败问题#10748,根据更新日志发现#10655,由于paddleocr中增加了对透明色的需求,由于在check_img中以及存在对单通道图像转三通道图像的处理,因此将该四通道图像处理成三通道的图像也放入该check_img,并统一三通道图像输出逻辑。
add:由于check_img函数复杂度增高,增加注释。

…image to the 3 channel BGR color image.),因此修改该读取参数,以解决后续通道不匹配问题。
…透明色的需求,由于在check_img中以及存在对单通道图像转三通道图像的处理,因此将该四通道图像处理成三通道的图像也放入该check_img,并统一三通道图像输出逻辑。

add:由于函数复杂度增高,增加注释。
@paddle-bot
Copy link

paddle-bot bot commented Sep 6, 2023

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants