From 78f8990aa530613678645828ab11179453041b63 Mon Sep 17 00:00:00 2001 From: "chris.ochoa" Date: Tue, 11 Jun 2024 04:37:26 +0000 Subject: [PATCH] fix: fix bug camera transform --- dgp/annotations/camera_transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dgp/annotations/camera_transforms.py b/dgp/annotations/camera_transforms.py index 39ed070a..2bba670e 100644 --- a/dgp/annotations/camera_transforms.py +++ b/dgp/annotations/camera_transforms.py @@ -780,7 +780,7 @@ def _calc_A( box = [newx / 2, 0, w - newx / 2, h] else: newy = h - w * aspect_ratio - box = [0, newy / 2, w, h - newy] + box = [0, newy / 2, w, h - newy / 2] return box_crop_affine_transform(box, self.shape)