提交 1eaae43a 编写于 作者: 文幕地方's avatar 文幕地方

fix desc error

上级 b3fbfc31
...@@ -22,10 +22,10 @@ from deploy.hubserving.ocr_cls.params import read_params ...@@ -22,10 +22,10 @@ from deploy.hubserving.ocr_cls.params import read_params
@moduleinfo( @moduleinfo(
name="ocr_cls", name="ocr_cls",
version="1.0.0", version="1.0.0",
summary="ocr recognition service", summary="ocr angle cls service",
author="paddle-dev", author="paddle-dev",
author_email="paddle-dev@baidu.com", author_email="paddle-dev@baidu.com",
type="cv/text_recognition") type="cv/text_angle_cls")
class OCRCls(hub.Module): class OCRCls(hub.Module):
def _initialize(self, use_gpu=False, enable_mkldnn=False): def _initialize(self, use_gpu=False, enable_mkldnn=False):
""" """
...@@ -128,6 +128,7 @@ class OCRCls(hub.Module): ...@@ -128,6 +128,7 @@ class OCRCls(hub.Module):
if __name__ == '__main__': if __name__ == '__main__':
ocr = OCRCls() ocr = OCRCls()
ocr._initialize()
image_path = [ image_path = [
'./doc/imgs_words/ch/word_1.jpg', './doc/imgs_words/ch/word_1.jpg',
'./doc/imgs_words/ch/word_2.jpg', './doc/imgs_words/ch/word_2.jpg',
......
...@@ -27,7 +27,7 @@ from deploy.hubserving.ocr_system.params import read_params ...@@ -27,7 +27,7 @@ from deploy.hubserving.ocr_system.params import read_params
summary="ocr detection service", summary="ocr detection service",
author="paddle-dev", author="paddle-dev",
author_email="paddle-dev@baidu.com", author_email="paddle-dev@baidu.com",
type="cv/text_recognition") type="cv/text_detection")
class OCRDet(hub.Module): class OCRDet(hub.Module):
def _initialize(self, use_gpu=False, enable_mkldnn=False): def _initialize(self, use_gpu=False, enable_mkldnn=False):
""" """
...@@ -126,6 +126,7 @@ class OCRDet(hub.Module): ...@@ -126,6 +126,7 @@ class OCRDet(hub.Module):
if __name__ == '__main__': if __name__ == '__main__':
ocr = OCRDet() ocr = OCRDet()
ocr._initialize()
image_path = [ image_path = [
'./doc/imgs/11.jpg', './doc/imgs/11.jpg',
'./doc/imgs/12.jpg', './doc/imgs/12.jpg',
......
...@@ -128,6 +128,7 @@ class OCRRec(hub.Module): ...@@ -128,6 +128,7 @@ class OCRRec(hub.Module):
if __name__ == '__main__': if __name__ == '__main__':
ocr = OCRRec() ocr = OCRRec()
ocr._initialize()
image_path = [ image_path = [
'./doc/imgs_words/ch/word_1.jpg', './doc/imgs_words/ch/word_1.jpg',
'./doc/imgs_words/ch/word_2.jpg', './doc/imgs_words/ch/word_2.jpg',
......
...@@ -28,7 +28,7 @@ from deploy.hubserving.ocr_system.params import read_params ...@@ -28,7 +28,7 @@ from deploy.hubserving.ocr_system.params import read_params
summary="ocr system service", summary="ocr system service",
author="paddle-dev", author="paddle-dev",
author_email="paddle-dev@baidu.com", author_email="paddle-dev@baidu.com",
type="cv/text_recognition") type="cv/PP-OCR_system")
class OCRSystem(hub.Module): class OCRSystem(hub.Module):
def _initialize(self, use_gpu=False, enable_mkldnn=False): def _initialize(self, use_gpu=False, enable_mkldnn=False):
""" """
...@@ -134,6 +134,7 @@ class OCRSystem(hub.Module): ...@@ -134,6 +134,7 @@ class OCRSystem(hub.Module):
if __name__ == '__main__': if __name__ == '__main__':
ocr = OCRSystem() ocr = OCRSystem()
ocr._initialize()
image_path = [ image_path = [
'./doc/imgs/11.jpg', './doc/imgs/11.jpg',
'./doc/imgs/12.jpg', './doc/imgs/12.jpg',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册