From 5aff7e6362de527af86d993ba5465f18daf9dece Mon Sep 17 00:00:00 2001 From: yunyaoXYY <109218879+yunyaoXYY@users.noreply.github.com> Date: Mon, 26 Dec 2022 10:51:22 +0800 Subject: [PATCH] Fix padding value in rec model, and box sort in det model (#8552) --- deploy/cpp_infer/src/preprocess_op.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/cpp_infer/src/preprocess_op.cpp b/deploy/cpp_infer/src/preprocess_op.cpp index b0261a9e..4dabb120 100644 --- a/deploy/cpp_infer/src/preprocess_op.cpp +++ b/deploy/cpp_infer/src/preprocess_op.cpp @@ -112,7 +112,7 @@ void CrnnResizeImg::Run(const cv::Mat &img, cv::Mat &resize_img, float wh_ratio, cv::INTER_LINEAR); cv::copyMakeBorder(resize_img, resize_img, 0, 0, 0, int(imgW - resize_img.cols), cv::BORDER_CONSTANT, - {127, 127, 127}); + {0, 0, 0}); } void ClsResizeImg::Run(const cv::Mat &img, cv::Mat &resize_img, -- GitLab