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

Claim 7:
8. An apparatus for correcting a distorted image comprised in an electronic device, comprising:
a processor; and
a memory configured to store with computer programs executable by the processor;
wherein the processor is configured to:
acquire a first coordinate of each pixel in a distorted image in yuv format to be corrected, wherein a distorted image in raw format is acquired by a wide-angle camera in the electronic device and is processed by an image signal processor (ISP) in the electronic device into the distorted image in yuv format;
determine internal parameters for shooting the distorted image;
acquire 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;
acquire a distance between the first coordinate and a coordinate of a center point of the distorted image in yuv format, and determine 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; and
acquire 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,
wherein the distortion correction image in yuv format is displayed on a display in the electronic device, and wherein a Jpeg format coding on the distortion correction image in yuv format is performed by an encoder in the electronic device and is stored in a memory in the electronic device.