@ -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
@ -127,6 +127,7 @@ void CRNNRecognizer::LoadModel(const std::string &model_dir) {
@ -186,4 +187,4 @@ cv::Mat CRNNRecognizer::GetRotateCropImage(const cv::Mat &srcimage,