fix: warnings

This commit is contained in:
MistEO
2022-11-12 00:19:22 +08:00
parent 601177a011
commit 46db9fcd55
4 changed files with 5 additions and 5 deletions

View File

@@ -58,7 +58,6 @@ namespace asst
void clear_cache();
bool inited() const noexcept;
bool m_inited = false;
std::string m_uuid;
std::shared_ptr<Controller> m_ctrler = nullptr;

View File

@@ -133,7 +133,7 @@ bool asst::BattleImageAnalyzer::opers_analyze()
const auto click_move = Task.get("BattleOperClickRange")->rect_move;
const auto role_move = Task.get("BattleOperRoleRange")->rect_move;
const auto cost_move = Task.get("BattleOperCostRange")->rect_move;
// const auto cost_move = Task.get("BattleOperCostRange")->rect_move;
const auto avlb_move = Task.get("BattleOperAvailable")->rect_move;
const auto cooling_move = Task.get("BattleOperCooling")->rect_move;

View File

@@ -54,7 +54,7 @@ void asst::OcrWithFlagTemplImageAnalyzer::set_task_info(const std::string& templ
const std::string& ocr_task_name)
{
auto ocr_task_ptr = Task.get<OcrTaskInfo>(ocr_task_name);
OcrWithPreprocessImageAnalyzer::set_task_info(*ocr_task_ptr);
set_task_info(*ocr_task_ptr);
m_flag_rect_move = ocr_task_ptr->roi;
m_multi_match_image_analyzer.set_task_info(templ_task_name);
}

View File

@@ -20,11 +20,12 @@ namespace asst
virtual const std::vector<TextRect>& get_result() const noexcept override;
virtual std::vector<TextRect>& get_result() noexcept override;
void set_task_info(const std::string& templ_task_name,
const std::string& ocr_task_name); // FIXME: hiding virtual function
void set_task_info(const std::string& templ_task_name, const std::string& ocr_task_name);
void set_flag_rect_move(Rect flag_rect_move);
protected:
using OcrWithPreprocessImageAnalyzer::set_task_info;
MultiMatchImageAnalyzer m_multi_match_image_analyzer;
Rect m_flag_rect_move;
std::vector<TextRect> m_all_result;