fix.修复一些掉落识别错误的情况

This commit is contained in:
MistEO
2022-05-20 23:04:27 +08:00
parent 8c5d471f9c
commit 2f5fb22935
4 changed files with 10 additions and 6 deletions

View File

@@ -368,7 +368,7 @@ void asst::Controller::clear_info() noexcept
m_width = 0;
m_height = 0;
m_control_scale = 1.0;
m_scale_size = decltype(m_scale_size)();
m_scale_size = { WindowWidthDefault, WindowHeightDefault };
}
int asst::Controller::push_cmd(const std::string& cmd)
@@ -395,7 +395,7 @@ bool asst::Controller::screencap()
//if (true) {
// std::unique_lock<std::shared_mutex> image_lock(m_image_mutex);
// m_cache_image = cv::imread("err.png");
// m_cache_image = cv::imread("err/1.png");
// return true;
//}