Distortion rectification method and terminal
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorYuanqing Zeng
Life of this patent
Estimating the term…
Abstract
Disclosed is a distortion rectification method, comprising: taking a wide-angle photograph using a camera of a terminal; determining distortion regions and non-distortion regions in the wide-angle photograph; obtaining a target distortion region selected by a user; dividing the target distortion region into M grid regions of a first pre-set size, wherein M is an integer greater than or equal to one; and respectively preforming distortion rectification on the M-grid regions of the first pre-set size. Also disclosed is a terminal.
Claims8
A method for distortion rectification comprising:
- taking a wide-angle photo by a camera lens of a terminal;
- identifying a distorted region and an undistorted region of the wide-angle photo;
- obtaining a targeted distorted region selected by a user, wherein the targeted distorted region is a region selected by the user which is located at a region of the distorted region of the wide-angle photo;
- dividing the targeted distorted region into M-numbered grid areas each having a first predetermined size, wherein the M is an integer equal to or larger than 3;
- subjecting the M-numbered grid areas each having the first predetermined size to distortion rectifications, respectively;
- wherein subjecting the M-numbered grid areas each having the first predetermined size to distortion rectifications, respectively, includes:
- identifying a central grid area of the M-numbered grid areas each having the first predetermined size;
- subjecting the central grid area to a first space transformation to obtain a targeted grid area having a second predetermined size;
- subjecting each of the M-numbered grid areas other than the central grid area and having the first predetermined size to a second space transformation to obtain (M-1)-numbered targeted grid areas each having the second predetermined size;
- subjecting each of the M-numbered targeted grid areas to an interpolation processing according to a change of size of the M-numbered grid areas each having the first predetermined size, wherein a magnitude of the change of size is a difference between the first predetermined size and the second predetermined size.
A terminal comprising:
- a photo shooting unit for taking a wide-angle photo by using a camera lens of the terminal;
- a first identifying unit for identifying a distorted region and an undistorted region of the wide-angle photo taken by the photo shooting unit;
- an acquiring unit for obtaining a targeted distorted region selected by a user, wherein the targeted distorted region is a region selected by the user which is located at a region of the distorted region of the wide-angle photo;
- a dividing unit for dividing the targeted distorted region into M-numbered grid areas each having a first predetermined size, wherein the M is an integer larger than or equal to 3;
- a correction unit for subjecting the M-numbered grid areas each having the predetermined first size to distortion rectifications, respectively;
- wherein the correction unit comprises:
- a second identifying unit for identifying a central grid area of the M-numbered grid areas each having the first predetermined size;
- a first transformation unit for subjecting the central grid area identified by the second identifying unit to a first space transformation to obtain a targeted grid area having a second predetermined size;
- a second transformation unit for subjecting each of the M-numbered grid areas other than the central grid area and having the first predetermined size to a second space transformation to obtain (M-1)-numbered targeted grid areas each having the second predetermined size;
- an interpolation unit for subjecting each of the M-numbered targeted grid areas to an interpolation processing according to a change of size of the M-numbered grid areas each having the first predetermined size, wherein a magnitude of the change the size is a difference between the first predetermined size and the second predetermined size.
Dependencies are inferred from the claim text.