cam does not work

This commit is contained in:
ishak jmilou.ishak
2025-01-15 14:27:33 +01:00
parent 95e2d292c9
commit 50bf777f78

View File

@@ -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()s
# Create an MQTT client instance
mqtt_client = mqtt.Client()