|
- def message_feedback(requestId, status, type, error_code="", error_msg="", progress="", original_url="", sign_url="",
- modelCode="", detectTargetCode="", analyse_time="", analyse_results=""):
- taskfb = {}
- results = []
- result_msg = {}
- taskfb["request_id"] = requestId
- taskfb["status"] = status
- taskfb["type"] = type
- taskfb["error_code"] = error_code
- taskfb["error_msg"] = error_msg
- taskfb["progress"] = progress
- result_msg["original_url"] = original_url
- result_msg["sign_url"] = sign_url
- result_msg["analyse_results"] = analyse_results
- result_msg["model_code"] = modelCode
- result_msg["detect_targets_code"] = detectTargetCode
- result_msg["analyse_time"] = analyse_time
- results.append(result_msg)
- taskfb["results"] = results
- return taskfb
-
-
- def recording_feedback(requestId, status, error_code="", error_msg="", recording_video_url=""):
- rdfb = {}
- rdfb["request_id"] = requestId
- rdfb["status"] = status
- rdfb["error_code"] = error_code
- rdfb["error_msg"] = error_msg
- rdfb["recording_video_url"] = recording_video_url
- return rdfb
|