- show no marker axis
- down scale preview image
This commit is contained in:
@@ -121,8 +121,8 @@ class BoardPose(abc.ABC):
|
||||
end='')
|
||||
print(f"\rTilt: {rot[0]:.1f}, Roll: {rot[1]:.1f}, Azimuth: {rot[2]:.1f}", end='')
|
||||
last_rotation = rot
|
||||
|
||||
cv.imshow('img', img)
|
||||
img_scaled = cv.resize(img, dsize=None, fx=0.5, fy=0.5)
|
||||
cv.imshow('img', img_scaled)
|
||||
cv.destroyAllWindows()
|
||||
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class BoardPoseAruco(BoardPose):
|
||||
|
||||
return success, img_size, obj_points, img_points
|
||||
|
||||
def _process(self, image, r_vecs: np.ndarray=None, t_vecs: np.ndarray=None, draw_marker_box=True, draw_marker_id=False, draw_marker_axis=True):
|
||||
def _process(self, image, r_vecs: np.ndarray=None, t_vecs: np.ndarray=None, draw_marker_box=True, draw_marker_id=False, draw_marker_axis=False):
|
||||
pose = False
|
||||
r_vec = None
|
||||
t_vec = None
|
||||
|
||||
@@ -44,7 +44,7 @@ class BoardPoseCharuco(BoardPose):
|
||||
|
||||
return success, img_size, obj_points, img_points
|
||||
|
||||
def _process(self, image, r_vecs: np.ndarray=None, t_vecs: np.ndarray=None, draw_marker_box=True, draw_marker_id=False, draw_marker_axis=True):
|
||||
def _process(self, image, r_vecs: np.ndarray=None, t_vecs: np.ndarray=None, draw_marker_box=True, draw_marker_id=False, draw_marker_axis=False):
|
||||
pose = False
|
||||
r_vec = None
|
||||
t_vec = None
|
||||
|
||||
Reference in New Issue
Block a user