From d1756c55930c4bc4229ce0195c1d027e66a24aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sm=C3=B3=C5=82ka?= Date: Mon, 11 Nov 2024 21:21:20 +0100 Subject: [PATCH] [Temporary] Added debug messages to `projection` --- .../task/camera/transformation/heuristic/projection.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/child_lab_framework/task/camera/transformation/heuristic/projection.py b/child_lab_framework/task/camera/transformation/heuristic/projection.py index b4e653d..fedbba4 100644 --- a/child_lab_framework/task/camera/transformation/heuristic/projection.py +++ b/child_lab_framework/task/camera/transformation/heuristic/projection.py @@ -2,6 +2,7 @@ import cv2 import numpy as np +from icecream import ic from .....core.calibration import Calibration from .....core.transformation import ProjectiveTransformation @@ -51,6 +52,10 @@ def estimate( if common.sum() < 6: return None + ic(common) + ic(from_keypoints) + ic(to_keypoints) + from_points_2d: FloatArray2 = from_keypoints.view()[common][:, [0, 1]] to_points_2d: FloatArray2 = to_keypoints.view()[common][:, [0, 1]]