mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
fix: warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user