CN105007411A - Distortion correction method and mobile terminal - Google Patents
Distortion correction method and mobile terminal Download PDFInfo
- Publication number
- CN105007411A CN105007411A CN201510381715.0A CN201510381715A CN105007411A CN 105007411 A CN105007411 A CN 105007411A CN 201510381715 A CN201510381715 A CN 201510381715A CN 105007411 A CN105007411 A CN 105007411A
- Authority
- CN
- China
- Prior art keywords
- image
- angle
- shooting
- distortion correction
- face
- 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
- 238000012937 correction Methods 0.000 title claims abstract description 120
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000001514 detection method Methods 0.000 claims abstract description 24
- 230000001815 facial effect Effects 0.000 claims description 55
- 238000012360 testing method Methods 0.000 claims description 30
- 230000001105 regulatory effect Effects 0.000 claims description 28
- 108010001267 Protein Subunits Proteins 0.000 claims description 4
- 230000000694 effects Effects 0.000 description 6
- 230000001788 irregular Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000004075 alteration Effects 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000006386 memory function Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
Embodiments of the invention disclose a distortion correction method and a mobile terminal. The method comprises following steps of when an order to shoot a current scene through a wide-angle lens is received, performing human face detection on the current scene; adjusting the shooting angle of the wide-angle lens according to a detection result, and shooting at the shooting angle to generate a first image; and if the shooting angle is not in a preset distortionless angle range, performing distortion correction on the first image and generating a second image, and outputting the second image. Through adoption of the method, the wide-angle lens is used to shoot, so that the shooting range is increased and image distortion is lowered.
Description
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of method and mobile terminal of distortion correction.
Background technology
Along with the development of electronic technology, mobile terminal becomes necessity indispensable in people's life already, and camera is one of most mobile terminal necessity configuration, people can use it to take personage, landscape to record life, are very welcome functions.But, the shooting angle that the camera that existing mobile terminal configures possesses is roughly within the scope of 58 degree of-65 degree, even if adopt 65 degree take also with people's finding of naked eye to scenery differ greatly, therefore existing mobile terminal configure camera institute can coverage limited, the actual demand of people cannot be met.In addition, wide-angle lens is owing to having very wide visual angle and special shooting effect, thus be used widely in photography, monitoring and the field such as measurement and medical treatment, but wide-angle lens can produce distortion when wide-angle is taken, therefore, by wide-angle lens application in the terminal, how can photograph large coverage and distortion less image become urgent problem.
Summary of the invention
The embodiment of the present invention provides a kind of method and mobile terminal of distortion correction, takes the distortion realizing reducing image while expanding coverage by utilizing wide-angle lens.
Embodiment of the present invention first aspect provides a kind of method of distortion correction, comprising:
When receiving by the shooting instruction of wide-angle lens to current scene, Face datection is carried out to described current scene;
Regulate the shooting angle of described wide-angle lens according to testing result, and adopt described shooting angle to take generation first image;
If described shooting angle when presetting in undistorted angular range, not being carried out distortion correction to described first image and generating the second image, described second image is exported.
In the first possible implementation of embodiment of the present invention first aspect, described in when receiving by the shooting instruction of wide-angle lens to current scene, Face datection is carried out to described current scene, comprising:
When receiving by the shooting instruction of wide-angle lens to current scene, detect in described current scene whether there is face;
Whether the facial characteristics if so, then detecting described face is complete.
In conjunction with the first possible implementation of embodiment of the present invention first aspect, in the implementation that the second of embodiment of the present invention first aspect is possible, the described shooting angle regulating described wide-angle lens according to testing result, and adopt described shooting angle to take generation first image, comprising:
When there is not face in described current scene, the shooting angle of described wide-angle lens is adjusted to the maximum angle of default undistorted angular range, and adopts described maximum angle to take generation first image;
When the facial characteristics of described face is imperfect, regulate the shooting angle of described wide-angle lens, to make the facial characteristics of face described in the current scene after adjustment complete, and adopt described shooting angle to take generation first image;
When the facial characteristics of described face is complete, the complete and minimum angle that distorts of the facial characteristics shooting angle of described wide-angle lens being adjusted to described face, and the angle shot adopting the described distortion that regulates minimum generates the first image.
In conjunction with embodiment of the present invention first aspect or the first possible implementation of first aspect or the possible implementation of the second of first aspect, in the third possible implementation of embodiment of the present invention first aspect, describedly distortion correction is carried out to described first image and generates the second image, described second image is exported, comprising:
Obtain the relation table of shooting angle and distortion correction coefficient, and from described shooting angle with search distortion correction coefficient corresponding to described shooting angle the relation table of distortion correction coefficient;
Adopt described distortion correction coefficient to process described first image, generate the second image, and described second image is exported.
In conjunction with embodiment of the present invention first aspect or the first possible implementation of first aspect or the possible implementation of the second of first aspect, in the 4th kind of possible implementation of embodiment of the present invention first aspect, describedly distortion correction is carried out to described first image and generates the second image, described second image is exported, comprising:
Obtain the distortion correction coefficient to described first image of user's input, and adopt described distortion correction coefficient to process described first image, generate the second image, described second image is exported.
Embodiment of the present invention second aspect provides a kind of mobile terminal, comprising:
Detecting unit, during for receiving by the shooting instruction of wide-angle lens to current scene, carries out Face datection to described current scene;
Shooting unit, for regulating the shooting angle of described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image;
Output unit, if for described shooting angle not when presetting in undistorted angular range, carrying out distortion correction and generate the second image to described first image, exports described second image.
In the first possible implementation of embodiment of the present invention second aspect, described detecting unit comprises:
First detection sub-unit, during for receiving by the shooting instruction of wide-angle lens to current scene, detects in described current scene whether there is face;
Second detection sub-unit, if in described current scene no there is face time, then whether the facial characteristics detecting described face complete.
In conjunction with the first possible implementation of embodiment of the present invention second aspect, in the implementation that the second of embodiment of the present invention second aspect is possible, described shooting unit comprises:
First shooting subelement, for when there is not face in described current scene, is adjusted to the maximum angle of default undistorted angular range by the shooting angle of described wide-angle lens, and adopts described maximum angle to take generation first image;
Second shooting subelement, for when the facial characteristics of described face is imperfect, regulates the shooting angle of described wide-angle lens, to make the facial characteristics of face described in the current scene after adjustment complete, and adopts described shooting angle to take generation first image;
Third shot takes the photograph subelement, for when the facial characteristics of described face is complete, complete and the minimum angle that distorts of the facial characteristics shooting angle of described wide-angle lens being adjusted to described face, and the angle shot adopting the described distortion that regulates minimum generates the first image.
In conjunction with embodiment of the present invention second aspect or the first possible implementation of second aspect or the possible implementation of the second of second aspect, in the third possible implementation of embodiment of the present invention second aspect, described output unit comprises:
Obtain subelement, if for described shooting angle not when presetting in undistorted angular range, obtain the relation table of shooting angle and distortion correction coefficient, and from described shooting angle with search distortion correction coefficient corresponding to described shooting angle the relation table of distortion correction coefficient;
Exporting subelement, for adopting described distortion correction coefficient to process described first image, generating the second image, and described second image is exported.
In conjunction with embodiment of the present invention second aspect or the first possible implementation of second aspect or the possible implementation of the second of second aspect, in the 4th kind of possible implementation of embodiment of the present invention second aspect, described output unit, if also for described shooting angle not when presetting in undistorted angular range, obtain the distortion correction coefficient to described first image of user's input, and adopt described distortion correction coefficient to process described first image, generate the second image, described second image is exported.
In embodiments of the present invention, by when receiving by the shooting instruction of wide-angle lens to current scene, Face datection is carried out to current scene, the shooting angle of wide-angle lens is regulated according to testing result, and adopt shooting angle to take generation first image, if described shooting angle when presetting in undistorted angular range, not being carried out distortion correction to the first image and generating the second image, the second image is exported.By utilizing wide-angle lens to take, can coverage be expanded, further, when shooting angle is not when presetting in undistorted angular range, distortion correction can be carried out to photographic images, reducing the distortion of image, and then improve the shooting effect of mobile terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments 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.
Fig. 1 is the schematic flow sheet of the method for a kind of distortion correction that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the method for the another kind of distortion correction that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of the method for another distortion correction that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of mobile terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another kind of mobile terminal that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the shooting unit that the embodiment of the present invention provides.
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 the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not paying the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
It can be any equipment possessing communication and memory function that the embodiment of the present invention relates to mobile terminal, such as: panel computer, mobile phone, electronic reader, remote controller, personal computer (Personal Computer, PC), notebook computer, mobile unit, Web TV, wearable device etc. have the smart machine of network function.
Below in conjunction with accompanying drawing 1-accompanying drawing 3, the method for the distortion correction that the embodiment of the present invention provides is described in detail.
Refer to Fig. 1, for embodiments providing a kind of schematic flow sheet of method of distortion correction.As shown in Figure 1, the described method of the embodiment of the present invention can comprise the following steps S101-step S103.
S101, when receiving by the shooting instruction of wide-angle lens to current scene, carries out Face datection to described current scene.
Concrete, when receiving by the shooting instruction of wide-angle lens to current scene, mobile terminal carries out Face datection to described current scene.After user opens the wide-angle lens configured, described mobile terminal can receive default gesture that user inputted by user's inputting interface of wide-angle lens in described mobile terminal, preset the shooting instruction that the modes such as click location send, or described mobile terminal can receive user and sends shooting instruction by modes such as programmable button, programmable button combinations.After receiving the shooting instruction using wide-angle lens, described mobile terminal utilizes human face detection device to carry out Face datection to described current scene, can realize the face location, size, facial characteristics etc. that detect described current scene, in order to take.
S102, regulates the shooting angle of described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image.
Concrete, described mobile terminal regulates the shooting angle of described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image.Wherein, described shooting angle refers to angular field of view captured by wide-angle lens.When face not detected in described current scene, described current scene is directly taken, or regulate the shooting angle of wide-angle lens to maximum the default undistorted angle of coverage, and carry out shooting generation first image according to the shooting angle after adjustment.When face being detected in described current scene, by regulating the shooting angle of wide-angle lens, make captured face complete, and carry out shooting generation first image according to the shooting angle after regulating, the incomplete situation of photographic images face can not be caused like this, more can meet the demand of user, strengthen user's stickiness.
S103, if described shooting angle is not when presetting in undistorted angular range, carries out distortion correction to described first image and generating the second image, is exported by described second image.
Concrete, described mobile terminal judges described shooting angle whether presetting in undistorted angular range, when described shooting angle is not when presetting in undistorted angular range, described mobile terminal carries out distortion correction to described first image and generates the second image, is exported by described second image.Described default undistorted angle is set by configured wide-angle lens, is fixing angular range, and namely the described image presetting shooting in undistorted angular range there will not be distortion.And for the shooting angle not in described default undistorted angular range, set and shooting angle distortion correction coefficient one to one, described distortion correction coefficient obtained according to countless experiments data, when described shooting angle is not when presetting in undistorted angular range, obtain the distortion correction coefficient corresponding with shooting angle, distortion correction is carried out to described first image and generates the second image, and described second image is exported in described mobile terminal.
In embodiments of the present invention, by when receiving by the shooting instruction of wide-angle lens to current scene, Face datection is carried out to current scene, the shooting angle of wide-angle lens is regulated according to testing result, and adopt shooting angle to take generation first image, if described shooting angle when presetting in undistorted angular range, not being carried out distortion correction to the first image and generating the second image, the second image is exported.By utilizing wide-angle lens to take, can coverage be expanded, further, when shooting angle is not when presetting in undistorted angular range, distortion correction can be carried out to photographic images, reducing the distortion of image, and then improve the shooting effect of mobile terminal.
Refer to Fig. 2, for embodiments providing the schematic flow sheet of the method for another kind of distortion correction.As shown in Figure 2, the described method of the embodiment of the present invention can comprise the following steps S201-step S205.
S201, when receiving by the shooting instruction of wide-angle lens to current scene, detects in described current scene whether there is face.
Concrete, when receiving by the shooting instruction of wide-angle lens to current scene, mobile terminal carries out Face datection to described current scene.After user opens the wide-angle lens configured, described mobile terminal can receive default gesture that user inputted by user's inputting interface of wide-angle lens in described mobile terminal, preset the shooting instruction that the modes such as click location send, or described mobile terminal can receive user and sends shooting instruction by modes such as programmable button, programmable button combinations.After receiving the shooting instruction using wide-angle lens, described mobile terminal utilizes human face detection device to detect in described current scene whether there is face.
S202, if there is face in described current scene, then whether the facial characteristics detecting described face is complete.
Concrete, if there is face in described current scene, then whether described mobile terminal to detect the facial characteristics of described face complete.Described face features can including but not limited to two eyes, nose, ear, mouths etc.Described mobile terminal first can determine position and the size of existing face, in optional mode, whether whether the face features that can detect each position is complete, or complete at the detection face features of the surrounding position of described current scene to face location.
S203, regulates the shooting angle of described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image.
Concrete, described mobile terminal regulates the shooting angle of described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image, and wherein, described shooting angle refers to angular field of view captured by wide-angle lens.。Because testing result is different, the regulative mode of the shooting angle of wide-angle lens is different, and following three kinds of situations therefore can be divided into describe in detail.
The first situation: when there is not face in described current scene, is adjusted to the maximum angle of default undistorted angular range by the shooting angle of described wide-angle lens, and adopts described maximum angle to take generation first image.
Concrete, when testing result is when there is not face in described current scene, the shooting angle of described wide-angle lens is adjusted to the maximum angle of default undistorted angular range by described mobile terminal, adopts described maximum angle to take generation first image.Can ensure like this to make captured image there is not distortion while selecting larger coverage,
The second situation: when the facial characteristics of described face is imperfect, regulate the shooting angle of described wide-angle lens, to make the facial characteristics of face described in the current scene after adjustment complete, and adopts described shooting angle to take generation first image.
Concrete, when testing result be the facial characteristics of described face imperfect time, described mobile terminal regulates the shooting angle of described wide-angle lens, until the facial characteristics of face is complete described in current scene after regulating, and adopts described shooting angle to take generation first image.Be understandable that, if regulate shooting angle to the maximum angle of wide-angle lens that the incomplete face of facial characteristics can not be allowed complete in current, then may imperfect face respective user be side stand or standing, which place is too far away or from wide-angle lens too close to etc. situation make completely to show, at this moment adopt the shooting angle before regulating to carry out shooting generation first image, or be adjusted to and do not comprise described imperfect face and the minimum shooting angle that distorts is taken.
The third situation: when the facial characteristics of described face is complete, the complete and minimum angle that distorts of the facial characteristics shooting angle of described wide-angle lens being adjusted to described face, and the angle shot adopting the described distortion that regulates minimum generates the first image.
Concrete, when testing result be the facial characteristics of described face complete time, the shooting angle of described wide-angle lens is adjusted to the complete and minimum angle that distorts of the facial characteristics of described face by described mobile terminal, and the angle shot adopting the described distortion that regulates minimum generates the first image.Described mobile terminal can pass through by the descending adjustment of the shooting angle comprising complete facial characteristics, when ensureing that the facial characteristics of face is complete, if when the shooting angle after regulating is greater than the maximum angle of described default undistorted angular range, take by the shooting angle after regulating.If when the shooting angle after regulating is less than or equal to the maximum angle of described default undistorted angular range, the described maximum angle presetting undistorted angular range is adopted to take.Complete and the minimum angle that distorts of the facial characteristics that the shooting angle of described wide-angle lens so both can have been realized to be adjusted to described face, and the angle shot adopting the described distortion that regulates minimum generates the process of the first image.
S204, if described shooting angle is not when presetting in undistorted angular range, obtains the relation table of shooting angle and distortion correction coefficient, and from described shooting angle with search distortion correction coefficient corresponding to described shooting angle the relation table of distortion correction coefficient.
Concrete, if described shooting angle is not when presetting in undistorted angular range, the relation table of described acquisition for mobile terminal shooting angle and distortion correction coefficient, and from described shooting angle with search distortion correction coefficient corresponding to described shooting angle the relation table of distortion correction coefficient.The aberration correction algorithm corresponding due to dissimilar wide-angle lens is different, and the distortion correction coefficient therefore obtained also is had nothing in common with each other.Described mobile terminal preserves the wide-angle lens that configures the to some extent distortion correction coefficient corresponding when each exists the shooting angle of distortion, is the relation table of shooting angle and distortion correction coefficient.Described mobile terminal obtains corresponding distortion correction coefficient according to shooting angle.
S205, adopts described distortion correction coefficient to process described first image, generates the second image, and is exported by described second image.
Concrete, described mobile terminal adopts described distortion correction coefficient to process described first image, generates the second image, and is exported by described second image.Be understandable that, when described mobile terminal adopt described distortion correction coefficient to described first image procossing after, for irregular first image, described first image is sheared, the image intercepting maximum area is carried out according to certain Aspect Ratio, generate the second image, described second image is exported.
In embodiments of the present invention, by when receiving by the shooting instruction of wide-angle lens to current scene, Face datection is carried out to current scene, the shooting angle of wide-angle lens is regulated according to testing result, and adopt shooting angle to take generation first image, if described shooting angle when presetting in undistorted angular range, not being carried out distortion correction to the first image and generating the second image, the second image is exported.Take by utilizing wide-angle lens, coverage can be expanded, further, when shooting angle is not when presetting in undistorted angular range, distortion correction can be carried out to photographic images, reduce the distortion of image, different shooting angle can also be regulated for different scenes, improve the shooting effect of mobile terminal, and then also improve the intelligent of mobile terminal and convenience.
Refer to Fig. 3, for embodiments providing the schematic flow sheet of the method for another distortion correction.As shown in Figure 3, the described method of the embodiment of the present invention can comprise the following steps S301-step S304, and wherein the corresponding step specifically introducing embodiment shown in Figure 2 of step S301-step S303, does not repeat them here.
S301, when receiving by the shooting instruction of wide-angle lens to current scene, detects in described current scene whether there is face.
S302, if there is face in described current scene, then whether the facial characteristics detecting described face is complete.
S303, regulates the shooting angle of described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image.
Concrete, described mobile terminal regulates the shooting angle of described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image.Because testing result is different, the regulative mode of the shooting angle of wide-angle lens is different, and following three kinds of situations therefore can be divided into describe in detail.
The first situation: when there is not face in described current scene, is adjusted to the maximum angle of default undistorted angular range by the shooting angle of described wide-angle lens, and adopts described maximum angle to take generation first image.
The second situation: when the facial characteristics of described face is imperfect, regulate the shooting angle of described wide-angle lens, to make the facial characteristics of face described in the current scene after adjustment complete, and adopts described shooting angle to take generation first image.
The third situation: when the facial characteristics of described face is complete, the complete and minimum angle that distorts of the facial characteristics shooting angle of described wide-angle lens being adjusted to described face, and the angle shot adopting the described distortion that regulates minimum generates the first image.
S304, if described shooting angle, not when presetting in undistorted angular range, obtaining the distortion correction coefficient to described first image of user's input, and adopting described distortion correction coefficient to process described first image, generate the second image, described second image is exported.
Concrete, if described shooting angle is not when presetting in undistorted angular range, distortion correction coefficient range can be exported to user's inputting interface, select for user, the distortion correction coefficient to described first image of described acquisition for mobile terminal user input, and adopt described distortion correction coefficient to process described first image, be understandable that, when described mobile terminal adopt described distortion correction coefficient to described first image procossing after, for irregular first image, described first image is sheared, the image intercepting maximum area is carried out according to certain Aspect Ratio, generate the second image, described second image is exported.Needs illustrate, if described shooting angle is when presetting in undistorted angular range, the distortion correction coefficient to described first image of described acquisition for mobile terminal user input, and adopt described distortion correction coefficient to process described first image, generate the second image, described second image is exported.By user's input skew correction coefficient, the image of the reduction distortion needed for user can be exported or strengthen the image of distortion, more can meet the demand of user, strengthen user's stickiness.
In embodiments of the present invention, by when receiving by the shooting instruction of wide-angle lens to current scene, Face datection is carried out to current scene, the shooting angle of wide-angle lens is regulated according to testing result, and adopt shooting angle to take generation first image, if described shooting angle when presetting in undistorted angular range, not being carried out distortion correction to the first image and generating the second image, the second image is exported.Take by utilizing wide-angle lens, coverage can be expanded, further, when shooting angle is not when presetting in undistorted angular range, distortion correction can be carried out to photographic images, reduce the distortion of image, distortion correction can also be carried out according to user's request to image, improve the intelligent of mobile terminal and convenience.
Below in conjunction with accompanying drawing 4-accompanying drawing 6, the mobile terminal that the embodiment of the present invention provides is described in detail.It should be noted that, the mobile terminal shown in accompanying drawing 4-accompanying drawing 6, for performing the method for Fig. 1 of the present invention-embodiment illustrated in fig. 3, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 1-Fig. 3 of the present invention.
Refer to Fig. 4, for embodiments providing a kind of structural representation of mobile terminal.As shown in Figure 4, the described mobile terminal 1 of the embodiment of the present invention can comprise: detecting unit 11, shooting unit 12 and output unit 13.
Detecting unit 11, during for receiving by the shooting instruction of wide-angle lens to current scene, carries out Face datection to described current scene.
In specific implementation, when receiving by the shooting instruction of wide-angle lens to current scene, described detecting unit 11 carries out Face datection to described current scene.After user opens the wide-angle lens configured, described detecting unit 11 can receive default gesture that user inputted by user's inputting interface of wide-angle lens in described mobile terminal, preset the shooting instruction that the modes such as click location send, or described detecting unit 11 can receive user and sends shooting instruction by modes such as programmable button, programmable button combinations.After receiving the shooting instruction using wide-angle lens, described detecting unit 11 utilizes human face detection device to carry out Face datection to described current scene, the face location, size, facial characteristics etc. that detect described current scene can be realized, in order to take.
Shooting unit 12, for regulating the shooting angle of described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image.
In specific implementation, described shooting unit 12 regulates the shooting angle of described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image.Wherein, described shooting angle refers to angular field of view captured by wide-angle lens.When face not detected in described current scene, described current scene is directly taken, or regulate the shooting angle of wide-angle lens to maximum the default undistorted angle of coverage, and carry out shooting generation first image according to the shooting angle after adjustment.When face being detected in described current scene, by regulating the shooting angle of wide-angle lens, make captured face complete, and carry out shooting generation first image according to the shooting angle after regulating, the incomplete situation of photographic images face can not be caused like this, more can meet the demand of user, strengthen user's stickiness.
Output unit 13, if for described shooting angle not presetting in undistorted angular range constantly, carrying out distortion correction to described first image and generating the second image, will described second image output.
In specific implementation, described output unit 13 judges described shooting angle whether presetting in undistorted angular range, when described shooting angle is not when presetting in undistorted angular range, described output unit 13 carries out distortion correction to described first image and generates the second image, is exported by described second image.Described default undistorted angle is set by configured wide-angle lens, is fixing angular range, and namely the described image presetting shooting in undistorted angular range there will not be distortion.And for the shooting angle not in described default undistorted angular range, set and shooting angle distortion correction coefficient one to one, described distortion correction coefficient obtained according to countless experiments data, when described shooting angle is not when presetting in undistorted angular range, obtain the distortion correction coefficient corresponding with shooting angle, distortion correction is carried out to described first image and generates the second image, and described second image is exported in described mobile terminal.
In embodiments of the present invention, by when receiving by the shooting instruction of wide-angle lens to current scene, Face datection is carried out to current scene, the shooting angle of wide-angle lens is regulated according to testing result, and adopt shooting angle to take generation first image, if described shooting angle when presetting in undistorted angular range, not being carried out distortion correction to the first image and generating the second image, the second image is exported.By utilizing wide-angle lens to take, can coverage be expanded, further, when shooting angle is not when presetting in undistorted angular range, distortion correction can be carried out to photographic images, reducing the distortion of image, and then improve the shooting effect of mobile terminal.
Refer to Fig. 5, for embodiments providing the structural representation of another kind of mobile terminal.As shown in Figure 5, the described mobile terminal 1 of the embodiment of the present invention can comprise: detecting unit 11, shooting unit 12 and output unit 13.Wherein, detecting unit 11 comprises the first detection sub-unit 111 and the second detection sub-unit 112, and described output unit 13 comprises acquisition subelement 131 and exports subelement 132.
Detecting unit 11, during for receiving by the shooting instruction of wide-angle lens to current scene, carries out Face datection to described current scene.
In specific implementation, refer to the detailed introduction of the first detection sub-unit 111 and the second detection sub-unit 112.
First detection sub-unit 111, during for receiving by the shooting instruction of wide-angle lens to current scene, detects in described current scene whether there is face.
In specific implementation, when receiving by the shooting instruction of wide-angle lens to current scene, described first detection sub-unit 111 carries out Face datection to described current scene.After user opens the wide-angle lens configured, described first detection sub-unit 111 can receive default gesture that user inputted by user's inputting interface of wide-angle lens in described mobile terminal, preset the shooting instruction that the modes such as click location send, or described first detection sub-unit 111 can receive user and sends shooting instruction by modes such as programmable button, programmable button combinations.After receiving the shooting instruction using wide-angle lens, described first detection sub-unit 111 utilizes human face detection device to detect in described current scene whether there is face.
Second detection sub-unit 112, if in described current scene no there is face time, then whether the facial characteristics detecting described face complete.
In specific implementation, if there is face in described current scene, then whether described second detection sub-unit 112 facial characteristics that detects described face is complete.Described face features can including but not limited to two eyes, nose, ear, mouths etc.Described second detection sub-unit 112 first can determine position and the size of existing face, in optional mode, whether whether the face features that can detect each position is complete, or complete at the detection face features of the surrounding position of described current scene to face location.
Shooting unit 12, for regulating the shooting angle of described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image.
In specific implementation, please also refer to Fig. 6, for embodiments providing the structural representation of shooting unit.As shown in Figure 6, the described shooting unit 12 of the embodiment of the present invention can comprise: subelement 122 taken by the first shooting subelement 121, second and third shot takes the photograph subelement 123, and these three unit are respectively described shooting unit 12 style of shooting corresponding respectively when three kinds of different testing results.
First shooting subelement 121, for when there is not face in described current scene, is adjusted to the maximum angle of default undistorted angular range by the shooting angle of described wide-angle lens, and adopts described maximum angle to take generation first image.
In specific implementation, when testing result is when there is not face in described current scene, the shooting angle of described wide-angle lens is adjusted to the maximum angle of default undistorted angular range by described first shooting subelement 121, adopts described maximum angle to take generation first image.Wherein, described shooting angle refers to angular field of view captured by wide-angle lens.Can ensure like this to make captured image there is not distortion while selecting larger coverage.
Second shooting subelement 122, for when the facial characteristics of described face is imperfect, regulates the shooting angle of described wide-angle lens, to make the facial characteristics of face described in the current scene after adjustment complete, and adopts described shooting angle to take generation first image.
In specific implementation, when testing result be the facial characteristics of described face imperfect time, described second shooting subelement 122 regulates the shooting angle of described wide-angle lens, until the facial characteristics of face is complete described in current scene after regulating, and adopts described shooting angle to take generation first image.Be understandable that, if regulate shooting angle to the maximum angle of wide-angle lens that the incomplete face of facial characteristics can not be allowed complete in current, then may imperfect face respective user be side stand or standing, which place is too far away or from wide-angle lens too close to etc. situation make completely to show, at this moment adopt the shooting angle before regulating to carry out shooting generation first image, or be adjusted to and do not comprise described imperfect face and the minimum shooting angle that distorts is taken.
Third shot takes the photograph subelement 123, for when the facial characteristics of described face is complete, complete and the minimum angle that distorts of the facial characteristics shooting angle of described wide-angle lens being adjusted to described face, and the angle shot adopting the described distortion that regulates minimum generates the first image.
In specific implementation, when testing result be the facial characteristics of described face complete time, described third shot is taken the photograph subelement 123 and the shooting angle of described wide-angle lens is adjusted to the complete and minimum angle that distorts of the facial characteristics of described face, and the angle shot adopting the described distortion that regulates minimum generates the first image.Described third shot is taken the photograph subelement 123 and can be passed through by the descending adjustment of the shooting angle comprising complete facial characteristics, when ensureing that the facial characteristics of face is complete, if when the shooting angle after regulating is greater than the maximum angle of described default undistorted angular range, take by the shooting angle after regulating.If when the shooting angle after regulating is less than or equal to the maximum angle of described default undistorted angular range, the described maximum angle presetting undistorted angular range is adopted to take.Complete and the minimum angle that distorts of the facial characteristics that the shooting angle of described wide-angle lens so both can have been realized to be adjusted to described face, and the angle shot adopting the described distortion that regulates minimum generates the process of the first image.
Output unit 13, if for described shooting angle not presetting in undistorted angular range constantly, carrying out distortion correction to described first image and generating the second image, will described second image output.
In specific implementation, refer to the detailed introduction obtaining subelement 131 and export subelement 132.
Obtain subelement 131, if for described shooting angle not when presetting in undistorted angular range, obtain the relation table of shooting angle and distortion correction coefficient, and from described shooting angle with search distortion correction coefficient corresponding to described shooting angle the relation table of distortion correction coefficient.
In specific implementation, if described shooting angle is not when presetting in undistorted angular range, described acquisition subelement 131 obtains the relation table of shooting angle and distortion correction coefficient, and from described shooting angle with search distortion correction coefficient corresponding to described shooting angle the relation table of distortion correction coefficient.The aberration correction algorithm corresponding due to dissimilar wide-angle lens is different, and the distortion correction coefficient therefore obtained also is had nothing in common with each other.The distortion correction coefficient that the wide-angle lens that described mobile preservation configures to some extent is corresponding when each exists the shooting angle of distortion, is the relation table of shooting angle and distortion correction coefficient.Described acquisition subelement 131 obtains corresponding distortion correction coefficient according to shooting angle.
Exporting subelement 132, for adopting described distortion correction coefficient to process described first image, generating the second image, and described second image is exported.
In specific implementation, described output subelement 132 adopts described distortion correction coefficient to process described first image, generates the second image, and is exported by described second image.Being understandable that, after the described distortion correction coefficient of employing is to described first image procossing, is irregular first image, described first image is sheared, carry out according to certain Aspect Ratio the image intercepting maximum area, generate the second image, described second image is exported.
In a kind of feasible scheme, described output unit 13, if also for described shooting angle not when presetting in undistorted angular range, obtain the distortion correction coefficient to described first image of user's input, and adopt described distortion correction coefficient to process described first image, generate the second image, described second image is exported.
In specific implementation, if described shooting angle is not when presetting in undistorted angular range, described output unit 13 can export distortion correction coefficient range to user's inputting interface, select for user, described output unit 13 obtains the distortion correction coefficient to described first image of user's input, and adopt described distortion correction coefficient to process described first image, be understandable that, after the described distortion correction coefficient of employing is to described first image procossing, for irregular first image, described first image is sheared, the image intercepting maximum area is carried out according to certain Aspect Ratio, generate the second image, described second image exports by described output unit 13.Needs illustrate, if described shooting angle is when presetting in undistorted angular range, described output unit 13 obtains the distortion correction coefficient to described first image of user's input, and adopt described distortion correction coefficient to process described first image, generate the second image, described second image is exported.By user's input skew correction coefficient, the image of the reduction distortion needed for user can be exported or strengthen the image of distortion, more can meet the demand of user, strengthen user's stickiness.
In embodiments of the present invention, by when receiving by the shooting instruction of wide-angle lens to current scene, Face datection is carried out to current scene, the shooting angle of wide-angle lens is regulated according to testing result, and adopt shooting angle to take generation first image, if described shooting angle when presetting in undistorted angular range, not being carried out distortion correction to the first image and generating the second image, the second image is exported.Take by utilizing wide-angle lens, coverage can be expanded, further, when shooting angle is not when presetting in undistorted angular range, distortion correction can be carried out to photographic images, reducing the distortion of image, different shooting angle can be regulated for different scenes, improve the shooting effect of mobile terminal, distortion correction can also be carried out according to user's request to image, also improve the intelligent of mobile terminal and convenience.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.
Claims (10)
1. a method for distortion correction, is characterized in that, comprising:
When receiving by the shooting instruction of wide-angle lens to current scene, Face datection is carried out to described current scene;
Regulate the shooting angle of described wide-angle lens according to testing result, and adopt described shooting angle to take generation first image;
If described shooting angle when presetting in undistorted angular range, not being carried out distortion correction to described first image and generating the second image, described second image is exported.
2. method according to claim 1, is characterized in that, described in when receiving by the shooting instruction of wide-angle lens to current scene, Face datection is carried out to described current scene, comprising:
When receiving by the shooting instruction of wide-angle lens to current scene, detect in described current scene whether there is face;
Whether the facial characteristics if so, then detecting described face is complete.
3. method according to claim 2, is characterized in that, the described shooting angle regulating described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image, comprising:
When there is not face in described current scene, the shooting angle of described wide-angle lens is adjusted to the maximum angle of default undistorted angular range, and adopts described maximum angle to take generation first image;
When the facial characteristics of described face is imperfect, regulate the shooting angle of described wide-angle lens, to make the facial characteristics of face described in the current scene after adjustment complete, and adopt described shooting angle to take generation first image;
When the facial characteristics of described face is complete, the complete and minimum angle that distorts of the facial characteristics shooting angle of described wide-angle lens being adjusted to described face, and the angle shot adopting the described distortion that regulates minimum generates the first image.
4. the method according to any one of claim 1-3, is characterized in that, describedly carries out distortion correction to described first image and generates the second image, is exported by described second image, comprising:
Obtain the relation table of shooting angle and distortion correction coefficient, and from described shooting angle with search distortion correction coefficient corresponding to described shooting angle the relation table of distortion correction coefficient;
Adopt described distortion correction coefficient to process described first image, generate the second image, and described second image is exported.
5. the method according to any one of claim 1-3, is characterized in that, describedly carries out distortion correction to described first image and generates the second image, is exported by described second image, comprising:
Obtain the distortion correction coefficient to described first image of user's input, and adopt described distortion correction coefficient to process described first image, generate the second image, described second image is exported.
6. a mobile terminal, is characterized in that, comprising:
Detecting unit, during for receiving by the shooting instruction of wide-angle lens to current scene, carries out Face datection to described current scene;
Shooting unit, for regulating the shooting angle of described wide-angle lens according to testing result, and adopts described shooting angle to take generation first image;
Output unit, if for described shooting angle not presetting in undistorted angular range constantly, carrying out distortion correction to described first image and generating the second image, will described second image output.
7. mobile terminal according to claim 6, is characterized in that, described detecting unit comprises:
First detection sub-unit, during for receiving by the shooting instruction of wide-angle lens to current scene, detects in described current scene whether there is face;
Second detection sub-unit, if in described current scene no there is face time, then whether the facial characteristics detecting described face complete.
8. mobile terminal according to claim 7, is characterized in that, described shooting unit comprises:
First shooting subelement, for when there is not face in described current scene, is adjusted to the maximum angle of default undistorted angular range by the shooting angle of described wide-angle lens, and adopts described maximum angle to take generation first image;
Second shooting subelement, for when the facial characteristics of described face is imperfect, regulates the shooting angle of described wide-angle lens, to make the facial characteristics of face described in the current scene after adjustment complete, and adopts described shooting angle to take generation first image;
Third shot takes the photograph subelement, for when the facial characteristics of described face is complete, complete and the minimum angle that distorts of the facial characteristics shooting angle of described wide-angle lens being adjusted to described face, and the angle shot adopting the described distortion that regulates minimum generates the first image.
9. the mobile terminal according to any one of claim 6-8, is characterized in that, described output unit comprises:
Obtain subelement, if for described shooting angle not when presetting in undistorted angular range, obtain the relation table of shooting angle and distortion correction coefficient, and from described shooting angle with search distortion correction coefficient corresponding to described shooting angle the relation table of distortion correction coefficient;
Exporting subelement, for adopting described distortion correction coefficient to process described first image, generating the second image, and described second image is exported.
10. the mobile terminal according to any one of claim 6-8, it is characterized in that, described output unit, if also for described shooting angle not when presetting in undistorted angular range, obtain the distortion correction coefficient to described first image of user's input, and adopt described distortion correction coefficient to process described first image, generate the second image, described second image is exported.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510381715.0A CN105007411B (en) | 2015-06-30 | 2015-06-30 | The method and mobile terminal of a kind of distortion correction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510381715.0A CN105007411B (en) | 2015-06-30 | 2015-06-30 | The method and mobile terminal of a kind of distortion correction |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105007411A true CN105007411A (en) | 2015-10-28 |
CN105007411B CN105007411B (en) | 2018-01-23 |
Family
ID=54379913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510381715.0A Expired - Fee Related CN105007411B (en) | 2015-06-30 | 2015-06-30 | The method and mobile terminal of a kind of distortion correction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105007411B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108629748A (en) * | 2018-04-16 | 2018-10-09 | 深圳臻迪信息技术有限公司 | Image correction method, device, electronic equipment and computer readable storage medium |
WO2019033411A1 (en) * | 2017-08-18 | 2019-02-21 | 华为技术有限公司 | Panoramic shooting method and device |
CN109978997A (en) * | 2019-04-03 | 2019-07-05 | 广东电网有限责任公司 | A kind of transmission line of electricity three-dimensional modeling method and system based on inclination image |
CN111080545A (en) * | 2019-12-09 | 2020-04-28 | Oppo广东移动通信有限公司 | Face distortion correction method and device, terminal equipment and storage medium |
CN112672040A (en) * | 2020-12-15 | 2021-04-16 | 维沃移动通信有限公司 | Shooting method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101090442A (en) * | 2006-06-13 | 2007-12-19 | 三星电子株式会社 | Method and apparatus for taking images using mobile communication terminal with plurality of camera lenses |
US20090059041A1 (en) * | 2007-08-27 | 2009-03-05 | Sung Jin Kwon | Method of correcting image distortion and apparatus for processing image using the method |
CN101814181A (en) * | 2010-03-17 | 2010-08-25 | 天津理工大学 | Unfolding method for restoration of fisheye image |
CN104104919A (en) * | 2014-07-24 | 2014-10-15 | 山东神戎电子股份有限公司 | Lens coaxial correction method of monitor |
CN104574397A (en) * | 2014-12-31 | 2015-04-29 | 广东欧珀移动通信有限公司 | Image processing method and mobile terminal |
-
2015
- 2015-06-30 CN CN201510381715.0A patent/CN105007411B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101090442A (en) * | 2006-06-13 | 2007-12-19 | 三星电子株式会社 | Method and apparatus for taking images using mobile communication terminal with plurality of camera lenses |
US20090059041A1 (en) * | 2007-08-27 | 2009-03-05 | Sung Jin Kwon | Method of correcting image distortion and apparatus for processing image using the method |
CN101814181A (en) * | 2010-03-17 | 2010-08-25 | 天津理工大学 | Unfolding method for restoration of fisheye image |
CN104104919A (en) * | 2014-07-24 | 2014-10-15 | 山东神戎电子股份有限公司 | Lens coaxial correction method of monitor |
CN104574397A (en) * | 2014-12-31 | 2015-04-29 | 广东欧珀移动通信有限公司 | Image processing method and mobile terminal |
Non-Patent Citations (1)
Title |
---|
王颖: "超大广角畸变图像的校正和展开", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019033411A1 (en) * | 2017-08-18 | 2019-02-21 | 华为技术有限公司 | Panoramic shooting method and device |
US11108953B2 (en) | 2017-08-18 | 2021-08-31 | Huawei Technologies Co., Ltd. | Panoramic photo shooting method and apparatus |
CN108629748A (en) * | 2018-04-16 | 2018-10-09 | 深圳臻迪信息技术有限公司 | Image correction method, device, electronic equipment and computer readable storage medium |
CN109978997A (en) * | 2019-04-03 | 2019-07-05 | 广东电网有限责任公司 | A kind of transmission line of electricity three-dimensional modeling method and system based on inclination image |
CN111080545A (en) * | 2019-12-09 | 2020-04-28 | Oppo广东移动通信有限公司 | Face distortion correction method and device, terminal equipment and storage medium |
CN111080545B (en) * | 2019-12-09 | 2024-03-12 | Oppo广东移动通信有限公司 | Face distortion correction method, device, terminal equipment and storage medium |
CN112672040A (en) * | 2020-12-15 | 2021-04-16 | 维沃移动通信有限公司 | Shooting method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105007411B (en) | 2018-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107509037B (en) | The method and terminal taken pictures using different field angle cameras | |
CN103945121B (en) | A kind of information processing method and electronic equipment | |
US9509916B2 (en) | Image presentation method and apparatus, and terminal | |
CN105007411A (en) | Distortion correction method and mobile terminal | |
CN106605403B (en) | Shooting method and electronic equipment | |
US7692668B2 (en) | Apparatus and method for automatically compensating for an image gradient of a mobile communication terminal | |
CN104205804B (en) | Image processing apparatus, filming apparatus and image processing method | |
CN104883497A (en) | Positioning shooting method and mobile terminal | |
US8749607B2 (en) | Face equalization in video conferencing | |
US20140361955A1 (en) | Means for dynamically regulating the time-out characteristics of a display of an electronic device | |
CN109981964B (en) | Robot-based shooting method and shooting device and robot | |
CN104853097B (en) | A kind of panning mode image pickup method and device | |
CN105007413B (en) | A kind of filming control method and user terminal | |
WO2018121385A1 (en) | Information processing method and apparatus, and computer storage medium | |
CN110163833B (en) | Method and device for determining opening and closing state of disconnecting link | |
CN104424073A (en) | Information processing method and electronic equipment | |
TWI571860B (en) | Font size adjustment system and method | |
CN104754216A (en) | Photographing method and device | |
CN106250839A (en) | A kind of iris image perspective correction method, device and mobile terminal | |
EP3366035B1 (en) | Multiple camera autofocus synchronization | |
CN105007415B (en) | A kind of image preview method and apparatus | |
KR102641738B1 (en) | Image processing method and electronic device supporting the same | |
CN104994280A (en) | Method for processing preview image and user terminal | |
KR20170011876A (en) | Image processing apparatus and method for operating thereof | |
CN103927728B (en) | A kind for the treatment of method and apparatus of image |
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. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180123 |