From b5042a7b259c0ebdaf532ee77e50306df89be411 Mon Sep 17 00:00:00 2001 From: Nils Bittmann Date: Sun, 13 Mar 2022 14:39:58 +0100 Subject: [PATCH] Fixed object positioning --- coral-app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/coral-app.py b/coral-app.py index 47618a0..213b9cd 100644 --- a/coral-app.py +++ b/coral-app.py @@ -65,10 +65,10 @@ def predict(): { "confidence": float(obj.score), "label": labels[obj.id], - "y_min": int(obj.bbox[0]), - "x_min": int(obj.bbox[1]), - "y_max": int(obj.bbox[2]), - "x_max": int(obj.bbox[3]), + "y_min": int(obj.bbox[1]), + "x_min": int(obj.bbox[0]), + "y_max": int(obj.bbox[3]), + "x_max": int(obj.bbox[2]), } ) data["predictions"] = preds