mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
fix.修复编队干员名识别错误
This commit is contained in:
@@ -3956,6 +3956,10 @@
|
||||
[
|
||||
"^F$",
|
||||
"山"
|
||||
],
|
||||
[
|
||||
"^U$",
|
||||
"山"
|
||||
]
|
||||
],
|
||||
"roi": [
|
||||
@@ -4640,9 +4644,9 @@
|
||||
"action": "DoNothing",
|
||||
"rectMove": [
|
||||
150,
|
||||
-30,
|
||||
-50,
|
||||
180,
|
||||
65
|
||||
120
|
||||
]
|
||||
},
|
||||
"Roguelike1SkillSelectionRect": {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user