US 12,373,928 B2
Image correction method and computing device utilizing method
Chin-Pin Kuo, New Taipei (TW); Tung-Tso Tsai, New Taipei (TW); Guo-Chin Sun, New Taipei (TW); and Tzu-Chen Lin, New Taipei (TW)
Assigned to HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed by HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed on Dec. 24, 2021, as Appl. No. 17/561,829.
Claims priority of application No. 202011585212.2 (CN), filed on Dec. 28, 2020.
Prior Publication US 2022/0207669 A1, Jun. 30, 2022
Int. Cl. G06T 5/80 (2024.01); G06T 3/4038 (2024.01); G06T 5/10 (2006.01)
CPC G06T 5/80 (2024.01) [G06T 3/4038 (2013.01); G06T 5/10 (2013.01)] 9 Claims
OG exemplary drawing
 
1. A image correction method, comprising:
obtaining a distorted image and a standard image corresponding to the distorted image;
dividing the distorted image into first image regions, and dividing the standard image into second image regions;
for each first image region and a corresponding second image region, selecting first points from the first image region, and selecting second points from the corresponding second image region;
determining a relationship between the first image region and the second image region according to coordinates of the first points and coordinates of the second points;
correcting each point in the first image region according to the relationship between the first image region and the second image region; and
stitching corrected first image regions to obtain a corrected image of the distorted image;
wherein determining the relationship between the first image region and the second image region according to the coordinates of the first points and the coordinates of the second points comprises:
calculating a ratio relationship between the first image region and the second image region according to the coordinates of the first points and the coordinates of the second points;
wherein calculating the ratio relationship between the first image region and the second image region according to the coordinates of the first points and the coordinates of the second points comprises:
determining an x-axis and a y-axis of the first image region;
determining first boundary points of the first image region according to the coordinates of the first points, and determining second boundary points of the second image region according to the coordinates of the second points;
calculating a first distance between each of the first boundary points and the x-axis and a second distance between each of the first boundary points and the y-axis;
calculating a third distance between each of the second boundary points and the x-axis and a fourth distance between each of the second boundary points and the y-axis;
calculating a first ratio of the first distance to the third distance; and
calculating a second ratio of the second distance to the fourth distance.