From 77689acb67fb1743b2aed602774e2a42d86987f2 Mon Sep 17 00:00:00 2001 From: MistEO Date: Wed, 18 Aug 2021 23:07:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E2=80=9C=E7=B2=BE=E8=8B=B1?= =?UTF-8?q?=E5=8C=96=E2=80=9D=E8=AF=86=E5=88=ABdemo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MeoAssistance/include/Identify.h | 15 +- MeoAssistance/src/Assistance.cpp | 21 +- MeoAssistance/src/Identify.cpp | 387 ++++++++++++------------------- MeoAssistance/src/Task.cpp | 51 +++- Tools/TestCaller/main.cpp | 6 +- resource/operators/Elite1.png | Bin 0 -> 36641 bytes resource/operators/Elite2.png | Bin 0 -> 36392 bytes 7 files changed, 229 insertions(+), 251 deletions(-) create mode 100644 resource/operators/Elite1.png create mode 100644 resource/operators/Elite2.png diff --git a/MeoAssistance/include/Identify.h b/MeoAssistance/include/Identify.h index 829b5694d9..40e74e911b 100644 --- a/MeoAssistance/include/Identify.h +++ b/MeoAssistance/include/Identify.h @@ -28,9 +28,10 @@ namespace asst { // return tuple< algorithmType, suitability, matched asst::rect> std::tuple find_image(const cv::Mat& image, const std::string& templ, double templ_threshold); + // return pair< suitability, raw opencv::point> + std::pair match_template(const cv::Mat& cur, const cv::Mat& templ); + std::optional