fix.修复编队干员名识别错误

This commit is contained in:
MistEO
2022-03-14 22:01:27 +08:00
parent 51d75bec7d
commit 61c41eb47e
2 changed files with 12 additions and 3 deletions

View File

@@ -3956,6 +3956,10 @@
[
"^F$",
"山"
],
[
"^U$",
"山"
]
],
"roi": [
@@ -4640,9 +4644,9 @@
"action": "DoNothing",
"rectMove": [
150,
-30,
-50,
180,
65
120
]
},
"Roguelike1SkillSelectionRect": {

View File

@@ -48,7 +48,12 @@ std::string asst::RoguelikeSkillSelectionImageAnalyzer::name_analyze(const Rect&
return std::string();
}
analyzer.sort_result_by_score();
return analyzer.get_result().front().text;
for (const auto& result : analyzer.get_result()) {
if (result.text.find("临时招募") == std::string::npos) {
return result.text;
}
}
return std::string();
}
std::vector<asst::Rect> asst::RoguelikeSkillSelectionImageAnalyzer::skill_analyze(const Rect& roi)