From 09bcc0407871c0704a863c033e4debfbec2113a1 Mon Sep 17 00:00:00 2001 From: MistEO Date: Thu, 29 Jul 2021 23:45:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=9B=BF=E6=8D=A2OCR?= =?UTF-8?q?=E5=B8=B8=E8=A7=81=E7=9A=84=E8=AF=86=E5=88=AB=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E3=80=81=E5=A2=9E=E5=8A=A0=E7=82=B9=E5=87=BB9=E5=B0=8F?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MeoAssistance/include/Configer.h | 1 + MeoAssistance/include/Identify.h | 4 +-- MeoAssistance/src/Assistance.cpp | 36 ++++++++++++++++++++++-- MeoAssistance/src/Configer.cpp | 4 +++ resource/config.json | 14 ++++++++- resource/template/RecruitTimeReduce.png | Bin 0 -> 42483 bytes 6 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 resource/template/RecruitTimeReduce.png diff --git a/MeoAssistance/include/Configer.h b/MeoAssistance/include/Configer.h index d109c7710d..73dc391b91 100644 --- a/MeoAssistance/include/Configer.h +++ b/MeoAssistance/include/Configer.h @@ -36,6 +36,7 @@ namespace asst { Options m_options; std::unordered_map m_tasks; std::unordered_map m_handles; + std::unordered_map m_ocr_replace; private: bool _load(const std::string& filename); diff --git a/MeoAssistance/include/Identify.h b/MeoAssistance/include/Identify.h index 1c25fdb965..9ee22aae83 100644 --- a/MeoAssistance/include/Identify.h +++ b/MeoAssistance/include/Identify.h @@ -37,14 +37,14 @@ namespace asst { std::optional find_text(const cv::Mat& mat, const std::string& text); std::vector