From 8d47ab6eab5a7ae1cd2118cd55421489c4f9fbfd Mon Sep 17 00:00:00 2001 From: MissPenguin Date: Wed, 3 Nov 2021 07:28:50 +0000 Subject: [PATCH] add batch infer for cpp rec --- deploy/cpp_infer/include/ocr_rec.h | 1 - deploy/cpp_infer/include/utility.h | 1 - deploy/cpp_infer/src/utility.cpp | 1 - 3 files changed, 3 deletions(-) diff --git a/deploy/cpp_infer/include/ocr_rec.h b/deploy/cpp_infer/include/ocr_rec.h index 32c0c9f7..d271b9b3 100644 --- a/deploy/cpp_infer/include/ocr_rec.h +++ b/deploy/cpp_infer/include/ocr_rec.h @@ -66,7 +66,6 @@ public: // Load Paddle inference model void LoadModel(const std::string &model_dir); -// void Run(cv::Mat &img, std::vector *times); void Run(std::vector img_list, std::vector *times); private: diff --git a/deploy/cpp_infer/include/utility.h b/deploy/cpp_infer/include/utility.h index b6f68aee..5797559f 100644 --- a/deploy/cpp_infer/include/utility.h +++ b/deploy/cpp_infer/include/utility.h @@ -51,7 +51,6 @@ public: static cv::Mat GetRotateCropImage(const cv::Mat &srcimage, std::vector> box); - // 实现argsort功能 static std::vector argsort(const std::vector& array); }; diff --git a/deploy/cpp_infer/src/utility.cpp b/deploy/cpp_infer/src/utility.cpp index 49d3cb81..c3c7b848 100644 --- a/deploy/cpp_infer/src/utility.cpp +++ b/deploy/cpp_infer/src/utility.cpp @@ -147,7 +147,6 @@ cv::Mat Utility::GetRotateCropImage(const cv::Mat &srcimage, } } -// 实现argsort功能 std::vector Utility::argsort(const std::vector& array) { const int array_len(array.size()); -- GitLab