diff --git a/deploy/pdserving/clas_local_server.py b/deploy/pdserving/clas_local_server.py index 10de66ce16562af6c5b3474b3269a268d615b07a..22f0c27460945ddbe1942b329051aec3165527fa 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 9939ba45a8561e7148b72888f83abefb5d64e847..96d5ff3c5ca098e832b12ceebdc345a836109f72 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 27631a18720f17baad8af70b776d05459708645d..8761d1832319f39e89abd562b3fa67f345f4dd76 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 5567b225fc49d915c8150c118f9e5136c32d773d..199ea1f0a554e9eb6b7a451aa82e93a13b4d5698 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 40266e3112d464f8161ad0dc94dfb192b317f62c..f8b0e56bafd5d8a94469179697dc823f7185282d 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 cb43eb990ffec679aabd5ab1408572529c3a2737..21966941d1fd40dba2cea749cf6bc878143d6ed5 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=[]):