Corner Detection for Camera Calibration - 2022
Corner Detection for Camera Calibration - 2022
Obtain the pixel location of rectangle corners.
Calculate parameters for camera calibration.
(Reference: Zhengyou Zhang. "A flexible new technique for camera calibration".)
Use Canny edge detection in OpenCV to extract edge contour.
Use Hough transform to fit vertical lines and horizontal lines that cover all the edges.
Set a distance threshold to eliminate excessive lines and only keep one line for each edge.
Compute the corners where are the intersections of lines (cross-products of the lines in homogeneous coordinates).