@@ -48,7 +48,9 @@ class ChineseTextDetectionDB(hub.Module):
...
@@ -48,7 +48,9 @@ class ChineseTextDetectionDB(hub.Module):
try:
try:
importshapely,pyclipper
importshapely,pyclipper
except:
except:
raiseImportError('This module requires the shapely, pyclipper tools. The running environment does not meet the requirements. Please install the two packages.')
raiseImportError(
'This module requires the shapely, pyclipper tools. The running environment does not meet the requirements. Please install the two packages.'
@@ -48,7 +48,9 @@ class ChineseTextDetectionDBServer(hub.Module):
...
@@ -48,7 +48,9 @@ class ChineseTextDetectionDBServer(hub.Module):
try:
try:
importshapely,pyclipper
importshapely,pyclipper
except:
except:
raiseImportError('This module requires the shapely, pyclipper tools. The running environment does not meet the requirements. Please install the two packages.')
raiseImportError(
'This module requires the shapely, pyclipper tools. The running environment does not meet the requirements. Please install the two packages.'