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

Commits on Aug 30, 2023

  1. 根据推理对三通道的图像需求,以及opencv中imread参数说明IMREAD_COLOR(If set, always convert …

    …image to the 3 channel BGR color image.),因此修改该读取参数,以解决后续通道不匹配问题。
    Gmgge committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    8d1fc41 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. fix:修复通道数不匹配造成的PPOCRLabel启动失败问题#10748,根据更新日志发现#10655,由于paddleocr中增加了对…

    …透明色的需求,由于在check_img中以及存在对单通道图像转三通道图像的处理,因此将该四通道图像处理成三通道的图像也放入该check_img,并统一三通道图像输出逻辑。
    
    add:由于函数复杂度增高,增加注释。
    Gmgge committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    aeeec3c View commit details
    Browse the repository at this point in the history