Skip to content

Commit 17eb08a

Browse files
committed
iphone data processing update
1 parent e68f5ab commit 17eb08a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

data_processing/IPhoneDataProcessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def process_iphone_frames(frame_ids, iphone_data_input, data_raw_output, intrs,
265265
depth = depth.reshape((IPHONE_DEPTH_HEIGHT, IPHONE_DEPTH_WIDTH))
266266

267267
# Interpolate nearest for depth -> color size
268-
depth = cv2.resize(depth, (IPHONE_COLOR_WIDTH, IPHONE_COLOR_HEIGHT), cv2.INTER_NEAREST)
268+
depth = cv2.resize(depth, (IPHONE_COLOR_WIDTH, IPHONE_COLOR_HEIGHT), interpolation=cv2.INTER_NEAREST)
269269

270270
distortion_coeffs = IPhoneDataProcessor.compute_distortion_coeffs(depth, lookup_table, distortion_center, intr)
271271

manual_pose_annotation/ManualPoseAnnotator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ def annotate_pose(self, scene_dir, synchronized_poses, frameid, initialization_m
265265
cv2.namedWindow("current frame", cv2.WINDOW_NORMAL)
266266
cv2.resizeWindow("current frame", 640, 360)
267267
cv2.imshow("current frame", load_bgr(frames_dir, curr_frameid, "jpg"))
268+
cv2.waitKey(5000)
268269

269270
#SETUP KEY CALLBACKS
270271
#------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)