CN105007411B - The method and mobile terminal of a kind of distortion correction - Google Patents

The method and mobile terminal of a kind of distortion correction Download PDF

Info

Publication number
CN105007411B
CN105007411B CN201510381715.0A CN201510381715A CN105007411B CN 105007411 B CN105007411 B CN 105007411B CN 201510381715 A CN201510381715 A CN 201510381715A CN 105007411 B CN105007411 B CN 105007411B
Authority
CN
China
Prior art keywords
image
shooting
angle
face
wide
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.)
Expired - Fee Related
Application number
CN201510381715.0A
Other languages
Chinese (zh)
Other versions
CN105007411A (en
Inventor
李龙佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510381715.0A priority Critical patent/CN105007411B/en
Publication of CN105007411A publication Critical patent/CN105007411A/en
Application granted granted Critical
Publication of CN105007411B publication Critical patent/CN105007411B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the present invention discloses the method and mobile terminal of a kind of distortion correction, and wherein method comprises the following steps:Receive when being instructed by shooting of the wide-angle lens to current scene, Face datection is carried out to the current scene;The shooting angle of the wide-angle lens is adjusted according to testing result, and using shooting angle shooting the first image of generation;If the shooting angle not when presetting in undistorted angular range, distortion correction is carried out to described first image and generates the second image, second image is exported.Using the present invention, the distortion realized and reduce image while coverage is expanded can be shot by using wide-angle lens.

Description

The method and mobile terminal of a kind of distortion correction
Technical field
The present invention relates to the method and mobile terminal of electronic technology field, more particularly to a kind of distortion correction.
Background technology
With the development of electronic technology, mobile terminal already turns into necessity indispensable in people's life, and images Head is one of necessary configuration of most mobile terminals, and people can shoot personage using it, landscape is lived to record, and be one Very popular function.However, the shooting angle that the camera that existing mobile terminal is configured possesses is substantially at 58 degree -65 In the range of degree, even using 65 degree of shootings also with people's finding of naked eye to scenery differ greatly, therefore existing mobile terminal The camera institute energy coverage configured is limited, can not meet the actual demand of people.In addition, wide-angle lens is due to very Wide visual angle and special shooting effect, thus be used widely in fields such as photography, monitoring and measurement and medical treatment, but extensively Angle mirror head can produce distortion when wide-angle is shot, and therefore, by wide-angle lens application in the terminal, how photograph Big coverage and the less image of distortion turns into urgent problem.
The content of the invention
The embodiment of the present invention provides a kind of method and mobile terminal of distortion correction, can be shot by using wide-angle lens real Reduce the distortion of image while expanding coverage now.
First aspect of the embodiment of the present invention provides a kind of method of distortion correction, including:
Receive when being instructed by shooting of the wide-angle lens to current scene, Face datection is carried out to the current scene;
The shooting angle of the wide-angle lens is adjusted according to testing result, and using shooting angle shooting generation first Image;
If the shooting angle carries out distortion correction simultaneously not when presetting in undistorted angular range to described first image The second image is generated, second image is exported.
In the first possible implementation of first aspect of the embodiment of the present invention, described receive passes through wide-angle lens When shooting to current scene instructs, Face datection is carried out to the current scene, including:
Receive when being instructed by shooting of the wide-angle lens to current scene, detect and whether there is people in the current scene Face;
If so, whether the facial characteristics for then detecting the face is complete.
With reference to the first possible implementation of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention Second of possible implementation in, it is described that the shooting angle of the wide-angle lens is adjusted according to testing result, and use institute Shooting angle shooting the first image of generation is stated, including:
When face is not present in the current scene, the shooting angle of the wide-angle lens is adjusted to default undistorted The maximum angle of angular range, and using maximum angle shooting the first image of generation;
When the facial characteristics of the face is imperfect, the shooting angle of the wide-angle lens is adjusted, so that after regulation The facial characteristics of face described in current scene is complete, and using shooting angle shooting the first image of generation;
When the facial characteristics of the face is complete, the shooting angle of the wide-angle lens is adjusted to the face of the face The angle that portion's feature is complete and distortion is minimum, and the first image is generated using the minimum angle shot of the distortion adjusted.
With reference to the possible implementation of the first of first aspect of the embodiment of the present invention or first aspect or first aspect Second of possible implementation, it is described to institute in the third possible implementation of first aspect of the embodiment of the present invention State the first image to carry out distortion correction and generate the second image, second image is exported, including:
Obtain the relation table of shooting angle and distortion correction coefficient, and from the shooting angle and the pass of distortion correction coefficient It is that distortion correction coefficient corresponding to the shooting angle is searched in table;
Described first image is handled using the distortion correction coefficient, generates the second image, and by described second Image exports.
With reference to the possible implementation of the first of first aspect of the embodiment of the present invention or first aspect or first aspect Second of possible implementation, it is described to institute in the 4th kind of possible implementation of first aspect of the embodiment of the present invention State the first image to carry out distortion correction and generate the second image, second image is exported, including:
The distortion correction coefficient to described first image of user's input is obtained, and using the distortion correction coefficient to institute State the first image to be handled, generate the second image, second image is exported.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, including:
Detection unit, when being instructed for receiving by shooting of the wide-angle lens to current scene, to the current scene Carry out Face datection;
Shooting unit, for adjusting the shooting angle of the wide-angle lens according to testing result, and use the shooting angle Degree shooting the first image of generation;
Output unit, if for the shooting angle not when presetting in undistorted angular range, to described first image Carry out distortion correction and generate the second image, second image is exported.
In the first possible implementation of second aspect of the embodiment of the present invention, the detection unit includes:
First detection sub-unit, when being instructed for receiving by shooting of the wide-angle lens to current scene, described in detection It whether there is face in current scene;
Second detection sub-unit, if in the current scene it is no face be present when, detect the face of the face Whether feature is complete.
With reference to the first possible implementation of second aspect of the embodiment of the present invention, in second aspect of the embodiment of the present invention Second of possible implementation in, the shooting unit includes:
First shooting subelement, for when face is not present in the current scene, by the shooting of the wide-angle lens Angular adjustment generates the first image to the maximum angle for presetting undistorted angular range, and using maximum angle shooting;
Second shooting subelement, for when the facial characteristics of the face is imperfect, adjusting the bat of the wide-angle lens Angle is taken the photograph, so that the facial characteristics of face is complete described in the current scene after regulation, and using shooting angle shooting life Into the first image;
Third shot takes the photograph subelement, for when the facial characteristics of the face is complete, by the shooting angle of the wide-angle lens The angle that degree regulation is complete to the facial characteristics of the face and distortion is minimum, and using the minimum angle of the distortion adjusted Degree shooting the first image of generation.
With reference to the possible implementation of the first of second aspect of the embodiment of the present invention or second aspect or second aspect Second of possible implementation, in the third possible implementation of second aspect of the embodiment of the present invention, the output Unit includes:
Subelement is obtained, if obtaining shooting angle not when presetting in undistorted angular range for the shooting angle With the relation table of distortion correction coefficient, and the shooting angle is searched from the relation table of the shooting angle and distortion correction coefficient Distortion correction coefficient corresponding to degree;
Subelement is exported, for being handled using the distortion correction coefficient described first image, generates the second figure Picture, and second image is exported.
With reference to the possible implementation of the first of second aspect of the embodiment of the present invention or second aspect or second aspect Second of possible implementation, in the 4th kind of possible implementation of second aspect of the embodiment of the present invention, the output Unit, if be additionally operable to the shooting angle not preset undistorted angular range in when, obtain user input to described first The distortion correction coefficient of image, and described first image is handled using the distortion correction coefficient, the second image is generated, Second image is exported.
In embodiments of the present invention, by receive instructed by shooting of the wide-angle lens to current scene when, to working as Preceding scene carries out Face datection, and the shooting angle of wide-angle lens is adjusted according to testing result, and using shooting angle shooting generation First image, if the shooting angle carries out distortion correction and life not when presetting in undistorted angular range to the first image Into the second image, the second image is exported.Shot by using wide-angle lens, coverage can be expanded, further, work as shooting Angle can carry out distortion correction to shooting image, reduce the distortion of image, enter not when presetting in undistorted angular range And improve the shooting effect of mobile terminal.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for distortion correction provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another distortion correction provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for another distortion correction provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another mobile terminal provided in an embodiment of the present invention;
Fig. 6 is the structural representation of shooting unit provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not paid Embodiment, belong to the scope of protection of the invention.
Can be any equipment for possessing communication and store function the present embodiments relate to mobile terminal, such as:Flat board It is computer, mobile phone, electronic reader, remote control, personal computer (Personal Computer, PC), notebook computer, vehicle-mounted Equipment, Web TV, wearable device etc. have the smart machine of network function.
Below in conjunction with accompanying drawing 1- accompanying drawings 3, the method for distortion correction provided in an embodiment of the present invention is described in detail.
Fig. 1 is referred to, for the embodiments of the invention provide a kind of schematic flow sheet of the method for distortion correction.Such as Fig. 1 institutes Show, the methods described of the embodiment of the present invention may comprise steps of S101- steps S103.
S101, receive when being instructed by shooting of the wide-angle lens to current scene, face is carried out to the current scene Detection.
Specifically, when receive instructed by shooting of the wide-angle lens to current scene when, mobile terminal is to described current Scene carries out Face datection.After configured wide-angle lens is opened in user, the mobile terminal can receive user and pass through The modes such as default gesture that user input interface of the wide-angle lens in the mobile terminal is inputted, default click location are sent Shooting instruction, or the mobile terminal can receive user by programmable button, programmable button combine etc. mode send bat Take the photograph instruction.After the shooting instruction using wide-angle lens is received, the mobile terminal is using human face detection device to described Current scene carries out Face datection, it is possible to achieve detects face location, size, facial characteristics of the current scene etc., uses To be shot.
S102, the shooting angle of the wide-angle lens is adjusted according to testing result, and using shooting angle shooting life Into the first image.
Specifically, the mobile terminal adjusts the shooting angle of the wide-angle lens according to testing result, and described in use Shooting angle shooting the first image of generation.Wherein, the shooting angle refers to angular field of view captured by wide-angle lens.When described When face is not detected by current scene, the current scene is directly shot, or the shooting angle of regulation wide-angle lens Spend to the maximum default undistorted angle of coverage, and shooting the first image of generation is carried out according to the shooting angle after regulation. , can be by adjusting the shooting angle of wide-angle lens so that captured face when detecting face in the current scene Completely, and according to the shooting angle after regulation shooting the first image of generation is carried out, will not so causes shooting image face endless Whole situation, can more meet the needs of user, strengthen user's stickiness.
S103, if the shooting angle enters line distortion not when presetting in undistorted angular range to described first image Correct and generate the second image, second image is exported.
Specifically, the mobile terminal judges whether the shooting angle is being preset in undistorted angular range, when described For shooting angle not when presetting in undistorted angular range, the mobile terminal carries out distortion correction and life to described first image Into the second image, second image is exported.The default undistorted angle is according to set by the wide-angle lens configured , it is fixed angular range, i.e., the described image for presetting shooting in undistorted angular range is not in distortion.And for not It is described preset undistorted angular range in shooting angle, set with the one-to-one distortion correction coefficient of shooting angle, The distortion correction coefficient is according to obtained by countless experiments data, when the shooting angle is not in default undistorted angle model When enclosing interior, distortion correction coefficient corresponding with shooting angle is obtained, distortion correction and generation second are carried out to described first image Image, and second image is exported in the mobile terminal.
In embodiments of the present invention, by receive instructed by shooting of the wide-angle lens to current scene when, to working as Preceding scene carries out Face datection, and the shooting angle of wide-angle lens is adjusted according to testing result, and using shooting angle shooting generation First image, if the shooting angle carries out distortion correction and life not when presetting in undistorted angular range to the first image Into the second image, the second image is exported.Shot by using wide-angle lens, coverage can be expanded, further, work as shooting Angle can carry out distortion correction to shooting image, reduce the distortion of image, enter not when presetting in undistorted angular range And improve the shooting effect of mobile terminal.
Fig. 2 is referred to, for the embodiments of the invention provide the schematic flow sheet of the method for another distortion correction.Such as Fig. 2 Shown, the methods described of the embodiment of the present invention may comprise steps of S201- steps S205.
S201, receive when being instructed by shooting of the wide-angle lens to current scene, detect in the current scene whether Face be present.
Specifically, when receive instructed by shooting of the wide-angle lens to current scene when, mobile terminal is to described current Scene carries out Face datection.After configured wide-angle lens is opened in user, the mobile terminal can receive user and pass through The modes such as default gesture that user input interface of the wide-angle lens in the mobile terminal is inputted, default click location are sent Shooting instruction, or the mobile terminal can receive user by programmable button, programmable button combine etc. mode send bat Take the photograph instruction.After the shooting instruction using wide-angle lens is received, the mobile terminal utilizes human face detection device detection institute State and whether there is face in current scene.
S202, if face be present in the current scene, whether the facial characteristics for detecting the face is complete.
If specifically, face in the current scene be present, the mobile terminal detects the facial characteristics of the face It is whether complete.The face features can include but is not limited to two eyes, nose, ear, mouths etc..It is described mobile whole End can first determine position and the size of existing face, in optional mode, can detect people's face of each position Whether whether portion's feature is complete, or complete to detection face features of the face location in the surrounding position of the current scene It is whole.
S203, the shooting angle of the wide-angle lens is adjusted according to testing result, and using shooting angle shooting life Into the first image.
Specifically, the mobile terminal adjusts the shooting angle of the wide-angle lens according to testing result, and described in use Shooting angle shooting the first image of generation, wherein, the shooting angle refers to angular field of view captured by wide-angle lens..Due to inspection Result difference is surveyed, the regulative mode of the shooting angle of wide-angle lens is different, therefore can be divided into following three kinds of situations and carry out in detail Introduce.
The first situation:When face is not present in the current scene, the shooting angle of the wide-angle lens is adjusted To the maximum angle for presetting undistorted angular range, and using maximum angle shooting the first image of generation.
Specifically, when testing result is that face is not present in the current scene, the mobile terminal is by the wide-angle The shooting angle of camera lens is adjusted to the maximum angle for presetting undistorted angular range, using maximum angle shooting generation first Image.It can so ensure to cause captured image that distortion is not present while larger coverage is selected,
Second of situation:When the facial characteristics of the face is imperfect, the shooting angle of the wide-angle lens is adjusted, with Make the facial characteristics of face described in the current scene after regulation complete, and using shooting angle shooting the first figure of generation Picture.
Specifically, when testing result be the face facial characteristics it is imperfect when, mobile terminal regulation is described wide The shooting angle of angle mirror head, until regulation after current scene described in face facial characteristics it is complete, and use the shooting Angle shot generates the first image.It is understood that if shooting angle to the maximum angle of regulation wide-angle lens can not allow When the incomplete face of facial characteristics is completely presented, then it is that side standing or stands ground that possible imperfect face, which corresponds to user, Fang Taiyuan or from wide-angle lens it is too near situations such as completely to show, at this moment using regulation before shooting angle enter Row shoots the first image of generation, or regulation to the shooting angle not comprising the imperfect face and distortion minimum is clapped Take the photograph.
The third situation:When the facial characteristics of the face is complete, by the shooting angle of the wide-angle lens adjust to The angle that the facial characteristics of the face is complete and distortion is minimum, and using the minimum angle shot life of the distortion adjusted Into the first image.
Specifically, when testing result be the face facial characteristics it is complete when, the mobile terminal is by the wide-angle lens The shooting angle of head adjusts the angle that facial characteristics to the face is complete and distortion is minimum, and described abnormal using being adjusted The angle shot for becoming minimum generates the first image.The mobile terminal can pass through the shooting angle by including complete facial characteristics Descending regulation is spent, in the case of ensureing that the facial characteristics of face is complete, if the shooting angle after regulation is more than described pre- If during the maximum angle of undistorted angular range, shot with the shooting angle after regulation.If the shooting angle after regulation When degree is less than or equal to the maximum angle of the default undistorted angular range, using the maximum for presetting undistorted angular range Angle is shot.It so can both realize that the shooting angle of the wide-angle lens is adjusted into facial characteristics to the face was complete And the angle that distortion is minimum, and using the process of minimum angle shot the first image of generation of the distortion adjusted.
S204, if the shooting angle obtains shooting angle and distortion correction not when presetting in undistorted angular range The relation table of coefficient, and it is corresponding abnormal with searching the shooting angle in the relation table of distortion correction coefficient from the shooting angle Become correction coefficient.
If specifically, the shooting angle, not when presetting in undistorted angular range, the acquisition for mobile terminal is shot Angle and the relation table of distortion correction coefficient, and search the bat from the relation table of the shooting angle and distortion correction coefficient Take the photograph distortion correction coefficient corresponding to angle.Because aberration correction algorithm corresponding to different types of wide-angle lens is different, therefore obtain The distortion correction coefficient obtained is also had nothing in common with each other.The mobile terminal preserves the wide-angle lens configured and has what is distorted each The relation table of corresponding distortion correction coefficient during shooting angle, as shooting angle and distortion correction coefficient.The mobile terminal Corresponding distortion correction coefficient is obtained according to shooting angle.
S205, described first image is handled using the distortion correction coefficient, generate the second image, and by described in Second image exports.
Specifically, the mobile terminal is handled described first image using the distortion correction coefficient, generation the Two images, and second image is exported.It is understood that when the mobile terminal uses the distortion correction coefficient pair After described first image processing, it is irregular first image, described first image is sheared, according to certain length and width Ratio intercept the image of maximum area, generates the second image, and second image is exported.
In embodiments of the present invention, by receive instructed by shooting of the wide-angle lens to current scene when, to working as Preceding scene carries out Face datection, and the shooting angle of wide-angle lens is adjusted according to testing result, and using shooting angle shooting generation First image, if the shooting angle carries out distortion correction and life not when presetting in undistorted angular range to the first image Into the second image, the second image is exported.Shot by using wide-angle lens, coverage can be expanded, further, work as shooting Angle can carry out distortion correction to shooting image, reduce the distortion of image, also not when presetting in undistorted angular range Different scenes can be directed to and adjust different shooting angle, improve the shooting effect of mobile terminal, and then also improve shifting The intelligent and convenience of dynamic terminal.
Fig. 3 is referred to, for the embodiments of the invention provide the schematic flow sheet of the method for another distortion correction.Such as Fig. 3 Shown, the methods described of the embodiment of the present invention may comprise steps of S301- step S304, wherein step S301- steps The S303 corresponding step for specifically introducing embodiment shown in Figure 2, will not be repeated here.
S301, receive when being instructed by shooting of the wide-angle lens to current scene, detect in the current scene whether Face be present.
S302, if face be present in the current scene, whether the facial characteristics for detecting the face is complete.
S303, the shooting angle of the wide-angle lens is adjusted according to testing result, and using shooting angle shooting life Into the first image.
Specifically, the mobile terminal adjusts the shooting angle of the wide-angle lens according to testing result, and described in use Shooting angle shooting the first image of generation.Because testing result is different, the regulative mode of the shooting angle of wide-angle lens is different, because This can be divided into following three kinds of situations and describe in detail.
The first situation:When face is not present in the current scene, the shooting angle of the wide-angle lens is adjusted To the maximum angle for presetting undistorted angular range, and using maximum angle shooting the first image of generation.
Second of situation:When the facial characteristics of the face is imperfect, the shooting angle of the wide-angle lens is adjusted, with Make the facial characteristics of face described in the current scene after regulation complete, and using shooting angle shooting the first figure of generation Picture.
The third situation:When the facial characteristics of the face is complete, by the shooting angle of the wide-angle lens adjust to The angle that the facial characteristics of the face is complete and distortion is minimum, and using the minimum angle shot life of the distortion adjusted Into the first image.
S304, if the shooting angle not when presetting in undistorted angular range, obtain user's input to described the The distortion correction coefficient of one image, and described first image is handled using the distortion correction coefficient, generate the second figure Picture, second image is exported.
If specifically, the shooting angle not preset undistorted angular range in when, can be defeated to user input interface Go out distortion correction coefficient range, for selection by the user, acquisition for mobile terminal user input to the abnormal of described first image Become correction coefficient, and described first image is handled using the distortion correction coefficient, it is to be understood that when the shifting Dynamic terminal using the distortion correction coefficient to described first image processing after, be irregular first image, by described the One image is sheared, and according to certain Aspect Ratio intercept the image of maximum area, generates the second image, by described the Two images export.Need what is illustrated, if the shooting angle is in default undistorted angular range, the acquisition for mobile terminal The distortion correction coefficient to described first image of user's input, and described first image is entered using the distortion correction coefficient Row processing, generates the second image, and second image is exported.By user's input skew correction coefficient, user can be exported The image of required reduction distortion or the image for increasing distortion, can more meet the needs of user, strengthen user's stickiness.
In embodiments of the present invention, by receive instructed by shooting of the wide-angle lens to current scene when, to working as Preceding scene carries out Face datection, and the shooting angle of wide-angle lens is adjusted according to testing result, and using shooting angle shooting generation First image, if the shooting angle carries out distortion correction and life not when presetting in undistorted angular range to the first image Into the second image, the second image is exported.Shot by using wide-angle lens, coverage can be expanded, further, work as shooting Angle can carry out distortion correction to shooting image, reduce the distortion of image, also not when presetting in undistorted angular range Distortion correction can be carried out to image according to user's request, improve the intelligent and convenience of mobile terminal.
Below in conjunction with accompanying drawing 4- accompanying drawings 6, mobile terminal provided in an embodiment of the present invention is described in detail.Need It is bright, the mobile terminal shown in accompanying drawing 4- accompanying drawings 6, the method for performing Fig. 1-embodiment illustrated in fig. 3 of the present invention, in order to just In explanation, illustrate only the part related to the embodiment of the present invention, particular technique details does not disclose, refer to Fig. 1 of the present invention- Embodiment shown in Fig. 3.
Fig. 4 is referred to, for the embodiments of the invention provide a kind of structural representation of mobile terminal.As shown in figure 4, this hair The mobile terminal 1 of bright embodiment can include:Detection unit 11, shooting unit 12 and output unit 13.
Detection unit 11, when being instructed for receiving by shooting of the wide-angle lens to current scene, to the current field Scape carries out Face datection.
In the specific implementation, when receive instructed by shooting of the wide-angle lens to current scene when, the detection unit 11 Face datection is carried out to the current scene.After user opens configured wide-angle lens, the detection unit 11 can be with Receive default gesture, the default click position that user is inputted by user input interface of the wide-angle lens in the mobile terminal The shooting instruction that mode is sent such as put, or the detection unit 11 can receive user and pass through programmable button, programmable button group The modes such as conjunction send shooting instruction.After the shooting instruction using wide-angle lens is received, the detection unit 11 utilizes people Face detection means carries out Face datection to the current scene, it is possible to achieve detect the face location of the current scene, size, Facial characteristics etc., to be shot.
Shooting unit 12, for adjusting the shooting angle of the wide-angle lens according to testing result, and use the shooting Angle shot generates the first image.
In the specific implementation, the shooting unit 12 adjusts the shooting angle of the wide-angle lens according to testing result, and adopt The first image of generation is shot with the shooting angle.Wherein, the shooting angle refers to angular field of view captured by wide-angle lens.When When being not detected by face in the current scene, the current scene is directly shot, or regulation wide-angle lens Shooting angle carries out shooting generation first to the maximum default undistorted angle of coverage, and according to the shooting angle after regulation Image., can be by adjusting the shooting angle of wide-angle lens so that captured when detecting face in the current scene Face is complete, and carries out shooting the first image of generation according to the shooting angle after regulation, will not so cause shooting image face Incomplete situation, can more meet the needs of user, strengthen user's stickiness.
Output unit 13, if not preset for the shooting angle in undistorted angular range constantly, to described first Image carries out distortion correction and generates the second image, and second image is exported.
In the specific implementation, the output unit 13 judges whether the shooting angle is being preset in undistorted angular range, When the shooting angle is not being preset in undistorted angular range, the output unit 13 enters line distortion to described first image Correct and generate the second image, second image is exported.The default undistorted angle is according to the wide-angle lens configured It is fixed angular range set by head, i.e., the described image for presetting shooting in undistorted angular range is not in distortion. And in the shooting angle preset in undistorted angular range, not setting and being distorted correspondingly school with shooting angle Positive coefficient, the distortion correction coefficient are according to obtained by countless experiments data, when the shooting angle not default without abnormal When in the range of varied angle, distortion correction coefficient corresponding with shooting angle is obtained, distortion correction is carried out simultaneously to described first image The second image is generated, and second image is exported in the mobile terminal.
In embodiments of the present invention, by receive instructed by shooting of the wide-angle lens to current scene when, to working as Preceding scene carries out Face datection, and the shooting angle of wide-angle lens is adjusted according to testing result, and using shooting angle shooting generation First image, if the shooting angle carries out distortion correction and life not when presetting in undistorted angular range to the first image Into the second image, the second image is exported.Shot by using wide-angle lens, coverage can be expanded, further, work as shooting Angle can carry out distortion correction to shooting image, reduce the distortion of image, enter not when presetting in undistorted angular range And improve the shooting effect of mobile terminal.
Fig. 5 is referred to, for the embodiments of the invention provide the structural representation of another mobile terminal.As shown in figure 5, this The mobile terminal 1 of inventive embodiments can include:Detection unit 11, shooting unit 12 and output unit 13.Wherein, detect Unit 11 includes the first detection sub-unit 111 and the second detection sub-unit 112, and the output unit 13 includes obtaining subelement 131 and output subelement 132.
Detection unit 11, when being instructed for receiving by shooting of the wide-angle lens to current scene, to the current field Scape carries out Face datection.
In the specific implementation, refer to being discussed in detail for the first detection sub-unit 111 and the second detection sub-unit 112.
First detection sub-unit 111, when being instructed for receiving by shooting of the wide-angle lens to current scene, detect institute State and whether there is face in current scene.
In the specific implementation, when receive instructed by shooting of the wide-angle lens to current scene when, the first detection Unit 111 carries out Face datection to the current scene.After configured wide-angle lens is opened in user, first detection Subelement 111 can receive the default hand that user is inputted by user input interface of the wide-angle lens in the mobile terminal The shooting instruction that the modes such as gesture, default click location are sent, or first detection sub-unit 111 can receive user and pass through The modes such as programmable button, programmable button combination send shooting instruction.After the shooting instruction using wide-angle lens is received, institute State the first detection sub-unit 111 and detected using human face detection device in the current scene and whether there is face.
Second detection sub-unit 112, if in the current scene it is no face be present when, detect the face of the face Whether portion's feature is complete.
If in the specific implementation, face in the current scene be present, second detection sub-unit 112 detects the people Whether the facial characteristics of face is complete.The face features can include but is not limited to two eyes, nose, ear, mouths Deng.Second detection sub-unit 112 can first determine position and the size of existing face, can be with optional mode Detect whether the face features of each position are complete, or to face location in the surrounding position of the current scene Whether complete detect face features.
Shooting unit 12, for adjusting the shooting angle of the wide-angle lens according to testing result, and use the shooting Angle shot generates the first image.
In the specific implementation, please also refer to Fig. 6, for the embodiments of the invention provide the structural representation of shooting unit.Such as Shown in Fig. 6, the shooting unit 12 of the embodiment of the present invention can include:First shooting subelement 121, second shoots subelement 122 and third shot take the photograph subelement 123, these three units are respectively situation of the shooting unit 12 in three kinds of different testing results Style of shooting corresponding to lower difference.
First shooting subelement 121, for when face is not present in the current scene, by the bat of the wide-angle lens Angular adjustment is taken the photograph to the maximum angle for presetting undistorted angular range, and using maximum angle shooting the first image of generation.
In the specific implementation, when testing result is that face is not present in the current scene, the first shooting subelement 121 adjust the shooting angle of the wide-angle lens to the maximum angle for presetting undistorted angular range, using the maximum angular Degree shooting the first image of generation.Wherein, the shooting angle refers to angular field of view captured by wide-angle lens.It can so ensure Select to cause captured image that distortion is not present while larger coverage.
Second shooting subelement 122, for when the facial characteristics of the face is imperfect, adjusting the wide-angle lens Shooting angle so that regulation after current scene described in face facial characteristics it is complete, and using the shooting angle shoot Generate the first image.
In the specific implementation, when testing result be the face facial characteristics it is imperfect when, it is described second shooting subelement 122 adjust the shooting angle of the wide-angle lens, until the facial characteristics of face is complete described in the current scene after regulation, and The first image of generation is shot using the shooting angle.It is understood that if the shooting angle of regulation wide-angle lens is to maximum When angle can not allow the incomplete face of facial characteristics completely to present, then may imperfect face to correspond to user be that side station Vertical or place of stand it is too remote or from wide-angle lens it is too near situations such as so that can not completely show, at this moment use before adjusting Shooting angle carry out shooting generation the first image, or regulation to do not include the imperfect face and distortion minimum shooting Angle is shot.
Third shot takes the photograph subelement 123, for when the facial characteristics of the face is complete, by the shooting of the wide-angle lens The angle that angular adjustment is complete to the facial characteristics of the face and distortion is minimum, and minimum using the distortion adjusted Angle shot generates the first image.
In the specific implementation, when testing result be the face facial characteristics it is complete when, the third shot takes the photograph subelement 123 The shooting angle of the wide-angle lens is adjusted into the angle that facial characteristics to the face is complete and distortion is minimum, and uses institute The minimum angle shot of the distortion of regulation generates the first image.The third shot take the photograph subelement 123 can by by comprising The descending regulation of shooting angle of complete facial characteristics, in the case of ensureing that the facial characteristics of face is complete, if adjusting it When shooting angle afterwards is more than the maximum angle of the default undistorted angular range, clapped with the shooting angle after regulation Take the photograph.If the shooting angle after regulation is less than or equal to the maximum angle of the default undistorted angular range, using described pre- If the maximum angle of undistorted angular range is shot.So can both realize by the shooting angle of the wide-angle lens adjust to The angle that the facial characteristics of the face is complete and distortion is minimum, and using the minimum angle shot life of the distortion adjusted Into the process of the first image.
Output unit 13, if not preset for the shooting angle in undistorted angular range constantly, to described first Image carries out distortion correction and generates the second image, and second image is exported.
Obtain subelement 131 in the specific implementation, referring to and export being discussed in detail for subelement 132.
Subelement 131 is obtained, if obtaining shooting angle not when presetting in undistorted angular range for the shooting angle The relation table of degree and distortion correction coefficient, and search the shooting from the relation table of the shooting angle and distortion correction coefficient Distortion correction coefficient corresponding to angle.
If in the specific implementation, the shooting angle not preset undistorted angular range in when, it is described acquisition subelement 131 Shooting angle and the relation table of distortion correction coefficient are obtained, and is looked into from relation table of the shooting angle with distortion correction coefficient Look for distortion correction coefficient corresponding to the shooting angle.Due to aberration correction algorithm corresponding to different types of wide-angle lens not Together, thus obtain distortion correction coefficient also have nothing in common with each other.The mobile wide-angle lens configured that preserves is in each presence The relation table of corresponding distortion correction coefficient during the shooting angle of distortion, as shooting angle and distortion correction coefficient.It is described to obtain Subelement 131 is taken to obtain corresponding distortion correction coefficient according to shooting angle.
Subelement 132 is exported, for being handled using the distortion correction coefficient described first image, generation second Image, and second image is exported.
In the specific implementation, it is described output subelement 132 using the distortion correction coefficient to described first image at Reason, the second image is generated, and second image is exported.It is understood that work as using the distortion correction coefficient to institute After stating the first image procossing, it is irregular first image, described first image is sheared, according to certain length-width ratio Example intercept the image of maximum area, generates the second image, and second image is exported.
In a kind of feasible scheme, the output unit 13, if being additionally operable to the shooting angle not default undistorted When in angular range, the distortion correction coefficient to described first image of user's input is obtained, and use the distortion correction system It is several that described first image is handled, the second image is generated, second image is exported.
If in the specific implementation, the shooting angle, not when presetting in undistorted angular range, the output unit 13 can To export distortion correction coefficient range to user input interface, for selection by the user, the output unit 13 obtains user's input The distortion correction coefficient to described first image, and described first image is handled using the distortion correction coefficient, It is irregular first image it is understood that after being handled using the distortion correction coefficient described first image, Described first image is sheared, according to certain Aspect Ratio intercept the image of maximum area, generates the second image, The output unit 13 exports second image.Need what is illustrated, if the shooting angle is in default undistorted angle model When enclosing interior, the output unit 13 obtains the distortion correction coefficient to described first image of user's input, and using described abnormal Become correction coefficient to handle described first image, generate the second image, second image is exported.Inputted by user Distortion correction coefficient, the image of the reduction distortion needed for user can be exported or increase the image of distortion, can more meet to use The demand at family, strengthen user's stickiness.
In embodiments of the present invention, by receive instructed by shooting of the wide-angle lens to current scene when, to working as Preceding scene carries out Face datection, and the shooting angle of wide-angle lens is adjusted according to testing result, and using shooting angle shooting generation First image, if the shooting angle carries out distortion correction and life not when presetting in undistorted angular range to the first image Into the second image, the second image is exported.Shot by using wide-angle lens, coverage can be expanded, further, work as shooting Angle can carry out distortion correction to shooting image, reduce the distortion of image not when presetting in undistorted angular range, can To adjust different shooting angle for different scenes, the shooting effect of mobile terminal is improved, can also be according to user's need Ask and distortion correction is carried out to image, also improve the intelligent and convenience of mobile terminal.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (6)

  1. A kind of 1. method of distortion correction, it is characterised in that including:
    Receive when being instructed by shooting of the wide-angle lens to current scene, Face datection is carried out to the current scene, it is described Face datection includes face location, size or the facial characteristics for detecting the current scene;
    The shooting angle of the wide-angle lens is adjusted according to testing result, and using shooting angle shooting the first figure of generation Picture;
    If the shooting angle not when presetting in undistorted angular range, distortion correction is carried out to described first image and is generated Second image, second image is exported;
    Wherein, it is described to receive when being instructed by shooting of the wide-angle lens to current scene, face is carried out to the current scene Detection, including:
    Receive when being instructed by shooting of the wide-angle lens to current scene, detect and whether there is face in the current scene;
    If so, whether the facial characteristics for then detecting the face is complete;
    The shooting angle that the wide-angle lens is adjusted according to testing result, and using shooting angle shooting generation first Image, including:
    When face is not present in the current scene, the shooting angle of the wide-angle lens is adjusted to default undistorted angle The maximum angle of scope, and using maximum angle shooting the first image of generation;
    When the facial characteristics of the face is imperfect, the shooting angle of the wide-angle lens is adjusted, so that current after regulation The facial characteristics of face described in scene is complete, and using shooting angle shooting the first image of generation;
    When the facial characteristics of the face is complete, the shooting angle of the wide-angle lens is adjusted to the face spy of the face The angle that sign is complete and distortion is minimum, and the first image is generated using the minimum angle shot of the distortion adjusted.
  2. 2. according to the method for claim 1, it is characterised in that described that distortion correction is carried out to described first image and is generated Second image, second image is exported, including:
    Obtain the relation table of shooting angle and distortion correction coefficient, and from the shooting angle and the relation table of distortion correction coefficient It is middle to search distortion correction coefficient corresponding to the shooting angle;
    Described first image is handled using the distortion correction coefficient, generates the second image, and by second image Output.
  3. 3. according to the method for claim 1, it is characterised in that described that distortion correction is carried out to described first image and is generated Second image, second image is exported, including:
    The distortion correction coefficient to described first image of user's input is obtained, and using the distortion correction coefficient to described the One image is handled, and generates the second image, and second image is exported.
  4. A kind of 4. mobile terminal, it is characterised in that including:
    Detection unit, when being instructed for receiving by shooting of the wide-angle lens to current scene, the current scene is carried out Face datection, the Face datection include face location, size or the facial characteristics for detecting the current scene;
    Shooting unit, clapped for adjusting the shooting angle of the wide-angle lens according to testing result, and using the shooting angle Regimen is into the first image;
    Output unit, if not preset for the shooting angle in undistorted angular range constantly, described first image is entered Line distortion is corrected and generates the second image, and second image is exported;
    Wherein, the detection unit includes:
    First detection sub-unit, when being instructed for receiving by shooting of the wide-angle lens to current scene, detect described current It whether there is face in scene;
    Second detection sub-unit, if in the current scene it is no face be present when, detect the facial characteristics of the face It is whether complete;
    The shooting unit includes:
    First shooting subelement, for when face is not present in the current scene, by the shooting angle of the wide-angle lens Adjust to the maximum angle for presetting undistorted angular range, and using maximum angle shooting the first image of generation;
    Second shooting subelement, for when the facial characteristics of the face is imperfect, adjusting the shooting angle of the wide-angle lens Degree, so that the facial characteristics of face is complete described in current scene after regulation, and using shooting angle shooting generation the One image;
    Third shot takes the photograph subelement, for when the facial characteristics of the face is complete, the shooting angle of the wide-angle lens to be adjusted The angle that the facial characteristics of section to the face is complete and distortion is minimum, and clapped using the angle of the distortion minimum adjusted Regimen is into the first image.
  5. 5. mobile terminal according to claim 4, it is characterised in that the output unit includes:
    Obtain subelement, if for the shooting angle not preset undistorted angular range in when, obtain shooting angle with it is abnormal Become the relation table of correction coefficient, and the shooting angle pair is searched from the relation table of the shooting angle and distortion correction coefficient The distortion correction coefficient answered;
    Subelement is exported, for being handled using the distortion correction coefficient described first image, generates the second image, and Second image is exported.
  6. 6. mobile terminal according to claim 4, it is characterised in that the output unit, if being additionally operable to the shooting angle Degree when presetting in undistorted angular range, does not obtain the distortion correction coefficient to described first image of user's input, and adopts Described first image is handled with the distortion correction coefficient, generates the second image, second image is exported.
CN201510381715.0A 2015-06-30 2015-06-30 The method and mobile terminal of a kind of distortion correction Expired - Fee Related CN105007411B (en)

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 CN105007411A (en) 2015-10-28
CN105007411B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109891874B (en) 2017-08-18 2020-12-15 华为技术有限公司 Panoramic shooting method and device
CN108629748B (en) * 2018-04-16 2022-08-05 深圳臻迪信息技术有限公司 Image rectification 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
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

Citations (3)

* Cited by examiner, † Cited by third party
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
CN101814181A (en) * 2010-03-17 2010-08-25 天津理工大学 Unfolding method for restoration of fisheye image
CN104574397A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Image processing method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101014572B1 (en) * 2007-08-27 2011-02-16 주식회사 코아로직 Method of correcting image distortion and Image processing device of adapting the same method
CN104104919B (en) * 2014-07-24 2017-09-29 山东神戎电子股份有限公司 A kind of coaxial antidote of the camera lens of monitor

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN101814181A (en) * 2010-03-17 2010-08-25 天津理工大学 Unfolding method for restoration of fisheye image
CN104574397A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Image processing method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
超大广角畸变图像的校正和展开;王颖;《中国优秀硕士学位论文全文数据库》;20111215(第12期);全文 *

Also Published As

Publication number Publication date
CN105007411A (en) 2015-10-28

Similar Documents

Publication Publication Date Title
CN105007411B (en) The method and mobile terminal of a kind of distortion correction
CN103945121B (en) A kind of information processing method and electronic equipment
CN101309367B (en) Imaging apparatus
CN109064397A (en) A kind of image split-joint method and system based on camera shooting earphone
CN105007413B (en) A kind of filming control method and user terminal
CN107911621A (en) A kind of image pickup method of panoramic picture, terminal device and storage medium
CN104853097B (en) A kind of panning mode image pickup method and device
CN105657500B (en) A kind of video playing control method and device
CN109981964B (en) Robot-based shooting method and shooting device and robot
CN104853094A (en) Photographing method and device
CN110177210B (en) Photographing method and related device
CN106254780A (en) A kind of dual camera camera control method, photographing control device and terminal
CN105049716B (en) A kind of preview image processing method and user terminal
US10380719B2 (en) Device and method for generating panorama image
CN113840070A (en) Shooting method, shooting device, electronic equipment and medium
EP3076386B1 (en) Image display method and user terminal
CN104994280B (en) A kind of preview image processing method and user terminal
CN110213486A (en) Image capturing method, terminal and computer readable storage medium
CN112839166A (en) Shooting method and device and electronic equipment
CN104601883B (en) A kind of method and device of image taking
CN105898147A (en) Photometry processing method and device applied to mobile terminal
CN110365910B (en) Self-photographing method and device and electronic equipment
CN112235510A (en) Shooting method, shooting device, electronic equipment and medium
CN105847700A (en) Shooting method and device
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

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.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180123

CF01 Termination of patent right due to non-payment of annual fee