fix.修复异步滑动带来的问题,增加额外等待时间

This commit is contained in:
MistEO
2021-09-29 22:58:08 +08:00
parent 60b472623b
commit 8470e95973
6 changed files with 24 additions and 25 deletions

View File

@@ -137,7 +137,7 @@ std::optional<std::unordered_map<std::string, OperInfrastInfo>> asst::InfrastPro
const cv::Mat& image = m_controller_ptr->get_image(true);
// 异步进行滑动操作
std::future<bool> swipe_future = std::async(
std::launch::async, &InfrastProductionTask::swipe, this, false);
std::launch::async, &InfrastProductionTask::swipe, this, false, WinMacro::SwipeExtraDelayDefault);
auto cur_name_textarea = detect_operators_name(image, feature_cond, feature_whatever);
for (const TextArea& textarea : cur_name_textarea) {