X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=example-apps%2FROBO%2FaPaaS%2FObj_Detection_service%2Fdetection%2Fobj_detection_service.py;h=52a6bab9ba6b59cbaa387ad861237cc44fb4b28f;hb=a6ae5bba45e6308d9ed242204d5dee9098d4b06f;hp=055f8648ff01243a1710a0fb192b00d9e224eb69;hpb=b5fcf9235e205cc597068cce42bfb780f4e6418c;p=ealt-edge.git diff --git a/example-apps/ROBO/aPaaS/Obj_Detection_service/detection/obj_detection_service.py b/example-apps/ROBO/aPaaS/Obj_Detection_service/detection/obj_detection_service.py index 055f864..52a6bab 100644 --- a/example-apps/ROBO/aPaaS/Obj_Detection_service/detection/obj_detection_service.py +++ b/example-apps/ROBO/aPaaS/Obj_Detection_service/detection/obj_detection_service.py @@ -203,7 +203,8 @@ def Detection(img): cv2.destroyAllWindows() # Detect_result = {'ImposedImage': 'frame', 'ObjCount': count, # 'ObjType': type, 'Time': time} - Detect_result = {'ImposedImage': "frame", 'ObjCount': count} + Detect_result = {'ImposedImage': "frame", 'ObjCount': count, + 'labels': label} return Detect_result @@ -264,7 +265,6 @@ def Obj_Detection(): else: app.logger.info('Allowed file types are txt, pdf, png, jpg, jpeg, gif') return Response("failure") - # return jsonify({'Face number': num, 'Result': 'upload success'}) return jsonify(Detect_result)