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