diff --git a/deploy/serving/python/web_service.py b/deploy/serving/python/web_service.py index 95359fdc2b2ad401a1827117dec71f023e5dc939..05b559a41ca91757ec0446f3b3ec487d46184a75 100644 --- a/deploy/serving/python/web_service.py +++ b/deploy/serving/python/web_service.py @@ -202,6 +202,8 @@ class DetectorOp(Op): result.append( f"{int(line[0])} {line[1]} " f"{line[2]} {line[3]} {line[4]} {line[5]}") + if len(result) == 0: + result = 'No object detected!' results[img_name] = result idx += num return results