CN109274894A - A kind of image pickup method and filming apparatus - Google Patents

A kind of image pickup method and filming apparatus Download PDF

Info

Publication number
CN109274894A
CN109274894A CN201811479252.1A CN201811479252A CN109274894A CN 109274894 A CN109274894 A CN 109274894A CN 201811479252 A CN201811479252 A CN 201811479252A CN 109274894 A CN109274894 A CN 109274894A
Authority
CN
China
Prior art keywords
image
camera
factor
imaging effect
distortion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811479252.1A
Other languages
Chinese (zh)
Other versions
CN109274894B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811479252.1A priority Critical patent/CN109274894B/en
Publication of CN109274894A publication Critical patent/CN109274894A/en
Application granted granted Critical
Publication of CN109274894B publication Critical patent/CN109274894B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the present invention provides a kind of image pickup method and device, it is related to the field of taking pictures, to solve having a certain difference property after the modes of composition such as shooting angle of the user in camera pop-up or before screwing out and camera pop-up or back-out, user is needed to manually adjust the operation such as shooting angle, increase the difficulty that uses of user, at the same influence camera take pictures quality the problem of.This method comprises: obtaining the first image that camera is shot in first position;If the first imaging effect of the first image meets the first preset condition, the second image that the camera is shot in the first position is then shown or stores, second image is the first image or the third image that the camera is shot in the first position;Wherein, first imaging effect specifically includes: the first of the first image exposes at least one in balance degree, the first pattern distortion degree and the first distortion of image degree.

Description

A kind of image pickup method and filming apparatus
Technical field
The present embodiments relate to the field of taking pictures more particularly to a kind of image pickup methods and filming apparatus.
Background technique
With the promotion of the development of terminal device technology and human consumption's level, the function of camera needs in terminal device It is stronger and stronger, people are just able to satisfy to the use demand of terminal device.
Currently, to pursue more large-size screen monitors accounting, the installation site of comprehensive screen mobile phone front camera becomes a great challenge Industrial design.To solve this problem, there are lift camera, the front cameras such as rotary pick-up head.The camera When user opens preposition shooting function, which is raised up to certain and fixes position, or rotates to certain and fix position. At the end of preposition shooting function, the original position of camera auto-returned.
However, the specific location of above-mentioned camera lifting or rotation is fixed and invariable.When user uses camera, because Shooting distance is closer, is easier to lens distortion occur, and influence of the light to lifting camera or rotating camera is also larger.Therefore There are following situations: after the modes of composition such as the shooting angle of user in camera pop-up or before screwing out and camera pop-up or back-out Having a certain difference property needs user to manually adjust the operation such as shooting angle, increases the difficulty that user uses, while influencing to take the photograph As the quality of taking pictures of head.
Summary of the invention
The embodiment of the present invention provides a kind of image pickup method and filming apparatus, to solve user before camera pops up or screws out The modes of composition such as shooting angle and camera pop up or screw out after having a certain difference property, need user to manually adjust shooting The operation such as angle, increases the difficulty that uses of user, at the same influence camera take pictures quality the problem of.
In order to solve the above-mentioned technical problem, the embodiments of the present invention are implemented as follows:
In a first aspect, the embodiment of the present invention provides a kind of image pickup method, this method comprises: obtaining camera in first position First image of shooting;If the first imaging effect of first image meets the first preset condition, the camera shooting is shown or stored For head in the second image of first position shooting, which is the third that the first image or the camera are shot in first position Image;Wherein, the first imaging effect specifically includes: the first image first exposure balance degree, the first pattern distortion degree and At least one of in the first distortion of image degree.
Preferably, camera is being obtained after the first image that first position is shot, further includes:
The camera is fixed or adjusted to the first position.
Preferably, the camera is being obtained after the first image that first position is shot, further includes: to described first Image carries out quality evaluation, obtains the first quality assessment result;
Wherein, first quality assessment result includes the first exposure balance factor, the first image of the first image At least one of in distortion factor and the first distortion of image factor;
First imaging effect is first quality assessment result or is calculated according to first quality assessment result The imaging parameters obtained.
Preferably, quality evaluation is carried out to the first image, after obtaining the first quality assessment result, further includes:
Balance factor, the first pattern distortion factor and the first portrait are exposed using 0.4,0.3 and 0.3 as described first The weight factor of deformation carries out the first exposure balance factor, the first pattern distortion factor and the first distortion of image factor Weighted average, obtains the imaging parameters.
Preferably, quality evaluation is carried out to the first image, obtains the first quality assessment result, specifically includes:
It obtains the overexposure of the first image and/or crosses the first accounting L1 of dark pixel;
According to the first accounting L1, the first exposure balance factor is obtained.
Preferably, quality evaluation is carried out to the first image, obtains the first quality assessment result, specifically includes:
Obtain the first pitch angle of the first image;
If first pitch angle is less than or equal to first threshold, first is set by the first distortion of image factor Preset value;
If first pitch angle is greater than the first threshold:
According to ratio above and below the first facial of the first imageFirst nose ratioWith the first lip ratio ExampleAt least one of in, obtain the value of the first distortion of image factor;
Wherein, ratio above and below the first facialFor in the first image, place between the eyebrows to nose lower boundary away from Ratio from L11 and nose lower boundary to chin boundary distance L12;
The first nose ratioIt is nasal area area in the first image in entire portrait area area Accounting;
The first lip ratioIt is lip region area in the first image in entire portrait area area Accounting.
Preferably, before judging whether the first imaging effect of the first image meets the first preset condition, further includes:
Obtain the 4th image that the camera is shot in the second position;
First imaging effect of the first image meets the first preset condition, specifically includes:
First imaging effect of the first image is better than the 4th imaging effect of the 4th image;
Wherein, the 4th imaging effect specifically includes: the 4th exposure balance degree, the 4th image of the 4th image At least one of in distortion degree and the 4th portrait deformation extent.
Preferably, the first imaging effect of the first image is better than the 4th imaging effect of the 4th image, specifically Include:
The first exposure balance degree is better than better than the 4th exposure balance degree, the first image distortion degree The 4th pattern distortion degree and the first distortion of image degree are better than at least one in the 4th portrait deformation extent ?.
Preferably, the camera is being obtained after the 4th image that the second position is shot, further includes:
If the 4th image does not include human face region, second is set by the 4th portrait deformation extent and is preset Value.
Preferably, the camera is being obtained after the first image that first position is shot, further includes:
Quality evaluation is carried out to the first image, obtains the first quality assessment result;Wherein, first quality evaluation As a result in the first exposure balance factor, the first pattern distortion factor and the first distortion of image factor including the first image At least one of;
First imaging effect is first quality assessment result or is by first quality assessment result by The imaging parameters that one predetermined manner is calculated;
The camera is being obtained after the 4th image that the second position is shot, further includes:
Quality evaluation is carried out to the 4th image, obtains the 4th quality assessment result;Wherein, the 4th quality evaluation As a result in the 4th exposure balance factor, the 4th pattern distortion factor and the 4th portrait deformation factor including the 4th image At least one of;
4th imaging effect is the 4th quality assessment result or is by the 4th quality assessment result by The imaging parameters that four predetermined manners are calculated.
Preferably, first predetermined manner is identical as the 4th predetermined manner, it is described first exposure balance factor with The 4th exposure balance factor is corresponding, and the first image distortion factor is corresponding with the 4th pattern distortion factor, The first distortion of image factor is corresponding with the 4th portrait deformation factor.
Preferably, first imaging effect are as follows: using 0.4,0.3 and 0.3 as it is described first exposure balance factor, The weight factor of the first pattern distortion factor and the first distortion of image, to the first exposure balance factor, the first pattern distortion The factor and the first distortion of image factor are weighted and averaged, obtained imaging parameters;
4th imaging effect are as follows: expose balance factor, the 4th figure for 0.4,0.3 and 0.3 as the described 4th The image distortion factor and the 4th portrait deformation weight factor, to it is described 4th exposure balance factor, the 4th pattern distortion factor and 4th portrait deformation factor is weighted and averaged, obtained imaging parameters.
Preferably, quality evaluation is carried out to the first image, obtains the first quality assessment result, specifically includes:
It obtains the overexposure of the first image and/or crosses the first accounting L1 of dark pixel;
According to the first accounting L1, the first exposure balance factor is obtained;
Quality evaluation is carried out to the 4th image, the 4th quality assessment result is obtained, specifically includes:
It obtains the overexposure of the 4th image and/or crosses the 4th accounting L4 of dark pixel;
According to the 4th accounting L4, the 4th exposure balance factor is obtained.
Preferably, quality evaluation is carried out to the first image, obtains the first quality assessment result, specifically includes:
Obtain the first pitch angle of the first image;
If first pitch angle is less than or equal to second threshold, third is set by the first distortion of image factor Preset value;
If first pitch angle is greater than the second threshold:
According to ratio above and below the first facial of the first imageFirst nose ratioWith the first lip RatioAt least one of in, obtain the value of the first distortion of image factor;
Wherein, ratio above and below the first facialFor in the first image, place between the eyebrows to nose lower boundary away from Ratio from L11 and nose lower boundary to chin boundary distance L12;
The first nose ratioIt is nasal area area in the first image in entire portrait area area Accounting;
The first lip ratioFor lip region area accounting in entire portrait area area in the first image Than;
Quality evaluation is carried out to the 4th image, the 4th quality assessment result is obtained, specifically includes:
Obtain the 4th pitch angle of the 4th image;
If the 4th pitch angle is less than or equal to second threshold, third is set by the 4th portrait deformation factor Preset value;
If the 4th pitch angle is greater than the second threshold:
According to ratio above and below the fourth face portion of the 4th image4th nose ratioWith the 4th lip RatioAt least one of in, obtain the value of the 4th portrait deformation factor;
Wherein, ratio above and below the fourth face portionFor in the 4th image, place between the eyebrows to nose lower boundary away from Ratio from L41 and nose lower boundary to chin boundary distance L42;
The 4th nose ratioIt is nasal area area in the 4th image in entire portrait area area Accounting;
The 4th lip ratioIt is lip region area in the 4th image in entire portrait area area Accounting.
Second aspect, the embodiment of the invention also provides a kind of filming apparatus, the filming apparatus include: obtain module and Processing module;
The acquisition module, the first image shot for obtaining camera in first position;
The processing module, for showing when the first imaging effect of the first image meets the first preset condition Or the second image that the storage camera is shot in the first position, second image are the first image or described The third image that camera is shot in the first position;
Wherein, first imaging effect specifically includes:
The first of the first image exposes in balance degree, the first pattern distortion degree and the first distortion of image degree At least one of.
Preferably, the filming apparatus further includes control module;
The control module, for the acquisition module obtain the first image that camera is shot in first position it Afterwards, the camera is fixed or is adjusted to the first position.
Preferably, the filming apparatus further includes quality assessment modules;
The quality assessment modules obtain the first quality assessment result for carrying out quality evaluation to the first image;
Wherein, first quality assessment result includes the first exposure balance factor, the first image of the first image At least one of in distortion factor and the first distortion of image factor;
First imaging effect is first quality assessment result or is calculated according to first quality assessment result The imaging parameters obtained.
Preferably, the filming apparatus further include:
Weighted calculation module exposes balance factor, the first pattern distortion for 0.4,0.3 and 0.3 as described first The weight factor of the factor and the first distortion of image, to the first exposure balance factor, the first pattern distortion factor and the first The distortion of image factor is weighted and averaged, and obtains the imaging parameters.
Preferably, the quality assessment modules include the first quality evaluation submodule;
The first quality evaluation submodule, is used for:
It obtains the overexposure of the first image and/or crosses the first accounting L1 of dark pixel;
According to the first accounting L1, the first exposure balance factor is obtained.
Preferably, the quality assessment modules include the second quality evaluation submodule;
The second quality evaluation submodule, is used for:
Obtain the first pitch angle of the first image;
If first pitch angle is less than or equal to first threshold, first is set by the first distortion of image factor Preset value;
If first pitch angle is greater than the first threshold:
According to ratio above and below the first facial of the first imageFirst nose ratioWith the first lip RatioAt least one of in, obtain the value of the first distortion of image factor;
Wherein, ratio above and below the first facialFor in the first image, place between the eyebrows to nose lower boundary away from Ratio from L11 and nose lower boundary to chin boundary distance L12;
The first nose ratioIt is nasal area area in the first image in entire portrait area area Accounting;
The first lip ratioIt is lip region area in the first image in entire portrait area area Accounting.
Preferably, the acquisition module includes the first acquisition submodule;
First acquisition submodule, the 4th image shot for obtaining the camera in the second position;
The filming apparatus further include:
Judgment module, for judging whether the first imaging effect of the first image is better than the 4th of the 4th image Imaging effect, if the first imaging effect of the first image is better than the 4th imaging effect of the 4th image, it is determined that institute The first imaging effect for stating the first image meets the first preset condition;
Wherein, the 4th imaging effect specifically includes: the 4th exposure balance degree, the 4th image of the 4th image At least one of in distortion degree and the 4th portrait deformation extent.
Preferably, the judgment module, is specifically used for:
In the first exposure balance degree better than the 4th exposure balance degree, the first image distortion degree is excellent It is better than in the 4th portrait deformation extent extremely in the 4th pattern distortion degree and the first distortion of image degree When one item missing condition is set up, determine that the first imaging effect of the first image meets the first preset condition.
Preferably, the filming apparatus further includes setup module;
The setup module, is used for: when the 4th image does not include four facial images, the 4th portrait being become Shape degree is set as the second preset value.
Preferably, the quality assessment modules include the first computational submodule and the second computational submodule;
First computational submodule obtains the first quality evaluation knot for carrying out quality evaluation to the first image Fruit;Wherein, first quality assessment result include the first image first exposure balance factor, the first pattern distortion because At least one of in the sub and the first distortion of image factor;
Second computational submodule obtains the 4th quality evaluation knot for carrying out quality evaluation to the 4th image Fruit;Wherein, the 4th quality assessment result include the 4th image the 4th exposure balance factor, the 4th pattern distortion because At least one of in son and the 4th portrait deformation factor;
First imaging effect is first quality assessment result or is by first quality assessment result by The imaging parameters that one predetermined manner is calculated;
4th imaging effect is the 4th quality assessment result or is by the 4th quality assessment result by The imaging parameters that four predetermined manners are calculated.
Preferably, in first predetermined manner in first computational submodule and second computational submodule 4th predetermined manner is identical.
Preferably, first computational submodule is specifically used for the first exposure balance factor, the first pattern distortion The factor and the first distortion of image factor are weighted and averaged to calculate imaging parameters by 0.4,0.3 and 0.3 weight;
Second computational submodule, be specifically used for will it is described 4th expose balance factor, the 4th pattern distortion factor and 4th portrait deformation factor is weighted and averaged to calculate imaging parameters by 0.4,0.3 and 0.3 weight.
Preferably, the quality assessment modules include third quality evaluation submodule and the 4th quality evaluation submodule;
The third quality evaluation submodule, is used for:
It obtains the overexposure of the first image and/or crosses the first accounting L1 of dark pixel;
According to the first accounting L1, the first exposure balance factor is obtained;
The 4th quality evaluation submodule, is used for:
It obtains the overexposure of the 4th image and/or crosses the 4th accounting L4 of dark pixel;
According to the 4th accounting L4, the 4th exposure balance factor is obtained.
Preferably, the quality assessment modules include the 5th quality evaluation submodule and the 6th quality evaluation submodule;
The 5th quality evaluation submodule, is used for:
Obtain the first pitch angle of the first image;
If first pitch angle is less than or equal to second threshold, third is set by the first distortion of image factor Preset value;
If first pitch angle is greater than the second threshold:
According to ratio above and below the first facial of the first imageFirst nose ratioWith the first lip RatioAt least one of in, obtain the value of the first distortion of image factor;
Wherein, ratio above and below the first facialFor in the first image, place between the eyebrows to nose lower boundary away from Ratio from L11 and nose lower boundary to chin boundary distance L12;
The first nose ratioIt is nasal area area in the first image in entire portrait area area Accounting;
The first lip ratioIt is lip region area in the first image in entire portrait area area Accounting;
The 6th quality evaluation submodule, is used for:
Obtain the 4th pitch angle of the 4th image;
If the 4th pitch angle is less than or equal to second threshold, third is set by the 4th portrait deformation factor Preset value;
If the 4th pitch angle is greater than the second threshold:
According to ratio above and below the fourth face portion of the 4th image4th nose ratioWith the 4th lip RatioAt least one of in, obtain the value of the 4th portrait deformation factor;
Wherein, ratio above and below the fourth face portionFor in the 4th image, place between the eyebrows to nose lower boundary away from Ratio from L41 and nose lower boundary to chin boundary distance L42;
The 4th nose ratioIt is nasal area area in the 4th image in entire portrait area area Accounting;
The 4th lip ratioIt is lip region area in the 4th image in entire portrait area area Accounting.
The third aspect the embodiment of the invention provides a kind of terminal device, including processor, memory and is stored in this and deposits On reservoir and the computer program that can run on the processor, such as first is realized when which is executed by the processor The step of image pickup method described in aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Computer program is stored in matter, and image processing method as described in relation to the first aspect is realized when which is executed by processor The step of.
In embodiments of the present invention, it if the first imaging effect of the first image meets the first preset condition, shows or deposits The second image that storage camera is shot in first position carries out manually adjusting the operation such as shooting angle without user again, so that it may It obtains meeting user to take pictures the photo of demand.Therefore, using image pickup method provided in an embodiment of the present invention, it can simplify user's Operation reduces the difficulty that user uses, while ensuring the quality of taking pictures of camera.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of image pickup method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another image pickup method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another image pickup method provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another image pickup method provided in an embodiment of the present invention;
Fig. 6 is a kind of possible structural schematic diagram of filming apparatus provided in an embodiment of the present invention;
Fig. 7 is the possible structural schematic diagram of another filming apparatus provided in an embodiment of the present invention;
Fig. 8 is the possible structural schematic diagram of another filming apparatus provided in an embodiment of the present invention;
Fig. 9 is the possible structural schematic diagram of another filming apparatus provided in an embodiment of the present invention;
Figure 10 is one of the filming apparatus provided in an embodiment of the present invention possible structural schematic diagram of quality assessment modules;
Figure 11 is the possible structural representation of another quality assessment modules in filming apparatus provided in an embodiment of the present invention Figure;
Figure 12 is the possible structural schematic diagram of another filming apparatus provided in an embodiment of the present invention;
Figure 13 is the possible structural schematic diagram of another filming apparatus provided in an embodiment of the present invention;
Figure 14 is the possible structural representation of another quality assessment modules in filming apparatus provided in an embodiment of the present invention Figure;
Figure 15 is the possible structural representation of another quality assessment modules in filming apparatus provided in an embodiment of the present invention Figure;
Figure 16 is the possible structural representation of another quality assessment modules in filming apparatus provided in an embodiment of the present invention Figure;
Figure 17 is a kind of hardware structural diagram of terminal device of each embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be noted that "/" herein indicate or the meaning, for example, A/B can indicate A or B;Herein "and/or" is only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can To indicate: individualism A exists simultaneously A and B, these three situations of individualism B." multiple " refer to two or more.
Term " first " and " second " in description and claims of this specification etc. are for distinguishing different pairs As, rather than it is used for the particular order of description object.For example, the first image and the second image etc. are for distinguishing different figures Picture, rather than the particular order for describing image.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used Such as " word is intended to that related notion is presented in specific ways.
Terminal device in the embodiment of the present invention can be the terminal device with operating system.The operating system can be Android (Android) operating system can be ios operating system, can also be other possible operating systems, and the present invention is implemented Example is not especially limited.
Below by taking Android operation system as an example, software applied by image pickup method provided in an embodiment of the present invention is introduced Environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program In the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The system architecture of operating system, the software program of image pickup method provided in an embodiment of the present invention is realized in exploitation, so that the bat The method of taking the photograph can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal device can be by Androids The software program is run in operating system realizes image pickup method provided in an embodiment of the present invention.
The image pickup method of the embodiment of the present invention is illustrated below with reference in Fig. 2.Fig. 2 is provided in an embodiment of the present invention A kind of flow diagram of image pickup method, as shown in Fig. 2, the image pickup method includes S201 and S202:
S201, terminal device obtain the first image that camera is shot in first position.
Optionally, the camera in the embodiment of the present invention can be a part of terminal device, can also be not belonging to terminal Equipment, and the camera is only passed to the terminal device in the first image that first position is shot, the embodiment of the present invention is to this It is not especially limited.
It should be noted that in embodiments of the present invention, terminal device can obtain camera through a variety of ways First image of one position shooting.Terminal device can directly acquire the first image, and first can also be obtained from other equipment Image, such as be first saved in camera in other equipment in the first image that first position is shot, terminal device passes through it again His equipment obtains first image.The present invention is not especially limit this.
If the first imaging effect of S202, first image meets the first preset condition, the camera is shown or stored In the second image of first position shooting.
Wherein, the first imaging effect can specifically include: the first exposure balance degree, the first image of first image are abnormal At least one of in change degree and the first distortion of image degree.
It is understood that whether meet the judgement of the first preset condition for the first imaging effect of first image, It can be completed by the individual module of terminal device, pass the result to the terminal after the completion of can also being judged by other equipment Equipment can also voluntarily be judged that the present invention is not especially limit this by user.
It is understood that it is equal that the first imaging effect can be the first exposure if first image includes figure information Any one in weighing apparatus degree, the first pattern distortion degree and the first distortion of image degree three is also possible to wherein any two The combination of item, can also be three common combinations, the present invention is not especially limit this.
If first image does not include figure information, the first imaging effect can be the first exposure balance degree and first Any one in pattern distortion degree two, is also possible to two combinations, the present invention is not especially limit this.
Wherein, the second image can be the first image, be also possible to the third image that the camera is shot in first position.
Optionally, terminal device is showing or is storing the camera after the second image that first position is shot, can be with The target image is edited or shares, the present invention is not especially limit this.
Optionally, terminal device is showing or is storing the camera after the second image that first position is shot, this is taken the photograph As head can rest on the first position, it can also be moved to other positions, the present invention is not especially limit this.
In image pickup method provided in an embodiment of the present invention, since terminal device can show or store the camera first Second image of position shooting, and the first imaging effect of the first image that camera is shot in the first position has been met First preset condition, it can be considered that the second image will suffice for first preset condition.I.e. user no longer needs to carry out manual Adjust the operation such as shooting angle, so that it may obtain meeting user and take pictures the photo of demand.Therefore, it is provided using the embodiment of the present invention Image pickup method, can simplify the operation of user, reduce the difficulty that user uses, while ensuring the quality of taking pictures of camera.
It should be noted that terminal device is showing or is storing the camera in first position bat in the embodiment of the present invention After the second image taken the photograph, it can also continue to obtain other using the image pickup method in the embodiment of the present invention and meet user to take pictures demand Photo, user can it is finally obtained multiple meet condition photo in select the favorite photo of user, the present invention is implemented Example is not especially limited this.
A kind of possible implementation, as shown in figure 3, image pickup method provided in an embodiment of the present invention the following steps are included:
S301, terminal device obtain the first image that camera is shot in first position.
S302, terminal device carry out quality evaluation to first image, obtain the first quality assessment result;And according to this One quality assessment result obtains the first imaging effect.
Wherein, first quality assessment result include the first image first exposure balance factor, the first pattern distortion because At least one of in the sub and the first distortion of image factor.
Optionally, the first pattern distortion factor can obtain by the following method: for the straight line occurred in the first image Type target calculates the corresponding curvature of the target, then obtains the first pattern distortion factor further according to the curvature.
Optionally, the first exposure balance factor can obtain by the following method: terminal device obtains the mistake of the first image The first accounting L1 of dark pixel is exposed and/or crossed, and according to first accounting L1, obtains the first exposure balance factor.
Wherein, the first accounting L1 can be only the accounting of the overexposure pixel of the first image, be also possible to accounting for for dark pixel Than can also be overexposure and cross total accounting of dark pixel, the present invention is not especially limit this.
It is understood that excessively dark pixel portion is in the first image if the width of the first image and high respectively w and hExcessively bright pixel portion is in first imageIllustratively, if the first accounting L1 is overexposure and crosses always accounting for for dark pixel Than then L1 can pass through formulaIt is calculated.
Optionally, the first distortion of image factor can obtain by the following method: terminal device obtains the of the first image One pitch angle.If first pitch angle is less than or equal to first threshold, the first distortion of image factor is arranged terminal device For the first preset value.If first pitch angle is greater than first threshold, in first facial of the terminal device according to the first image Lower ratioFirst nose ratioWith the first lip ratioAt least one of in, obtain the first distortion of image The value of the factor.
Wherein, the first pitch angle can be when first image includes figure information, the pitch angle of the figure information Degree.
It is understood that first preset value can be 0, it is also possible to infinitely great or infinitesimal, can also be other Numerical value, the present invention is not especially limit this.
Wherein, ratio above and below first facialFor in first image, the distance L11 of place between the eyebrows to nose lower boundary and Nose lower boundary to chin boundary distance L12 ratio;
First nose ratioFor nasal area area in first image entire portrait area area accounting;
First lip ratioFor lip region area in first image entire portrait area area accounting.
It is understood that the value of the first distortion of image factor can directly be first facial ratio up and down First nose ratioWith the first lip ratioIn a certain item value, be also possible to in them it is one or more into The value that row obtains after calculating, the present invention is not especially limit this.
Optionally, which can be the first facial to first image or more ratio The outer ratio of first noseWith ratio outside the first lipIn one or more be weighted and averaged acquire Value.
It is understood that in embodiments of the present invention, the first pattern distortion factor, the can also be obtained with other methods One exposure balance factor and the first distortion of image factor, the present invention is not especially limit this.
It is understood that the first quality assessment result can be the first exposure if first image includes figure information Any one in light balance factor, the first pattern distortion factor and the first distortion of image factor three, is also possible to wherein appoint The combination of meaning two, can also be three common combinations, the present invention is not especially limit this.
If first image does not include figure information, the first quality assessment result can be the first exposure balance factor and Any one in the first pattern distortion factor two, is also possible to two combinations, and the embodiment of the present invention is not made this specifically It limits.
Optionally, the first imaging effect can be the first quality assessment result, be also possible to according to first quality evaluation As a result the imaging parameters being calculated.The present invention is not especially limit this.
Optionally, can using 0.4,0.3 and 0.3 as first exposure balance factor, the first pattern distortion factor and The weight of the first distortion of image factor, to the first of the first image the exposure balance factor, the first pattern distortion factor and the first The distortion of image factor is weighted and averaged, and obtains imaging parameters as the first imaging effect.
If the first imaging effect of S303, first image is less than or equal to third threshold value, terminal device is by the camera It fixes or adjusts to first position, and show or store the second image that the camera is shot in the first position.
Wherein, the second image can be the first image, be also possible to the third image that the camera is shot in first position.
Optionally, terminal device first can fix or adjust the camera, then show or store the second image;It can also be first The camera is fixed or adjusted again to display or the second image of storage;Also it may be performed simultaneously.The embodiment of the present invention does not make this to have Body limits.
It is understood that fixing or adjusting the camera to first position in the embodiment of the present invention, can be straight It connects and the camera is fixed on first position, be also possible to that the camera is first allowed to be moved to other positions, then adjust to first It sets, the present invention is not especially limit this.
It is understood that fixing or adjusting the camera to first position in the embodiment of the present invention, can apply In any embodiment of this image pickup method.
In embodiments of the present invention, due to being somebody's turn to do when the first imaging effect of first image is less than or equal to third threshold value The camera is fixed or is adjusted to first position by terminal device, and user no longer needs to manually adjust the operation such as shooting angle, Camera can be maintained to the position for being suitble to take pictures.Therefore, using image pickup method provided in an embodiment of the present invention, Ke Yijian Change the operation of user, reduce the difficulty that uses of user, camera is maintained at and may insure that camera is taken pictures the position of quality.
In addition, terminal device has carried out quality evaluation to first image, and based on the first quality assessment result to first Imaging effect is judged.This embodies the judgment basis to the first imaging effect, it is ensured that the imaging of the first image is imitated Fruit can increase the usage experience of user.
A kind of possible implementation, as shown in figure 4, image pickup method provided in an embodiment of the present invention the following steps are included:
S401, terminal device obtain the first image that camera is shot in first position.
S402, terminal device obtain the 4th image that camera is shot in the second position.
It is understood that the 4th image can be piece image, it is also possible to multiple image, the embodiment of the present invention pair This is not especially limited.
S403, judge whether the first imaging effect of the first image is better than the 4th imaging effect of the 4th image;If first Imaging effect is better than the 4th imaging effect, thens follow the steps S404, if the first imaging effect is not better than the 4th imaging effect, holds Row step S405.
Wherein, the first imaging effect can specifically include: the first exposure balance degree, the first image of first image are abnormal At least one of in change degree and the first distortion of image degree.4th imaging effect specifically includes: the 4th exposure of the 4th image At least one of in balance degree, the 4th pattern distortion degree and the 4th portrait deformation extent.
It is understood that first imaging effect can be the first exposure balance degree, the first pattern distortion degree and Any one in the first distortion of image degree three is also possible to wherein any two combinations, can also be that three are total to With combination, the present invention is not especially limit this;4th imaging effect can be the 4th exposure balance degree, the 4th Any one in pattern distortion degree and the 4th portrait deformation extent three is also possible to wherein any two combinations, also It can be three common combinations, the present invention is not especially limit this.
Optionally, the first imaging effect of the first image is better than the 4th imaging effect of the 4th image, specifically can be the One exposure balance degree is better than the 4th pattern distortion degree and first better than the 4th exposure balance degree, the first pattern distortion degree Portrait deformation extent, that is, either one is better than, is also possible to wherein better than at least one in the 4th portrait deformation extent Any two be better than, can also be that three degree are superior to, the present invention is not especially limit this.
Optionally, if first image does not include human face region, second can be set by the first distortion of image degree Preset value.
Optionally, if the 4th image does not include human face region, second can be set by the 4th portrait deformation extent Preset value.
It is understood that second preset value can be 0, it is also possible to infinitely great or infinitesimal, can also be other Numerical value, can also be only a certain degree such as worst or poor, the present invention is not especially limit this.
S404, display store the second image that the camera is shot in first position.
Wherein, the second image can be the first image, be also possible to the third image that the camera is shot in first position.
S405, the third place is denoted as to the new second position, return step S402.
It is understood that in other embodiments of the invention, step S402 can also be first carried out and execute step again S401 may also be performed simultaneously, and the present invention is not especially limit this.
In the embodiment of the present invention, it is compared by the imaging effect to the first image and the 4th image, it is ensured that first The imaging effect of image is preferably situation really.With this solution, the judgment basis to the first imaging effect is embodied, really The imaging effect of the first image has been protected, the usage experience of user can be increased.
A kind of possible implementation, as shown in figure 5, image pickup method provided in an embodiment of the present invention the following steps are included:
S501, terminal device obtain the first image that camera is shot in first position.
S502, terminal device carry out quality evaluation to the first image, obtain the first quality assessment result.
Wherein, first quality assessment result include the first image first exposure balance factor, the first pattern distortion because At least one of in the sub and the first distortion of image factor.
Optionally, the first pattern distortion factor can obtain by the following method: for the straight line occurred in the first image Type target calculates the corresponding curvature of the target, then obtains the first pattern distortion factor further according to the curvature.
Optionally, the first exposure balance factor can obtain by the following method: terminal device obtains the mistake of the first image The first accounting L1 of dark pixel is exposed and/or crossed, and according to first accounting L1, obtains the first exposure balance factor.
Wherein, the first accounting L1 can be only the accounting of the overexposure pixel of the first image, be also possible to accounting for for dark pixel Than can also be overexposure and cross total accounting of dark pixel, the present invention is not especially limit this.
It is understood that excessively dark pixel portion is in the first image if the width of the first image and high respectively w and hExcessively bright pixel portion is in first imageIllustratively, if the first accounting L1 is overexposure and crosses always accounting for for dark pixel Than then L1 can pass through formulaIt is calculated.
Optionally, the first distortion of image factor can obtain by the following method: terminal device obtains the of the first image One pitch angle.If the first pitch angle is less than or equal to second threshold, terminal device sets the first distortion of image factor to Third preset value.If the first pitch angle is greater than second threshold, terminal device compares up and down according to the first facial of the first image ExampleFirst nose ratioWith the first lip ratioAt least one of in, obtain the first distortion of image factor Value.
Wherein, which can be the pitching of the figure information when first image includes figure information Angle.
It is understood that the third preset value can be 0, it is also possible to infinitely great or infinitesimal, can also be other Numerical value, the present invention is not especially limit this.
Wherein, ratio above and below first facialFor in first image, the distance L11 of place between the eyebrows to nose lower boundary With the ratio of the distance L12 of nose lower boundary to chin boundary;
First nose ratioFor nasal area area in first image entire portrait area area accounting;
First lip ratioFor lip region area in first image entire portrait area area accounting.
It is understood that the value of the first distortion of image factor can directly be first facial ratio up and down First nose ratioWith the first lip ratioIn a certain item value, be also possible to in them it is one or more into The value that row obtains after calculating, the present invention is not especially limit this.
Optionally, which can be the first facial to first image or more ratio The outer ratio of first noseWith ratio outside the first lipIn one or more be weighted and averaged acquire Value.
It is understood that in embodiments of the present invention, the first pattern distortion factor, the can also be obtained with other methods One exposure balance factor and the first distortion of image factor, the present invention is not especially limit this.
Wherein, which can be the first quality assessment result, be also possible to the first quality evaluation knot The imaging parameters that fruit is calculated by the first predetermined manner, the present invention is not especially limit this.
Optionally, if first image does not include human face region, the 4th can be set by the first distortion of image factor Preset value.
It is understood that the 4th preset value can be 0, it is also possible to infinitely great or infinitesimal, can also be other Numerical value, the present invention is not especially limit this.
It is understood that the first quality assessment result can be the first exposure if first image includes figure information Any one in light balance factor, the first pattern distortion factor and the first distortion of image factor three, is also possible to wherein appoint The combination of meaning two, can also be three common combinations, the present invention is not especially limit this.
If first image does not include figure information, the first quality assessment result can be the first exposure balance factor and Any one in the first pattern distortion factor two, is also possible to two combinations, and the embodiment of the present invention is not made this specifically It limits.
Optionally, which is the imaging that the first quality assessment result is calculated by the first predetermined manner Parameter, can be for first quality assessment result to be weighted and averaged and obtains imaging parameters, be also possible to by other calculating sides Formula obtains imaging parameters, and the present invention is not especially limit this.
S503, terminal device obtain the 4th image that camera is shot in the second position.
S504, terminal device carry out quality evaluation to the 4th image, obtain the 4th quality assessment result.
Wherein, the 4th quality assessment result include the 4th image the 4th exposure balance factor, the 4th pattern distortion because At least one of in son and the 4th portrait deformation factor.
Optionally, the 4th pattern distortion factor can obtain by the following method: for the straight line occurred in the 4th image Type target calculates the corresponding curvature of the target, then obtains the 4th pattern distortion factor further according to the curvature.
Optionally, the 4th exposure balance factor can obtain by the following method: terminal device obtains the mistake of the 4th image The 4th accounting L4 of dark pixel is exposed and/or crossed, and according to the 4th accounting L4, obtains the 4th exposure balance factor.
Wherein, the 4th accounting L4 can be only the accounting of the overexposure pixel of the 4th image, be also possible to accounting for for dark pixel Than can also be overexposure and cross total accounting of dark pixel, the present invention is not especially limit this.
Optionally, the calculation of the 4th accounting L4 can be identical as the calculation of the first accounting L1, and the present invention is implemented Example is not especially limited this.
It is understood that if the width of the 4th image and high respectively w4 and h4, excessively dark pixel portion in the first image ForExcessively bright pixel portion is in first imageIllustratively, if the 4th accounting L4 is overexposure and crosses the total of dark pixel Accounting, then L4 can pass through formulaIt is calculated.
Optionally, the 4th portrait deformation factor can obtain by the following method: terminal device obtains the of the 4th image Four pitch angles.If the 4th pitch angle is less than or equal to second threshold, terminal device sets the 4th portrait deformation factor to Third preset value.If the 4th pitch angle is greater than second threshold, terminal device compares up and down according to the fourth face portion of the 4th image Example4th nose ratioWith the 4th lip ratioAt least one of in, obtain the 4th portrait deformation factor Value.
Wherein, the 4th pitch angle can be the pitching of the figure information when the 4th image includes figure information Angle.
It is understood that the third preset value can be 0, it is also possible to infinitely great or infinitesimal, can also be other Numerical value, the present invention is not especially limit this.
Wherein, ratio above and below fourth face portionFor in the 4th image, the distance L41 of place between the eyebrows to nose lower boundary and Nose lower boundary to chin boundary distance L42 ratio;
4th nose ratioFor nasal area area in the 4th image entire portrait area area accounting;
4th lip ratioFor lip region area in the 4th image entire portrait area area accounting.
It is understood that the value of the 4th portrait deformation factor can directly be fourth face portion ratio up and down 4th nose ratioWith the 4th lip ratioIn a certain item value, be also possible to in them it is one or more into The value that row obtains after calculating, the present invention is not especially limit this.
Optionally, the 4th portrait deformation factor can be the fourth face portion to the 4th image or more ratio The outer ratio of 4th noseWith ratio outside the 4th lipIn one or more be weighted and averaged acquire Value.
It is understood that in embodiments of the present invention, the 4th pattern distortion factor, the can also be obtained with other methods Four exposure balance factors and the 4th portrait deformation factor, the present invention is not especially limit this.
Wherein, the 4th imaging effect can be the 4th quality assessment result, be also possible to the 4th quality evaluation knot The imaging parameters that fruit is calculated by the 4th predetermined manner, the present invention is not especially limit this.
Optionally, if the 4th image does not include human face region, the 4th can be set by the 4th portrait deformation factor Preset value.
It is understood that the 4th preset value can be 0, it is also possible to infinitely great or infinitesimal, can also be other Numerical value, the present invention is not especially limit this.
It is understood that the 4th quality assessment result can be the 4th exposure balance factor, the 4th pattern distortion because Any one in son and the 4th portrait deformation factor three, is also possible to wherein any two combinations, can also be three Common combination, the present invention is not especially limit this.
Optionally, the 4th imaging effect is the imaging that the 4th quality assessment result is calculated by the 4th predetermined manner Parameter, can be for the 4th quality assessment result to be weighted and averaged and obtains imaging parameters, be also possible to by other calculating sides Formula obtains imaging parameters, and the present invention is not especially limit this.
Optionally, the first predetermined manner can be identical with the 4th predetermined manner.Specifically, to the first predetermined manner and the 4th For predetermined manner, the first exposure balance factor is corresponding with the 4th exposure balance factor, the first pattern distortion factor and the 4th The pattern distortion factor is corresponding, and the first distortion of image factor is corresponding with the 4th portrait deformation factor.
Optionally, situation that can be identical to the first predetermined manner and the 4th predetermined manner, the first imaging of the first image Effect can be with specifically: using 0.4,0.3 and 0.3 as the first exposure balance factor, the first pattern distortion factor and first The weight of portrait deformation factor carries out the first exposure balance factor, the first pattern distortion factor and the first distortion of image factor Weighted average, obtained imaging parameters;
4th imaging effect of corresponding 4th image specifically: balanced using 0.4,0.3 and 0.3 as the 4th exposure The weight of the factor, the 4th pattern distortion factor and the 4th portrait deformation factor, to the 4th exposure balance factor, the 4th pattern distortion The factor and the 4th portrait deformation factor are weighted and averaged, obtained imaging parameters.
S505, judge whether the first imaging effect of the first image is less than or equal to the 4th imaging effect of the 4th image;If First imaging effect is less than or equal to the 4th imaging effect, thens follow the steps S506, if the first imaging effect is greater than the 4th imaging effect Fruit thens follow the steps S507.
S506, display store the second image that the camera is shot in first position.
Wherein, the second image can be the first image, be also possible to the third image that the camera is shot in first position.
S507, the third place is denoted as to the new second position, return step S503.
It is understood that the first imaging effect is less than or equal to the 4th imaging effect as the first one-tenth by the embodiment of the present invention As effect can also in the example of other application image pickup method of the invention better than the specific decision condition of the 4th imaging effect To select specific decision condition of other preset conditions as the first imaging effect better than the 4th imaging effect, it is not limited solely to small In equal to a kind of this situation.Other preset conditions also should belong to the protection scope of this image pickup method.
It is understood that in other embodiments of the invention, S503-S504 can also be first carried out, then execute S501- S502 may also be performed simultaneously, and the present invention is not especially limit this.
Based on the program, terminal device carries out quality evaluation to the first image and the 4th image, then is based on the quality evaluation As a result the imaging effect of the first image and the 4th image is compared, it is ensured that the imaging effect of the first image is better than really The imaging effect of four images.With this solution, the judgment basis to the first imaging effect is embodied, it is ensured that the first image Imaging effect can increase the usage experience of user.
Fig. 6 is a kind of possible structural schematic diagram of filming apparatus provided in an embodiment of the present invention, as shown in fig. 6, shooting dress Setting 600 includes: to obtain module 601 and processing module 602;Module 601 is obtained, is shot in first position for obtaining camera First image;Processing module 602, for first image the first imaging effect meet the first preset condition when, display or The second image that storage camera is shot in first position, second image can be the first image, be also possible to camera and exist The third image of first position shooting;
Wherein, the first imaging effect specifically includes the first exposure balance degree, the first pattern distortion journey of first image At least one of in degree and the first distortion of image degree.
Optionally, in conjunction with Fig. 6, as shown in fig. 7, filming apparatus 600 further includes control module 603;Control module 603 is used In before or after processing module is shown or stores the second image that the camera is shot in first position, which is consolidated Determine or adjusts to first position.
Optionally, in conjunction with Fig. 6, as shown in figure 8, filming apparatus 600 further includes quality assessment modules 604;Quality evaluation mould Block 604 obtains the first quality assessment result for carrying out quality evaluation to the first image.
Wherein, the first quality assessment result include first image first exposure balance factor, the first pattern distortion because At least one of in the sub and the first distortion of image factor.
Wherein, the first imaging effect is the first quality assessment result or is calculated according to first quality assessment result Imaging parameters.
Optionally, in conjunction with Fig. 8, as shown in figure 9, filming apparatus 600 further includes weighted calculation module 605;Weighted calculation mould Block 605 is combined calculating to the first exposure balance factor, the first pattern distortion factor and the first distortion of image factor, obtains Imaging parameters.
Optionally, the weighted calculation module 605, can using 0.4,0.3 and 0.3 as first exposure it is balanced because Son, the first pattern distortion factor and the first distortion of image weight factor, to first exposure balance factor, the first pattern distortion because The sub and the first distortion of image factor is weighted and averaged, and obtains imaging parameters.
Optionally, in conjunction with Fig. 8, as shown in Figure 10, the quality assessment modules 604 in filming apparatus 600 further include the first matter Amount assessment submodule 6041;First quality evaluation submodule 6041, is used for: obtaining the overexposure of the first image and/or crosses dark pixel The first accounting L1.And according to first accounting L1, the first exposure balance factor is obtained.
Optionally, in conjunction with Fig. 8, as shown in figure 11, the quality assessment modules 604 in filming apparatus 600 further include the second matter Amount assessment submodule 6042;Second quality evaluation submodule 6042, is used for: obtaining the first pitch angle of the first image.If should First pitch angle is less than or equal to first threshold, then sets the first preset value for the first distortion of image factor.If this first is bowed Elevation angle degree is greater than the first threshold, then according to ratio above and below the first facial of the first imageFirst nose ratioWith the first lip ratioAt least one of in, obtain the value of the first distortion of image factor.
Wherein, ratio above and below first facialFor in first image, the distance L11 of place between the eyebrows to nose lower boundary With the ratio of the distance L12 of nose lower boundary to chin boundary.
First nose ratioFor nasal area area in first image entire portrait area area accounting.
First lip ratioFor lip region area in first image entire portrait area area accounting.
Optionally, in conjunction with Fig. 6, as shown in figure 12, the acquisition module 601 in filming apparatus 600 further includes the first acquisition Module 6011;First acquisition submodule 6011, the 4th image shot for obtaining camera in the second position.
Optionally, filming apparatus 600 further includes judgment module 606;Judgment module 606, for judging the of the first image Whether one imaging effect is better than the 4th imaging effect of the 4th image.If the first imaging effect of the first image is better than the 4th image The 4th imaging effect, it is determined that the first imaging effect of the first image meets the first preset condition.
Wherein, the 4th imaging effect specifically includes: the 4th exposure balance degree, the 4th pattern distortion degree of the 4th image With at least one in the 4th portrait deformation extent.
Optionally, judgment module 606 is specifically used for: balance degree is exposed better than the 4th in the first exposure balance degree, the One pattern distortion degree is better than the 4th pattern distortion degree and the first distortion of image degree better than in the 4th portrait deformation extent At least one of condition set up when, determine the first image the first imaging effect meet the first preset condition.
Optionally, in conjunction with Figure 12, as shown in figure 13, filming apparatus 600 further includes setup module 607;Setup module 607, For: when the 4th image does not include four facial images, the second preset value is set by the 4th portrait deformation extent.
Optionally, in conjunction with Figure 12, as shown in figure 14, filming apparatus 600 further includes quality assessment modules 604;Quality evaluation Module 604 includes the first computational submodule 6043 and the second computational submodule 6044;
First computational submodule 6043 obtains the first quality assessment result for carrying out quality evaluation to the first image.
Wherein, the first quality assessment result includes the first exposure balance factor, the first pattern distortion factor of the first image With at least one in the first distortion of image factor;
Second computational submodule 6044 obtains the 4th quality assessment result for carrying out quality evaluation to the 4th image.
Wherein, the 4th quality assessment result includes the 4th exposure balance factor, the 4th pattern distortion factor of the 4th image With at least one in the 4th portrait deformation factor.
Wherein, the first imaging effect is first quality assessment result or is that the first quality assessment result is pre- by first If the imaging parameters that mode is calculated, the 4th imaging effect is the 4th quality assessment result or is by the 4th quality assessment result The imaging parameters being calculated by the 4th predetermined manner.
Optionally, the first predetermined manner in the first computational submodule 6043 and the 4th in the second computational submodule 6044 Predetermined manner can be identical.
Optionally, the first computational submodule 6043 can be specifically used for by first expose balance factor, the first pattern distortion because The sub and the first distortion of image factor is weighted and averaged to calculate imaging parameters by 0.4,0.3 and 0.3 weight;Second calculates son Module 6044 can be specifically used for by the 4th expose balance factor, the 4th pattern distortion factor and the 4th portrait deformation factor by 0.4, 0.3 and 0.3 weight is weighted and averaged to calculate imaging parameters.
Optionally, in conjunction with Figure 14, as shown in figure 15, the first computational submodule 6043 in filming apparatus 600 further includes Three quality evaluation submodules 6045;Second computational submodule further includes the 4th quality evaluation submodule 6046.
Third quality evaluation submodule 6045, is used for: obtaining the overexposure of the first image and/or crosses the first accounting of dark pixel L1;According to first accounting L1, the first exposure balance factor is obtained.
4th quality evaluation submodule 6046, is used for: obtaining the overexposure of the 4th image and/or crosses the 4th accounting of dark pixel L4;According to the 4th accounting L4, the 4th exposure balance factor is obtained.
Optionally, in conjunction with Figure 14, as shown in figure 16, the first computational submodule 6043 in filming apparatus 600 further includes Five quality evaluation submodules 6047;Second computational submodule 6044 further includes the 6th quality evaluation submodule 6048.
5th quality evaluation submodule 6047, is used for: obtaining the first pitch angle of the first image.If first pitch angle Degree is less than or equal to second threshold, then sets third preset value for the first distortion of image factor.If first pitch angle is greater than Second threshold, then: according to ratio above and below the first facial of the first imageFirst nose ratioWith the first lip RatioAt least one of in, obtain the value of the first distortion of image factor.
Wherein, ratio above and below first facialFor in the first image, the distance L11 of place between the eyebrows to nose lower boundary and Nose lower boundary to chin boundary distance L12 ratio;First nose ratioFor nasal area area in the first image In the accounting of entire portrait area area;First lip ratioIt is lip region area in the first image in entire portrait area The accounting of domain area.
6th quality evaluation submodule 6048, is used for: obtaining the 4th pitch angle of the 4th image.If the 4th pitch angle Degree is less than or equal to second threshold, then sets third preset value for the 4th portrait deformation factor.If the 4th pitch angle is greater than The second threshold, then: according to ratio above and below the fourth face portion of the 4th image4th nose ratioWith the 4th Lip ratioAt least one of in, obtain the value of the 4th portrait deformation factor.
Wherein, ratio above and below fourth face portionFor in the 4th image, the distance L41 of place between the eyebrows to nose lower boundary and Nose lower boundary to chin boundary distance L42 ratio;4th nose ratioFor nasal area area in the 4th image In the accounting of entire portrait area area;4th lip ratioIt is lip region area in the 4th image in entire portrait area The accounting of domain area.
Filming apparatus 600 provided in an embodiment of the present invention can be realized terminal device in above method embodiment realize it is each A process, to avoid repeating, which is not described herein again.
Filming apparatus provided in an embodiment of the present invention, firstly, filming apparatus obtains that camera is shot in first position One image.Secondly, filming apparatus shows or stores should if the first imaging effect of first image meets the first preset condition The second image that camera is shot in first position.It is clapped since filming apparatus can show or store the camera in first position The second image taken the photograph, second image can be the first image, be also possible to the third figure that the camera is shot in first position Picture, and the first imaging effect of the first image that camera is shot in the first position has met the first preset condition, because This can consider that the second image will suffice for first preset condition.I.e. user no longer needs to manually adjust the behaviour such as shooting angle Make, so that it may obtain meeting user and take pictures the photo of demand.It therefore, can be with using filming apparatus provided in an embodiment of the present invention Simplify the operation of user, reduces the difficulty that user uses, while ensuring the quality of taking pictures of camera.
A kind of hardware structural diagram of Figure 17 terminal device of each embodiment to realize the present invention, the terminal device 100 include but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111 etc. Component.It will be understood by those skilled in the art that terminal device structure shown in Figure 17 does not constitute the restriction to terminal device, Terminal device may include perhaps combining certain components or different component layouts than illustrating more or fewer components.? In the embodiment of the present invention, terminal device includes but is not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal Equipment, wearable device and pedometer etc..
Wherein, processor 110, the first image shot for obtaining camera in first position;Display unit 106 is used In when the first imaging effect of the first image meets the first preset condition, the camera is shot in first position second is shown Image;Memory 109, for storing the camera and existing when the first imaging effect of the first image meets the first preset condition Second image of first position shooting.Wherein, the second image can be the first image, be also possible to the camera in first position The third image of shooting;First imaging effect specifically includes: the first exposure balance degree, the first pattern distortion journey of the first image At least one of in degree and the first distortion of image degree.
Terminal device provided in an embodiment of the present invention, firstly, terminal device obtains that camera is shot in first position One image.Secondly, terminal device shows or stores should if the first imaging effect of first image meets the first preset condition The second image that camera is shot in first position.It is clapped since terminal device can show or store the camera in first position The second image taken the photograph, second image can be the first image, be also possible to the third figure that the camera is shot in first position Picture, and the first imaging effect of the first image that camera is shot in the first position has met the first preset condition, because This can consider that the second image will suffice for first preset condition.I.e. user no longer needs to manually adjust the behaviour such as shooting angle Make, so that it may obtain meeting user and take pictures the photo of demand.It therefore, can be with using terminal device provided in an embodiment of the present invention Simplify the operation of user, reduces the difficulty that user uses, while ensuring the quality of taking pictures of camera.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set Standby communication.
Terminal device provides wireless broadband internet by network module 102 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 103 includes loudspeaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with terminal device Family setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 and Other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching The type for touching event provides corresponding visual output on display panel 1061.Although in Figure 17, touch panel 1071 and aobvious Show that panel 1061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of terminal device, it is specific this Place is without limitation.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device Data are transmitted between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 100 includes some unshowned functional modules, details are not described herein.
Optionally, the embodiment of the present invention also provides a kind of terminal device, in conjunction with Figure 17, including processor 110, memory 109, it is stored in the computer program that can be run on memory 109 and on the processor 110, the computer program is processed Device 110 realizes each process of above-mentioned image pickup method embodiment when executing, and can reach identical technical effect, to avoid weight Multiple, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned image pickup method embodiment when being executed by processor, and can reach Identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium is deposited Ru read-only Reservoir (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or CD etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute image pickup method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (10)

1. a kind of image pickup method is applied to terminal device, which is characterized in that the described method includes:
Obtain the first image that camera is shot in first position;
If the first imaging effect of the first image meets the first preset condition, the camera is shown or stored described Second image of first position shooting, second image are that the first image or the camera are clapped in the first position The third image taken the photograph;
Wherein, first imaging effect specifically includes:
The first of the first image exposes in balance degree, the first pattern distortion degree and the first distortion of image degree at least One.
2. the method according to claim 1, wherein shot in the acquisition camera in first position first After image, further includes:
The camera is fixed or adjusted to the first position.
3. method according to claim 1 or 2, which is characterized in that shot in the acquisition camera in first position After first image, further includes: carry out quality evaluation to the first image, obtain the first quality assessment result;
Wherein, first quality assessment result includes the first exposure balance factor, the first pattern distortion of the first image At least one of in the factor and the first distortion of image factor;
First imaging effect is first quality assessment result or is calculated according to first quality assessment result Imaging parameters.
4. according to the method described in claim 3, it is characterized in that, obtaining first to the first image progress quality evaluation Quality assessment result specifically includes:
It obtains the overexposure of the first image and/or crosses the first accounting L1 of dark pixel;
According to the first accounting L1, the first exposure balance factor is obtained.
5. method according to claim 1 or 2, which is characterized in that shot in the acquisition camera in first position After first image, further includes:
Obtain the 4th image that the camera is shot in the second position;
Judge whether the first imaging effect of the first image meets the first preset condition;
Wherein, the first imaging effect of the first image meets the first preset condition, specifically includes:
First imaging effect of the first image is better than the 4th imaging effect of the 4th image;
Wherein, the 4th imaging effect specifically includes: the 4th exposure balance degree, the 4th pattern distortion of the 4th image At least one of in degree and the 4th portrait deformation extent.
6. a kind of filming apparatus, which is characterized in that the filming apparatus includes: to obtain module and processing module;
The acquisition module, the first image shot for obtaining camera in first position;
The processing module, for showing or depositing when the first imaging effect of the first image meets the first preset condition The second image that the camera is shot in the first position is stored up, second image is the first image or the camera shooting Third image of the head in first position shooting;
Wherein, first imaging effect specifically includes:
The first of the first image exposes in balance degree, the first pattern distortion degree and the first distortion of image degree at least One.
7. filming apparatus according to claim 6, which is characterized in that the filming apparatus further includes control module;
The control module, for the camera being fixed or adjusting to the first position.
8. filming apparatus according to claim 6 or 7, which is characterized in that the filming apparatus further includes quality evaluation mould Block;
The quality assessment modules obtain the first quality assessment result for carrying out quality evaluation to the first image;
Wherein, first quality assessment result includes the first exposure balance factor, the first pattern distortion of the first image At least one of in the factor and the first distortion of image factor;
First imaging effect is first quality assessment result or is calculated according to first quality assessment result Imaging parameters.
9. filming apparatus according to claim 8, which is characterized in that the quality assessment modules include the first quality evaluation Submodule;
The first quality evaluation submodule, is used for:
It obtains the overexposure of the first image and/or crosses the first accounting L1 of dark pixel;
According to the first accounting L1, the first exposure balance factor is obtained.
10. filming apparatus according to claim 6 or 7, which is characterized in that the acquisition module includes the first acquisition submodule Block;
First acquisition submodule, the 4th image shot for obtaining the camera in the second position;
The filming apparatus further includes judgment module;
The judgment module, for judging whether the first imaging effect of the first image is better than the 4th of the 4th image Imaging effect, if the first imaging effect of the first image is better than the 4th imaging effect of the 4th image, it is determined that institute The first imaging effect for stating the first image meets the first preset condition;
Wherein, the 4th imaging effect specifically includes: the 4th exposure balance degree, the 4th pattern distortion of the 4th image At least one of in degree and the 4th portrait deformation extent.
CN201811479252.1A 2018-12-05 2018-12-05 Shooting method and shooting device Active CN109274894B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811479252.1A CN109274894B (en) 2018-12-05 2018-12-05 Shooting method and shooting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811479252.1A CN109274894B (en) 2018-12-05 2018-12-05 Shooting method and shooting device

Publications (2)

Publication Number Publication Date
CN109274894A true CN109274894A (en) 2019-01-25
CN109274894B CN109274894B (en) 2021-01-08

Family

ID=65186965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811479252.1A Active CN109274894B (en) 2018-12-05 2018-12-05 Shooting method and shooting device

Country Status (1)

Country Link
CN (1) CN109274894B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236086A (en) * 2008-01-31 2008-08-06 北京控制工程研究所 Ultraviolet moon sensor output data evaluation and judging method
CN104427234A (en) * 2013-09-02 2015-03-18 联想(北京)有限公司 Image distortion correction method and electronic device
CN104754218A (en) * 2015-03-10 2015-07-01 广东欧珀移动通信有限公司 Intelligent photographing method and terminal
CN104883495A (en) * 2015-04-30 2015-09-02 广东欧珀移动通信有限公司 Shooting method and device
CN105139404A (en) * 2015-08-31 2015-12-09 广州市幸福网络技术有限公司 Identification camera capable of detecting photographing quality and photographing quality detecting method
CN105959542A (en) * 2016-05-17 2016-09-21 联想(北京)有限公司 Image processing method and electronic device
CN106027907A (en) * 2016-06-30 2016-10-12 维沃移动通信有限公司 Method for automatically adjusting camera, and mobile terminal
CN106464755A (en) * 2015-02-28 2017-02-22 华为技术有限公司 Method for automatically adjusting camera and electronic device
CN108111751A (en) * 2017-12-12 2018-06-01 北京小米移动软件有限公司 Shooting angle method of adjustment and device
US10218901B2 (en) * 2017-04-05 2019-02-26 International Business Machines Corporation Picture composition adjustment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236086A (en) * 2008-01-31 2008-08-06 北京控制工程研究所 Ultraviolet moon sensor output data evaluation and judging method
CN104427234A (en) * 2013-09-02 2015-03-18 联想(北京)有限公司 Image distortion correction method and electronic device
CN106464755A (en) * 2015-02-28 2017-02-22 华为技术有限公司 Method for automatically adjusting camera and electronic device
CN104754218A (en) * 2015-03-10 2015-07-01 广东欧珀移动通信有限公司 Intelligent photographing method and terminal
CN104883495A (en) * 2015-04-30 2015-09-02 广东欧珀移动通信有限公司 Shooting method and device
CN105139404A (en) * 2015-08-31 2015-12-09 广州市幸福网络技术有限公司 Identification camera capable of detecting photographing quality and photographing quality detecting method
CN105959542A (en) * 2016-05-17 2016-09-21 联想(北京)有限公司 Image processing method and electronic device
CN106027907A (en) * 2016-06-30 2016-10-12 维沃移动通信有限公司 Method for automatically adjusting camera, and mobile terminal
US10218901B2 (en) * 2017-04-05 2019-02-26 International Business Machines Corporation Picture composition adjustment
CN108111751A (en) * 2017-12-12 2018-06-01 北京小米移动软件有限公司 Shooting angle method of adjustment and device

Also Published As

Publication number Publication date
CN109274894B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN107770438B (en) A kind of photographic method and mobile terminal
CN108762640A (en) A kind of display methods and terminal of barrage information
CN108182896B (en) A kind of brightness detection method, device and mobile terminal
CN107943551A (en) A kind of screen display method and mobile terminal
CN108989678A (en) A kind of image processing method, mobile terminal
CN109743498A (en) A kind of shooting parameter adjustment method and terminal device
CN109857495A (en) A kind of display control method and terminal device
CN107566749A (en) Image pickup method and mobile terminal
CN109343693A (en) A kind of brightness adjusting method and terminal device
CN108848256A (en) A kind of key control method and double screen terminal of double screen terminal
CN109819166A (en) A kind of image processing method and electronic equipment
CN109005355A (en) A kind of image pickup method and mobile terminal
CN110223237A (en) Adjust the method and terminal device of image parameter
CN109117240A (en) A kind of method of controlling operation thereof and mobile terminal
CN109005314A (en) A kind of image processing method and terminal
CN109413264A (en) A kind of background picture method of adjustment and terminal device
CN109033912A (en) A kind of recognition methods of identification code and mobile terminal
CN108317992A (en) A kind of object distance measurement method and terminal device
CN109859718A (en) Screen brightness regulation method and terminal device
CN109756630A (en) A kind of screen control method and terminal device
CN109639981A (en) A kind of image capturing method and mobile terminal
CN109858447A (en) A kind of information processing method and terminal
CN109547700A (en) Photographic method and terminal
CN109729336A (en) A kind of display methods and device of video image
CN109167917A (en) A kind of image processing method and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant