improved preview image scaling

This commit is contained in:
2025-12-05 18:00:50 +01:00
parent df496c7ed0
commit f9f25222ef
+2 -1
View File
@@ -181,7 +181,8 @@ class Detector(abc.ABC):
y_pos = 30
for det in self.detector:
success, r_vec, t_vec = det.process(img, True, False, False, pose_center)
img_scaled = cv.resize(img, dsize=None, fx=0.25, fy=0.25)
k = 720/img.shape[1]
img_scaled = cv.resize(img, dsize=None, fx=k, fy=k)
if success:
if len(self.rotation_order) == 3:
rot = to_euler(to_tf(r_vec, t_vec), rotation_order=self.rotation_order)