WO2017000724A1 - 一种畸变校正方法及终端 - Google Patents

一种畸变校正方法及终端 Download PDF

Info

Publication number
WO2017000724A1
WO2017000724A1 PCT/CN2016/083690 CN2016083690W WO2017000724A1 WO 2017000724 A1 WO2017000724 A1 WO 2017000724A1 CN 2016083690 W CN2016083690 W CN 2016083690W WO 2017000724 A1 WO2017000724 A1 WO 2017000724A1
Authority
WO
WIPO (PCT)
Prior art keywords
distortion
area
target
wide
preset size
Prior art date
Application number
PCT/CN2016/083690
Other languages
English (en)
French (fr)
Inventor
曾元清
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to EP16817088.4A priority Critical patent/EP3223511B1/en
Priority to JP2017565981A priority patent/JP6436373B2/ja
Priority to KR1020187001813A priority patent/KR102010712B1/ko
Priority to AU2016286574A priority patent/AU2016286574B2/en
Priority to US15/538,024 priority patent/US10319081B2/en
Priority to SG11201710793YA priority patent/SG11201710793YA/en
Priority to ES16817088T priority patent/ES2711565T3/es
Priority to MYPI2017705058A priority patent/MY183029A/en
Publication of WO2017000724A1 publication Critical patent/WO2017000724A1/zh
Priority to US15/713,755 priority patent/US9959601B2/en
Priority to ZA2018/00323A priority patent/ZA201800323B/en

Links

Classifications

    • G06T5/73
    • G06T5/94
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • G06T3/047
    • G06T3/10
    • G06T3/16
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/20Linear translation of a whole image or part thereof, e.g. panning
    • G06T5/80
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/81Camera processing pipelines; Components thereof for suppressing or minimising disturbance in the image signal generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • G06T2207/20104Interactive definition of region of interest [ROI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/55Optical parts specially adapted for electronic image sensors; Mounting thereof

Definitions

  • Embodiments of the present invention relate to the field of electronic device technologies, and in particular, to a distortion correction method and a terminal.
  • terminal integration such as taking photos, surfing the Internet, games, shopping, etc.
  • the terminal is not omnipotent.
  • the terminal can realize photographing, but the photographing process There are certain constraints on the range of photographs.
  • a wide-angle camera is used for taking pictures, but the image taken by the wide-angle camera is distorted in an area beyond a certain angle range. This distortion is caused by the characteristics of the wide-angle camera itself, and how to select the user. Distortion correction for any of the distorted areas has not been resolved.
  • Embodiments of the present invention provide a method and a terminal for distortion correction, in order to correct a region in a camera image that is distorted to reduce the degree of distortion.
  • Embodiments of the present invention provide a method for distortion correction, including:
  • the steps of performing distortion correction on the M preset size grid regions respectively include:
  • the step of determining the distortion area and the non-distortion area in the wide-angle photo includes:
  • the non-distortion region is determined by the region in the wide-angle photograph in which the distortion coefficient is less than or equal to the preset threshold.
  • the method after performing the distortion correction on the M first preset size grid regions, the method includes:
  • the distortion corrected image is fused to a corresponding position of the wide-angle photo.
  • the step of acquiring a target distortion region selected by a user includes:
  • the target area selected by the user includes the non-distorted area
  • the area of the target area in the distorted area of the wide-angle photograph is determined as the target distorted area.
  • the first spatial transform is a linear spatial transform or a nonlinear spatial transform.
  • the interpolation processing includes linear interpolation, bilinear interpolation, quadratic interpolation, or nonlinear interpolation.
  • the embodiment of the invention further provides a method for distortion correction, which comprises:
  • Distortion correction is performed on the M first preset size grid regions.
  • the performing distortion correction on the M preset size grid regions respectively includes:
  • the determining the distortion region and the non-distortion region in the wide-angle photo includes:
  • the non-distortion region is determined by the region in the wide-angle photograph in which the distortion coefficient is less than or equal to the preset threshold.
  • the method after performing the distortion correction on the M first preset size grid regions, the method includes:
  • the distortion corrected image is fused to a corresponding position of the wide-angle photo.
  • the acquiring the target distortion region selected by the user includes:
  • the target area selected by the user includes the non-distorted area
  • the area of the target area in the distorted area of the wide-angle photograph is determined as the target distorted area.
  • the first spatial transform is a linear spatial transform or a nonlinear spatial transform.
  • the interpolation processing includes linear interpolation, bilinear interpolation, quadratic interpolation, or nonlinear interpolation.
  • the embodiment of the invention further provides a terminal, which includes:
  • a shooting unit for taking a wide-angle photo using the camera of the terminal a shooting unit for taking a wide-angle photo using the camera of the terminal
  • a first determining unit configured to determine a distortion area and a non-distortion area in the wide-angle photograph taken by the photographing unit
  • An obtaining unit configured to acquire a target distortion area selected by a user
  • a dividing unit configured to divide the target distortion region acquired by the acquiring unit into M mesh regions of a first preset size, where M is an integer greater than or equal to 1;
  • a correcting unit respectively performing distortion correction on the M first preset size mesh regions divided by the dividing unit.
  • the correcting unit includes:
  • a second determining unit configured to determine a center mesh area of the M first preset size grid areas divided by the dividing unit
  • a first transform unit configured to perform a first spatial transform on the central mesh region determined by the second determining unit, to obtain a target mesh region of a second preset size
  • a second transforming unit configured to perform second spatial transformation on the mesh regions other than the central mesh region of the M first preset size mesh regions, to obtain M-1 a target grid area of a second preset size
  • An interpolation unit configured to perform interpolation processing on the M target mesh regions according to the scale change size of the M first preset size grid regions, where the scale change size is the first preset size The difference from the second preset size.
  • the first determining unit includes:
  • a third determining unit configured to determine, as the distortion region, a region in the wide-angle photo that the distortion coefficient is greater than a preset threshold
  • a fourth determining unit configured to determine, in the wide-angle photo, a region in which the distortion coefficient is less than or equal to a preset threshold, the non-distortion region.
  • the terminal further includes:
  • a merging unit configured to fuse the corrected unit distortion corrected image to a corresponding position of the wide-angle photo.
  • the acquiring unit is specifically configured to:
  • the target area selected by the user includes the non-distorted area
  • the area of the target area in the distorted area of the wide-angle photograph is determined as the target distorted area.
  • the first space is transformed into a linear spatial transform or a nonlinear spatial transform.
  • the interpolation process includes linear interpolation, bilinear interpolation, quadratic interpolation or nonlinear interpolation.
  • a wide-angle photo is taken by the camera of the terminal; the distorted area and the non-distorted area in the wide-angle photo are determined; the target distorted area selected by the user is obtained; and the target distorted area is divided into M first presets. a mesh area of a size, wherein M is an integer greater than or equal to 1; and respectively correcting the mesh regions of the M first predetermined sizes.
  • the distortion correction can be performed on any distortion region selected by the user by using the embodiment of the invention, so as to reduce the distortion degree of the distortion region.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for correcting distortion according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for correcting distortion according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for correcting distortion according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure
  • FIG. 4b is still another schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 4c is still another schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention.
  • the terminal may include, but is not limited to, a notebook computer, a mobile phone, a tablet computer, a smart wearable device, and the like.
  • the system of the terminal refers to the operating system of the device, which may include but is not limited to: Android system, Symbian system, Windows system, IOS (mobile operating system developed by Apple), XP system, windows 8 systems and so on.
  • Android terminal refers to the terminal of the Android system
  • the Saipan terminal refers to the terminal of the Saipan system, and the like.
  • the above terminals are merely examples, not exhaustive, and include but are not limited to the above terminals.
  • the camera described in the embodiment of the present invention is a wide-angle camera, and the range thereof is larger than the photographing angle of the existing common camera.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for correcting distortion according to an embodiment of the present invention.
  • the method for distortion correction described in this embodiment includes the steps of:
  • the terminal can use the camera of the terminal to take a wide-angle photo
  • the terminal may determine a pre-photographing angle range of the camera of the terminal before taking a wide-angle photo by using the camera of the terminal, and when the user starts the camera of the terminal, the user may adjust the shooting according to the scene that wants to take the photo.
  • the range of angles is determined by the user according to the size of the area occupied by the scene in the scene.
  • the terminal may first acquire a touch instruction of a range of photographing angles selected by the user, and determine a range of pre-photographing angles of the camera of the terminal according to the instruction. For example, if the scene range in the scene is relatively small, the pre-shooting angle range can be adjusted to the lens range of the ordinary camera.
  • the photograph obtained by the photograph has a small distortion, which can be considered as no distortion; if the scene range in the scene Larger, it has exceeded the lens range of the normal camera, and the image of the pre-shooting angle range may need to be corrected for distortion.
  • the camera of the terminal may be a front camera or a rear camera of the terminal; or the camera of the terminal may be a camera controlled by the terminal by wireless or wired.
  • the terminal may determine the distortion area and the non-distortion area in the wide-angle photo.
  • the terminal may set a preset threshold in advance, and determine an area composed of the pixel points larger than the preset threshold as the distortion area, which is less than or equal to the preset threshold.
  • the area is determined to be a non-distorted area.
  • the size of the preset threshold may be set by the user or the system defaults.
  • the distortion coefficient indicates the distortion degree of the image taken by the wide-angle camera.
  • the area corresponding to the distortion coefficient less than a certain preset threshold is considered to be a non-distortion area, and the corresponding photographing angle range may be defined as an undistorted photographing angle range.
  • the terminal may obtain the target distortion area selected by the user.
  • the area selected by the user may be a non-distortion area.
  • the terminal may not need to correct the area, and the distortion area and the non-distortion area are included in the area selected by the user.
  • the region selected by the user the region of the distortion region of the wide-angle photograph is determined as the target distortion region.
  • the target distortion area is divided into M first preset size grid areas, where M is an integer greater than or equal to 1.
  • the terminal may divide the target distortion area into M first preset size grid areas, where the first preset size may include but is not limited to: , , , and many more.
  • the terminal may perform distortion correction on the M first preset size grids respectively.
  • a wide-angle photo is taken by the camera of the terminal; the distorted area and the non-distorted area in the wide-angle photo are determined; the target distorted area selected by the user is obtained; and the target distorted area is divided into M first presets. a mesh area of a size, wherein M is an integer greater than or equal to 1; and respectively correcting the mesh regions of the M first predetermined sizes.
  • the distortion correction can be performed on any distortion region selected by the user by using the embodiment of the invention, so as to reduce the distortion degree of the distortion region.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a method for correcting distortion according to an embodiment of the present invention.
  • the method for distortion correction described in this embodiment includes the steps of:
  • the terminal can use the camera of the terminal to take a wide-angle photo
  • the terminal may determine a pre-photographing angle range of the camera of the terminal before taking a wide-angle photo by using the camera of the terminal, and when the user starts the camera of the terminal, the user may adjust the shooting according to the scene that wants to take the photo.
  • the range of angles is determined by the user according to the size of the area occupied by the scene in the scene.
  • the terminal may first acquire a touch instruction of a range of photographing angles selected by the user, and determine a range of pre-photographing angles of the camera of the terminal according to the instruction. For example, if the scene range in the scene is relatively small, the pre-shooting angle range can be adjusted to the lens range of the ordinary camera.
  • the photograph obtained by the photograph has a small distortion, which can be considered as no distortion; if the scene range in the scene Larger, it has exceeded the lens range of the ordinary camera, and the image of the pre-shooting angle range may have to be corrected for distortion.
  • the camera of the terminal may be a front camera or a rear camera of the terminal; or the camera of the terminal may be a camera controlled by the terminal by wireless or wired.
  • the terminal may determine the distortion area and the non-distortion area in the wide-angle photo.
  • the terminal may set a preset threshold in advance, and determine an area composed of the pixel points larger than the preset threshold as the distortion area, which is less than or equal to the preset threshold.
  • the area is determined to be a non-distorted area.
  • the size of the preset threshold may be set by the user or the system defaults.
  • the distortion coefficient indicates the distortion degree of the image taken by the wide-angle camera.
  • the area corresponding to the distortion coefficient less than a certain preset threshold is considered to be a non-distortion area, and the corresponding photographing angle range may be defined as an undistorted photographing angle range.
  • the terminal may obtain the target distortion area selected by the user.
  • the area selected by the user may be a non-distortion area.
  • the terminal may not need to correct the area, and the distortion area and the non-distortion area are included in the area selected by the user.
  • the region selected by the user the region of the distortion region of the wide-angle photograph is determined as the target distortion region.
  • the target distortion area is divided into M first preset size grid areas, where M is an integer greater than or equal to 1.
  • the terminal may divide the target distortion area into M first preset size grid areas, where the first preset size may include but is not limited to: , , , , and many more.
  • the central mesh area may be determined according to the positional relationship of the mesh areas of the first preset sizes of the M.
  • the terminal may perform a first spatial transformation on the central mesh region, and the first spatial transformation may be a linear spatial transformation or a nonlinear spatial transformation, that is, the image of the central mesh region is stretched.
  • the terminal may perform a second spatial transformation on the mesh areas other than the central mesh area of the M first preset size grid regions, where the first preset size may include but is not limited to: , , , and many more.
  • the first spatial transform may perform spatial transform using a first transform coefficient
  • the second spatial transform may perform spatial transform using a second transform coefficient, where the first transform coefficient and the second transform coefficient may be different, based on the first transform coefficient.
  • the second transform coefficient of the second spatial transform performs a second spatial transform on the other mesh regions except the central mesh region in the M mesh regions based on the second transform coefficient to obtain an M-1 target mesh region. At this point, after two spatial transformations, M target mesh regions are obtained.
  • S208 Perform interpolation processing on the M target mesh regions according to the scale change sizes of the M first preset size grid regions, where the scale change size is the first preset size and the second The difference between the preset sizes.
  • the M target mesh regions may be interpolated, and the interpolation coefficients may be determined according to the difference between the first preset size and the second preset size.
  • the interpolation coefficient interpolates the M mesh regions, and the M target mesh regions are respectively interpolated according to the scale change sizes of the M first preset size grid regions, wherein the scale changes size
  • the interpolation coefficient may be determined according to the difference between the first preset size and the second preset size, and the target mesh region i is interpolated by using
  • the terminal may perform interpolation processing on the M target mesh regions according to the scale change sizes of the M first preset size grid regions, where the scale change size is the first preset size and the second preset size.
  • the difference between the two is to smooth the mesh area to make it appear excessively natural with the surrounding area.
  • Interpolation processing may include linear interpolation, bilinear interpolation, quadratic interpolation or nonlinear interpolation.
  • a wide-angle photo is taken by the camera of the terminal; the distorted area and the non-distorted area in the wide-angle photo are determined; the target distorted area selected by the user is obtained; and the target distorted area is divided into M first presets.
  • a mesh area of a size wherein M is an integer greater than or equal to 1; determining a central mesh region of the M first predetermined size mesh regions; spatially transforming the central mesh region to obtain a target mesh area of a second preset size; spatially transforming other mesh areas of the M first preset size mesh areas except the central mesh area to obtain M-1 a target mesh area of the second preset size; performing interpolation processing on the M target mesh areas according to the scale change sizes of the M first preset size grid regions, wherein the scale changes
  • the size is a difference between the first preset size and the second preset size.
  • the distortion correction can be performed on any distortion region selected by the user by using the embodiment of the invention, so as to reduce the distortion degree of the distortion region.
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for correcting distortion according to an embodiment of the present invention.
  • the method for distortion correction described in this embodiment includes the steps of:
  • the terminal can use the camera of the terminal to take a wide-angle photo
  • the terminal may determine a pre-photographing angle range of the camera of the terminal before taking a wide-angle photo by using the camera of the terminal, and when the user starts the camera of the terminal, the user may adjust the shooting according to the scene that wants to take the photo.
  • the range of angles is determined by the user according to the size of the area occupied by the scene in the scene.
  • the terminal may first acquire a touch instruction of a range of photographing angles selected by the user, and determine a range of pre-photographing angles of the camera of the terminal according to the instruction. For example, if the scene range in the scene is relatively small, the pre-shooting angle range can be adjusted to the lens range of the ordinary camera.
  • the photograph obtained by the photograph has a small distortion, which can be considered as no distortion; if the scene range in the scene Larger, it has exceeded the lens range of the normal camera, and the image of the pre-shooting angle range may need to be corrected for distortion.
  • the camera of the terminal may be a front camera or a rear camera of the terminal; or the camera of the terminal may be a camera controlled by the terminal by wireless or wired.
  • the terminal may determine the distortion area and the non-distortion area in the wide-angle photo.
  • the terminal may set a preset threshold in advance, and determine an area composed of the pixel points larger than the preset threshold as the distortion area, which is less than or equal to the preset threshold.
  • the area is determined to be a non-distorted area.
  • the size of the preset threshold may be set by the user or the system defaults.
  • the distortion coefficient indicates the distortion degree of the image taken by the wide-angle camera.
  • the area corresponding to the distortion coefficient less than a certain preset threshold is considered to be a non-distortion area, and the corresponding photographing angle range may be defined as an undistorted photographing angle range.
  • the terminal may obtain the target distortion area selected by the user.
  • the area selected by the user may be a non-distortion area.
  • the terminal may not need to correct the area, and the distortion area and the non-distortion area are included in the area selected by the user.
  • the region selected by the user the region of the distortion region of the wide-angle photograph is determined as the target distortion region.
  • the target distortion area is divided into M first preset size grid areas, where M is an integer greater than or equal to 1.
  • the terminal may divide the target distortion area into M first preset size grid areas, where the first preset size may include but is not limited to: , , , , and many more.
  • the terminal may perform distortion correction on the M first preset size grids respectively.
  • the distortion corrected image is fused to a corresponding position of the wide-angle photo.
  • the terminal can adjust the size of the area after the distortion correction, and smooth the adjusted edge portion, so that the distortion corrected image is better fused to the corresponding position of the wide-angle photo.
  • a wide-angle photo is taken by the camera of the terminal; the distorted area and the non-distorted area in the wide-angle photo are determined; the target distorted area selected by the user is obtained; and the target distorted area is divided into M first presets. a mesh area of a size, wherein M is an integer greater than or equal to 1; and respectively correcting the mesh regions of the M first predetermined sizes.
  • distortion correction can be performed on any distortion region selected by the user, so that the distortion corrected image is fused to the corresponding position of the wide-angle photo to reduce the distortion degree of the distortion region.
  • FIG. 4a is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes:
  • the photographing unit 401 is configured to take a wide-angle photograph by using the camera of the terminal.
  • the photographing unit 401 can take a wide-angle photo by using the camera of the terminal.
  • the photographing unit 401 may determine a pre-photographing angle range of the camera of the terminal before the camera of the terminal captures a wide-angle photo, and the user starts the camera of the terminal.
  • the angle range of the shooting can be adjusted according to the scene to be photographed, and the range of the pre-photographing angle is determined by the user according to the size of the area occupied by the scene in the scene.
  • the terminal may first acquire a touch instruction of a range of photographing angles selected by the user, and determine a range of pre-photographing angles of the camera of the terminal according to the instruction. For example, if the scene range in the scene is relatively small, the pre-shooting angle range can be adjusted to the lens range of the ordinary camera.
  • the photograph obtained by the photograph has a small distortion, which can be considered as no distortion; if the scene range in the scene Larger, it has exceeded the lens range of the normal camera, and the image of the pre-shooting angle range may need to be corrected for distortion.
  • the camera of the terminal may be a front camera or a rear camera of the terminal; or the camera of the terminal may be a camera controlled by the terminal by wireless or wired.
  • the first determining unit 402 is configured to determine a distortion area and a non-distortion area in the wide-angle photo captured by the shooting unit 401.
  • the first determining unit 402 may determine the distortion area and the non-distortion area in the wide-angle photo.
  • the terminal may set a preset threshold in advance, and determine an area composed of the pixel points larger than the preset threshold as the distortion area, which will be less than or equal to
  • the area of the preset threshold is determined to be a non-distorted area.
  • the size of the preset threshold may be set by the user or the system defaults. It should be noted that, in general, due to the characteristics of the wide-angle camera itself, the distortion of the wide-angle camera always exists, and the wide-angle camera usually has a symmetrical characteristic, and the distortion coefficient is symmetrically distributed from the center position of the wide-angle camera to both sides.
  • the distortion coefficient has appeared in the prior art and will not be described too much here.
  • the distortion coefficient indicates the distortion degree of the image taken by the wide-angle camera.
  • the area corresponding to the distortion coefficient less than a certain preset threshold is considered to be a non-distortion area, and the corresponding photographing angle range may be defined as an undistorted photographing angle range.
  • the obtaining unit 403 is configured to acquire a target distortion area selected by the user.
  • the obtaining unit 403 can obtain the target distortion area selected by the user.
  • the area selected by the user may be a non-distortion area.
  • the terminal may not need to correct the area, and the area selected by the user includes the distortion area and the non-distortion area.
  • the area selected by the user in the distorted area of the wide-angle photograph is determined as the target distorted area.
  • the dividing unit 404 is configured to divide the target distortion area acquired by the acquiring unit into M mesh areas of a first preset size, where M is an integer greater than or equal to 1.
  • the dividing unit 404 may divide the target distortion area into M first preset size grid areas, where the first preset size may include, but is not limited to: , , , , and the like.
  • the correcting unit 405 performs distortion correction on the M first preset size mesh regions divided by the dividing unit.
  • the correcting unit 405 can perform distortion correction on the M first preset size grids, respectively.
  • the correction unit 405 of the terminal described in FIG. 4a may include: a first determining unit 4021 and a second determining unit 4022, as follows:
  • the second determining unit 4051 is configured to determine a central mesh area of the M first preset size grid regions divided by the dividing unit.
  • the second determining unit 4051 may determine the central mesh region according to the positional relationship of the mesh regions of the first preset sizes of the M.
  • the first transform unit 4052 is configured to perform a first spatial transform on the central mesh region determined by the second determining unit to obtain a target mesh region of a second preset size.
  • the first transform unit 4052 can perform a first spatial transform on the central mesh region, and the first spatial transform can be a linear spatial transform or a nonlinear spatial transform, that is, the image of the central mesh region is stretched.
  • a second transform unit 4053 configured to perform second spatial transformation on the mesh regions other than the central mesh region of the M first preset size mesh regions, to obtain M-1 The target mesh area of the second preset size
  • the second transform unit 4053 may perform a second spatial transform on the mesh regions other than the central mesh region of the M first preset size grid regions, where the first preset size may include but Not limited to: , , , , and many more.
  • the interpolation unit 4054 is configured to perform interpolation processing on the M target mesh regions according to the scale change sizes of the M first preset size grid regions, where the scale change size is the first preset The difference between the size and the second preset size.
  • the interpolation unit 4054 may perform interpolation processing on the M target mesh regions according to the scale change sizes of the M first preset size grid regions, where the scale change size is the first preset size and the second preset. The difference between the sizes, the purpose of the interpolation is to smooth the mesh area to make it look excessively natural with the surrounding area. Interpolation processing may include: linear interpolation, bilinear interpolation, quadratic interpolation or nonlinear interpolation. Wait.
  • the first determining unit 402 of the terminal described in FIG. 4a may include: a third determining unit 4021 and a fourth determining unit 4022, as follows:
  • the third determining unit 4021 is configured to determine, as the distortion region, an area in the wide-angle photo that the distortion coefficient is greater than a preset threshold.
  • the fourth determining unit 4022 is configured to determine a non-distorted area by using an area in the wide-angle photo that the distortion coefficient is less than or equal to a preset threshold.
  • the terminal described in FIG. 4a may further include:
  • the merging unit 406 is configured to fuse the corrected image of the correcting unit 405 to a corresponding position of the wide-angle photo.
  • the merging unit 406 can adjust the size of the region after the distortion correction of the correction unit 405, and smooth the adjusted edge portion, so that the distortion corrected image is better fused to the corresponding position of the wide-angle photo.
  • the terminal described in the embodiment of the present invention uses a camera of the terminal to take a wide-angle photo; determines a distorted area and a non-distorted area in the wide-angle photo; acquires a target distorted area selected by the user; and divides the target distorted area into M a grid area of a first preset size, where M is an integer greater than or equal to 1; and respectively correcting the mesh areas of the M first preset sizes.
  • the distortion correction can be performed on any distortion region selected by the user by using the embodiment of the invention, so as to reduce the distortion degree of the distortion region.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 Connected via bus 5000.
  • the input device 1000 can be a touch panel, a general PC, a liquid crystal screen, a touch screen, a touch button, and the like.
  • the above memory 4000 may be a high speed RAM memory or a non-volatile memory (non-volatile) Memory), such as disk storage.
  • the above memory 4000 is used to store a set of program codes, and the input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and perform the following operations:
  • the processor 3000 is configured to: capture a wide-angle photo by using a camera of the terminal;
  • Distortion correction is performed on the M first preset size grid regions.
  • the processor 3000 performs distortion correction on the M preset size grid regions, specifically:
  • the processor 3000 determines the distortion area and the non-distortion area in the wide-angle photo, specifically:
  • the non-distortion region is determined by the region in the wide-angle photograph in which the distortion coefficient is less than or equal to the preset threshold.
  • the processor is specifically configured to:
  • the distortion corrected image is fused to a corresponding position of the wide-angle photo.
  • the processor 3000 takes the target distortion area selected by the user, specifically:
  • the target area selected by the user includes the non-distorted area
  • the area of the target area in the distorted area of the wide-angle photograph is determined as the target distorted area.
  • the terminal described in the embodiment of the present invention uses a camera of the terminal to take a wide-angle photo; determines a distorted area and a non-distorted area in the wide-angle photo; acquires a target distorted area selected by the user; and divides the target distorted area into M a grid area of a first preset size, where M is an integer greater than or equal to 1; and respectively correcting the mesh areas of the M first preset sizes.
  • the distortion correction can be performed on any distortion region selected by the user by using the embodiment of the invention, so as to reduce the distortion degree of the distortion region.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the signal processing methods described in the foregoing method embodiments.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the above units is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described above as separate components may or may not be physically separated.
  • the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the above-described integrated unit if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • the instructions include a plurality of instructions for causing a computer device (which may be a personal computer, server or network device, etc., and in particular a processor in a computer device) to perform all or part of the steps of the above-described methods of various embodiments of the present invention.
  • the foregoing storage medium may include: a U disk, a mobile hard disk, a magnetic disk, an optical disk, a read only memory (English: Read-Only Memory, abbreviation: ROM) or random access memory (English: Random Access Memory, abbreviation: RAM) and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Geometry (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Solid State Image Pick-Up Elements (AREA)

Abstract

本发明实施例公开了一种畸变校正的方法,包括:利用终端的摄像头拍摄一张广角照片;确定所述广角照片中的畸变区域和非畸变区域;获取用户选择的目标畸变区域;将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;分别对所述M个第一预设大小的网格区域进行畸变校正。本发明实施例还公开了一种终端。

Description

一种畸变校正方法及终端 技术领域
本发明实施例涉及电子设备技术领域,尤其涉及到一种畸变校正方法及终端。
背景技术
随着信息技术的迅速发展,终端的集成可实现的功能越来越多,如拍照、上网、游戏、购物等等,但是终端不是万能的,现有技术中,终端可实现拍照,但是拍照过程中拍照范围存在着一定的约束。
通常情况下,会想到采用广角摄像头进行拍照,但是广角摄像头拍摄出来的图像在超出一定角度范围之外的区域产生畸变,这种畸变的产生是由于广角摄像头自身的特性造成的,如何对用户选择的任一畸变区域进行畸变校正一直尚未解决。
技术问题
本发明实施例提供了一种畸变校正的方法及终端,以期对摄像头图像中产生畸变的区域进行校正,以减小畸变程度。
技术解决方案
本发明实施例提供一种畸变校正的方法,其包括:
利用终端的摄像头拍摄一张广角照片;
确定所述广角照片中的畸变区域和非畸变区域;
获取用户选择的目标畸变区域;
将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;
分别对所述M个第一预设大小的网格区域进行畸变校正;
其中分别对所述M个预设大小的网格区域进行畸变校正的步骤包括:
确定所述M个第一预设大小的网格区域的中心网格区域;
将所述中心网格区域进行第一空间变换,以得到第二预设大小的目标网格区域;
将所述M个第一预设大小的网格区域中除所述中心网格区域之外的其他网格区域分别进行第二空间变换,以得到M-1个所述第二预设大小的目标网格区域;
按照所述M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,所述尺度改变大小为所述第一预设大小与第二预设大小之间的差值;
其中所述确定所述广角照片中的畸变区域和非畸变区域的步骤包括:
将所述广角照片中畸变系数大于预设阈值的区域确定为畸变区域;
将所述广角照片中畸变系数小于或等于预设阈值的区域确定非畸变区域。
在本发明所述的畸变校正的方法中,所述分别对所述M个第一预设大小的网格区域进行畸变校正之后,包括:
将所述畸变校正后的图像融合于所述广角照片的对应位置。
在本发明所述的畸变校正的方法中,所述获取用户选择的目标畸变区域的步骤包括:
在用户选择的目标区域包含所述非畸变区域的情况下,将所述目标区域在所述广角照片的畸变区域的区域确定为目标畸变区域。
在本发明所述的畸变校正的方法中,第一空间变换为线性空间变换或非线性空间变换。
在本发明所述的畸变校正的方法中,所述插值处理包括线性插值、双线性插值、二次插值或非线性插值。
本发明实施例还提供一种畸变校正的方法,其包括:
利用终端的摄像头拍摄一张广角照片;
确定所述广角照片中的畸变区域和非畸变区域;
获取用户选择的目标畸变区域;
将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;
分别对所述M个第一预设大小的网格区域进行畸变校正。
在本发明所述的畸变校正的方法中,所述分别对所述M个预设大小的网格区域进行畸变校正,包括:
确定所述M个第一预设大小的网格区域的中心网格区域;
将所述中心网格区域进行第一空间变换,以得到第二预设大小的目标网格区域;
将所述M个第一预设大小的网格区域中除所述中心网格区域之外的其他网格区域分别进行第二空间变换,以得到M-1个所述第二预设大小的目标网格区域;
按照所述M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,所述尺度改变大小为所述第一预设大小与第二预设大小之间的差值。
在本发明所述的畸变校正的方法中,所述确定所述广角照片中的畸变区域和非畸变区域,包括:
将所述广角照片中畸变系数大于预设阈值的区域确定为畸变区域;
将所述广角照片中畸变系数小于或等于预设阈值的区域确定非畸变区域。
在本发明所述的畸变校正的方法中,所述分别对所述M个第一预设大小的网格区域进行畸变校正之后,包括:
将所述畸变校正后的图像融合于所述广角照片的对应位置。
在本发明所述的畸变校正的方法中,所述获取用户选择的目标畸变区域,包括:
在用户选择的目标区域包含所述非畸变区域的情况下,将所述目标区域在所述广角照片的畸变区域的区域确定为目标畸变区域。
在本发明所述的畸变校正的方法中,第一空间变换为线性空间变换或非线性空间变换。
在本发明所述的畸变校正的方法中,所述插值处理包括线性插值、双线性插值、二次插值或非线性插值。
本发明实施例还提供一种终端,其包括:
拍摄单元,用于利用终端的摄像头拍摄一张广角照片;
第一确定单元,用于确定所述拍摄单元拍摄的广角照片中的畸变区域和非畸变区域;
获取单元,用于获取用户选择的目标畸变区域;
划分单元,用于将所述获取单元获取到的目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;
校正单元,分别对所述划分单元划分的M个第一预设大小的网格区域进行畸变校正。
在本发明所述的终端中,所述校正单元包括:
第二确定单元,用于确定所述划分单元划分的M个第一预设大小的网格区域的中心网格区域;
第一变换单元,用于将所述第二确定单元确定的中心网格区域进行第一空间变换,以得到第二预设大小的目标网格区域;
第二变换单元,用于将所述M个第一预设大小的网格区域中除所述中心网格区域之外的其他网格区域分别进行第二空间变换,以得到M-1个所述第二预设大小的目标网格区域;
插值单元,用于按照所述M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,所述尺度改变大小为所述第一预设大小与第二预设大小之间的差值。
在本发明所述的终端中,所述第一确定单元包括:
第三确定单元,用于将所述广角照片中畸变系数大于预设阈值的区域确定为畸变区域;
第四确定单元,用于将所述广角照片中畸变系数小于或等于预设阈值的区域确定非畸变区域。
在本发明所述的终端中,所述终端还包括:
融合单元,用于将所述校正单元畸变校正后的图像融合于所述广角照片的对应位置。
在本发明所述的终端中,所述获取单元具体用于:
在用户选择的目标区域包含所述非畸变区域的情况下,将所述目标区域在所述广角照片的畸变区域的区域确定为目标畸变区域。
在本发明所述的终端中,第一空间变换为线性空间变换或非线性空间变换。
在本发明所述的终端中,所述插值处理包括线性插值、双线性插值、二次插值或非线性插值
有益效果
本发明实施例利用终端的摄像头拍摄一张广角照片;确定所述广角照片中的畸变区域和非畸变区域;获取用户选择的目标畸变区域;将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;分别对所述M个第一预设大小的网格区域进行畸变校正。采用本发明实施例可对用户选择的任一畸变区域进行畸变校正,从而,以减小畸变区域的畸变程度。
附图说明
图1为本发明实施例提供的一种畸变校正的方法的第一实施例的流程示意图;
图2为本发明实施例提供的一种畸变校正的方法的第二实施例的流程示意图;
图3为本发明实施例提供的一种畸变校正的方法的第三实施例的流程示意图;
图4a为本发明实施例提供的一种终端的第一实施例的结构示意图;
图4b为本发明实施例提供的一种终端的第一实施例的又一结构示意图;
图4c为本发明实施例提供的一种终端的第一实施例的又一结构示意图;
图4d为本发明实施例提供的一种终端的第一实施例的又一结构示意图;
图5为本发明实施例提供的一种终端的第二实施例的结构示意图。
本发明的最佳实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。
实现中, 本发明实施例中,终端可以包括但不限于:笔记本电脑、手机、平板电脑、智能可穿戴设备等等。终端的系统指设备的操作系统,可以包括但不限于:Android系统、塞班系统、Windows系统、IOS(苹果公司开发的移动操作系统)、XP系统、windows 8系统等等。需要说明的是,Android终端指Android系统的终端,塞班终端指塞班系统的终端,等等。上述终端仅是举例,而非穷举,包含但不限于上述终端。
实施中,本发明实施例所描述的摄像头为广角摄像头,其范围大于现有的普通摄像头的拍照角度。
本发明实施例结合图1至图5对本发明实施例提供的一种畸变校正的方法及终端进行描述。
请参阅图1,图1是本发明实施例提供的一种畸变校正的方法的第一实施例的流程示意图。本实施例中所描述的畸变校正的方法,包括步骤:
S101、利用终端的摄像头拍摄一张广角照片。
其中,终端可利用该终端的摄像头拍摄一张广角照片
作为一种可能的实施方式,终端可在利用终端的摄像头拍摄一张广角照片之前,确定该终端的摄像头的预拍照角度范围,用户在启动终端的摄像头的时候,可依据想拍照的景物调整拍摄的角度范围,预拍照角度范围,就是用户依据场景中景物所占区域的大小进行确定。终端可先获取用户选择的拍照角度范围的触摸指令,根据该指令确定终端的摄像头的预拍照角度范围。例如,若场景中的景物范围比较小,则预拍照角度范围可调整为普通摄像头的镜头范围,在这种情况下,拍照得到的照片畸变很小,可认为无畸变;若场景中的景物范围较大,已经超过了普通摄像头的镜头范围,预拍照角度范围的图像可能要进行畸变校正。
作为一种可能的实施方式,终端的摄像头可为终端的前置摄像头或者后置摄像头;或者,终端的摄像头可为终端通过无线方式或者有线方式控制的摄像头。
S102、确定所述广角照片中的畸变区域和非畸变区域。
其中,终端可确定广角照片中的畸变区域和非畸变区域,终端可事先设置一个预设阈值,将大于该预设阈值的像素点组成的区域确定为畸变区域,将小于或等于该预设阈值的区域确定为非畸变区域,进一步地,预设阈值的大小可由用户自行设置或者系统默认。需要说明的是,通常情况下,由于广角摄像头自身的特性,因而,广角摄像头的畸变一直存在的,且广角摄像头通常情况下具有对称特性,以广角摄像头的中心位置到两边,畸变系数呈现对称分布,畸变系数已经在现有技术中出现过,在此不作过多描述。畸变系数表示广角摄像头拍摄的图像的畸变程度,广角摄像头的畸变系数越大,说明畸变越大,而广角摄像头的畸变系数在一定范围内,即畸变系数小于某一预设阈值的情况,则可认为畸变系数小于某一预设阈值对应的区域为非畸变区域,其对应的拍照角度范围可定义为无畸变拍照角度范围。
S103、获取用户选择的目标畸变区域。
其中,终端可获取用户选择的目标畸变区域,通常情况下,用户选择的区域可能为非畸变区域,此时,终端可不用对该区域进行校正,在用户选择的区域包含畸变区域和非畸变区域的情况下,将用户选择的区域在广角照片的畸变区域的区域确定为目标畸变区域。
S104、将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数。
其中,终端可将目标畸变区域划分为M个第一预设大小的网格区域,其中,第一预设大小可包括但不仅限于: 、 、 、 、 等等。
S105、分别对所述M个第一预设大小的网格区域进行畸变校正。
其中,终端可分别对上述M个第一预设大小的网格进行畸变校正。
本发明实施例利用终端的摄像头拍摄一张广角照片;确定所述广角照片中的畸变区域和非畸变区域;获取用户选择的目标畸变区域;将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;分别对所述M个第一预设大小的网格区域进行畸变校正。采用本发明实施例可对用户选择的任一畸变区域进行畸变校正,从而,以减小畸变区域的畸变程度。
请参阅图2,图2是本发明实施例提供的一种畸变校正的方法的第二实施例的流程示意图。本实施例中所描述的畸变校正的方法,包括步骤:
S201、利用终端的摄像头拍摄一张广角照片。
其中,终端可利用该终端的摄像头拍摄一张广角照片
作为一种可能的实施方式,终端可在利用终端的摄像头拍摄一张广角照片之前,确定该终端的摄像头的预拍照角度范围,用户在启动终端的摄像头的时候,可依据想拍照的景物调整拍摄的角度范围,预拍照角度范围,就是用户依据场景中景物所占区域的大小进行确定。终端可先获取用户选择的拍照角度范围的触摸指令,根据该指令确定终端的摄像头的预拍照角度范围。例如,若场景中的景物范围比较小,则预拍照角度范围可调整为普通摄像头的镜头范围,在这种情况下,拍照得到的照片畸变很小,可认为无畸变;若场景中的景物范围较大,已经超过了普通摄像头的镜头范围,预拍照角度范围的图像可能要进行畸变校正。
作为一种可能的实施方式,终端的摄像头可为终端的前置摄像头或者后置摄像头;或者,终端的摄像头可为终端通过无线方式或者有线方式控制的摄像头。
S202、确定所述广角照片中的畸变区域和非畸变区域。
其中,终端可确定广角照片中的畸变区域和非畸变区域,终端可事先设置一个预设阈值,将大于该预设阈值的像素点组成的区域确定为畸变区域,将小于或等于该预设阈值的区域确定为非畸变区域,进一步地,预设阈值的大小可由用户自行设置或者系统默认。需要说明的是,通常情况下,由于广角摄像头自身的特性,因而,广角摄像头的畸变一直存在的,且广角摄像头通常情况下具有对称特性,以广角摄像头的中心位置到两边,畸变系数呈现对称分布,畸变系数已经在现有技术中出现过,在此不作过多描述。畸变系数表示广角摄像头拍摄的图像的畸变程度,广角摄像头的畸变系数越大,说明畸变越大,而广角摄像头的畸变系数在一定范围内,即畸变系数小于某一预设阈值的情况,则可认为畸变系数小于某一预设阈值对应的区域为非畸变区域,其对应的拍照角度范围可定义为无畸变拍照角度范围。
S203、获取用户选择的目标畸变区域。
其中,终端可获取用户选择的目标畸变区域,通常情况下,用户选择的区域可能为非畸变区域,此时,终端可不用对该区域进行校正,在用户选择的区域包含畸变区域和非畸变区域的情况下,将用户选择的区域在广角照片的畸变区域的区域确定为目标畸变区域。
S204、将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数。
其中,终端可将目标畸变区域划分为M个第一预设大小的网格区域,其中,第一预设大小可包括但不仅限于: 、 、 、 、 等等。
S205、确定所述M个第一预设大小的网格区域的中心网格区域。
其中,可根据M各第一预设大小的网格区域的位置关系确定中心网格区域。
S206、将所述中心网格区域进行第一空间变换,以得到第二预设大小的目标网格区域。
其中,终端可将中心网格区域进行第一空间变换,第一空间变换可为线性空间变换或者非线性空间变换,即将中心网格区域的图像进行拉伸处理。
S207、将所述M个第一预设大小的网格区域中除所述中心网格区域之外的其他网格区域分别进行第二空间变换,以得到M-1个所述第二预设大小的目标网格区域。
其中,终端可将M个第一预设大小的网格区域中除中心网格区域之外的其他网格区域分别进行第二空间变换,其中,第一预设大小可包括但不仅限于: 、 、 、 、 等等。
其中,上述第一空间变换可采用第一变换系数进行空间变换,第二空间变换可采用第二变换系数进行空间变换,其中,第一变换系数与第二变换系数可不一样,基于第一变换系数对第一预设大小的中心网格区域进行第一空间变换,得到第二预设大小的目标网格区域,例如,可基于中心网格区域的顶点,将该中心网格区域拉伸为一个平面区域,或者,还可基于中心网格区域的顶点,将该中心网格区域拉伸成为一个曲面区域。为了使上述M个第一预设大小的网格区域中其他网格区域的大小与第二预设大小一致,那么,可根据第一预设大小与第二预设大小之间的尺寸比例确定第二空间变换的第二变换系数,基于该第二变换系数对M个网格区域中除了该中心网格区域外的其他网格区域进行第二空间变换,得到M-1目标网格区域。至此,两次空间变换后,得到M个目标网格区域。
S208、按照所述M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,所述尺度改变大小为所述第一预设大小与第二预设大小之间的差值。
为了使得该M个网格区域的图像看起来更加自然,则可对该M个目标网格区域进行插值处理,可根据第一预设大小和第二预设大小之间的差值确定插值系数,第一预设尺寸与第二预设尺寸之间的差值越小,插值系数越小,第一预设尺寸与第二预设尺寸之间的差值越大,插值系数越大,利用该插值系数对上述M个网格区域进行插值处理,即可按照M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,该尺度改变大小为第一预设大小与第二预设大小之间的差值,以目标网格区域i来说,该目标网格区域i为M个目标网格区域中的一个,目标网络区域i空间变换后由第一预设大小变为第二预设大小,可根据第一预设大小与第二预设大小之间的差值确定插值系数,利用该插值系数对目标网格区域i进行插值处理。
其中,终端可按照M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,尺度改变大小为第一预设大小与第二预设大小之间的差值,插值的目的在于对网格区域进行平滑处理,使其与周围区域看起来过度自然,插值处理可包括:线性插值、双线性插值、二次插值或者非线性插值等等。
本发明实施例利用终端的摄像头拍摄一张广角照片;确定所述广角照片中的畸变区域和非畸变区域;获取用户选择的目标畸变区域;将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;确定所述M个第一预设大小的网格区域的中心网格区域;将所述中心网格区域进行空间变换,以得到第二预设大小的目标网格区域;将所述M个第一预设大小的网格区域中除所述中心网格区域之外的其他网格区域分别进行空间变换,以得到M-1个所述第二预设大小的目标网格区域;按照所述M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,所述尺度改变大小为所述第一预设大小与第二预设大小之间的差值。采用本发明实施例可对用户选择的任一畸变区域进行畸变校正,从而,以减小畸变区域的畸变程度。
请参阅图3,图3是本发明实施例提供的一种畸变校正的方法的第三实施例的流程示意图。本实施例中所描述的畸变校正的方法,包括步骤:
S301、利用终端的摄像头拍摄一张广角照片。
其中,终端可利用该终端的摄像头拍摄一张广角照片
作为一种可能的实施方式,终端可在利用终端的摄像头拍摄一张广角照片之前,确定该终端的摄像头的预拍照角度范围,用户在启动终端的摄像头的时候,可依据想拍照的景物调整拍摄的角度范围,预拍照角度范围,就是用户依据场景中景物所占区域的大小进行确定。终端可先获取用户选择的拍照角度范围的触摸指令,根据该指令确定终端的摄像头的预拍照角度范围。例如,若场景中的景物范围比较小,则预拍照角度范围可调整为普通摄像头的镜头范围,在这种情况下,拍照得到的照片畸变很小,可认为无畸变;若场景中的景物范围较大,已经超过了普通摄像头的镜头范围,预拍照角度范围的图像可能要进行畸变校正。
作为一种可能的实施方式,终端的摄像头可为终端的前置摄像头或者后置摄像头;或者,终端的摄像头可为终端通过无线方式或者有线方式控制的摄像头。
S302、确定所述广角照片中的畸变区域和非畸变区域。
其中,终端可确定广角照片中的畸变区域和非畸变区域,终端可事先设置一个预设阈值,将大于该预设阈值的像素点组成的区域确定为畸变区域,将小于或等于该预设阈值的区域确定为非畸变区域,进一步地,预设阈值的大小可由用户自行设置或者系统默认。需要说明的是,通常情况下,由于广角摄像头自身的特性,因而,广角摄像头的畸变一直存在的,且广角摄像头通常情况下具有对称特性,以广角摄像头的中心位置到两边,畸变系数呈现对称分布,畸变系数已经在现有技术中出现过,在此不作过多描述。畸变系数表示广角摄像头拍摄的图像的畸变程度,广角摄像头的畸变系数越大,说明畸变越大,而广角摄像头的畸变系数在一定范围内,即畸变系数小于某一预设阈值的情况,则可认为畸变系数小于某一预设阈值对应的区域为非畸变区域,其对应的拍照角度范围可定义为无畸变拍照角度范围。
S303、获取用户选择的目标畸变区域。
其中,终端可获取用户选择的目标畸变区域,通常情况下,用户选择的区域可能为非畸变区域,此时,终端可不用对该区域进行校正,在用户选择的区域包含畸变区域和非畸变区域的情况下,将用户选择的区域在广角照片的畸变区域的区域确定为目标畸变区域。
S304、将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数。
其中,终端可将目标畸变区域划分为M个第一预设大小的网格区域,其中,第一预设大小可包括但不仅限于: 、 、 、 、 等等。
S305、分别对所述M个第一预设大小的网格区域进行畸变校正。
其中,终端可分别对上述M个第一预设大小的网格进行畸变校正。
S306、将所述畸变校正后的图像融合于所述广角照片的对应位置。
其中,终端可对畸变校正后的区域的大小进行调整,同时对该调整后的边缘部分进行平滑处理,使畸变校正后的图像更好地融合于广角照片的对应位置。
本发明实施例利用终端的摄像头拍摄一张广角照片;确定所述广角照片中的畸变区域和非畸变区域;获取用户选择的目标畸变区域;将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;分别对所述M个第一预设大小的网格区域进行畸变校正。采用本发明实施例可对用户选择的任一畸变区域进行畸变校正,从而,以减小畸变区域的畸变程度,将所述畸变校正后的图像融合于所述广角照片的对应位置。
请参阅图4a,图4a是本发明实施例提供的一种终端的第一实施例的结构示意图。本实施例中所描述的终端,包括:
拍摄单元401,用于利用终端的摄像头拍摄一张广角照片。
其中,拍摄单元401可利用该终端的摄像头拍摄一张广角照片
作为一种可能的实施方式,拍摄单元401可在利用终端的摄像头拍摄一张广角照片之前,确定单元(图中未标出)确定该终端的摄像头的预拍照角度范围,用户在启动终端的摄像头的时候,可依据想拍照的景物调整拍摄的角度范围,预拍照角度范围,就是用户依据场景中景物所占区域的大小进行确定。终端可先获取用户选择的拍照角度范围的触摸指令,根据该指令确定终端的摄像头的预拍照角度范围。例如,若场景中的景物范围比较小,则预拍照角度范围可调整为普通摄像头的镜头范围,在这种情况下,拍照得到的照片畸变很小,可认为无畸变;若场景中的景物范围较大,已经超过了普通摄像头的镜头范围,预拍照角度范围的图像可能要进行畸变校正。
作为一种可能的实施方式,终端的摄像头可为终端的前置摄像头或者后置摄像头;或者,终端的摄像头可为终端通过无线方式或者有线方式控制的摄像头。
第一确定单元402,用于确定所述拍摄单元401拍摄到的广角照片中的畸变区域和非畸变区域。
其中,第一确定单元402可确定广角照片中的畸变区域和非畸变区域,终端可事先设置一个预设阈值,将大于该预设阈值的像素点组成的区域确定为畸变区域,将小于或等于该预设阈值的区域确定为非畸变区域,进一步地,预设阈值的大小可由用户自行设置或者系统默认。需要说明的是,通常情况下,由于广角摄像头自身的特性,因而,广角摄像头的畸变一直存在的,且广角摄像头通常情况下具有对称特性,以广角摄像头的中心位置到两边,畸变系数呈现对称分布,畸变系数已经在现有技术中出现过,在此不作过多描述。畸变系数表示广角摄像头拍摄的图像的畸变程度,广角摄像头的畸变系数越大,说明畸变越大,而广角摄像头的畸变系数在一定范围内,即畸变系数小于某一预设阈值的情况,则可认为畸变系数小于某一预设阈值对应的区域为非畸变区域,其对应的拍照角度范围可定义为无畸变拍照角度范围。
获取单元403,用于获取用户选择的目标畸变区域。
其中,获取单元403可获取用户选择的目标畸变区域,通常情况下,用户选择的区域可能为非畸变区域,此时,终端可不用对该区域进行校正,在用户选择的区域包含畸变区域和非畸变区域的情况下,将用户选择的区域在广角照片的畸变区域的区域确定为目标畸变区域。
划分单元404,用于将所述获取单元获取到的目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数。
其中,划分单元404可将目标畸变区域划分为M个第一预设大小的网格区域,其中,第一预设大小可包括但不仅限于: 、 、 、 、 等等。
校正单元405,分别对所述划分单元划分的M个第一预设大小的网格区域进行畸变校正。
其中,校正单元405可分别对上述M个第一预设大小的网格进行畸变校正。
作为一种可能的实施方式,如图4b所示,图4a所描述的终端的校正单元405可包括:第一确定单元4021和第二确定单元4022,具体如下:
第二确定单元4051,用于确定所述划分单元划分的M个第一预设大小的网格区域的中心网格区域。
其中,第二确定单元4051可根据M各第一预设大小的网格区域的位置关系确定中心网格区域。
第一变换单元4052,用于将所述第二确定单元确定的中心网格区域进行第一空间变换,以得到第二预设大小的目标网格区域。
其中,第一变换单元4052可将中心网格区域进行第一空间变换,第一空间变换可为线性空间变换或者非线性空间变换,即将中心网格区域的图像进行拉伸处理。
第二变换单元4053,用于将所述M个第一预设大小的网格区域中除所述中心网格区域之外的其他网格区域分别进行第二空间变换,以得到M-1个所述第二预设大小的目标网格区域,
其中,第二变换单元4053可将M个第一预设大小的网格区域中除中心网格区域之外的其他网格区域分别进行第二空间变换,其中,第一预设大小可包括但不仅限于: 、 、 、 、 等等。
插值单元4054,用于按照所述M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,所述尺度改变大小为所述第一预设大小与第二预设大小之间的差值。
其中,插值单元4054可按照M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,尺度改变大小为第一预设大小与第二预设大小之间的差值,插值的目的在于对网格区域进行平滑处理,使其与周围区域看起来过度自然,插值处理可包括:线性插值、双线性插值、二次插值或者非线性插值等等。
作为一种可能的实施方式,如图4c所示,图4a所描述的终端的第一确定单元402可包括:第三确定单元4021和第四确定单元4022,具体如下:
第三确定单元4021,用于将所述广角照片中畸变系数大于预设阈值的区域确定为畸变区域。
第四确定单元4022,用于将所述广角照片中畸变系数小于或等于预设阈值的区域确定非畸变区域。
作为一种可能的实施方式,如图4e所示,图4a所描述的终端的还可包括:
融合单元406,用于将所述校正单元405畸变校正后的图像融合于所述广角照片的对应位置。
其中,融合单元406可对校正单元405畸变校正后的区域的大小进行调整,同时对该调整后的边缘部分进行平滑处理,使畸变校正后的图像更好地融合于广角照片的对应位置。
本发明实施例所描述的终端利用终端的摄像头拍摄一张广角照片;确定所述广角照片中的畸变区域和非畸变区域;获取用户选择的目标畸变区域;将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;分别对所述M个第一预设大小的网格区域进行畸变校正。采用本发明实施例可对用户选择的任一畸变区域进行畸变校正,从而,以减小畸变区域的畸变程度。
请参阅图5,图5为本发明实施例提供的一种终端的第二实施例的结构示意图。本实施例中所描述的终端包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。
其中,上述输入设备1000可为触控面板、普通PC、液晶屏、触控屏、触控按钮等。
上述存储器4000可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:
上述处理器3000,用于:利用终端的摄像头拍摄一张广角照片;
确定所述广角照片中的畸变区域和非畸变区域;
获取用户选择的目标畸变区域;
将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;
分别对所述M个第一预设大小的网格区域进行畸变校正。
作为一种可能的实施方式,上述处理器3000分别对所述M个预设大小的网格区域进行畸变校正,具体为:
确定所述M个第一预设大小的网格区域的中心网格区域;
将所述中心网格区域进行第一空间变换,以得到第二预设大小的目标网格区域;
将所述M个第一预设大小的网格区域中除所述中心网格区域之外的其他网格区域分别进行第二空间变换,以得到M-1个所述第二预设大小的目标网格区域;
按照所述M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,所述尺度改变大小为所述第一预设大小与第二预设大小之间的差值。
作为一种可能的实施方式,上述处理器3000确定所述广角照片中的畸变区域和非畸变区域,具体为:
将所述广角照片中畸变系数大于预设阈值的区域确定为畸变区域;
将所述广角照片中畸变系数小于或等于预设阈值的区域确定非畸变区域。
作为一种可能的实施方式,上述处理器3000分别对所述M个第一预设大小的网格区域进行畸变校正之后,具体用于:
将所述畸变校正后的图像融合于所述广角照片的对应位置。
作为一种可能的实施方式,上述处理器3000取用户选择的目标畸变区域,具体为:
在用户选择的目标区域包含所述非畸变区域的情况下,将所述目标区域在所述广角照片的畸变区域的区域确定为目标畸变区域。
本发明实施例所描述的终端利用终端的摄像头拍摄一张广角照片;确定所述广角照片中的畸变区域和非畸变区域;获取用户选择的目标畸变区域;将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;分别对所述M个第一预设大小的网格区域进行畸变校正。采用本发明实施例可对用户选择的任一畸变区域进行畸变校正,从而,以减小畸变区域的畸变程度。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任意一种信号处理方法的部分或全部步骤。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可能可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本发明各个实施例上述方法的全部或部分步骤。其中,而前述的存储介质可包括:U盘、移动硬盘、磁碟、光盘、只读存储器(英文:Read-Only Memory,缩写:ROM)或者随机存取存储器(英文:Random Access Memory,缩写:RAM)等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (19)

  1. 一种畸变校正的方法,其包括:
    利用终端的摄像头拍摄一张广角照片;
    确定所述广角照片中的畸变区域和非畸变区域;
    获取用户选择的目标畸变区域;
    将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;
    分别对所述M个第一预设大小的网格区域进行畸变校正;
    其中分别对所述M个预设大小的网格区域进行畸变校正的步骤包括:
    确定所述M个第一预设大小的网格区域的中心网格区域;
    将所述中心网格区域进行第一空间变换,以得到第二预设大小的目标网格区域;
    将所述M个第一预设大小的网格区域中除所述中心网格区域之外的其他网格区域分别进行第二空间变换,以得到M-1个所述第二预设大小的目标网格区域;
    按照所述M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,所述尺度改变大小为所述第一预设大小与第二预设大小之间的差值;
    其中所述确定所述广角照片中的畸变区域和非畸变区域的步骤包括:
    将所述广角照片中畸变系数大于预设阈值的区域确定为畸变区域;
    将所述广角照片中畸变系数小于或等于预设阈值的区域确定非畸变区域。
  2. 根据权利要求1所述的畸变校正的方法,其中所述分别对所述M个第一预设大小的网格区域进行畸变校正之后,包括:
    将所述畸变校正后的图像融合于所述广角照片的对应位置。
  3. 根据权利要求1所述的畸变校正的方法,其中所述获取用户选择的目标畸变区域的步骤包括:
    在用户选择的目标区域包含所述非畸变区域的情况下,将所述目标区域在所述广角照片的畸变区域的区域确定为目标畸变区域。
  4. 根据权利要求1所述的畸变校正的方法,其中第一空间变换为线性空间变换或非线性空间变换。
  5. 根据权利要求1所述的畸变校正的方法,其中所述插值处理包括线性插值、双线性插值、二次插值或非线性插值。
  6. 一种畸变校正的方法,其包括:
    利用终端的摄像头拍摄一张广角照片;
    确定所述广角照片中的畸变区域和非畸变区域;
    获取用户选择的目标畸变区域;
    将所述目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;
    分别对所述M个第一预设大小的网格区域进行畸变校正。
  7. 如权利要求6所述的畸变校正的方法,其中所述分别对所述M个预设大小的网格区域进行畸变校正,包括:
    确定所述M个第一预设大小的网格区域的中心网格区域;
    将所述中心网格区域进行第一空间变换,以得到第二预设大小的目标网格区域;
    将所述M个第一预设大小的网格区域中除所述中心网格区域之外的其他网格区域分别进行第二空间变换,以得到M-1个所述第二预设大小的目标网格区域;
    按照所述M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,所述尺度改变大小为所述第一预设大小与第二预设大小之间的差值。
  8. 如权利要求6所述的畸变校正的方法,其中所述确定所述广角照片中的畸变区域和非畸变区域,包括:
    将所述广角照片中畸变系数大于预设阈值的区域确定为畸变区域;
    将所述广角照片中畸变系数小于或等于预设阈值的区域确定非畸变区域。
  9. 如权利要求6所述的畸变校正的方法,其中所述分别对所述M个第一预设大小的网格区域进行畸变校正之后,包括:
    将所述畸变校正后的图像融合于所述广角照片的对应位置。
  10. 如权利要求6所述的畸变校正的方法,其中所述获取用户选择的目标畸变区域,包括:
    在用户选择的目标区域包含所述非畸变区域的情况下,将所述目标区域在所述广角照片的畸变区域的区域确定为目标畸变区域。
  11. 如权利要求6所述的畸变校正的方法,其中第一空间变换为线性空间变换或非线性空间变换。
  12. 如权利要求6所述的畸变校正的方法,其中所述插值处理包括线性插值、双线性插值、二次插值或非线性插值。
  13. 一种终端,其包括:
    拍摄单元,用于利用终端的摄像头拍摄一张广角照片;
    第一确定单元,用于确定所述拍摄单元拍摄的广角照片中的畸变区域和非畸变区域;
    获取单元,用于获取用户选择的目标畸变区域;
    划分单元,用于将所述获取单元获取到的目标畸变区域划分成为M个第一预设大小的网格区域,其中,M为大于或等于1的整数;
    校正单元,分别对所述划分单元划分的M个第一预设大小的网格区域进行畸变校正。
  14. 如权利要求13所述的终端,其中所述校正单元包括:
    第二确定单元,用于确定所述划分单元划分的M个第一预设大小的网格区域的中心网格区域;
    第一变换单元,用于将所述第二确定单元确定的中心网格区域进行第一空间变换,以得到第二预设大小的目标网格区域;
    第二变换单元,用于将所述M个第一预设大小的网格区域中除所述中心网格区域之外的其他网格区域分别进行第二空间变换,以得到M-1个所述第二预设大小的目标网格区域;
    插值单元,用于按照所述M个第一预设大小的网格区域的尺度改变大小分别对M个目标网格区域进行插值处理,其中,所述尺度改变大小为所述第一预设大小与第二预设大小之间的差值。
  15. 如权利要求13所述的终端,其中所述第一确定单元包括:
    第三确定单元,用于将所述广角照片中畸变系数大于预设阈值的区域确定为畸变区域;
    第四确定单元,用于将所述广角照片中畸变系数小于或等于预设阈值的区域确定非畸变区域。
  16. 如权利要求13所述的终端,其中所述终端还包括:
    融合单元,用于将所述校正单元畸变校正后的图像融合于所述广角照片的对应位置。
  17. 如权利要求13所述的终端,其中所述获取单元具体用于:
    在用户选择的目标区域包含所述非畸变区域的情况下,将所述目标区域在所述广角照片的畸变区域的区域确定为目标畸变区域。
  18. 如权利要求13所述的终端,其中第一空间变换为线性空间变换或非线性空间变换。
  19. 如权利要求13所述的终端,其中所述插值处理包括线性插值、双线性插值、二次插值或非线性插值。
PCT/CN2016/083690 2015-06-30 2016-05-27 一种畸变校正方法及终端 WO2017000724A1 (zh)

Priority Applications (10)

Application Number Priority Date Filing Date Title
EP16817088.4A EP3223511B1 (en) 2015-06-30 2016-05-27 Distortion rectification method and terminal
JP2017565981A JP6436373B2 (ja) 2015-06-30 2016-05-27 歪み補正方法及び端末
KR1020187001813A KR102010712B1 (ko) 2015-06-30 2016-05-27 왜곡 보정 방법 및 단말기
AU2016286574A AU2016286574B2 (en) 2015-06-30 2016-05-27 Distortion rectification method and terminal
US15/538,024 US10319081B2 (en) 2015-06-30 2016-05-27 Distortion rectification method and terminal
SG11201710793YA SG11201710793YA (en) 2015-06-30 2016-05-27 Distortion rectification method and terminal
ES16817088T ES2711565T3 (es) 2015-06-30 2016-05-27 Método de rectificación de distorsión y terminal
MYPI2017705058A MY183029A (en) 2015-06-30 2016-05-27 Distortion rectification method and terminal
US15/713,755 US9959601B2 (en) 2015-06-30 2017-09-25 Distortion rectification method and terminal
ZA2018/00323A ZA201800323B (en) 2015-06-30 2018-01-17 Distortion rectification method and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510383298.3A CN105141827B (zh) 2015-06-30 2015-06-30 一种畸变校正方法及终端
CN201510383298.3 2015-06-30

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US15/538,024 A-371-Of-International US10319081B2 (en) 2015-06-30 2016-05-27 Distortion rectification method and terminal
US15/713,755 Continuation US9959601B2 (en) 2015-06-30 2017-09-25 Distortion rectification method and terminal

Publications (1)

Publication Number Publication Date
WO2017000724A1 true WO2017000724A1 (zh) 2017-01-05

Family

ID=54727025

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083690 WO2017000724A1 (zh) 2015-06-30 2016-05-27 一种畸变校正方法及终端

Country Status (11)

Country Link
US (2) US10319081B2 (zh)
EP (1) EP3223511B1 (zh)
JP (1) JP6436373B2 (zh)
KR (1) KR102010712B1 (zh)
CN (2) CN106993133B (zh)
AU (1) AU2016286574B2 (zh)
ES (1) ES2711565T3 (zh)
MY (1) MY183029A (zh)
SG (1) SG11201710793YA (zh)
WO (1) WO2017000724A1 (zh)
ZA (1) ZA201800323B (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106993133B (zh) 2015-06-30 2019-08-30 Oppo广东移动通信有限公司 一种畸变校正方法及终端
JP6723512B2 (ja) * 2015-12-22 2020-07-15 カシオ計算機株式会社 画像処理装置、画像処理方法及びプログラム
CN105976311A (zh) * 2016-05-16 2016-09-28 深圳天珑无线科技有限公司 图像处理方法以及智能终端
CN107835373A (zh) * 2017-12-06 2018-03-23 深圳天珑无线科技有限公司 一种移动终端及其拍照美化方法和系统
US11295541B2 (en) * 2019-02-13 2022-04-05 Tencent America LLC Method and apparatus of 360 degree camera video processing with targeted view
CN110139033B (zh) * 2019-05-13 2020-09-22 Oppo广东移动通信有限公司 拍照控制方法及相关产品
CN110751602B (zh) * 2019-09-20 2022-09-30 北京迈格威科技有限公司 基于人脸检测的保形畸变校正方法和装置
CN110572578A (zh) * 2019-09-30 2019-12-13 联想(北京)有限公司 图像处理方法、装置、计算设备以及介质
CN111008947B (zh) * 2019-12-09 2024-05-07 Oppo广东移动通信有限公司 图像处理方法和装置、终端设备及存储介质
CN112672040A (zh) * 2020-12-15 2021-04-16 维沃移动通信有限公司 拍摄方法、装置和电子设备
CN115209035A (zh) * 2021-04-14 2022-10-18 Oppo广东移动通信有限公司 基于视频的畸变校正方法、装置、拍照设备以及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101305595A (zh) * 2005-11-11 2008-11-12 索尼株式会社 图像处理设备、图像处理方法及其程序以及包括该程序的记录介质
US20090141148A1 (en) * 2007-12-04 2009-06-04 Kosuke Imamura Distortion-corrected image generation unit and distortion-corrected image generation method
CN101572828A (zh) * 2009-05-20 2009-11-04 长春理工大学 基于gpu的相机/摄像机实时畸变校正方法
US20100111440A1 (en) * 2008-10-31 2010-05-06 Motorola, Inc. Method and apparatus for transforming a non-linear lens-distorted image
CN103247031A (zh) * 2013-04-19 2013-08-14 华为技术有限公司 一种畸变图像校正的方法、终端及系统
CN105141827A (zh) * 2015-06-30 2015-12-09 广东欧珀移动通信有限公司 一种畸变校正方法及终端

Family Cites Families (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001223891A (ja) * 2000-02-09 2001-08-17 Fuji Photo Film Co Ltd 画像処理方法
KR100469727B1 (ko) * 2003-03-07 2005-02-02 삼성전자주식회사 통화자의 얼굴을 화면 가운데에 위치시킬 수 있는화상통신용 통신단말기 및 방법
JP4772281B2 (ja) 2003-07-28 2011-09-14 オリンパス株式会社 画像処理装置及び画像処理方法
JP4307934B2 (ja) * 2003-08-13 2009-08-05 株式会社トプコン 画像補正機能付撮影装置及び方法、並びに撮影装置及び方法
DE602006021225D1 (de) 2005-11-11 2011-05-19 Sony Corp Bildverarbeitungseinrichtung, bildverarbeitungsverfahren, programm dafür und das programm enthaltendes aufzeichnungsmedium
US7679786B2 (en) * 2006-09-06 2010-03-16 Eastman Kodak Company Color correction method
US20080101713A1 (en) * 2006-10-27 2008-05-01 Edgar Albert D System and method of fisheye image planar projection
JP4816431B2 (ja) 2006-12-04 2011-11-16 株式会社ニコン モニタリングシステム、ドライビングアシストシステム
JP2008197829A (ja) * 2007-02-09 2008-08-28 Sony Corp 画像処理装置と方法およびプログラムと記録媒体
DE202008009211U1 (de) * 2008-07-09 2008-09-25 Robert Bosch Gmbh Vorrichtung zur Erkennung von Unterbrechungen bei einem Ringbus
EP2377725B2 (de) * 2010-04-19 2017-01-25 SMR Patents S.à.r.l. Außenspiegelsimulation
US20120024972A1 (en) * 2010-08-02 2012-02-02 Jack Jerome Ellis Method and apparatus for reducing cyclone intensity
DE102010042248A1 (de) * 2010-10-11 2012-04-12 Robert Bosch Gmbh Verfahren und Vorrichtung zur optischen Darstellung einer Umgebung eines Fahrzeugs
TWI423659B (zh) * 2010-11-09 2014-01-11 Avisonic Technology Corp 影像校正方法與相關影像校正系統
US8982180B2 (en) * 2011-03-31 2015-03-17 Fotonation Limited Face and other object detection and tracking in off-center peripheral regions for nonlinear lens geometries
CN102885631B (zh) * 2011-09-05 2015-03-25 深圳市安健科技有限公司 一种运用于平板ccd探测器的畸变校正方法
JP5884439B2 (ja) * 2011-11-24 2016-03-15 アイシン精機株式会社 車両周辺監視用画像生成装置
JP5925579B2 (ja) 2012-04-25 2016-05-25 ルネサスエレクトロニクス株式会社 半導体装置、電子装置、及び画像処理方法
JP6160357B2 (ja) * 2013-08-15 2017-07-12 株式会社リコー 画像処理装置、画像処理方法、および画像通信システム
GB2524250A (en) * 2014-03-17 2015-09-23 Sony Comp Entertainment Europe Image processing
KR101493946B1 (ko) * 2014-04-16 2015-02-17 하이네트(주) 광각 렌즈 이미지 보정 방법 및 그 장치
FR3020169A1 (fr) * 2014-04-16 2015-10-23 Parrot Drone a voilure tournante muni d'une camera video delivrant des sequences d'images stabilisees
US20160119551A1 (en) * 2014-10-22 2016-04-28 Sentry360 Optimized 360 Degree De-Warping with Virtual Cameras
US9514524B2 (en) * 2015-02-27 2016-12-06 Sony Corporation Optical distortion compensation
US10040394B2 (en) * 2015-06-17 2018-08-07 Geo Semiconductor Inc. Vehicle vision system
JP6627352B2 (ja) * 2015-09-15 2020-01-08 カシオ計算機株式会社 画像表示装置、画像表示方法及びプログラム
US10922559B2 (en) * 2016-03-25 2021-02-16 Bendix Commercial Vehicle Systems Llc Automatic surround view homography matrix adjustment, and system and method for calibration thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101305595A (zh) * 2005-11-11 2008-11-12 索尼株式会社 图像处理设备、图像处理方法及其程序以及包括该程序的记录介质
US20090141148A1 (en) * 2007-12-04 2009-06-04 Kosuke Imamura Distortion-corrected image generation unit and distortion-corrected image generation method
US20100111440A1 (en) * 2008-10-31 2010-05-06 Motorola, Inc. Method and apparatus for transforming a non-linear lens-distorted image
CN101572828A (zh) * 2009-05-20 2009-11-04 长春理工大学 基于gpu的相机/摄像机实时畸变校正方法
CN103247031A (zh) * 2013-04-19 2013-08-14 华为技术有限公司 一种畸变图像校正的方法、终端及系统
CN105141827A (zh) * 2015-06-30 2015-12-09 广东欧珀移动通信有限公司 一种畸变校正方法及终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3223511A4 *

Also Published As

Publication number Publication date
ZA201800323B (en) 2018-11-28
KR102010712B1 (ko) 2019-08-13
EP3223511A1 (en) 2017-09-27
KR20180019709A (ko) 2018-02-26
CN105141827A (zh) 2015-12-09
CN106993133B (zh) 2019-08-30
US9959601B2 (en) 2018-05-01
CN105141827B (zh) 2017-04-26
JP6436373B2 (ja) 2018-12-12
ES2711565T3 (es) 2019-05-06
EP3223511B1 (en) 2018-11-28
JP2018530173A (ja) 2018-10-11
AU2016286574A1 (en) 2018-02-01
US20180012341A1 (en) 2018-01-11
EP3223511A4 (en) 2018-01-17
US20180012342A1 (en) 2018-01-11
MY183029A (en) 2021-02-08
CN106993133A (zh) 2017-07-28
AU2016286574B2 (en) 2018-09-27
US10319081B2 (en) 2019-06-11
SG11201710793YA (en) 2018-01-30

Similar Documents

Publication Publication Date Title
WO2017000724A1 (zh) 一种畸变校正方法及终端
WO2020091262A1 (ko) 인공 신경망을 이용한 이미지 처리 방법 및 이를 지원하는 전자 장치
WO2018090455A1 (zh) 一种终端全景图像处理方法、装置及终端
WO2021141445A1 (en) Method of improving image quality in zoom scenario with single camera, and electronic device including the same
WO2018161572A1 (zh) 移动终端帧率的控制方法、装置、存储介质及电子设备
WO2019017641A1 (ko) 전자 장치 및 전자 장치의 이미지 압축 방법
WO2020159262A1 (en) Electronic device and method for processing line data included in image frame data into multiple intervals
WO2017090833A1 (en) Photographing device and method of controlling the same
WO2016036048A1 (en) Method and device for data encrypting
WO2017010628A1 (en) Method and photographing apparatus for controlling function based on gesture of user
WO2021157954A1 (ko) 복수의 카메라를 이용한 동영상 촬영 방법 및 그 장치
WO2021125645A1 (ko) 화이트 밸런스를 제공하는 방법 및 이를 지원하는 전자 장치
WO2017018614A1 (en) Method of imaging moving object and imaging device
WO2017219636A1 (zh) 数据交互方法、云端服务器以及智能终端
WO2022124607A1 (en) Depth estimation method, device, electronic equipment and computer readable storage medium
WO2020017936A1 (ko) 전자 장치 및 이미지의 전송 상태에 기반하여 이미지를 보정하는 방법
WO2019208915A1 (ko) 외부 장치의 자세 조정을 통해 복수의 카메라들을 이용하여 이미지를 획득하는 전자 장치 및 방법
WO2016119150A1 (zh) 具有多摄像头的移动终端的拍摄方法和移动终端
WO2019160191A1 (ko) 영상 처리 장치 및 방법
WO2019059635A1 (ko) 하나의 이미지 센서를 통해 획득된 rgb 이미지와 ir 이미지를 이용하여 기능을 제공하는 전자 장치
WO2014003282A1 (en) Image processing apparatus, image relaying apparatus, method for processing image, and method for relaying image
WO2020075960A1 (ko) 전자 장치, 외부 전자 장치 및 전자 장치를 이용한 외부 전자 장치를 제어하는 방법
WO2019017586A1 (ko) 이미지 데이터 및 이미지 촬영의 제어와 관련된 데이터의 크기에 기반하여, 이미지 데이터 및 이미지 촬영의 제어와 관련된 데이터를 전송하는 방법 및 이를 지원하는 전자 장치
WO2017155365A1 (en) Electronic apparatus for providing panorama image and control method thereof
EP3366037A1 (en) Electronic apparatus for providing panorama image and control method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16817088

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15538024

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2016817088

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2017565981

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 11201710793Y

Country of ref document: SG

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20187001813

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2016286574

Country of ref document: AU

Date of ref document: 20160527

Kind code of ref document: A