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

feat: 根据灰度二值化关卡名后再识别 #7848

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

zzyyyl
Copy link
Member

@zzyyyl zzyyyl commented Dec 31, 2023

测试集:(会被识别为 WB+7

2024-01-24_23-38-02-332_raw

@github-actions github-actions bot added the MAA Team Opened by a member of the MAA Team label Dec 31, 2023
@zzyyyl zzyyyl closed this in #7850 Dec 31, 2023
@zzyyyl zzyyyl deleted the feat/analyze_stage_code branch December 31, 2023 13:45
@zzyyyl zzyyyl restored the feat/analyze_stage_code branch January 25, 2024 10:59
@zzyyyl zzyyyl reopened this Jan 25, 2024
@zzyyyl zzyyyl force-pushed the feat/analyze_stage_code branch 3 times, most recently from c9f977a to 61c7ab5 Compare January 26, 2024 06:28
Comment on lines +44 to +49
else {
cv::Mat bin3;
std::array arr_bin3 { bin, bin, bin };
cv::merge(arr_bin3, bin3);
ocr_analyzer = OCRer(bin3, bounding_rect);
}
Copy link
Member Author

@zzyyyl zzyyyl Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉这个单通道变三通道有点蠢,但是单通道直接传给 OCR 会出问题,不知道有没有更好的办法

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没办法,模型的输入要求是三通道。无所谓吧这个也不影响多少性能(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉这个单通道变三通道有点蠢,但是单通道直接传给 OCR 会出问题,不知道有没有更好的办法

也许可以 cvtColor(COLOR_GRAY2RGB) ?

@status102
Copy link
Member

这个要不要合了发个v5.0.0

@status102 status102 merged commit 979e3af into dev Mar 8, 2024
21 checks passed
@status102 status102 deleted the feat/analyze_stage_code branch March 8, 2024 00:59
Constrat added a commit that referenced this pull request Mar 12, 2024
status102 added a commit that referenced this pull request Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MAA Team Opened by a member of the MAA Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants