完成办公室换班任务流程

This commit is contained in:
MistEO
2021-09-11 15:19:23 +08:00
parent 9c3df883ef
commit bce5fa0740
9 changed files with 117 additions and 3 deletions

View File

@@ -86,6 +86,36 @@ bool asst::InfrastAbstractTask::swipe(bool reverse)
//#endif
}
bool asst::InfrastAbstractTask::swipe_left()
{
const static Rect right_rect(Configer::WindowWidthDefault * 0.8,
Configer::WindowHeightDefault * 0.4,
Configer::WindowWidthDefault * 0.1,
Configer::WindowHeightDefault * 0.2);
const static Rect left_rect(Configer::WindowWidthDefault * 0.1,
Configer::WindowHeightDefault * 0.4,
Configer::WindowWidthDefault * 0.1,
Configer::WindowHeightDefault * 0.2);
return m_controller_ptr->swipe(left_rect, right_rect);
}
bool asst::InfrastAbstractTask::swipe_right()
{
const static Rect right_rect(Configer::WindowWidthDefault * 0.8,
Configer::WindowHeightDefault * 0.4,
Configer::WindowWidthDefault * 0.1,
Configer::WindowHeightDefault * 0.2);
const static Rect left_rect(Configer::WindowWidthDefault * 0.1,
Configer::WindowHeightDefault * 0.4,
Configer::WindowWidthDefault * 0.1,
Configer::WindowHeightDefault * 0.2);
return m_controller_ptr->swipe(right_rect, left_rect);
}
std::vector<TextArea> asst::InfrastAbstractTask::detect_operators_name(
const cv::Mat& image,
std::unordered_map<std::string,