From 1d46dd696f293cb7449b2228ef9f22ba234f1bc4 Mon Sep 17 00:00:00 2001 From: littletomatodonkey Date: Wed, 15 Jul 2020 13:33:26 +0000 Subject: [PATCH] Support to recognize space text --- deploy/cpp_infer/include/ocr_rec.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/cpp_infer/include/ocr_rec.h b/deploy/cpp_infer/include/ocr_rec.h index 18b31b6b..471aeb58 100644 --- a/deploy/cpp_infer/include/ocr_rec.h +++ b/deploy/cpp_infer/include/ocr_rec.h @@ -46,6 +46,7 @@ public: this->use_mkldnn_ = use_mkldnn; this->label_list_ = Utility::ReadDict(label_path); + this->label_list_.push_back(" "); LoadModel(model_dir); } @@ -83,4 +84,4 @@ private: }; // class CrnnRecognizer -} // namespace PaddleOCR \ No newline at end of file +} // namespace PaddleOCR