CN105657289B - Control method, control device and electronic device - Google Patents

Control method, control device and electronic device Download PDF

Info

Publication number
CN105657289B
CN105657289B CN201610188467.2A CN201610188467A CN105657289B CN 105657289 B CN105657289 B CN 105657289B CN 201610188467 A CN201610188467 A CN 201610188467A CN 105657289 B CN105657289 B CN 105657289B
Authority
CN
China
Prior art keywords
value
control
exposure
module
human face
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201610188467.2A
Other languages
Chinese (zh)
Other versions
CN105657289A (en
Inventor
吴磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610188467.2A priority Critical patent/CN105657289B/en
Publication of CN105657289A publication Critical patent/CN105657289A/en
Application granted granted Critical
Publication of CN105657289B publication Critical patent/CN105657289B/en
Expired - Fee Related 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/70Circuitry for compensating brightness variation in the scene
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/60Extraction of image or video features relating to illumination properties, e.g. using a reflectance or lighting model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/165Detection; Localisation; Normalisation using facial parts and geometric relationships
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors

Abstract

The invention discloses a kind of control method, and for controlling imaging device, imaging device includes synthesis module.In control method, the human face region in preview image is identified first.Then bright portion and the dark portion of human face region are identified.Then calculate first contrast value in bright portion and dark portion and multiple exposure bias values are calculated according to the first contrast value.Finally, imaging device is controlled to be exposed according to exposure bias value to obtain multiple material images.Synthesis module is used to carry out multiple material images HDR processing to obtain composograph, and the second contrast value of human face region is more than or equal to first predetermined value in composograph.In this way, handled by HDR to obtain composograph.The overall brightness of the facial image of composograph is more balanced, and the details of regional can fully show, and still there is certain contrast value in the bright portion of human face region with dark portion, therefore preferable three-dimensional sense and the sense of reality can be presented in face.The invention also discloses a kind of control device and electronic device.

Description

Control method, control device and electronic device
Technical field
The present invention relates to shooting technology, more particularly to a kind of control method, control device and electronic device.
Background technology
Existing high dynamic range (high dynamic range, HDR) is more by using different time for exposure shootings Two field picture, then composograph so that the bright portion of composograph and dark portion all rationally expose, so as to which bright portion and dark is presented at the same time The details in portion.However, it is possible to bring other problems using HDR functions, for example, contrast, which reduces, may cause face three-dimensional sense not Foot, is also easy to make skin tarnish and highlight excessive skin detail, user experience is poor.
The content of the invention
Embodiments of the present invention are intended at least solve one of technical problem existing in the prior art.It is for this reason, of the invention Embodiment need to provide a kind of control method, control device and electronic device.
The present invention provides a kind of control method, and for controlling imaging device, the imaging device includes synthesis module;It is described Control method comprises the following steps:
First identification step, identifies the human face region in preview image;
Second identification step, identifies bright portion and the dark portion of the human face region;
First calculation procedure, calculates the first contrast value for stating portion and dark portion clearly and is calculated according to first contrast value more A exposure bias value;And
First rate-determining steps, control the imaging device to be exposed according to the exposure bias value to obtain multiple material figures Picture;The synthesis module is used to carry out multiple described material images HDR processing to obtain composograph, in the composograph Second contrast value of the human face region is more than or equal to first predetermined value.
In this way, being handled by HDR to obtain composograph, while ensure that the human face region of composograph has certain contrast Value.The overall brightness of the facial image of composograph is more balanced, and the details of regional can fully show, and human face region Still there is certain contrast value in bright portion with dark portion, therefore preferable three-dimensional sense and the sense of reality can be presented in face.Solves the prior art Some problems.
In some embodiments, the control method includes:
Second calculation procedure, calculates area accounting of the human face region in the preview image;And
First judgment step, judges whether the area accounting is more than second threshold and is less than first threshold, if so, into Second identification step.
In some embodiments, the control method includes:
Second rate-determining steps, control the imaging device to expose when the area accounting is greater than or equal to the first threshold Photoimaging.
In some embodiments, the control method includes:
3rd rate-determining steps, when the area accounting is less than or equal to the second threshold according to the preview image 3rd contrast value carries out HDR processing.
In some embodiments, the control method includes:
Second judgment step, judges institute after the first contrast value for stating portion and dark portion clearly is calculated in first calculation procedure State whether the first contrast value is less than second predetermined value;And
4th rate-determining steps, control the imaging device to expose when first contrast value is less than the second predetermined value It is imaged and terminates to take pictures after exposure image;
When first contrast value is not less than the second predetermined value, first calculation procedure is anti-according to described first The multiple exposure bias values of mathematic interpolation, subsequently into first rate-determining steps.
In some embodiments, the control method includes:
3rd calculation procedure, calculates the general brightness of the human face region;
Regulating step, exposure is adjusted so that the general brightness of the preview image reaches according to the general brightness Predetermined brightness value simultaneously obtains Expose f iotaducials value according to the current exposure, and the exposure bias value is with the Expose f iotaducials value On the basis of;And
First rate-determining steps include control sub-step, and the control sub-step controls the imaging device according to Expose f iotaducials value and the exposure bias value are exposed to obtain multiple described material images.
The present invention also provides a kind of control device, and for controlling imaging device, the imaging device includes synthesis module;Institute Stating control device includes:
First identification module, for identifying the human face region in preview image;
The second identification module being connected with first identification module, for identifying the bright portion of the human face region and dark Portion;
The first computing module being connected with second identification module, states the first contrast of portion and dark portion clearly for calculating It is worth and multiple exposure bias values is calculated according to first contrast value;And
The first control module being connected with first computing module, for controlling the imaging device according to the exposure Offset is exposed to obtain multiple material images;The synthesis module be used for multiple described material images carry out HDR processing with Composograph is obtained, the second contrast value of human face region described in the composograph is more than or equal to first predetermined value.
In some embodiments, the control device includes:
Second computing module, for calculating area accounting of the human face region in the preview image;And
First judgment module, for judging whether the area accounting is more than second threshold and is less than first threshold;It is described Second identification is used to identify the face area when the area accounting is less than the first threshold and is more than the second threshold The bright portion in domain and dark portion;
In some embodiments, the control device includes:
Second control module, for controlling the imaging dress when the area accounting is greater than or equal to the first threshold Put exposure image.
In some embodiments, the control device includes:
3rd control module, for when the area accounting is less than or equal to the second threshold according to the preview graph 3rd contrast value of picture carries out HDR processing.
In some embodiments, the control device includes:
Second judgment module, for sentencing after the first contrast value for stating portion and dark portion clearly is calculated in first computing module Whether first contrast value of breaking is less than second predetermined value;
4th control module, for controlling the imaging device when first contrast value is less than the second predetermined value Exposure image simultaneously terminates to take pictures after exposure image;
First computing module is additionally operable to when first contrast value is not less than the second predetermined value, according to described First contrast value calculates multiple exposure bias values.
In some embodiments, the control device includes:
3rd computing module, for calculating the general brightness of the human face region;And
Adjustment module, for adjusting exposure so that the general brightness of the preview image according to the general brightness Reach predetermined brightness value and using the current exposure as Expose f iotaducials value, the exposure bias value is with the Expose f iotaducials On the basis of value;And
First control module includes control submodule, and the control submodule controls the imaging device according to Expose f iotaducials value and the exposure bias value are exposed to obtain multiple described material images.
The present invention also provides a kind of electronic device, in some embodiments, including imaging device and the above embodiment The control device.
In some embodiments, the electronic device includes mobile phone or tablet computer.
In some embodiments, the imaging device includes the Front camera of the mobile phone or the tablet computer.
The additional aspect and advantage of embodiments of the present invention will be set forth in part in the description, partly will be from following Description in become obvious, or recognized by the practice of embodiments of the present invention.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of embodiments of the present invention are from accompanying drawings below is combined to embodiment It will be apparent and be readily appreciated that in description, wherein:
Fig. 1 is the flow diagram of the control method of embodiment of the present invention.
Fig. 2 is the control device of embodiment of the present invention and the high-level schematic functional block diagram of electronic device.
Fig. 3 is the principle schematic of the control method of embodiment of the present invention.
Fig. 4 is the principle schematic of the control method of embodiment of the present invention.
Fig. 5 is the flow diagram of the control method of embodiment of the present invention.
Fig. 6 is the control device of embodiment of the present invention and the high-level schematic functional block diagram of electronic device.
Fig. 7 is the flow diagram of the control method of embodiment of the present invention.
Fig. 8 is the control device of embodiment of the present invention and the high-level schematic functional block diagram of electronic device.
Fig. 9 is the schematic diagram of the preview image of embodiment of the present invention.
Figure 10 is the flow diagram of the control method of embodiment of the present invention.
Figure 11 is the control device of embodiment of the present invention and the high-level schematic functional block diagram of electronic device.
Figure 12 is the schematic diagram of the preview image of embodiment of the present invention.
Figure 13 is the flow diagram of the control method of embodiment of the present invention.
Figure 14 is the control device of embodiment of the present invention and the high-level schematic functional block diagram of electronic device.
Figure 15 is the flow diagram of the control method of embodiment of the present invention.
Figure 16 is the control device of embodiment of the present invention and the high-level schematic functional block diagram of electronic device.
Embodiment
Embodiments of the present invention are described below in detail, the example of embodiment is shown in the drawings, wherein identical or class As label represent same or similar element from beginning to end or there is same or like element.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining embodiments of the present invention, and it is not intended that to the present invention's The limitation of embodiment.
- 4 are please referred to Fig.1, the control method of embodiment of the present invention can be used for control imaging device 130, imaging device 130 It may include synthesis module 131.Referring to Fig. 1, control method may include following steps:
Step S01, identifies the human face region 210 in preview image 200;
Step S02, identifies bright portion 211 and the dark portion 213 of human face region 210;
Step S03, calculates first contrast value in bright portion 211 and dark portion 213 and calculates multiple exposure compensatings according to contrast value Value;And
Step S04, control imaging device 130 are exposed according to exposure bias value to obtain multiple material images 300.Wherein close It is used to carry out multiple material images 300 HDR processing into module 131 to obtain composograph 400, face in composograph 400 Second contrast value in region 210 is more than or equal to first predetermined value.
Referring to Fig. 2, the control method of embodiment of the present invention can be real by the control device 110 of embodiment of the present invention It is existing.Control device 110 may include the first identification module 111, the second identification module 112, the first computing module 113 and the first control Module 114.Wherein step S01 can be realized that step S02 can be realized by the second identification module 112 by the first identification module 111, step Rapid S03 can be realized that step S04 can be realized by the first control module 114 by the first computing module 113.
That is, the first identification module 111 can be used for the human face region 210 in identification preview image 200.Second identification Module 112 can be used for bright portion 211 and the dark portion 213 of identification human face region 210.First computing module 113 can be used for calculating bright portion 211 calculate multiple exposure bias values with the first contrast value of dark portion 213 and according to contrast value.First control module 114 can be used for Control imaging device 130 is exposed according to exposure bias value to obtain multiple material images 300.
The control method or control device 110 of embodiment of the present invention can be applied to the electronic device of embodiment of the present invention 100。
The device capable of taking pictures such as many mobile phone, tablet computers is all taken pictures with HDR (high dynamic range) at present Function.HDR principles are then composograph 400 by using different time for exposure shoot multi-frame images so that composograph 400 bright portion 211 and all rationally exposures of dark portion 213, so as to which the details of bright portion 211 and dark portion 213 is presented at the same time.However, make During with HDR functions, in particular for the image for having face, it is possible to bring other problems, may make for example, light and shade contrast reduces Face three-dimensional sense deficiency on image, be also easy to make skin to tarnish and highlight excessive skin detail etc., user experience compared with Difference.
Referring to Fig. 2, preview image 200 refer to take pictures before imaging device 130 imaging sensor sensing extraneous light and give birth to Into image, the data of image are temporarily stored into caching, and preview image 200 is checked for user to be determined according to current shooting effect Surely want that pressing camera button takes pictures.In embodiments of the present invention, first identify preview image 200 human face region 210 and The bright portion 211 of human face region 210 and dark portion 213, then calculate the first contrast value of bright portion 211 and dark portion 213.Wherein first is anti- The absolute value that difference can be bright portion 211 with the difference of the brightness value of dark portion 213, such as by bright 211 region of portion and 213rd area of dark portion The average value of its brightness is asked to do subtraction again respectively in domain.
Then exposure bias value is calculated according to the first contrast value, the qualifications of calculating are to ensure that to be mended using above-mentioned exposure The second contrast value for repaying the human face region 210 for the composograph 400 that the photo being worth to obtained after HDR synthesis is more than or equal to First predetermined value.Wherein the second contrast value can be identical with the first contrast value, that is, uses the calculating side identical with the first contrast value Method calculates the difference of the bright portion 211 of the human face region 210 of composograph 400 and the brightness value of dark portion 213.Second contrast value is greater than One first predetermined value, so just can guarantee that the bright portion 211 of face of composograph 400 obtained after HDR processing and dark portion 213 still There is certain contrast so that face still keeps certain three-dimensional sense, composograph 400 is seemed truer and more comfortable.
The unit for weighing exposure bias value, the first contrast value and the second contrast value can be eV (Exposure Value), EV is that a numerical value for representing phtographic lens thang-kng ability is combined by shutter speed value and f-number, and in general eV is higher, into As the light-inletting quantity of device 130 is more, the photo taken is brighter on the whole;EV is lower, and the light-inletting quantity of imaging device 130 is fewer, claps The photo gone out is darker on the whole.Exposure bias value is a relative value relative to benchmark image.
Referring to Fig. 4, for example, the bright portion 211 of the human face region 210 of preview image 200 and the first contrast value of dark portion 213 For 4eV, the brightness value in bright portion 211 can be set as 2eV, dark portion 213 is -2eV (being used as benchmark using intermediate luminance), with traditional HDR processing methods, the exposure of material image 300 and dark portion 213 that the exposure bias value that may generate bright portion 211 respectively is -2eV The material image 300 of light offset+2eV, and the benchmark material image 310 without exposure compensating, are merged, are then obtained The brightness value in former bright 211 region of portion of the human face region 210 of composograph 400 and former 213 region of dark portion can be relatively.
And use the control method of embodiment of the present invention, it is ensured that the human face region 210 of composograph 400 still has necessarily Contrast, such as first predetermined value is 1eV, then the exposure bias value that can generate bright portion 211 respectively is the material figure of -1.5eV As the material image 300 that the exposure bias value of 300 and dark portion 213 is+1.5eV, then the obtained composite diagram synthesized is handled through HDR As the brightness in the bright portion 211 of 400 human face region 210 is changed into 0.5eV, the brightness of dark portion 213 is changed into -0.5eV, bright portion 211 and Dark portion 213 still has the contrast value of 1eV, can meet the requirement more than or equal to first predetermined value.In this way, the face of composograph 400 The overall brightness of image is more balanced, and the details of regional can fully show, and the bright portion 211 of human face region 210 and dark portion 213 still have certain contrast value, therefore preferable three-dimensional sense and the sense of reality can be presented in face.The material figure of embodiment of the present invention As 300 quantity is not limited to 3 or 5,7 etc..
Fig. 5-6 are referred to, in some embodiments, control method may include:Step S05, calculates human face region 210 and exists The area accounting of preview image 200;And
Step S06, judges whether area accounting is more than first threshold and is less than second threshold, if so, entering step S02.
Wherein step S05 can be realized that step S06 can be by some embodiment party by the second computing module of certain embodiments 115 First judgment module 116 of formula is realized.That is, the second computing module 115 is used to calculate human face region 210 in preview image 200 area accounting.First judgment module 116 is used to judge whether area accounting is less than first threshold and is more than second threshold. Second identification module 112 is used to identify the bright of human face region 210 when area accounting is less than first threshold and is more than second threshold Portion 211 and dark portion 213.
That is, the area in human face region 210 is accounted for when the ratio of whole preview image 200 falls in a certain range and used The HDR processing methods of embodiment of the present invention.In this way, use different processing for the different situations of every preview image 200 Mode, is more met the image of user demand.
Fig. 7-9 are referred to, in the present embodiment, control method may include:
Step S07,130 exposure image of device is formed as in area accounting more than or equal to first threshold time control.
Step S07 can be realized that i.e. the second control module 117 is used for by the second control module 117 of certain embodiments Area accounting is formed as 130 exposure image of device more than or equal to first threshold time control.
Please refer to Fig. 9, that is to say, that if 210 area accounting of human face region is too big, more than one first threshold is (such as 0.8), or even almost cover whole preview image 200, then synthesize without HDR (including traditional HDR processing modes and this hair The HDR processing modes of the control method of bright embodiment).Can more fully it be shown due to obtaining composograph 400 after HDR processing The details of regional, or even highlight excessive skin detail, it is impossible to meet the esthetic requirement of user, therefore common expose can be used Light mode, which exposes, takes pictures.
0-12 is please referred to Fig.1, in some embodiments, control method may include:
Step S08, carries out when area accounting is less than or equal to second threshold according to the 3rd contrast value of preview image 200 HDR processing.
Step S08 can be realized that is, the 3rd controls by the 3rd control module 118 of the control device 110 of certain embodiments Module 118 can be used for being carried out at HDR according to the contrast value of preview image 200 when area accounting is less than or equal to second threshold Reason.
Please refer to Figure 12, that is to say, that if the area accounting of human face region 210 is too small, less than one second threshold (such as 0.04), face is no longer the main body of whole preview image 200 at this time, can able person body or surrounding scenes be only preview graph The main body of picture 200, will not generally pay close attention to very much the details of face when people check or appreciate this image, therefore can be to view picture preview Image 200 is handled using common HDR processing modes, i.e., is carried out according to the 3rd contrast value of whole preview image 200 at HDR Reason, obtains multiple different material images 300 of exposure, then carries out HDR synthesis to obtain composograph 400.In this way, in face When less eye-catching, more look after the overall of preview image 200 and effect is presented, meet the aesthetic requirement of user, improve imaging The intelligence degree of device 130, can lift user experience.
3-14 is please referred to Fig.1, in some embodiments, control method may include:
Step S09, judges whether the first contrast value is less than second predetermined value;And
Step S10, is less than second predetermined value control 130 exposure image of imaging device in the first contrast value.
Step S09 can use the second judgment module of certain embodiments 119, and step S10 can use certain embodiments 4th control module 121 is realized.That is the second judgment module 119 is used to judge whether the first contrast value is less than second predetermined value.The Four control modules 121 can be used for being less than second predetermined value control 130 exposure image of imaging device in the first contrast value.
It is second pre- less than one that is, if the first contrast value of the human face region 210 of preview image 200 is too small Definite value, it is not necessary to using the HDR processing modes of the control method of embodiment of the present invention handle.Such as second is made a reservation for Value is adjusted to 1.3eV, when the first contrast value is less than 1.3eV, illustrates the bright portion 211 of human face region 210 and the brightness pair of dark portion 213 Than not being to arrange by force very much, illustrate that the three-dimensional sense of face in preview image 200 may be natively not strong, if carrying out HDR processing, understand into one Step weakens its three-dimensional sense and the sense of reality, and brings other problems.
And require the second contrast value of composograph 400 to be greater than in the control method of embodiment of the present invention and be equal to First predetermined value (such as 1eV), therefore, carries out the space of exposure compensating of the material image 300 of HDR processing with regard to very little.Some In embodiment, second predetermined value can be identical with first predetermined value, is all such as 1eV.
5-16 is please referred to Fig.1, in some embodiments, control method may include:
Step S11, calculates the general brightness of human face region 210;And
Step S12, exposure is adjusted so that the general brightness of preview image 200 reaches predetermined brightness value according to general brightness And Expose f iotaducials value is obtained according to current exposure, exposure bias value is on the basis of Expose f iotaducials value;
Step S04 may include that step S0401, step S0401 control imaging device 130 to be mended according to Expose f iotaducials value and exposure Value exposure is repaid to obtain multiple material images 300.
Step S11, step S12 and step S0401 can be realized by the control device 110 of certain embodiments.Wherein S11 can Realized by the 3rd computing module 122 of control device 110, step S12 can be realized by the adjustment module 123 of control device 110, step Rapid S0401 can be realized by the control submodule 1141 of the first control module 114 of control device 110.
That is the 3rd computing module 122 can be used for the general brightness for calculating human face region 210.Adjustment module 123 can be used for root Exposure is adjusted according to general brightness so that the general brightness of preview image 200 reaches predetermined brightness value and makees current exposure For Expose f iotaducials value, exposure bias value is on the basis of Expose f iotaducials value.First control module 114 can including control submodule 1141 Control submodule 1141 controls imaging device 130 according to Expose f iotaducials value and exposure bias value exposure to obtain multiple material images 300。
The principle of HDR processing is using the medium image of a brightness as benchmark image, and shooting is obtained than this image more Bright and darker image as material image 300, as material image 300 and exposure bias value that exposure bias value is+2eV for- The material image 300 of 2eV.
Exposure can be adjusted under normal conditions so that the overall brightness of preview image 200 exposes when being 18 degree of ashes (i.e. neutral ash) Photo-beat obtains image as benchmark image.And in the present embodiment, not according to the brightness of view picture preview image 200, but only Exposure is adjusted so that the overall brightness of human face region 210 reaches according to the general brightness (such as average brightness) of human face region 210 Predetermined brightness value (such as 18 degree ashes).In this way, being conducive to be lifted the perception of human face region 210, help to meet user especially certainly Clap the aesthetic requirement of user.
The exposure bias value (+2eV, -2eV etc.) of other material images 300 is corresponded to this benchmark material image 310 Expose f iotaducials value on the basis of and reference, then according to Expose f iotaducials value and multiple exposure bias values exposure with obtain multiple element Material image 300, then carry out HDR synthesis.It is appreciated that the brightness of the human face region 210 of the last composograph 400 obtained eventually should It is the fluctuating of predetermined brightness value (such as 18 degree of ashes), so that the brightness of human face region 210 is suitable, helps to meet to use The aesthetic requirement of family especially self-timer user.
Referring to Fig. 2, the electronic device 100 of embodiment of the present invention, it may include imaging device 130 and the above embodiment Control device 110.
In some embodiments, electronic device 100 may include mobile phone or tablet computer.Wherein, imaging device 130 can be with It is the Front camera of mobile phone or tablet computer.
Mobile phone or tablet computer facilitate portable, are currently the wide photographing device used of people.And mobile phone or tablet electricity Brain configures Front camera and rearmounted camera at the same time extensively, and Front camera is used by a user in self-timer extensively, when user carries out self-timer, one As photo human face region 210 aesthetic feeling requirement it is very high and usually less pay attention to the scenery around face, it is suitable at this time to use Control method, control device 110 or the electronic device 100 of embodiment of the present invention are taken pictures.
Not deployed other parts, can join the control of embodiment of above in the electronic device 100 of embodiment of the present invention The corresponding part of device 110 or control method, is no longer developed in details herein.
In the description of embodiments of the present invention, it is to be understood that term " " center ", " longitudinal direction ", " transverse direction ", " length Degree ", " width ", " thickness ", " on ", " under ", "front", "rear", "left", "right", " vertical ", " level ", " top ", " bottom ", " interior ", The orientation or position relationship of the instruction such as " outer ", " clockwise ", " counterclockwise " are based on orientation shown in the drawings or position relationship, only It is to be described for the ease of description embodiments of the present invention with simplified, rather than indicates or imply that the device of meaning or element are necessary With specific orientation, with specific azimuth configuration and operation, therefore it is not intended that limitation to embodiments of the present invention. In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance or implicit Indicate the quantity of indicated technical characteristic.Thus, " first " is defined, the feature of " second " can be expressed or impliedly wrap Include one or more feature.In the description of embodiments of the present invention, " multiple " are meant that two or two More than, unless otherwise specifically defined.
, it is necessary to illustrate in the description of embodiments of the present invention, unless otherwise clearly defined and limited, term " installation ", " connected ", " connection " should be interpreted broadly, for example, it may be fixedly connected or be detachably connected, or one Connect body;Can mechanically connect or be electrically connected or can mutually communicate;It can be directly connected, can also lead to Cross intermediary to be indirectly connected, can be the interaction relationship of connection inside two elements or two elements.For ability For the those of ordinary skill in domain, it can understand that above-mentioned term in embodiments of the present invention specific contains as the case may be Justice.
In embodiments of the present invention, unless otherwise clearly defined and limited, fisrt feature second feature it " on " or it " under " can directly be contacted including the first and second features, it is not directly to connect that can also include the first and second features Touch but pass through the other characterisation contact between them.Moreover, fisrt feature second feature " on ", " top " and " on Face " includes fisrt feature directly over second feature and oblique upper, or to be merely representative of fisrt feature level height special higher than second Sign.Fisrt feature second feature " under ", " lower section " and " below " include fisrt feature directly over second feature and tiltedly on Side, or be merely representative of fisrt feature level height and be less than second feature.
Following disclosure provides many different embodiments or example is used for realizing embodiments of the present invention not Same structure.In order to simplify the disclosure of embodiments of the present invention, hereinafter the component and setting of specific examples are described.When So, they are merely examples, and is not intended to limit the present invention.In addition, embodiments of the present invention can be in different examples Repeat reference numerals and/or reference letter in son, this repetition are for purposes of simplicity and clarity, itself not indicate to be begged for By the relation between various embodiments and/or setting.In addition, the various specific techniques that embodiments of the present invention provide With the example of material, but application and/or other materials those of ordinary skill in the art may realize that other techniques makes With.
In the description of this specification, reference term " embodiment ", " some embodiments ", " schematically implementation The description of mode ", " example ", " specific example " or " some examples " etc. means the tool with reference to the embodiment or example description Body characteristics, structure, material or feature are contained at least one embodiment or example of the present invention.In the present specification, Schematic expression of the above terms is not necessarily referring to identical embodiment or example.Moreover, the specific features of description, knot Structure, material or feature can combine in an appropriate manner in any one or more embodiments or example.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used for realization specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic at the same time in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or if necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of embodiments of the present invention can be with hardware, software, firmware or combinations thereof come real It is existing.In the above-described embodiment, multiple steps or method can use storage in memory and by suitable instruction execution system The software or firmware of execution is realized.If for example, being realized with hardware, with another embodiment, ability can be used Any one of following technology known to domain or their combination are realized:With for realizing logic function to data-signal The discrete logic of logic gates, has the application-specific integrated circuit of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in various embodiments of the present invention can integrate in a processor, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..
Although the embodiment of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is impossible to limitation of the present invention is interpreted as, those of ordinary skill in the art within the scope of the invention can be to above-mentioned Embodiment is changed, changes, replacing and modification.

Claims (15)

1. a kind of control method, for controlling imaging device, it is characterised in that the imaging device includes synthesis module;It is described Control method comprises the following steps:
First identification step, identifies the human face region in preview image;
Second identification step, identifies bright portion and the dark portion of the human face region;
First calculation procedure, calculates the first contrast value for stating portion and dark portion clearly and calculates multiple exposures according to first contrast value Light offset;And
First rate-determining steps, control the imaging device to be exposed according to the exposure bias value to obtain multiple material images;Institute State synthesis module and be used to carry out multiple described material images HDR processing to obtain composograph, described in the composograph Second contrast value of human face region is more than or equal to first predetermined value.
2. control method as claimed in claim 1, it is characterised in that the control method includes:Second calculation procedure, calculates Area accounting of the human face region in the preview image;And
First judgment step, judges whether the area accounting is more than second threshold and is less than first threshold, if so, described in Second identification step.
3. control method as claimed in claim 2, it is characterised in that the control method includes:
Second rate-determining steps, controlled when the area accounting is greater than or equal to the first threshold imaging device exposure into Picture.
4. control method as claimed in claim 3, it is characterised in that the control method includes:
3rd rate-determining steps, when the area accounting is less than or equal to the second threshold according to the 3rd of the preview image Contrast value carries out HDR processing.
5. control method as claimed in claim 1, it is characterised in that the control method includes:
Second judgment step, calculates to state clearly described the is judged after first contrast value in portion and dark portion in first calculation procedure Whether one contrast value is less than second predetermined value;And
4th rate-determining steps, the imaging device exposure image is controlled when first contrast value is less than the second predetermined value And terminate to take pictures after exposure image;
When first contrast value is not less than the second predetermined value, first calculation procedure is according to first contrast value Multiple exposure bias values are calculated, subsequently into first rate-determining steps.
6. control method as claimed in claim 1, it is characterised in that the control method includes:
3rd calculation procedure, calculates the general brightness of the human face region;
Regulating step, exposure is adjusted so that the general brightness of the preview image reaches predetermined according to the general brightness Brightness value simultaneously obtains Expose f iotaducials value according to the current exposure, and the exposure bias value is using the Expose f iotaducials value as base It is accurate;And
First rate-determining steps include control sub-step, and the control sub-step controls the imaging device according to the exposure A reference value and the exposure bias value are exposed to obtain multiple described material images.
7. a kind of control device, for controlling imaging device, it is characterised in that the imaging device includes synthesis module;It is described Control device includes:
First identification module, for identifying the human face region in preview image;
The second identification module being connected with first identification module, for identifying bright portion and the dark portion of the human face region;
The first computing module being connected with second identification module, for calculating first contrast value in the portion that states clearly and dark portion simultaneously Multiple exposure bias values are calculated according to first contrast value;And
The first control module being connected with first computing module, for controlling the imaging device according to the exposure compensating Value is exposed to obtain multiple material images;The synthesis module is used to carry out multiple described material images HDR processing to obtain Composograph, the second contrast value of human face region described in the composograph are more than or equal to first predetermined value.
8. control device as claimed in claim 7, it is characterised in that the control device includes:Second computing module, is used for Calculate area accounting of the human face region in the preview image;And
First judgment module, for judging whether the area accounting is more than second threshold and is less than first threshold;Described second Identification is used to identify the human face region when the area accounting is less than the first threshold and is more than the second threshold Bright portion and dark portion;
9. control device as claimed in claim 8, it is characterised in that the control device includes:
Second control module, for controlling the imaging device to expose when the area accounting is greater than or equal to the first threshold Photoimaging.
10. control device as claimed in claim 8, it is characterised in that the control device includes:
3rd control module, for when the area accounting is less than or equal to the second threshold according to the preview image 3rd contrast value carries out HDR processing.
11. control device as claimed in claim 7, it is characterised in that the control device includes:
Second judgment module, for judging institute after the first contrast value for stating portion and dark portion clearly is calculated in first computing module State whether the first contrast value is less than second predetermined value;
4th control module, for controlling the imaging device to expose when first contrast value is less than the second predetermined value It is imaged and terminates to take pictures after exposure image;
First computing module is additionally operable to when first contrast value is not less than the second predetermined value, according to described first Contrast value calculates multiple exposure bias values.
12. control device as claimed in claim 7, it is characterised in that the control device includes:
3rd computing module, for calculating the general brightness of the human face region;And
Adjustment module, for adjusting exposure so that the general brightness of the preview image reaches according to the general brightness Predetermined brightness value and using the current exposure as Expose f iotaducials value, the exposure bias value using the Expose f iotaducials value as Benchmark;And
First control module includes control submodule, and the control submodule controls the imaging device according to the exposure A reference value and the exposure bias value are exposed to obtain multiple described material images.
A kind of 13. electronic device, it is characterised in that the control including imaging device and as described in claim 7-12 any one Device.
14. electronic device as claimed in claim 13, it is characterised in that the electronic device includes mobile phone or tablet computer.
15. electronic device as claimed in claim 14, it is characterised in that the imaging device includes the mobile phone or described flat The Front camera of plate computer.
CN201610188467.2A 2016-03-28 2016-03-28 Control method, control device and electronic device Expired - Fee Related CN105657289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610188467.2A CN105657289B (en) 2016-03-28 2016-03-28 Control method, control device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610188467.2A CN105657289B (en) 2016-03-28 2016-03-28 Control method, control device and electronic device

Publications (2)

Publication Number Publication Date
CN105657289A CN105657289A (en) 2016-06-08
CN105657289B true CN105657289B (en) 2018-05-08

Family

ID=56496451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610188467.2A Expired - Fee Related CN105657289B (en) 2016-03-28 2016-03-28 Control method, control device and electronic device

Country Status (1)

Country Link
CN (1) CN105657289B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959566A (en) * 2016-06-21 2016-09-21 北京奇虎科技有限公司 Image pickup mode switching method and device, and automobile data recorder
CN106131449B (en) * 2016-07-27 2019-11-29 维沃移动通信有限公司 A kind of photographic method and mobile terminal
JP6720881B2 (en) * 2017-01-19 2020-07-08 カシオ計算機株式会社 Image processing apparatus and image processing method
CN106657798A (en) * 2017-02-28 2017-05-10 上海传英信息技术有限公司 Photographing method for intelligent terminal
CN106791451B (en) * 2017-02-28 2020-09-22 上海传英信息技术有限公司 Photographing method of intelligent terminal
CN107172364B (en) * 2017-04-28 2021-01-26 努比亚技术有限公司 Image exposure compensation method and device and computer readable storage medium
CN107155063B (en) * 2017-06-19 2020-10-20 深圳市泰衡诺科技有限公司上海分公司 Night scene shooting control method, system and equipment
CN111090381B (en) * 2018-10-24 2021-11-19 广州金山移动科技有限公司 Display position adjusting method and device and electronic equipment
CN109688389A (en) * 2018-11-23 2019-04-26 苏州佳世达电通有限公司 Imaging device and parameter regulation means
CN109729275A (en) * 2019-03-14 2019-05-07 Oppo广东移动通信有限公司 Imaging method, device, terminal and storage medium
CN111510626B (en) * 2020-04-21 2022-01-04 Oppo广东移动通信有限公司 Image synthesis method and related device
CN114268745A (en) * 2020-09-16 2022-04-01 北京小米移动软件有限公司 Brightness adjusting method, device, equipment and storage medium
CN115514875A (en) * 2021-06-22 2022-12-23 北京小米移动软件有限公司 Image processing method and device
CN117560552A (en) * 2024-01-10 2024-02-13 荣耀终端有限公司 Shooting control method, electronic device and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170650A (en) * 2006-10-24 2008-04-30 致伸科技股份有限公司 Highly dynamic image method and system generating specific scenario
CN101841660A (en) * 2009-01-27 2010-09-22 索尼公司 Imaging device and formation method
US8305453B2 (en) * 2009-05-20 2012-11-06 Pentax Ricoh Imaging Company, Ltd. Imaging apparatus and HDRI method
CN103095979A (en) * 2011-11-07 2013-05-08 华晶科技股份有限公司 Image processing method and imaging capture device of face overexposure
CN104038704A (en) * 2014-06-12 2014-09-10 小米科技有限责任公司 Backlight portrait scene photographing processing method and device
CN104869319A (en) * 2014-02-20 2015-08-26 华硕电脑股份有限公司 Image processing method and image processing device
CN104881644A (en) * 2015-05-25 2015-09-02 华南理工大学 Face image acquisition method under uneven lighting condition

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170650A (en) * 2006-10-24 2008-04-30 致伸科技股份有限公司 Highly dynamic image method and system generating specific scenario
CN101841660A (en) * 2009-01-27 2010-09-22 索尼公司 Imaging device and formation method
US8305453B2 (en) * 2009-05-20 2012-11-06 Pentax Ricoh Imaging Company, Ltd. Imaging apparatus and HDRI method
CN103095979A (en) * 2011-11-07 2013-05-08 华晶科技股份有限公司 Image processing method and imaging capture device of face overexposure
CN104869319A (en) * 2014-02-20 2015-08-26 华硕电脑股份有限公司 Image processing method and image processing device
CN104038704A (en) * 2014-06-12 2014-09-10 小米科技有限责任公司 Backlight portrait scene photographing processing method and device
CN104881644A (en) * 2015-05-25 2015-09-02 华南理工大学 Face image acquisition method under uneven lighting condition

Also Published As

Publication number Publication date
CN105657289A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN105657289B (en) Control method, control device and electronic device
CN109005366B (en) Night scene shooting processing method and device for camera module, electronic equipment and storage medium
US11503219B2 (en) Image processing apparatus, image capture apparatus, and control method for adding an effect of a virtual light source to a subject
CN101753814B (en) Filming device, illumination processing device and illumination processing method
JP5791336B2 (en) Image processing apparatus and control method thereof
CN109218628A (en) Image processing method, device, electronic equipment and storage medium
CN109194882A (en) Image processing method, device, electronic equipment and storage medium
CN108495050A (en) Photographic method, device, terminal and computer readable storage medium
US8922705B2 (en) Method and apparatus for focusing on subject in digital image processing device
WO2019072190A1 (en) Image processing method, electronic apparatus, and computer readable storage medium
CN107241559A (en) Portrait photographic method, device and picture pick-up device
CN106454149B (en) Image capturing method, device and terminal device
CN105827980B (en) Focusing control method and device, image formation control method and device, electronic installation
WO2019011091A1 (en) Photographing reminding method and device, terminal and computer storage medium
CN110248107A (en) Image processing method and device
CN105915791B (en) Electronic apparatus control method and device, electronic device
US11526267B2 (en) Setting apparatus, setting method, and storage medium
CN110246101A (en) Image processing method and device
CN109361853A (en) Image processing method, device, electronic equipment and storage medium
CN103685928A (en) Image processing device, and method for processing image
CN110677557B (en) Image processing method, image processing device, storage medium and electronic equipment
US20220253993A1 (en) Image processing apparatus and image processing method
CN105594196A (en) Imaging device and imaging method
CN110519526B (en) Exposure time control method and device, storage medium and electronic equipment
JP6897036B2 (en) Image processing equipment, image processing methods and programs

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523859 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180508

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