Patent ID: 11861813
Assignee: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 0:
1. A method for correcting a distorted image, comprising:
acquiring, by a wide-angle camera in an electronic device, a distorted image in raw format to be corrected;
processing, by an image signal processor (ISP) in the electronic device, the distorted image in raw format into a distorted image in yuv format;
acquiring, by a central processing unit (CPU) in the electronic device, a first coordinate of each pixel in the distorted image in yuv format;
determining, by the CPU, internal parameters for shooting the distorted image;
acquiring, by the CPU, a second coordinate corresponding to the first coordinate based on a corresponding relationship between the internal parameters and image distortion degrees, wherein, the second coordinate is an undistorted coordinate corresponding to the first coordinate;
acquiring, by the CPU, a distance between the first coordinate and a coordinate of a center point of the distorted image in yuv format, and determining a smoothing processing coefficient corresponding to the distance based on a smoothing processing function, wherein the smoothing processing function is configured to indicate a proportional relationship between the distance and the smoothing processing coefficient;
acquiring a distortion correction image in yuv format by performing smoothing correction on each first coordinate based on the smoothing processing coefficient and the second coordinate;
displaying, by a display in the electronic device, the distortion correction image in yuv format; and
performing, by an encoder in the electronic device, a Jpeg format coding on the distortion correction image in yuv format, and storing in a memory in the electronic device.