From 77cab93455ec4556ff4409f2d3dbb9ccf86057b6 Mon Sep 17 00:00:00 2001 From: WenmuZhou <572459439@qq.com> Date: Wed, 30 Mar 2022 14:15:43 +0000 Subject: [PATCH] fix import error --- deploy/hubserving/ocr_cls/module.py | 2 +- deploy/hubserving/ocr_det/module.py | 2 +- deploy/hubserving/ocr_rec/module.py | 2 +- deploy/hubserving/ocr_system/module.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/hubserving/ocr_cls/module.py b/deploy/hubserving/ocr_cls/module.py index de815c45..222bcc40 100644 --- a/deploy/hubserving/ocr_cls/module.py +++ b/deploy/hubserving/ocr_cls/module.py @@ -7,7 +7,7 @@ import os import sys sys.path.insert(0, ".") import copy - +import paddlehub from paddlehub.common.logger import logger from paddlehub.module.module import moduleinfo, runnable, serving import cv2 diff --git a/deploy/hubserving/ocr_det/module.py b/deploy/hubserving/ocr_det/module.py index d1a88df2..4cb24f39 100644 --- a/deploy/hubserving/ocr_det/module.py +++ b/deploy/hubserving/ocr_det/module.py @@ -8,7 +8,7 @@ import sys sys.path.insert(0, ".") import copy - +import paddlehub from paddlehub.common.logger import logger from paddlehub.module.module import moduleinfo, runnable, serving import cv2 diff --git a/deploy/hubserving/ocr_rec/module.py b/deploy/hubserving/ocr_rec/module.py index 582396cf..30ca9b25 100644 --- a/deploy/hubserving/ocr_rec/module.py +++ b/deploy/hubserving/ocr_rec/module.py @@ -7,7 +7,7 @@ import os import sys sys.path.insert(0, ".") import copy - +import paddlehub from paddlehub.common.logger import logger from paddlehub.module.module import moduleinfo, runnable, serving import cv2 diff --git a/deploy/hubserving/ocr_system/module.py b/deploy/hubserving/ocr_system/module.py index 039ca179..843b2e2c 100644 --- a/deploy/hubserving/ocr_system/module.py +++ b/deploy/hubserving/ocr_system/module.py @@ -9,7 +9,7 @@ sys.path.insert(0, ".") import copy import time - +import paddlehub from paddlehub.common.logger import logger from paddlehub.module.module import moduleinfo, runnable, serving import cv2 -- GitLab