Commit a78dbbb0 authored by Vincent POLLET's avatar Vincent POLLET
Browse files

Fix typo

parent 0a1d9a9e
Pipeline #50119 failed with stage
in 3 minutes and 54 seconds
...@@ -38,7 +38,6 @@ def detect_chessboard_corners(image, prep_im, pattern_size, verbosity): ...@@ -38,7 +38,6 @@ def detect_chessboard_corners(image, prep_im, pattern_size, verbosity):
im = cv2.cvtColor(image, cv2.COLOR_GRAY2BGR) im = cv2.cvtColor(image, cv2.COLOR_GRAY2BGR)
else: else:
im = cv2.cvtColor(prep_im, cv2.COLOR_GRAY2BGR) im = cv2.cvtColor(prep_im, cv2.COLOR_GRAY2BGR)
prev = np.copy(im)
draw_image = cv2.drawChessboardCorners(im, pattern_size, im_points, True) draw_image = cv2.drawChessboardCorners(im, pattern_size, im_points, True)
plt.imshow(draw_image, vmin=0, vmax=255) plt.imshow(draw_image, vmin=0, vmax=255)
plt.show() plt.show()
...@@ -450,7 +449,7 @@ def main(): ...@@ -450,7 +449,7 @@ def main():
image_size = image_data[camera] image_size = image_data[camera]
for camera_2 in stream[idx+1:]:# or with itertools.tee() for camera_2 in stream[idx+1:]:# or with itertools.tee()
if image_data[camera_2] != image_size: if image_data[camera_2] != image_size:
raise ValueError("Image size between {} and {} does not match.".format(camera, camera2)) raise ValueError("Image size between {} and {} does not match.".format(camera, camera_2))
if not "df_extrinsics_{}".format(camera_2) in calibration[camera].keys(): if not "df_extrinsics_{}".format(camera_2) in calibration[camera].keys():
continue continue
df = calibration[camera]["df_extrinsics_{}".format(camera_2)] df = calibration[camera]["df_extrinsics_{}".format(camera_2)]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment