mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-24 23:33:08 +08:00
fix desc error
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user