mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
fix: 隐秘战线结局识别
This commit is contained in:
@@ -390,7 +390,7 @@ std::string SecretFrontTaskPlugin::read_stage_name(const cv::Mat& image, int tot
|
||||
// 只保留类似 "1A/1B/2A/2B/3A/3B/3C" 的短标识
|
||||
std::string short_name;
|
||||
for (char ch : text) {
|
||||
if ((ch >= '1' && ch <= '3') || (ch >= 'A' && ch <= 'E') || (ch >= 'a' && ch <= 'e')) {
|
||||
if ((ch >= '1' && ch <= '4') || (ch >= 'A' && ch <= 'E') || (ch >= 'a' && ch <= 'e')) {
|
||||
short_name.push_back(static_cast<char>(std::toupper(static_cast<unsigned char>(ch))));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user