mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
perf: 被禁用的关卡错误进入关卡名二次识别
This commit is contained in:
@@ -54,6 +54,7 @@ bool asst::StageDropsImageAnalyzer::analyze_stage_code()
|
||||
{
|
||||
LogTraceFunction;
|
||||
|
||||
static const std::string invalid_stage_code = "_INVALID_";
|
||||
std::string stage_code;
|
||||
Rect text_rect;
|
||||
|
||||
@@ -69,7 +70,7 @@ bool asst::StageDropsImageAnalyzer::analyze_stage_code()
|
||||
}
|
||||
|
||||
// 如果不带 '-',用非 char 模型再识别一次(适配剿灭/活动等特殊关卡码)
|
||||
if (stage_code.find('-') == std::string::npos) {
|
||||
if (stage_code != invalid_stage_code && stage_code.find('-') == std::string::npos) {
|
||||
RegionOCRer analyzer(m_image);
|
||||
analyzer.set_task_info("StageDrops-StageName");
|
||||
analyzer.set_use_char_model(false);
|
||||
|
||||
Reference in New Issue
Block a user