remove OCRReader

This commit is contained in:
wangjiawei04 2020-10-19 06:58:39 +00:00
parent 2ec51b2dc2
commit ba5d50f537
6 changed files with 0 additions and 10 deletions

View File

@ -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=[]):

View File

@ -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=[]):

View File

@ -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

View File

@ -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

View File

@ -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=[]):

View File

@ -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=[]):