From 1eaae43a14ab00cf518ae664d6d0021441cb3014 Mon Sep 17 00:00:00 2001 From: WenmuZhou <572459439@qq.com> Date: Wed, 30 Mar 2022 10:48:49 +0000 Subject: [PATCH] fix desc error --- deploy/hubserving/ocr_cls/module.py | 5 +++-- deploy/hubserving/ocr_det/module.py | 3 ++- deploy/hubserving/ocr_rec/module.py | 1 + deploy/hubserving/ocr_system/module.py | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/deploy/hubserving/ocr_cls/module.py b/deploy/hubserving/ocr_cls/module.py index e159e0d3..de815c45 100644 --- a/deploy/hubserving/ocr_cls/module.py +++ b/deploy/hubserving/ocr_cls/module.py @@ -22,10 +22,10 @@ from deploy.hubserving.ocr_cls.params import read_params @moduleinfo( name="ocr_cls", version="1.0.0", - summary="ocr recognition service", + summary="ocr angle cls service", author="paddle-dev", author_email="paddle-dev@baidu.com", - type="cv/text_recognition") + type="cv/text_angle_cls") class OCRCls(hub.Module): def _initialize(self, use_gpu=False, enable_mkldnn=False): """ @@ -128,6 +128,7 @@ class OCRCls(hub.Module): if __name__ == '__main__': ocr = OCRCls() + ocr._initialize() image_path = [ './doc/imgs_words/ch/word_1.jpg', './doc/imgs_words/ch/word_2.jpg', diff --git a/deploy/hubserving/ocr_det/module.py b/deploy/hubserving/ocr_det/module.py index c7d253f5..d1a88df2 100644 --- a/deploy/hubserving/ocr_det/module.py +++ b/deploy/hubserving/ocr_det/module.py @@ -27,7 +27,7 @@ from deploy.hubserving.ocr_system.params import read_params summary="ocr detection service", author="paddle-dev", author_email="paddle-dev@baidu.com", - type="cv/text_recognition") + type="cv/text_detection") class OCRDet(hub.Module): def _initialize(self, use_gpu=False, enable_mkldnn=False): """ @@ -126,6 +126,7 @@ class OCRDet(hub.Module): if __name__ == '__main__': ocr = OCRDet() + ocr._initialize() image_path = [ './doc/imgs/11.jpg', './doc/imgs/12.jpg', diff --git a/deploy/hubserving/ocr_rec/module.py b/deploy/hubserving/ocr_rec/module.py index 2bec3fcd..582396cf 100644 --- a/deploy/hubserving/ocr_rec/module.py +++ b/deploy/hubserving/ocr_rec/module.py @@ -128,6 +128,7 @@ class OCRRec(hub.Module): if __name__ == '__main__': ocr = OCRRec() + ocr._initialize() image_path = [ './doc/imgs_words/ch/word_1.jpg', './doc/imgs_words/ch/word_2.jpg', diff --git a/deploy/hubserving/ocr_system/module.py b/deploy/hubserving/ocr_system/module.py index cbef8086..039ca179 100644 --- a/deploy/hubserving/ocr_system/module.py +++ b/deploy/hubserving/ocr_system/module.py @@ -28,7 +28,7 @@ from deploy.hubserving.ocr_system.params import read_params summary="ocr system service", author="paddle-dev", author_email="paddle-dev@baidu.com", - type="cv/text_recognition") + type="cv/PP-OCR_system") class OCRSystem(hub.Module): def _initialize(self, use_gpu=False, enable_mkldnn=False): """ @@ -134,6 +134,7 @@ class OCRSystem(hub.Module): if __name__ == '__main__': ocr = OCRSystem() + ocr._initialize() image_path = [ './doc/imgs/11.jpg', './doc/imgs/12.jpg', -- GitLab