From cb2c355ba6f0d1431e8943e273015c947431da41 Mon Sep 17 00:00:00 2001 From: Moses Turner Date: Wed, 2 Nov 2022 03:52:50 -0500 Subject: [PATCH] t/hand: fix 90 degree rotation for hand detection --- src/xrt/tracking/hand/mercury/hg_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/tracking/hand/mercury/hg_model.cpp b/src/xrt/tracking/hand/mercury/hg_model.cpp index ecb9ff300..bd6ceab0c 100644 --- a/src/xrt/tracking/hand/mercury/hg_model.cpp +++ b/src/xrt/tracking/hand/mercury/hg_model.cpp @@ -99,7 +99,7 @@ blackbar(const cv::Mat &in, enum t_camera_orientation rot, cv::Mat &out, xrt_siz break; case CAMERA_ORIENTATION_270: // clang-format off - go(0,0) = 0.0f; go(0,1) = -scale_down; go(0,2) = translate_x+out_size.w-1; + go(0,0) = 0.0f; go(0,1) = -scale_down; go(0,2) = -translate_x+out_size.w-1; go(1,0) = scale_down; go(1,1) = 0.0f; go(1,2) = translate_y; // clang-format on break;