mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
perf: 避免不必要拷贝
[skip changelog]
This commit is contained in:
@@ -242,9 +242,8 @@ bool asst::BattleHelper::update_deployment(bool init, const cv::Mat& reusable, b
|
||||
Matcher re_matcher(name_image);
|
||||
re_matcher.set_task_info("BattleAvatarReMatch");
|
||||
re_matcher.set_templ(oper.avatar);
|
||||
auto rematched = re_matcher.analyze();
|
||||
if (rematched) {
|
||||
oper_rect = rematched->rect;
|
||||
if (re_matcher.analyze()) {
|
||||
oper_rect = re_matcher.get_result().rect;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user