mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 20:19:51 +01:00
fix
This commit is contained in:
@@ -150,7 +150,7 @@ class OCRDetectionPipeline(Pipeline):
|
||||
rboxes = inputs['combined_rboxes'][0]
|
||||
count = inputs['combined_counts'][0]
|
||||
if count == 0 or count < rboxes.shape[0]:
|
||||
raise Exception('No text detected')
|
||||
raise Exception('modelscope error: No text detected')
|
||||
rboxes = rboxes[:count, :]
|
||||
|
||||
# convert rboxes to polygons and find its coordinates on the original image
|
||||
|
||||
Reference in New Issue
Block a user