Done feature 3 fully with postgresql integration
This commit is contained in:
parent
81547311d8
commit
c4179b3b08
2 changed files with 27 additions and 8 deletions
|
@ -666,11 +666,11 @@ def run_pipeline(frame, node: dict, return_bbox: bool=False, context=None):
|
|||
generated_session_id = str(uuid_lib.uuid4())
|
||||
|
||||
# Insert initial detection record
|
||||
camera_id = detection_result.get("camera_id", "unknown")
|
||||
display_id = detection_result.get("display_id", "unknown")
|
||||
timestamp = datetime.now().strftime("%Y-%m-%dT%H-%M-%S")
|
||||
|
||||
inserted_session_id = node["db_manager"].insert_initial_detection(
|
||||
camera_id=camera_id,
|
||||
display_id=display_id,
|
||||
captured_timestamp=timestamp,
|
||||
session_id=generated_session_id
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue