update paths

master
CptCaptain 3 years ago
parent 506a84e2d0
commit b250ab4814
  1. 8
      data/rectify.py

@ -30,7 +30,7 @@ def load_camera_parameters(path='calibration_result.xml'):
return parameters
params = load_camera_parameters('../connecting_the_dots/data/calibration_result.xml')
params = load_camera_parameters()
# print(params)
print(
@ -94,8 +94,8 @@ print('P1:\n', P1)
print('P2:\n', P2)
print('Q :\n', Q)
pattern = cv2.imread('../connecting_the_dots/data/kinect_pattern.png')
sampled_pattern = cv2.imread('../connecting_the_dots/data/sampled_kinect_pattern.png')
pattern = cv2.imread('kinect_pattern.png')
sampled_pattern = cv2.imread('sampled_kinect_pattern.png')
proj_rect_map1, proj_rect_map2 = cv2.initInverseRectificationMap(
params['proj']['K'],
params['proj']['dist'],
@ -114,5 +114,5 @@ rect_pat = cv2.remap(pattern, proj_rect_map1, proj_rect_map2, cv2.INTER_LINEAR)
cv2.imshow('get rect', rect_pat)
cv2.waitKey()
# cv2.imshow(rect_pat2)
# cv2.waitKey()
cv2.waitKey()

Loading…
Cancel
Save