-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat: 根据灰度二值化关卡名后再识别 #7848
feat: 根据灰度二值化关卡名后再识别 #7848
Conversation
c9f977a
to
61c7ab5
Compare
else { | ||
cv::Mat bin3; | ||
std::array arr_bin3 { bin, bin, bin }; | ||
cv::merge(arr_bin3, bin3); | ||
ocr_analyzer = OCRer(bin3, bounding_rect); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉这个单通道变三通道有点蠢,但是单通道直接传给 OCR 会出问题,不知道有没有更好的办法
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没办法,模型的输入要求是三通道。无所谓吧这个也不影响多少性能(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉这个单通道变三通道有点蠢,但是单通道直接传给 OCR 会出问题,不知道有没有更好的办法
也许可以 cvtColor(COLOR_GRAY2RGB)
?
61c7ab5
to
a07f37e
Compare
这个要不要合了发个v5.0.0 |
测试集:(会被识别为
WB+7
)