From 8a5df1103deff5ed18096a07ef79df279eb49495 Mon Sep 17 00:00:00 2001 From: Double_V Date: Mon, 26 Dec 2022 10:55:37 +0800 Subject: [PATCH] Revert "Fix padding value in rec model, and box sort in det model (#8552)" This reverts commit 5aff7e6362de527af86d993ba5465f18daf9dece. --- 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 4dabb120..b0261a9e 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, - {0, 0, 0}); + {127, 127, 127}); } void ClsResizeImg::Run(const cv::Mat &img, cv::Mat &resize_img, -- GitLab