improved preview image scaling
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user