#include #include #include #include #include #include // Defining the dimensions of checkerboard int CHECKERBOARD[2]{6,9}; int main() { // Creating vector to store vectors of 3D points for each checkerboard image std::vector > objpoints; // Creating vector to store vectors of 2D points for each checkerboard image std::vector > imgpoints; // Defining the world coordinates for 3D points std::vector objp; for(int i{0}; i images; // Path of the folder containing checkerboard images std::string path = "./images/*.jpg"; cv::glob(path, images); cv::Mat frame, gray; // vector to store the pixel coordinates of detected checker board corners std::vector corner_pts; bool success; // Looping over all the images in the directory for(int i{0}; i