From 9720a07683be611339d3259a13ad5fb7765d52f9 Mon Sep 17 00:00:00 2001 From: martin <1486756632@qq.com> Date: Thu, 23 Apr 2026 17:05:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=87=8F=E6=95=B0=E9=87=8F=E8=B6=85?= =?UTF-8?q?=E9=99=90=E6=8A=A5=E8=AD=A6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yolo/cv_multi_model_back_video.py | 3 ++- yolo_api.py | 19 +++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/yolo/cv_multi_model_back_video.py b/yolo/cv_multi_model_back_video.py index 656bc88..32e6939 100644 --- a/yolo/cv_multi_model_back_video.py +++ b/yolo/cv_multi_model_back_video.py @@ -3571,7 +3571,8 @@ async def send_frame_to_s3_mq(loop,upload_executor,task_id, mqtt, mqtt_topic, ca "count_message":count_message, "high_count_warn":{ "high_count_warn_status":high_count_warn_status, - "high_count_warn_num":high_count_warn_num + "high_count_warn_num":high_count_warn_num, + "high_count_warn":high_count_warn }, "des_location":des_location_result } diff --git a/yolo_api.py b/yolo_api.py index 1fc8d4c..ec94d6f 100644 --- a/yolo_api.py +++ b/yolo_api.py @@ -54,16 +54,23 @@ service_status = {"is_healthy": True, "last_error": None, "error_time": None} # "user": "postgres", # "password": "root" # } - +# +# DB_CONFIG = { +# "dbname": "smart_dev_123", +# "user": "postgres", +# "password": "root", +# "host": "8.137.54.85", +# "port": "5060" +# } +#正式数据库 DB_CONFIG = { - "dbname": "smart_dev_123", + "dbname": "smart_dev", "user": "postgres", - "password": "root", - "host": "8.137.54.85", - "port": "5060" + "password": "StrongPassword@123", + "host": "222.212.85.86", + "port": "5061" } - # 什邡数据库 # DB_CONFIG = { # "dbname": "postgres",