Feat: connect with cms
This commit is contained in:
parent
9a1496f224
commit
0f8b575c90
2 changed files with 162 additions and 72 deletions
|
@ -786,9 +786,11 @@ def run_pipeline(frame, node: dict, return_bbox: bool=False, context=None):
|
|||
primary_detection = max(all_detections, key=lambda x: x["confidence"])
|
||||
primary_bbox = primary_detection["bbox"]
|
||||
|
||||
# Add branch results to primary detection for compatibility
|
||||
# Add branch results and session_id to primary detection for compatibility
|
||||
if "branch_results" in detection_result:
|
||||
primary_detection["branch_results"] = detection_result["branch_results"]
|
||||
if "session_id" in detection_result:
|
||||
primary_detection["session_id"] = detection_result["session_id"]
|
||||
|
||||
return (primary_detection, primary_bbox) if return_bbox else primary_detection
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue