mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
Merge remote-tracking branch 'myfork/dev' into dev
This commit is contained in:
@@ -82,7 +82,7 @@ namespace asst::infrast
|
||||
SkillsComb() = default;
|
||||
SkillsComb(std::unordered_set<Skill> skill_vec)
|
||||
{
|
||||
skills = move(skill_vec);
|
||||
skills = std::move(skill_vec);
|
||||
for (const auto& s : skills) {
|
||||
for (const auto& [key, value] : s.efficient) {
|
||||
efficient[key] += value;
|
||||
|
||||
@@ -53,7 +53,7 @@ bool asst::OcrPack::load(const std::string& dir)
|
||||
return m_ocr != nullptr;
|
||||
}
|
||||
|
||||
std::vector<asst::TextRect> asst::OcrPack::recognize(const cv::Mat& image, const TextRectProc& pred, bool without_det)
|
||||
std::vector<asst::TextRect> asst::OcrPack::recognize(const cv::Mat& image, const asst::TextRectProc& pred, bool without_det)
|
||||
{
|
||||
LogTraceFunction;
|
||||
|
||||
@@ -118,7 +118,7 @@ std::vector<asst::TextRect> asst::OcrPack::recognize(const cv::Mat& image, const
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<asst::TextRect> asst::OcrPack::recognize(const cv::Mat& image, const Rect& roi, const TextRectProc& pred, bool without_det)
|
||||
std::vector<asst::TextRect> asst::OcrPack::recognize(const cv::Mat& image, const Rect& roi, const asst::TextRectProc& pred, bool without_det)
|
||||
{
|
||||
auto rect_cor = [&roi, &pred, &without_det](TextRect& tr) -> bool {
|
||||
if (without_det) {
|
||||
|
||||
Reference in New Issue
Block a user