1. A computer-based image correction method being performed by execution of computer readable program code by a processor of a computing device, the method comprising: reading a reference image of a printed circuit board (PCB) from a design of the PCB, and reading a real-time image of the PCB captured by a camera; determining feature points and feature information of the feature points in the reference image using a mathematic algorithm; determining feature point pairs of the reference image and the real-time image based on the feature information of the feature points, wherein a feature point pair consists of a feature point in the reference image and a corresponding feature point in the real-time image; creating two 1×N matrices based on the feature point pairs, and determining a mapping matrix based on the two 1×N matrices; reading coordinates of base points that define a reference region in the reference image, and determining matching points in the real-time image based on the coordinates of the base points and the mapping matrix; determining a matching region in the real-time image based on all the matching points, and determining an angle between the matching region and an X-axis of a coordinate system; determining the real-time image is tilted on condition that the angle does not equal zero; and correcting the real-time image to obtain a corrected image by taking a center of the real-time image as a turning pivot to rotate the real-time image until the angle equals zero.