From ba5d50f537427d129c31402c179c4c50174b37b4 Mon Sep 17 00:00:00 2001 From: wangjiawei04 Date: Mon, 19 Oct 2020 06:58:39 +0000 Subject: [PATCH] remove OCRReader --- deploy/pdserving/clas_local_server.py | 2 -- deploy/pdserving/clas_rpc_server.py | 2 -- deploy/pdserving/ocr_local_server.py | 1 - deploy/pdserving/ocr_rpc_server.py | 1 - deploy/pdserving/rec_local_server.py | 2 -- deploy/pdserving/rec_rpc_server.py | 2 -- 6 files changed, 10 deletions(-) diff --git a/deploy/pdserving/clas_local_server.py b/deploy/pdserving/clas_local_server.py index 10de66ce..22f0c274 100644 --- a/deploy/pdserving/clas_local_server.py +++ b/deploy/pdserving/clas_local_server.py @@ -13,7 +13,6 @@ # limitations under the License. from paddle_serving_client import Client -from paddle_serving_app.reader import OCRReader import cv2 import sys import numpy as np @@ -90,7 +89,6 @@ class TextClassifierHelper(TextClassifier): class OCRService(WebService): def init_rec(self): - self.ocr_reader = OCRReader() self.text_classifier = TextClassifierHelper(global_args) def preprocess(self, feed=[], fetch=[]): diff --git a/deploy/pdserving/clas_rpc_server.py b/deploy/pdserving/clas_rpc_server.py index 9939ba45..96d5ff3c 100644 --- a/deploy/pdserving/clas_rpc_server.py +++ b/deploy/pdserving/clas_rpc_server.py @@ -13,7 +13,6 @@ # limitations under the License. from paddle_serving_client import Client -from paddle_serving_app.reader import OCRReader import cv2 import sys import numpy as np @@ -95,7 +94,6 @@ class TextClassifierHelper(TextClassifier): class OCRService(WebService): def init_rec(self): - self.ocr_reader = OCRReader() self.text_classifier = TextClassifierHelper(global_args) def preprocess(self, feed=[], fetch=[]): diff --git a/deploy/pdserving/ocr_local_server.py b/deploy/pdserving/ocr_local_server.py index 27631a18..8761d183 100644 --- a/deploy/pdserving/ocr_local_server.py +++ b/deploy/pdserving/ocr_local_server.py @@ -13,7 +13,6 @@ # limitations under the License. from paddle_serving_client import Client -from paddle_serving_app.reader import OCRReader import cv2 import sys import numpy as np diff --git a/deploy/pdserving/ocr_rpc_server.py b/deploy/pdserving/ocr_rpc_server.py index 5567b225..199ea1f0 100644 --- a/deploy/pdserving/ocr_rpc_server.py +++ b/deploy/pdserving/ocr_rpc_server.py @@ -13,7 +13,6 @@ # limitations under the License. from paddle_serving_client import Client -from paddle_serving_app.reader import OCRReader import cv2 import sys import numpy as np diff --git a/deploy/pdserving/rec_local_server.py b/deploy/pdserving/rec_local_server.py index 40266e31..f8b0e56b 100644 --- a/deploy/pdserving/rec_local_server.py +++ b/deploy/pdserving/rec_local_server.py @@ -13,7 +13,6 @@ # limitations under the License. from paddle_serving_client import Client -from paddle_serving_app.reader import OCRReader import cv2 import sys import numpy as np @@ -135,7 +134,6 @@ class TextRecognizerHelper(TextRecognizer): class OCRService(WebService): def init_rec(self): - self.ocr_reader = OCRReader() self.text_recognizer = TextRecognizerHelper(global_args) def preprocess(self, feed=[], fetch=[]): diff --git a/deploy/pdserving/rec_rpc_server.py b/deploy/pdserving/rec_rpc_server.py index cb43eb99..21966941 100644 --- a/deploy/pdserving/rec_rpc_server.py +++ b/deploy/pdserving/rec_rpc_server.py @@ -13,7 +13,6 @@ # limitations under the License. from paddle_serving_client import Client -from paddle_serving_app.reader import OCRReader import cv2 import sys import numpy as np @@ -140,7 +139,6 @@ class TextRecognizerHelper(TextRecognizer): class OCRService(WebService): def init_rec(self): - self.ocr_reader = OCRReader() self.text_recognizer = TextRecognizerHelper(global_args) def preprocess(self, feed=[], fetch=[]):