<jupyter_start><jupyter_text>This Notebook shows how to use the Camera_Calibration_API to calibrate the camera using symmetrical circular grid pattern<jupyter_code>import sys
sys.path.append("../../")
from camera_calibration import Camera_Calibration_API
import glob
import matplotlib.pyplot as plt
%matplotlib inline
import os
import cv2
test_img = cv2.imread("../example_images/symmetric_grid/Image__2018-02-14__10-12-45.png",0)
print(test_img.shape)
plt.imshow(test_img,cmap="gray")
plt.title("One of the calibration images")
plt.show()
symmetric_circles = Camera_Calibration_API(pattern_type="symmetric_circles",
                                          pattern_rows=6,
                                          pattern_columns=5,
                                          distance_in_world_units = 10,
                                          debug_dir=None)
%%time
results = symmetric_circles.calibrate_camera(glob.glob("../example_images/symmetric_grid/*.png"))
symmetric_circles.calibration_df
symmetric_circles.visualize_calibration_boards(20,10)<jupyter_output><empty_output>