diff --git a/deploy/cpp_infer/src/ocr_det.cpp b/deploy/cpp_infer/src/ocr_det.cpp index cddb0a8d84f4c2b11ecad1b6dc946334c26c46d9..c87b653ceab011ef0593e7fb87358325deaf882b 100644 --- a/deploy/cpp_infer/src/ocr_det.cpp +++ b/deploy/cpp_infer/src/ocr_det.cpp @@ -38,6 +38,7 @@ void DBDetector::LoadModel(const std::string &model_dir) { config.SwitchIrOptim(true); config.EnableMemoryOptim(); + config.DisableGlogInfo(); this->predictor_ = CreatePaddlePredictor(config); } @@ -106,4 +107,4 @@ void DBDetector::Run(cv::Mat &img, } } -} // namespace PaddleOCR \ No newline at end of file +} // namespace PaddleOCR diff --git a/deploy/cpp_infer/src/ocr_rec.cpp b/deploy/cpp_infer/src/ocr_rec.cpp index 446f9bc16baabe11fbaa972e3174e036874d7e74..bbd7b9b2269ca776c2433d502893986ebda809c3 100644 --- a/deploy/cpp_infer/src/ocr_rec.cpp +++ b/deploy/cpp_infer/src/ocr_rec.cpp @@ -127,6 +127,7 @@ void CRNNRecognizer::LoadModel(const std::string &model_dir) { config.SwitchIrOptim(true); config.EnableMemoryOptim(); + config.DisableGlogInfo(); this->predictor_ = CreatePaddlePredictor(config); } @@ -186,4 +187,4 @@ cv::Mat CRNNRecognizer::GetRotateCropImage(const cv::Mat &srcimage, } } -} // namespace PaddleOCR \ No newline at end of file +} // namespace PaddleOCR