From 4e78caa577fb93d81d860315e3d5eb2a9f967eb0 Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Wed, 15 Jan 2025 12:22:44 +0100 Subject: [PATCH] Comment out call to yolo_results_db function in on_message handler --- src/Python/flask/web/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index 441ea8a..0fe8993 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -48,7 +48,7 @@ def on_message(client, userdata, message): x1, y1, x2, y2 = map(int, box.xyxy[0]) cv2.rectangle(processed_image, (x1, y1), (x2, y2), (0, 255, 0), 2) cv2.putText(processed_image, f"{class_name} {box.conf.item():.2f}", (x1, y1 - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.9, (0, 255, 0), 2) - yolo_results_db() + # yolo_results_db() # Create an MQTT client instance mqtt_client = mqtt.Client()