| CPC G06T 3/02 (2024.01) [G06T 3/4046 (2013.01)] | 20 Claims |

|
1. A computer-implemented method comprising:
pre-processing an original image into an edge image, wherein the original image depicts an oblique view of a circular object;
generating, by a machine learning model based on the edge image, a heatmap including an ellipse formed by the oblique view of the circular object;
partitioning the heatmap into a chunked heatmap by creating radial lines initiating from a center of the heatmap and radiating outward at predetermined angles;
generating a filtered chunked heatmap by removing chunks that exceed a distance threshold from a center of mass of the chunked heatmap;
computing ellipse parameters describing the ellipse of the filtered chunked heatmap; and
performing, using the ellipse parameters, an affine transformation on the original image to generate a rectified image, wherein the rectified image converts the ellipse to a circle.
|