CN105141826A - Distortion correction method and terminal - Google Patents
Distortion correction method and terminal Download PDFInfo
- Publication number
- CN105141826A CN105141826A CN201510382678.5A CN201510382678A CN105141826A CN 105141826 A CN105141826 A CN 105141826A CN 201510382678 A CN201510382678 A CN 201510382678A CN 105141826 A CN105141826 A CN 105141826A
- Authority
- CN
- China
- Prior art keywords
- distorted region
- terminal
- wide
- subregion
- distortion
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Landscapes
- Image Processing (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a distortion correction method, which comprises the steps of shooting a wide-angle picture by using a camera of a terminal; determining distortion regions and non-distortion regions in the wide-angle picture; dividing each distortion region into M sub-regions at intervals according to a preset angle, wherein the M is an integer which is greater than or equal to 1; carrying out distortion correction on the M sub-regions respectively so as to acquire M corrected sub-regions; and splicing the M corrected sub-regions with the non-distortion regions. By adopting the embodiment of the invention, the distortion region can be divided into M sub-regions, distortion correction is carried out on the M sub-regions respectively, and then the corrected M sub-regions are spliced, thereby reducing the distortion degree of the distortion regions.
Description
Technical field
The embodiment of the present invention relates to technical field of electronic equipment, refers more particularly to a kind of distortion correction method and terminal.
Background technology
Along with developing rapidly of information technology, the integrated attainable function of terminal gets more and more, as taken pictures, surfing the Net, play, do shopping etc., but terminal is not omnipotent, in prior art, terminal can realize taking pictures, but in process of taking pictures, the scope of taking pictures also exists certain constraint.
Under normal circumstances, can expect adopting wide-angle camera to take pictures, but the image that wide-angle camera is taken out is exceeding the generation distortion of the region outside certain angle scope, the generation of this distortion is because the characteristic of wide-angle camera self causes, and how never effectively to be solved the problem that this distortion corrects.
Summary of the invention
Embodiments provide a kind of method and terminal of distortion correction, to correcting the region producing distortion in camera image, to reduce distortion degree.
Embodiment of the present invention first aspect discloses a kind of method of distortion correction, comprises step:
The camera of terminal is utilized to take a wide-angle photo;
Determine the distorted region in described wide-angle photo and non-distorted region;
Described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer;
Respectively distortion correction is carried out to described M sub regions, to obtain the subregion after M correction;
Subregion after correcting described M and described non-distorted region are spliced.
Correspondingly, embodiment of the present invention second aspect discloses a kind of terminal, comprising:
Shooting unit, takes a wide-angle photo for utilizing the camera of terminal;
Determining unit, for determine described shooting unit photographs to wide-angle photo in distorted region and non-distorted region;
Division unit, is divided into M sub regions for the distorted region described determining unit determined according to predetermined angle interval, wherein, M be more than or equal to 1 integer;
Correcting unit, carries out distortion correction respectively for the M sub regions divided described division unit, to obtain the subregion after M correction;
Concatenation unit, for splicing the subregion after the corrected M of described correcting unit correction.
The embodiment of the present invention utilizes the camera of terminal to take a wide-angle photo; Determine the distorted region in described wide-angle photo and non-distorted region; Described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer; Respectively distortion correction is carried out to described M sub regions, to obtain the subregion after M correction; Subregion after correcting described M and described non-distorted region are spliced.Adopt the embodiment of the present invention distorted region can be divided into M region, then distortion correction is carried out respectively in this M region, the M sub regions after correction is being spliced, to reduce the distortion degree of distorted region.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment, description below, apparently, accompanying drawing in the following describes is only some embodiments of the embodiment of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the first embodiment of the method for a kind of distortion correction that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the second embodiment of the method for a kind of distortion correction that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the 3rd embodiment of the method for a kind of distortion correction that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the first embodiment of a kind of terminal that Fig. 4 a provides for the embodiment of the present invention;
The another structural representation of the first embodiment of a kind of terminal that Fig. 4 b provides for the embodiment of the present invention;
The another structural representation of the first embodiment of a kind of terminal that Fig. 4 c provides for the embodiment of the present invention;
The another structural representation of the first embodiment of a kind of terminal that Fig. 4 d provides for the embodiment of the present invention;
The another structural representation of the first embodiment of a kind of terminal that Fig. 4 e provides for the embodiment of the present invention;
The structural representation of the second embodiment of a kind of terminal that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only embodiment of the present invention part embodiment, instead of whole embodiments.Based on the embodiment in the embodiment of the present invention, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of embodiment of the present invention protection.
In realization, in the embodiment of the present invention, terminal can include but not limited to: notebook computer, mobile phone, panel computer, intelligent wearable device etc.The system of terminal refers to the operating system of equipment, can include but not limited to: android system, Saipan system, Windows system, IOS (Mobile operating system of Apple's exploitation), XP system, windows8 system etc.It should be noted that, Android terminal refers to the terminal of android system, and Saipan terminal refers to the terminal of Saipan system, etc.Above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
In enforcement, the camera described by the embodiment of the present invention is wide-angle camera, and its scope is greater than the photo angle of existing common camera.
Embodiment of the present invention composition graphs 1 to Fig. 5 is described the method for a kind of distortion correction that the embodiment of the present invention provides and terminal.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the first embodiment of the method for a kind of distortion correction that the embodiment of the present invention provides.The method of the distortion correction described in the present embodiment, comprises step:
S101, the camera of terminal is utilized to take a wide-angle photo.
Wherein, terminal can utilize the camera of this terminal to take a wide-angle photo
As a kind of possible execution mode, terminal can utilize before the camera of terminal takes a wide-angle photo, determine the pre-photo angle scope of the camera of this terminal, user is when the camera starting terminal, can according to the angular range of the scenery adjustment shooting wanting to take pictures, pre-photo angle scope is exactly that user determines according to the size in region shared by scenery in scene.Terminal first can obtain the touch instruction of the photo angle scope that user selects, according to the pre-photo angle scope of the camera of this instruction determination terminal.Such as, if the scenery scope in scene is smaller, then pre-photo angle scope can be adjusted to the camera lens scope of common camera, and in this case, the photo obtained of taking pictures distorts very little, can think undistorted; If the scenery scope in scene is comparatively large, exceeded the camera lens scope of common camera, the image of pre-photo angle scope carries out distortion correction possibly.
As a kind of possible execution mode, the camera of terminal can be front-facing camera or the post-positioned pick-up head of terminal; Or the camera of terminal can be terminal wirelessly or the camera that controls of wired mode.
S102, determine distorted region in described wide-angle photo and non-distorted region.
Wherein, terminal can determine distorted region in wide-angle photo and non-distorted region, terminal can arrange a predetermined threshold value in advance, the region of the pixel composition being greater than this predetermined threshold value is defined as distorted region, the region being less than or equal to this predetermined threshold value is defined as non-distorted region, further, the large I of predetermined threshold value is arranged or system default voluntarily by user.It should be noted that, under normal circumstances, due to the characteristic of wide-angle camera self, thus, the distortion of wide-angle camera exists always, and wide-angle camera has symmetry characteristic under normal circumstances, with the center of wide-angle camera to both sides, distortion factor presents symmetrical, and distortion factor occurred in the prior art, does not do too much description at this.Distortion factor represents the distortion degree of the image that wide-angle camera is taken, the distortion factor of wide-angle camera is larger, illustrate that distortion is larger, and the distortion factor of wide-angle camera within the specific limits, namely distortion factor is less than the situation of a certain predetermined threshold value, then can think that distortion factor is less than region corresponding to a certain predetermined threshold value is non-distorted region, and the photo angle scope of its correspondence may be defined as undistorted photo angle scope.
S103, described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer.
Wherein, distorted region can be divided into M sub regions according to predetermined angle interval by terminal, wherein, M be more than or equal to 1 integer, in specific implementation process, M is larger, then the picture distortion degree obtained after distortion calibration is less, between the processing speed of processor, suggestion predetermined angle is set to about 0.1 degree and divides distorted region.
S104, respectively distortion correction is carried out to described M sub regions, with obtain M correct after subregion.
Wherein, terminal can carry out distortion correction respectively to M sub regions, and to obtain the subregion after M correction, because the distortion degree of every sub regions is different, thus, the processing mode adopted M region can be different.
As a kind of possible execution mode, terminal can determine the average distortion coefficient of arbitrary subregion i in this M sub regions; And according to this average distortion coefficient, distortion correction is carried out to arbitrary subregion i.For arbitrary subregion i, the distortion factor of each pixel in this arbitrary subregion i can be determined, thus average distortion coefficient can be asked for the distortion factor of each pixel.According to this average distortion coefficient, distortion correction is carried out to this arbitrary subregion i.
S105, by described M correct after subregion and described non-distorted region splice.
Wherein, the subregion after M correction and non-distorted region can splice by terminal.
The embodiment of the present invention utilizes the camera of terminal to take a wide-angle photo; Determine the distorted region in described wide-angle photo and non-distorted region; Described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer; Respectively distortion correction is carried out to described M sub regions, to obtain the subregion after M correction; Subregion after correcting described M and described non-distorted region are spliced.Adopt the embodiment of the present invention distorted region can be divided into M region, then distortion correction is carried out respectively in this M region, the M sub regions after correction is being spliced, to reduce the distortion degree of distorted region.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the second embodiment of the method for a kind of distortion correction that the embodiment of the present invention provides.The method of the distortion correction described in the present embodiment, comprises step:
S201, the camera of terminal is utilized to take a wide-angle photo.
Wherein, terminal can utilize the camera of this terminal to take a wide-angle photo
As a kind of possible execution mode, terminal can utilize before the camera of terminal takes a wide-angle photo, determine the pre-photo angle scope of the camera of this terminal, user is when the camera starting terminal, can according to the angular range of the scenery adjustment shooting wanting to take pictures, pre-photo angle scope is exactly that user determines according to the size in region shared by scenery in scene.Terminal first can obtain the touch instruction of the photo angle scope that user selects, according to the pre-photo angle scope of the camera of this instruction determination terminal.Such as, if the scenery scope in scene is smaller, then pre-photo angle scope can be adjusted to the camera lens scope of common camera, and in this case, the photo obtained of taking pictures distorts very little, can think undistorted; If the scenery scope in scene is comparatively large, exceeded the camera lens scope of common camera, the image of pre-photo angle scope carries out distortion correction possibly.
As a kind of possible execution mode, the camera of terminal can be front-facing camera or the post-positioned pick-up head of terminal; Or the camera of terminal can be terminal wirelessly or the camera that controls of wired mode.
S202, determine distorted region in described wide-angle photo and non-distorted region.
Wherein, terminal can determine distorted region in wide-angle photo and non-distorted region, terminal can arrange a predetermined threshold value in advance, the region of the pixel composition being greater than this predetermined threshold value is defined as distorted region, the region being less than or equal to this predetermined threshold value is defined as non-distorted region, further, the large I of predetermined threshold value is arranged or system default voluntarily by user.It should be noted that, under normal circumstances, due to the characteristic of wide-angle camera self, thus, the distortion of wide-angle camera exists always, and wide-angle camera has symmetry characteristic under normal circumstances, with the center of wide-angle camera to both sides, distortion factor presents symmetrical, and distortion factor occurred in the prior art, does not do too much description at this.Distortion factor represents the distortion degree of the image that wide-angle camera is taken, the distortion factor of wide-angle camera is larger, illustrate that distortion is larger, and the distortion factor of wide-angle camera within the specific limits, namely distortion factor is less than the situation of a certain predetermined threshold value, then can think that distortion factor is less than region corresponding to a certain predetermined threshold value is non-distorted region, and the photo angle scope of its correspondence may be defined as undistorted photo angle scope.
S203, described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer.
Wherein, distorted region can be divided into M sub regions according to predetermined angle interval by terminal, wherein, M be more than or equal to 1 integer, in specific implementation process, M is larger, then the picture distortion degree obtained after distortion calibration is less, between the processing speed of processor, suggestion predetermined angle is set to about 0.1 degree and divides distorted region.
S204, respectively distortion correction is carried out to described M sub regions, with obtain M correct after subregion.
Wherein, terminal can carry out distortion correction respectively to M sub regions, and to obtain the subregion after M correction, because the distortion degree of every sub regions is different, thus, the processing mode adopted M region can be different.
S205, determine described M correct after subregion and the boundary line of described non-distorted region.
Wherein, terminal can determine according to some specific algorithms adopted in the boundary line of M sub regions in wide-angle photo and trimming process to correct after M correct after subregion, but not the boundary line of distorted region can be determined according to wide-angle photo.
S206, according to described boundary line by described M correct after subregion splice according to the order corresponding with described wide-angle photo with described non-distorted region.
Wherein, the subregion after M correction splices according to the order corresponding with wide-angle photo with non-distorted region according to this boundary line by terminal.Wherein, M sub regions and non-distorted region are all corresponding with the scenery order in wide-angle photo.
The embodiment of the present invention utilizes the camera of terminal to take a wide-angle photo; Determine the distorted region in described wide-angle photo and non-distorted region; Described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer; Respectively distortion correction is carried out to described M sub regions, to obtain the subregion after M correction; Determine the boundary line of the subregion after described M correction and described non-distorted region; Splice according to the order corresponding with described wide-angle photo with described non-distorted region according to the subregion after described M corrects by described boundary line.Adopt the embodiment of the present invention distorted region can be divided into M region, then distortion correction is carried out respectively in this M region, the M sub regions after correction is being spliced, to reduce the distortion degree of distorted region.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of the 3rd embodiment of the method for a kind of distortion correction that the embodiment of the present invention provides.The method of the distortion correction described in the present embodiment, comprises step:
S301, the camera of terminal is utilized to take a wide-angle photo.
Wherein, terminal can utilize the camera of this terminal to take a wide-angle photo
As a kind of possible execution mode, terminal can utilize before the camera of terminal takes a wide-angle photo, determine the pre-photo angle scope of the camera of this terminal, user is when the camera starting terminal, can according to the angular range of the scenery adjustment shooting wanting to take pictures, pre-photo angle scope is exactly that user determines according to the size in region shared by scenery in scene.Terminal first can obtain the touch instruction of the photo angle scope that user selects, according to the pre-photo angle scope of the camera of this instruction determination terminal.Such as, if the scenery scope in scene is smaller, then pre-photo angle scope can be adjusted to the camera lens scope of common camera, and in this case, the photo obtained of taking pictures distorts very little, can think undistorted; If the scenery scope in scene is comparatively large, exceeded the camera lens scope of common camera, the image of pre-photo angle scope carries out distortion correction possibly.
As a kind of possible execution mode, the camera of terminal can be front-facing camera or the post-positioned pick-up head of terminal; Or the camera of terminal can be terminal wirelessly or the camera that controls of wired mode.
S302, determine distorted region in described wide-angle photo and non-distorted region.
Wherein, terminal can determine distorted region in wide-angle photo and non-distorted region, terminal can arrange a predetermined threshold value in advance, the region of the pixel composition being greater than this predetermined threshold value is defined as distorted region, the region being less than or equal to this predetermined threshold value is defined as non-distorted region, further, the large I of predetermined threshold value is arranged or system default voluntarily by user.It should be noted that, under normal circumstances, due to the characteristic of wide-angle camera self, thus, the distortion of wide-angle camera exists always, and wide-angle camera has symmetry characteristic under normal circumstances, with the center of wide-angle camera to both sides, distortion factor presents symmetrical, and distortion factor occurred in the prior art, does not do too much description at this.Distortion factor represents the distortion degree of the image that wide-angle camera is taken, the distortion factor of wide-angle camera is larger, illustrate that distortion is larger, and the distortion factor of wide-angle camera within the specific limits, namely distortion factor is less than the situation of a certain predetermined threshold value, then can think that distortion factor is less than region corresponding to a certain predetermined threshold value is non-distorted region, and the photo angle scope of its correspondence may be defined as undistorted photo angle scope.
S303, described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer.
Wherein, distorted region can be divided into M sub regions according to predetermined angle interval by terminal, wherein, M be more than or equal to 1 integer, in specific implementation process, M is larger, then the picture distortion degree obtained after distortion calibration is less, between the processing speed of processor, suggestion predetermined angle is set to about 0.1 degree and divides distorted region.
S304, respectively distortion correction is carried out to described M sub regions, with obtain M correct after subregion.Wherein, terminal can carry out distortion correction respectively to M sub regions, and to obtain the subregion after M correction, because the distortion degree of every sub regions is different, thus, the processing mode adopted M region can be different.
As a kind of possible execution mode, terminal can determine the average distortion coefficient of arbitrary subregion i in this M sub regions; And according to this average distortion coefficient, distortion correction is carried out to arbitrary subregion i.For arbitrary subregion i, the distortion factor of each pixel in this arbitrary subregion i can be determined, thus average distortion coefficient can be asked for the distortion factor of each pixel.According to this average distortion coefficient, distortion correction is carried out to this arbitrary subregion i.
S305, by described M correct after subregion and described non-distorted region splice.
S306, the smoothing process of stitching position of image that described splicing is obtained.
Wherein, terminal can to the smoothing process of stitching position of splicing the image obtained, and the object of smoothing processing is the gap of removing splicing.
S307, the edge of the image after smoothing processing is carried out cutting process, to obtain rectangle picture.
Wherein, may there is uneven appearance in the marginal position of the image obtained after splicing, and the edge of the image after smoothing processing can be carried out cutting process by terminal, thus obtains rectangle picture.
The embodiment of the present invention utilizes the camera of terminal to take a wide-angle photo; Determine the distorted region in described wide-angle photo and non-distorted region; Described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer; Respectively distortion correction is carried out to described M sub regions, to obtain the subregion after M correction; Determine the boundary line of the subregion after described M correction and described non-distorted region; Splice according to the order corresponding with described wide-angle photo with described non-distorted region according to the subregion after described M corrects by described boundary line; The smoothing process of stitching position of the image that described splicing is obtained; The edge of the image after smoothing processing is carried out cutting process, to obtain rectangle picture.Adopt the embodiment of the present invention distorted region can be divided into M region, then distortion correction is carried out respectively in this M region, the M sub regions after correction is being spliced, to reduce the distortion degree of distorted region.
Refer to Fig. 4 a, Fig. 4 a is the structural representation of the first embodiment of a kind of terminal that the embodiment of the present invention provides.Terminal described in the present embodiment, comprising:
Shooting unit 401, takes a wide-angle photo for utilizing the camera of terminal.
Wherein, taking unit 401 can utilize the camera of this terminal to take a wide-angle photo
As a kind of possible execution mode, shooting unit 401 can utilize before the camera of terminal takes a wide-angle photo, determining unit (not marking in figure) determines the pre-photo angle scope of the camera of this terminal, user is when the camera starting terminal, can according to the angular range of the scenery adjustment shooting wanting to take pictures, pre-photo angle scope is exactly that user determines according to the size in region shared by scenery in scene.Terminal first can obtain the touch instruction of the photo angle scope that user selects, according to the pre-photo angle scope of the camera of this instruction determination terminal.Such as, if the scenery scope in scene is smaller, then pre-photo angle scope can be adjusted to the camera lens scope of common camera, and in this case, the photo obtained of taking pictures distorts very little, can think undistorted; If the scenery scope in scene is comparatively large, exceeded the camera lens scope of common camera, the image of pre-photo angle scope carries out distortion correction possibly.
As a kind of possible execution mode, the camera of terminal can be front-facing camera or the post-positioned pick-up head of terminal; Or the camera of terminal can be terminal wirelessly or the camera that controls of wired mode.
Determining unit 402, for determining distorted region in the wide-angle photo that described shooting unit 401 photographs and non-distorted region.
Wherein, determining unit 402 can determine distorted region in wide-angle photo and non-distorted region, terminal can arrange a predetermined threshold value in advance, the region of the pixel composition being greater than this predetermined threshold value is defined as distorted region, the region being less than or equal to this predetermined threshold value is defined as non-distorted region, further, the large I of predetermined threshold value is arranged or system default voluntarily by user.It should be noted that, under normal circumstances, due to the characteristic of wide-angle camera self, thus, the distortion of wide-angle camera exists always, and wide-angle camera has symmetry characteristic under normal circumstances, with the center of wide-angle camera to both sides, distortion factor presents symmetrical, and distortion factor occurred in the prior art, does not do too much description at this.Distortion factor represents the distortion degree of the image that wide-angle camera is taken, the distortion factor of wide-angle camera is larger, illustrate that distortion is larger, and the distortion factor of wide-angle camera within the specific limits, namely distortion factor is less than the situation of a certain predetermined threshold value, then can think that distortion factor is less than region corresponding to a certain predetermined threshold value is non-distorted region, and the photo angle scope of its correspondence may be defined as undistorted photo angle scope.
Division unit 403, is divided into M sub regions for the distorted region described determining unit 402 determined according to predetermined angle interval, wherein, M be more than or equal to 1 integer.
Wherein, distorted region can be divided into M sub regions according to predetermined angle interval by division unit 403, wherein, M be more than or equal to 1 integer, in specific implementation process, M is larger, then the picture distortion degree obtained after distortion calibration is less, between the processing speed of processor, suggestion predetermined angle is set to about 0.1 degree and divides distorted region.
Correcting unit 404, carries out distortion correction respectively for the M sub regions divided described division unit 403, to obtain the subregion after M correction.
Wherein, correcting unit 404 can carry out distortion correction respectively to M sub regions, and to obtain the subregion after M correction, because the distortion degree of every sub regions is different, thus, the processing mode adopted M region can be different.
Concatenation unit 405, for splicing the subregion after described correcting unit 404 corrected M correction.
Wherein, the subregion after M correction and non-distorted region can splice by concatenation unit 405.
As a kind of possible execution mode, as shown in Figure 4 b, the determining unit 402 of the terminal described by Fig. 4 a can comprise: the first determining unit 4021 and the second determining unit 4022, specific as follows:
First determining unit 4021, the region being greater than predetermined threshold value for distortion factor in the wide-angle photo taken by described shooting unit 401 is defined as distorted region.
Second determining unit 4022, non-distorted region is determined in the region being less than or equal to predetermined threshold value for distortion factor in the wide-angle photo taken by described shooting unit 401.
As a kind of possible execution mode, as illustrated in fig. 4 c, the correcting unit 404 of the terminal described by Fig. 4 a can comprise: the 3rd determining unit 4041 and syndrome unit 4042:
3rd determining unit 4041, for determining the average distortion coefficient of arbitrary subregion i in the M sub regions that described division unit 403 divides;
Syndrome unit 4042, carries out distortion correction for the average distortion coefficient determined according to described 3rd determining unit 4041 to described arbitrary subregion i.
As a kind of possible execution mode, as shown in figure 4d, the concatenation unit 405 of the terminal described by Fig. 4 a can comprise: the 4th determining unit 4051 and splicing subelement 4052:
4th determining unit 4051, for determining the boundary line of the subregion after M the correction that described correcting unit 404 corrects and described non-distorted region;
Splicing subelement 4052, splices the subregion after described M correction according to the order corresponding with described wide-angle photo with described non-distorted region for splicing the boundary line determined according to described 4th determining unit 4051.
As a kind of possible execution mode, as shown in fig 4e, also can the comprising of the terminal described by Fig. 4 a: processing unit 406 and cutter unit 407:
Processing unit 406, for splicing the smoothing process of stitching position of the image obtained by described concatenation unit;
Cutter unit 407, for the edge of the image after smoothing processing is carried out cutting process, to obtain rectangle picture.
Terminal described by the embodiment of the present invention utilizes the camera of terminal to take a wide-angle photo; Determine the distorted region in described wide-angle photo and non-distorted region; Described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer; Respectively distortion correction is carried out to described M sub regions, to obtain the subregion after M correction; Subregion after correcting described M and described non-distorted region are spliced.Adopt the embodiment of the present invention distorted region can be divided into M region, then distortion correction is carried out respectively in this M region, the M sub regions after correction is being spliced, to reduce the distortion degree of distorted region.
Refer to Fig. 5, the structural representation of the second embodiment of a kind of terminal that Fig. 5 provides for the embodiment of the present invention.Terminal described in the present embodiment comprises: at least one input equipment 1000; At least one output equipment 2000; At least one processor 3000, such as CPU; With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor 3000 are connected by bus 5000 with memory 4000.
Wherein, above-mentioned input equipment 1000 can be contact panel, common PC, liquid crystal display screen, touch screen, push button etc.
Above-mentioned memory 4000 can be high-speed RAM memory, also can be non-labile memory (non-volatilememory), such as magnetic disc store.Above-mentioned memory 4000 is for storing batch processing code, and above-mentioned input equipment 1000, output equipment 2000 and processor 3000, for calling the program code stored in memory 4000, perform and operate as follows:
Above-mentioned processor 3000, for:
The camera of terminal is utilized to take a wide-angle photo;
Determine the distorted region in described wide-angle photo and non-distorted region;
Described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer;
Respectively distortion correction is carried out to described M sub regions, to obtain the subregion after M correction;
Subregion after correcting described M and described non-distorted region are spliced.
As a kind of possible execution mode, above-mentioned processor 3000 determines distorted region in described wide-angle photo and non-distorted region, is specially:
The region that distortion factor in described wide-angle photo is greater than predetermined threshold value is defined as distorted region;
Non-distorted region is determined in the region that distortion factor in described wide-angle photo is less than or equal to predetermined threshold value.
As a kind of possible execution mode, above-mentioned processor 3000 carries out distortion correction respectively to described M sub regions, to obtain the subregion after M correction, is specially:
Determine the average distortion coefficient of arbitrary subregion i in described M sub regions;
According to described average distortion coefficient, distortion correction is carried out to described arbitrary subregion i.
As a kind of possible execution mode, the subregion after described M corrects by above-mentioned processor 3000 and described non-distorted region are spliced, and are specially:
Determine the boundary line of the subregion after described M correction and described non-distorted region;
Splice according to the order corresponding with described wide-angle photo with described non-distorted region according to the subregion after described M corrects by described boundary line.
As a kind of possible execution mode, the subregion after described M corrects by above-mentioned processor 3000 and after described non-distorted region splices, also specifically for:
The smoothing process of stitching position of the image that described splicing is obtained;
The edge of the image after smoothing processing is carried out cutting process, to obtain rectangle picture.
The embodiment of the present invention utilizes the camera of terminal to take a wide-angle photo; Determine the distorted region in described wide-angle photo and non-distorted region; Described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer; Respectively distortion correction is carried out to described M sub regions, to obtain the subregion after M correction; Subregion after correcting described M and described non-distorted region are spliced.Adopt the embodiment of the present invention distorted region can be divided into M region, then distortion correction is carried out respectively in this M region, the M sub regions after correction is being spliced, to reduce the distortion degree of distorted region.
The embodiment of the present invention also provides a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can have program stored therein, and comprises the part or all of step of any one signal processing method recorded in said method embodiment when this program performs.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step may can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the division of such as said units, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If above-mentioned integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc., can be specifically the processor in computer equipment) perform each embodiment said method of the present invention.Wherein, and aforesaid storage medium can comprise: USB flash disk, portable hard drive, magnetic disc, CD, read-only memory are (English: Read-OnlyMemory, abbreviation: ROM) or random access memory (English: RandomAccessMemory, abbreviation: RAM) etc. various can be program code stored medium.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
1. a method for distortion correction, is characterized in that, comprising:
The camera of terminal is utilized to take a wide-angle photo;
Determine the distorted region in described wide-angle photo and non-distorted region;
Described distorted region is divided into M sub regions according to predetermined angle interval, wherein, M be more than or equal to 1 integer;
Respectively distortion correction is carried out to described M sub regions, to obtain the subregion after M correction;
Subregion after correcting described M and described non-distorted region are spliced.
2. the method for claim 1, is characterized in that, describedly determines distorted region in described wide-angle photo and non-distorted region, comprising:
The region that distortion factor in described wide-angle photo is greater than predetermined threshold value is defined as distorted region;
Non-distorted region is determined in the region that distortion factor in described wide-angle photo is less than or equal to predetermined threshold value.
3. the method as described in any one of claim 1 or 2, is characterized in that, describedly carries out distortion correction respectively to described M sub regions, with obtain M correct after subregion, comprising:
Determine the average distortion coefficient of arbitrary subregion i in described M sub regions;
According to described average distortion coefficient, distortion correction is carried out to described arbitrary subregion i.
4. the method as described in any one of claim 1 or 2, is characterized in that, described by described M correct after subregion and described non-distorted region splice, comprising:
Determine the boundary line of the subregion after described M correction and described non-distorted region;
Splice according to the order corresponding with described wide-angle photo with described non-distorted region according to the subregion after described M corrects by described boundary line.
5. the method as described in any one of claim 1 or 2, is characterized in that, described described M is corrected after subregion and after described non-distorted region splices, described method also comprises:
The smoothing process of stitching position of the image that described splicing is obtained;
The edge of the image after smoothing processing is carried out cutting process, to obtain rectangle picture.
6. a terminal, is characterized in that, comprising:
Shooting unit, takes a wide-angle photo for utilizing the camera of terminal;
Determining unit, for determine described shooting unit photographs to wide-angle photo in distorted region and non-distorted region;
Division unit, is divided into M sub regions for the distorted region described determining unit determined according to predetermined angle interval, wherein, M be more than or equal to 1 integer;
Correcting unit, carries out distortion correction respectively for the M sub regions divided described division unit, to obtain the subregion after M correction;
Concatenation unit, for splicing the subregion after the corrected M of described correcting unit correction.
7. terminal as claimed in claim 6, it is characterized in that, described determining unit comprises:
First determining unit, is defined as distorted region for region distortion factor in the wide-angle photo of described shooting unit photographs being greater than predetermined threshold value;
Second determining unit, determines non-distorted region for region distortion factor in the wide-angle photo of described shooting unit photographs being less than or equal to predetermined threshold value.
8. the terminal as described in any one of claim 6 or 7, it is characterized in that, described correcting unit comprises:
3rd determining unit, for determining the average distortion coefficient of arbitrary subregion i in the M sub regions that described division unit divides;
Syndrome unit, carries out distortion correction for the average distortion coefficient determined according to described 3rd determining unit to described arbitrary subregion i.
9. the terminal as described in any one of claim 6 or 7, it is characterized in that, described concatenation unit comprises:
4th determining unit, M for determining to correct through described correcting unit correct after subregion and the boundary line of described non-distorted region;
Splicing subelement, splices the subregion after described M correction according to the order corresponding with described wide-angle photo with described non-distorted region for splicing the boundary line determined according to described 4th determining unit.
10. the terminal as described in any one of claim 6 or 7, it is characterized in that, described terminal also comprises:
Processing unit, for splicing the smoothing process of stitching position of the image obtained by described concatenation unit;
Cutter unit, for the edge of the image after smoothing processing is carried out cutting process, to obtain rectangle picture.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810162833.6A CN108389159A (en) | 2015-06-30 | 2015-06-30 | A kind of distortion correction method and terminal |
CN201510382678.5A CN105141826B (en) | 2015-06-30 | 2015-06-30 | A kind of distortion correction method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510382678.5A CN105141826B (en) | 2015-06-30 | 2015-06-30 | A kind of distortion correction method and terminal |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810162833.6A Division CN108389159A (en) | 2015-06-30 | 2015-06-30 | A kind of distortion correction method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105141826A true CN105141826A (en) | 2015-12-09 |
CN105141826B CN105141826B (en) | 2018-03-27 |
Family
ID=54727024
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810162833.6A Pending CN108389159A (en) | 2015-06-30 | 2015-06-30 | A kind of distortion correction method and terminal |
CN201510382678.5A Active CN105141826B (en) | 2015-06-30 | 2015-06-30 | A kind of distortion correction method and terminal |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810162833.6A Pending CN108389159A (en) | 2015-06-30 | 2015-06-30 | A kind of distortion correction method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN108389159A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106447602A (en) * | 2016-08-31 | 2017-02-22 | 浙江大华技术股份有限公司 | Image mosaic method and device |
CN107025638A (en) * | 2017-03-28 | 2017-08-08 | 北京小米移动软件有限公司 | The method and device of image procossing |
CN109146781A (en) * | 2018-07-20 | 2019-01-04 | 深圳市创客工场科技有限公司 | Method for correcting image and device, electronic equipment in laser cutting |
CN115905237A (en) * | 2022-12-09 | 2023-04-04 | 江苏泽景汽车电子股份有限公司 | Image processing method, image processing device, HUD and storage medium |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110189269B (en) * | 2019-05-23 | 2023-06-09 | Oppo广东移动通信有限公司 | Correction method, device, terminal and storage medium for 3D distortion of wide-angle lens |
CN110572578A (en) * | 2019-09-30 | 2019-12-13 | 联想(北京)有限公司 | Image processing method, apparatus, computing device, and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05176216A (en) * | 1991-12-24 | 1993-07-13 | Matsushita Electric Works Ltd | Lens distortion correcting system |
JP2008283507A (en) * | 2007-05-11 | 2008-11-20 | Nippon Seiki Co Ltd | Distortion correction method |
CN101572828A (en) * | 2009-05-20 | 2009-11-04 | 长春理工大学 | Method for correcting distortion in real time based on GPU camera and video camera |
CN102339169A (en) * | 2010-07-27 | 2012-02-01 | 中国科学院软件研究所 | Method for calibrating large-sized multipoint touch system |
CN102982516A (en) * | 2012-10-25 | 2013-03-20 | 西安理工大学 | Panoramic picture method based on hemisphere annular panoramic camera |
CN103262561A (en) * | 2010-10-13 | 2013-08-21 | Nec卡西欧移动通信株式会社 | Video distribution system, and video distribution method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102169573B (en) * | 2011-03-23 | 2013-11-06 | 北京大学 | Real-time distortion correction method and system of lens with high precision and wide field of view |
CN103247031B (en) * | 2013-04-19 | 2016-03-09 | 华为技术有限公司 | A kind of method of distorted image correction, terminal and system |
CN104636743B (en) * | 2013-11-06 | 2021-09-03 | 北京三星通信技术研究有限公司 | Method and device for correcting character image |
CN104200454B (en) * | 2014-05-26 | 2017-02-01 | 深圳市中瀛鑫科技股份有限公司 | Fisheye image distortion correction method and device |
TWM503714U (en) * | 2015-03-03 | 2015-06-21 | Nuuo Inc | Wide-angle image splitter processing system |
-
2015
- 2015-06-30 CN CN201810162833.6A patent/CN108389159A/en active Pending
- 2015-06-30 CN CN201510382678.5A patent/CN105141826B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05176216A (en) * | 1991-12-24 | 1993-07-13 | Matsushita Electric Works Ltd | Lens distortion correcting system |
JP2008283507A (en) * | 2007-05-11 | 2008-11-20 | Nippon Seiki Co Ltd | Distortion correction method |
CN101572828A (en) * | 2009-05-20 | 2009-11-04 | 长春理工大学 | Method for correcting distortion in real time based on GPU camera and video camera |
CN102339169A (en) * | 2010-07-27 | 2012-02-01 | 中国科学院软件研究所 | Method for calibrating large-sized multipoint touch system |
CN103262561A (en) * | 2010-10-13 | 2013-08-21 | Nec卡西欧移动通信株式会社 | Video distribution system, and video distribution method |
CN102982516A (en) * | 2012-10-25 | 2013-03-20 | 西安理工大学 | Panoramic picture method based on hemisphere annular panoramic camera |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106447602A (en) * | 2016-08-31 | 2017-02-22 | 浙江大华技术股份有限公司 | Image mosaic method and device |
CN106447602B (en) * | 2016-08-31 | 2020-04-03 | 浙江大华技术股份有限公司 | Image splicing method and device |
CN107025638A (en) * | 2017-03-28 | 2017-08-08 | 北京小米移动软件有限公司 | The method and device of image procossing |
CN107025638B (en) * | 2017-03-28 | 2020-02-07 | 北京小米移动软件有限公司 | Image processing method and device |
CN109146781A (en) * | 2018-07-20 | 2019-01-04 | 深圳市创客工场科技有限公司 | Method for correcting image and device, electronic equipment in laser cutting |
CN115905237A (en) * | 2022-12-09 | 2023-04-04 | 江苏泽景汽车电子股份有限公司 | Image processing method, image processing device, HUD and storage medium |
CN115905237B (en) * | 2022-12-09 | 2024-03-22 | 江苏泽景汽车电子股份有限公司 | Image processing method, device, HUD and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105141826B (en) | 2018-03-27 |
CN108389159A (en) | 2018-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104994281A (en) | Method for correcting face distortion and terminal | |
CN105141826A (en) | Distortion correction method and terminal | |
KR102010712B1 (en) | Distortion Correction Method and Terminal | |
US20190197735A1 (en) | Method and apparatus for image processing, and robot using the same | |
US9736391B2 (en) | Photographing method of dual-lens device, and dual-lens device | |
CN106605403B (en) | Shooting method and electronic equipment | |
KR20200060118A (en) | Electronic device including camera module in a display and method for compensating image around the camera module | |
US11683583B2 (en) | Picture focusing method, apparatus, terminal, and corresponding storage medium | |
EP3822758A1 (en) | Method and apparatus for setting background of ui control | |
CN112954212B (en) | Video generation method, device and equipment | |
US20220182554A1 (en) | Image display method, mobile terminal, and computer-readable storage medium | |
CN104994286A (en) | Distortion collection method and terminal | |
CN112020729A (en) | Image dead pixel detection method, image processing chip and electronic equipment | |
CN104486553A (en) | Method and terminal for taking panoramic photos | |
CN104991695A (en) | Information processing method and electronic equipment | |
US10629138B2 (en) | Mobile terminal and adjusting method thereof, and computer readable storage medium | |
US10462376B2 (en) | Exposure method in panoramic photo shooting and apparatus | |
EP3328066B1 (en) | Electronic device and method for autofocusing | |
CN110661969B (en) | Image acquisition method and device for display screen, electronic equipment and medium | |
CN111815531B (en) | Image processing method, device, terminal equipment and computer readable storage medium | |
CN105430284A (en) | Control method of photographing view-finding frame and terminal | |
JP2017204718A (en) | Imaging apparatus and zoom control method thereof | |
CN106980622B (en) | Folder processing method and device | |
CN113448470A (en) | Webpage long screenshot method, device, equipment and storage medium | |
CN112367460A (en) | Video anti-shake method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |