From fe63597ba41306c42b1ce23019d8e2d76566fd95 Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Sun, 21 Aug 2022 22:30:05 +0200 Subject: [PATCH] fix(objects): reverse left/right value --- camera/depthai.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camera/depthai.py b/camera/depthai.py index c5f20d2..1a0515f 100644 --- a/camera/depthai.py +++ b/camera/depthai.py @@ -130,9 +130,9 @@ class FramePublisher: o = events.events_pb2.Object() o.type = events.events_pb2.TypeObject.ANY o.top = bbox[0].astype(float) - o.right = bbox[1].astype(float) + o.right = bbox[3].astype(float) o.bottom = bbox[2].astype(float) - o.left = bbox[3].astype(float) + o.left = bbox[1].astype(float) o.confidence = scores[i].astype(float) objs.append(o) objects_msg.objects.extend(objs)