From 0aa8221d9c9309bc26542d9d58a331ccc6f97c90 Mon Sep 17 00:00:00 2001 From: MissPenguin Date: Wed, 3 Nov 2021 09:24:52 +0000 Subject: [PATCH] Permute_batch -> PermuteBatch --- deploy/cpp_infer/include/ocr_rec.h | 2 +- deploy/cpp_infer/include/preprocess_op.h | 2 +- deploy/cpp_infer/src/preprocess_op.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/cpp_infer/include/ocr_rec.h b/deploy/cpp_infer/include/ocr_rec.h index d271b9b3..ff80ba52 100644 --- a/deploy/cpp_infer/include/ocr_rec.h +++ b/deploy/cpp_infer/include/ocr_rec.h @@ -89,7 +89,7 @@ private: // pre-process CrnnResizeImg resize_op_; Normalize normalize_op_; - Permute_batch permute_op_; + PermuteBatch permute_op_; // post-process PostProcessor post_processor_; diff --git a/deploy/cpp_infer/include/preprocess_op.h b/deploy/cpp_infer/include/preprocess_op.h index c9347330..31217de3 100644 --- a/deploy/cpp_infer/include/preprocess_op.h +++ b/deploy/cpp_infer/include/preprocess_op.h @@ -44,7 +44,7 @@ public: virtual void Run(const cv::Mat *im, float *data); }; -class Permute_batch { +class PermuteBatch { public: virtual void Run(const std::vector imgs, float *data); }; diff --git a/deploy/cpp_infer/src/preprocess_op.cpp b/deploy/cpp_infer/src/preprocess_op.cpp index 4c2c2f7a..14e8bd1d 100644 --- a/deploy/cpp_infer/src/preprocess_op.cpp +++ b/deploy/cpp_infer/src/preprocess_op.cpp @@ -40,7 +40,7 @@ void Permute::Run(const cv::Mat *im, float *data) { } } -void Permute_batch::Run(const std::vector imgs, float *data) { +void PermuteBatch::Run(const std::vector imgs, float *data) { for (int j = 0; j < imgs.size(); j ++){ int rh = imgs[j].rows; int rw = imgs[j].cols; -- GitLab