CN108174088A - A kind of brightness adjusting method, device, terminal and computer readable storage medium - Google Patents

A kind of brightness adjusting method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN108174088A
CN108174088A CN201711432960.5A CN201711432960A CN108174088A CN 108174088 A CN108174088 A CN 108174088A CN 201711432960 A CN201711432960 A CN 201711432960A CN 108174088 A CN108174088 A CN 108174088A
Authority
CN
China
Prior art keywords
background
main body
brightness
shooting
brightness value
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.)
Pending
Application number
CN201711432960.5A
Other languages
Chinese (zh)
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.)
Shanghai Spreadrise Technologies Co Ltd
Original Assignee
Shanghai Spreadrise Technologies 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 Shanghai Spreadrise Technologies Co Ltd filed Critical Shanghai Spreadrise Technologies Co Ltd
Priority to CN201711432960.5A priority Critical patent/CN108174088A/en
Publication of CN108174088A publication Critical patent/CN108174088A/en
Priority to PCT/CN2018/123842 priority patent/WO2019129041A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • G06T7/33Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods
    • 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/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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/71Circuitry for evaluating the brightness variation
    • 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)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses a kind of brightness adjusting method, device, terminal and computer readable storage medium, wherein method includes:Identify the shooting main body in photographed scene, obtain different brightness values possessed by the shooting background in photographed scene in addition to main body is shot, and shooting background is divided into the low bright area of background highlight regions, background and background general brightness region according to different brightness values, the brightness of background highlight regions and the low bright area of background is adjusted respectively.Using the embodiment of the present invention, the brightness that can be directed to different shooting areas in photographed scene is adjusted.

Description

A kind of brightness adjusting method, device, terminal and computer readable storage medium
Technical field
It can the present invention relates to field of computer technology more particularly to a kind of brightness adjusting method, device, terminal and computer Read storage medium.
Background technology
With the development of the times and progressive, not only mm professional camera special can be completed shooting photo, current most of intelligence Mobile phone can also take the photo of camera level.Dark if there is photographic subjects when shooting photo, shooting background is relatively The tools such as bright situation, smart mobile phone or mm professional camera special adjust shooting brightness based on photographic subjects.Thus, it claps Preferable shooting brightness can be reached by taking the photograph object brightness, but the brightness of shooting background can be caused excessively bright, final so that the photograph of shooting The overall effect of piece is bad.For example, using mobile phone either camera shoots deep colour of skin main body under backlight scene when mobile phone or phase Chance adjusts the brightness of shooting area using face brightness as foundation, after face brightness is normal, leads to some parts of shooting background Overexposure.
Invention content
The embodiment of the present invention provides a kind of brightness adjusting method, device, terminal and computer readable storage medium, can be with needle The brightness of shooting areas different in photographed scene is adjusted.
In a first aspect, an embodiment of the present invention provides a kind of brightness adjusting method, this method includes:
Identify the shooting main body in photographed scene;
Obtain different brightness values possessed by the shooting background in photographed scene in addition to main body is shot;
Shooting background is divided into the low bright area of background highlight regions, background according to different brightness values and background is commonly bright Spend region;
The brightness of background highlight regions and the low bright area of background is adjusted respectively;
Wherein, the low bright area of background be with brightness value be less than first threshold shooting background region, background highlight bar Domain be with brightness value be more than second threshold shooting background region, first threshold be less than second threshold.
Optionally, brightness adjusting method further includes:
Obtain the brightness value of shooting main body;
When shooting the brightness value of main body not in shooting subject goal range of luminance values, the brightness for adjusting shooting main body is straight Brightness value to shooting main body is being shot in subject goal range of luminance values.
Optionally, brightness adjusting method further includes:
Obtain different brightness values possessed by shooting main body;
According to different brightness values will shoot main body divide based on highlight regions, the low bright area of main body and main body it is commonly bright Spend region;
The brightness of main body highlight regions and the low bright area of main body is adjusted respectively.
Wherein, the low bright area of main body be with brightness value be less than third threshold value shooting body region, main body highlight bar Domain be with brightness value be more than the 4th threshold value shooting body region, third threshold value be less than the 4th threshold value.
Optionally, the brightness of main body highlight regions and the low bright area of main body is adjusted respectively, including:
When the brightness value of main body highlight regions is not in the range of main body highlight regions target brightness value, adjusts main body and highlight The brightness in region is up to the brightness value of main body highlight regions is in the range of main body highlight regions target brightness value;
When the brightness value of the low bright area of main body is not in the range of the low bright area target brightness value of main body, it is low bright to adjust main body The brightness in region is up to the brightness value of the low bright area of main body is in the range of the low bright area target brightness value of main body;
Optionally, the brightness of background highlight regions and the low bright area of background is adjusted respectively, including:
When the brightness value of background highlight regions is not in the range of background highlight regions target brightness value, adjusts background and highlight The brightness in region is up to the brightness value of background highlight regions is in the range of background highlight bar target brightness value;
When the brightness value of the low bright area of background is not in the range of the low bright area target brightness value of background, it is low bright to adjust background The brightness in region is up to the brightness value of the low bright area of background is in the range of the low bright area target brightness value of background;
Optionally, the shooting main body in photographed scene is identified, including:
The feature of extraction shooting main body;
By feature compared with the body feature of default inventory, shooting main body is determined.
Optionally, it is bright before obtaining different brightness values possessed by the shooting background in photographed scene in addition to main body is shot Degree adjusting method further includes:
It is determined whether to enable brightness control functions;
If opening, perform and obtain different brightness values possessed by the shooting background in photographed scene in addition to main body is shot Step.
Second aspect, an embodiment of the present invention provides a kind of brightness regulating apparatus, which includes:
Recognition unit, for identifying the shooting main body in photographed scene;
Acquiring unit obtains different brightness values possessed by the shooting background in photographed scene in addition to main body is shot;
Division unit, for shooting background to be divided into the low bright area of background highlight regions, background according to different brightness values And background general brightness region;
Unit is adjusted, for adjusting the brightness of background highlight regions and the low bright area of background respectively.
Wherein, the low bright area of background be with brightness value be less than first threshold shooting background region, background highlight bar Domain be with brightness value be more than second threshold shooting background region, first threshold be less than second threshold.
Optionally, acquiring unit is additionally operable to obtain the brightness value of shooting main body;Unit is adjusted to be additionally operable to when shooting main body Brightness value adjusts the brightness of shooting main body until the brightness value of shooting main body exists or not shooting in subject goal range of luminance values It shoots in subject goal range of luminance values.
Optionally, acquiring unit is additionally operable to obtain different brightness values, division unit possessed by shooting main body and is additionally operable to According to different brightness values will shoot main body divide based on highlight regions, the low bright area of main body and main body general brightness region; Unit is adjusted, is additionally operable to the brightness for adjusting main body highlight regions and the low bright area of main body respectively.Wherein, the low bright area of main body is The brightness value having be less than third threshold value shooting body region, main body highlight regions be with brightness value be more than the 4th threshold value Shooting body region, third threshold value be less than the 4th threshold value.
Optionally, unit is adjusted for adjusting the specific side of the brightness of main body highlight regions and the low bright area of main body respectively Formula is:
When the brightness value of main body highlight regions is not in the range of main body highlight regions target brightness value, adjusts main body and highlight The brightness in region is up to the brightness value of main body highlight regions is in the range of main body highlight regions target brightness value;
When the brightness value of the low bright area of main body is not in the range of the low bright area target brightness value of main body, it is low bright to adjust main body The brightness in region is up to the brightness value of the low bright area of main body is in the range of the low bright area target brightness value of main body;
Optionally, unit is adjusted for adjusting the specific side of the brightness of background highlight regions and the low bright area of background respectively Formula is:
When the brightness value of background highlight regions is not in the range of background highlight regions target brightness value, adjusts background and highlight The brightness in region is up to the brightness value of background highlight regions is in the range of background highlight regions target brightness value;
When the brightness value of the low bright area of background is not in the range of the low bright area target brightness value of background, it is low bright to adjust background The brightness in region is up to the brightness value of the low bright area of background is in the range of the low bright area target brightness value of background;
Optionally, brightness regulating apparatus further includes:The characteristic point of extraction shooting main body;By feature and the main body of default inventory Feature compares, and determines shooting main body.
Optionally, brightness regulating apparatus further includes judging unit, for it is determined whether to enable brightness control functions;If it opens It opens, then possessed by the shooting background in acquiring unit acquisition photographed scene in addition to main body is shot the step of different brightness values.
The third aspect, an embodiment of the present invention provides a kind of terminals, including processor, input equipment, output equipment and deposit Reservoir, processor, input equipment, output equipment and memory are connected with each other, wherein, memory supports terminal to perform for storing The computer program of the above method, computer program include program instruction, and processor is configured for caller instruction, performs The method of above-mentioned first aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, computer readable storage mediums Computer program is stored with, computer program includes program instruction, and program instruction performs processor when being executed by a processor The method of above-mentioned first aspect.
After shooting main body in identification photographed scene of the embodiment of the present invention, the bat in addition to main body is shot in photographed scene is obtained Take the photograph possessed by background different brightness values, and it is low according to different brightness values shooting background to be divided into background highlight regions, background Bright area and background general brightness region, terminal adjust brightness of the background highlight regions with the low bright area of background respectively, can be with needle The brightness of shooting areas different in photographed scene is adjusted.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for ability For the those of ordinary skill of domain, without having to pay creative labor, others are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of schematic flow diagram of brightness adjusting method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow diagram of another brightness adjusting method provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of brightness regulating apparatus provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without making creative work Example, shall fall within the protection scope of the present invention.
It is a kind of schematic flow diagram of brightness adjusting method provided in an embodiment of the present invention with reference to figure 1.As shown in Figure 1 Brightness adjusting method, it may include following steps:
101st, the shooting main body in terminal recognition photographed scene.
Wherein, terminal can be mm professional camera special, such as digital camera, single anti-, or the mobile phone with camera function, The amateur camera such as tablet computer.Shooting main body can be a personage or can be multiple personages.
Specifically, terminal or terminal can call the shooting photo software in terminal, it is made to be directed at photographed scene, identification is clapped Take the photograph the shooting main body in scene.Optionally, identify that the shooting main body in photographed scene may include:The feature of extraction shooting main body Point;By feature compared with the body feature of default inventory, shooting main body is determined.Feasible mode can be:Terminal passes through face Shooting main body in recognizer identification photographed scene, such as terminal can first detect face and position facial key feature Point cuts human face region, after pretreatment, can add in face recognition algorithms extraction facial characteristics, and the spy that will be extracted Sign is compared with the known face of inventory, completes the identification of shooting main body.Above-mentioned face recognition algorithms design is flat in two dimension On face, optionally, terminal can also identify the shooting main body in photographed scene, such as space point by other face recognition algorithms Analysis method or locality preserving projections etc., this embodiment are not specifically limited.
102nd, terminal obtains different brightness values possessed by the shooting background in photographed scene in addition to main body is shot.
Optionally, the remainder that shooting main body is removed in photographed scene can be collectively referred to as shooting background, such as a shooting Scene includes face, trees and building, and in the photographed scene, face belongs to shooting main body, removes the other parts of face, That is trees and building belong to shooting background.In same photographed scene, different shooting backgrounds may have different brightness Value or the different piece of identical shooting background may also have different brightness values.Therefore, the photographed scene that terminal is got The brightness value of middle shooting background, at least one.Such as, it will be assumed that the brightness value for the shooting background that terminal obtains is 30,50, 220 and 225.Optionally, the difference that the light sensor taken pictures built in software of terminal can be used to obtain shooting background for terminal is bright Angle value or terminal can obtain the different brightness values of shooting background by other methods.
Optionally, terminal obtain in photographed scene difference brightness values possessed by shooting background in addition to main body shoot it Before, it can determine whether to open brightness control function;If opening, then perform the shooting back of the body obtained in photographed scene in addition to main body is shot Possessed by scape the step of different brightness value, it can so ensure to allow to the brightness in photographed scene into Mobile state tune in terminal In the case of section, terminal just obtains different brightness values possessed by shooting background.In other words, if terminal is not turned on brightness Regulatory function namely terminal part allow to carry out dynamic regulation to the brightness in photographed scene, then terminal does not perform the acquisition shooting back of the body Different brightness value steps, can save power consumption of terminal possessed by scape.
103rd, shooting background is divided into the low bright area of background highlight regions, background according to different brightness values and background is general Logical luminance area.
Wherein, the low bright area of background be with brightness value be less than first threshold shooting background region, background highlight bar Domain be with brightness value be more than second threshold shooting background region, first threshold be less than second threshold.First threshold and Two threshold values can be the preset brightness value of terminal.
Optionally, terminal, can be according to difference in photographed scene is obtained after different brightness values possessed by shooting background Brightness value and terminal preset shooting background brightness division rule and shooting background are divided into the low bright area of background highlight regions, background With background general brightness region.Wherein, background general brightness region is region of normal exposure, that is to say, that background general brightness area Domain is brightness normal region, and preferable shooting effect can be taken in the area terminal.Wherein, shooting background brightness division rule Can be that terminal is preset according to first threshold and second threshold.That is, terminal can preset first threshold and Second threshold or system can preset first threshold and second threshold, and then terminal is according to the first threshold and the second threshold Value setting brightness division rule.Assuming that the predeterminable first threshold of terminal be 40, second threshold 230, then shooting background preset bright Spending division rule can be:Shooting background brightness value be less than 40 when for the low bright area of background, shooting background brightness value be more than 230 when It is background general brightness region between 40-230 for background highlight regions, shooting background brightness value.The present embodiment can be enumerated Some possible shooting background brightness division rules, do not limit specific shooting background division rule.
As an example it is assumed that the preset first threshold of terminal is 30, and second threshold 220, then terminal predetermined luminance Division rule can be that the shooting background region that shooting background brightness value is less than first threshold i.e. 30 is background low brightness area;Shooting The shooting background region that background value is more than second threshold i.e. 220 is background highlight regions;Shooting background brightness value is in 30- Shooting background region between 220 is the common bright area of background.Assuming that different brightness possessed by the shooting background that terminal obtains Value is respectively 50,25,110,226 and 240, then presets shooting background brightness division rule according to above-mentioned terminal, and terminal judges to clap The brightness value 50 and 110 for taking the photograph background is fallen between 30-220, so the shooting background region where brightness value 550 and 110 is the back of the body Jing Putongliangduqu;Terminal judges that shooting background brightness value 25 is less than 30, so the shooting background region where brightness value 25 is The low bright area of background;Terminal can determine whether that the brightness value 226 and 240 of shooting background is more than 220, so where brightness value 226 and 240 Shooting background region be background highlight regions.
104th, terminal adjusts the brightness of background highlight regions and the low bright area of background respectively.
Optionally, background highlight regions are adjusted respectively and the brightness of the low bright area of background includes:When background highlight regions Brightness value not in the range of background highlight regions target brightness value when, adjust background highlight regions brightness until background highlight The brightness value in region is in the range of background highlight regions target brightness value;When the brightness value of the low bright area of background is low bright not in background When in regional aim range of luminance values, the brightness of the low bright area of background is adjusted until the brightness value of the low bright area of background is low in background In the range of bright area target brightness value;
Wherein, background highlight regions target brightness value range and the low bright area target brightness value range of background can be terminals Default settings.Terminal determine brightness value when background highlight regions in the range of the background highlight regions target brightness value and When the brightness value of the low bright area of background is when within the scope of the low bright area target brightness value of the background, terminal can obtain preferable bat Take the photograph effect.Optionally, above-mentioned background highlight regions target brightness value range and the low bright area target brightness value range of background are at certain It can be specific brightness value in the case of a little, or range of luminance values.Such as, it will be assumed that the preset background highlight bar of terminal Domain target brightness value is 190, can also set background highlight regions target brightness value ranging from 185-195.
Optionally, which further includes:Obtain the brightness value of shooting main body;When shooting main body brightness value not When shooting in subject goal range of luminance values, the brightness of shooting main body is adjusted until the brightness value of shooting main body is in shooting main body In the range of target brightness value.
Wherein, shooting subject goal range of luminance values can be that terminal is preset or system default.Tool Body, terminal can obtain shooting main body brightness value by the light sensor in terminal or other modes, by the shooting main body Brightness value is compared with default subject goal range of luminance values;If the shooting main body brightness value is not in default subject goal brightness value model In enclosing, then the shooting main body brightness is adjusted, to ensure that the shooting main body that terminal taking arrives is clear.For same shooting field Different shooting main bodys in scape, terminal presets subject goal brightness range or the subject goal brightness range of system default can not Identical, in other words, it is different due to shooting main body difference that terminal presets subject goal range of luminance values.For example, same There is deep colour of skin main body and shallow colour of skin main body in a photographed scene, then for deep colour of skin main body, terminal can set subject goal bright Angle value range is higher;For shallow colour of skin main body, terminal can set subject goal range of luminance values more relatively low.
After shooting main body in the embodiment of the present invention in terminal recognition photographed scene, obtain and shooting master is removed in photographed scene Different brightness values possessed by external shooting background, and shooting background is divided into background highlight bar according to different brightness values Domain, the low bright area of background and background general brightness region, terminal is respectively to above-mentioned background highlight regions and the low bright area of background Brightness is adjusted, and the brightness that can be directed to different shooting areas in photographed scene is adjusted.
It is the schematic flow diagram of another brightness adjusting method provided in an embodiment of the present invention, as shown in Figure 2 referring to Fig. 2 Brightness adjusting method may include:
201st, the shooting main body in terminal recognition photographed scene.
202nd, judge whether terminal opens brightness control function.
Optionally, after the shooting main body in terminal recognition to photographed scene, terminal can first judge whether that terminal is opened Brightness control function, in order to which terminal decides whether to perform step 203-205.If judging, terminal opens brightness regulation work( It can, that is to say, that terminal allows terminal when shooting, to shooting the brightness of main body and the brightness of shooting background in photographed scene It is adjusted in real time, to ensure the quality for the picture and video shot, then terminal can perform step 203;If judge terminal It is not turned on brightness control function, that is to say, that terminal does not allow shooting main body and bat in terminal-pair photographed scene when shooting The brightness for taking the photograph background is adjusted in real time, then terminal can not perform step 203, saves power consumption of terminal expense.
203rd, terminal obtains different brightness values possessed by shooting main body and obtains in photographed scene in addition to main body is shot Shooting background possessed by different brightness values.
204th, according to the different brightness values of shooting main body, highlight regions, the low clear zone of main body based on main body division will be shot Shooting background is divided into background highlight bar by domain and main body general brightness region and the different brightness values according to shooting background Domain, the low bright area of background and background general brightness region.
Wherein, the low bright area of background be with brightness value be less than first threshold shooting background region, background highlight bar Domain be with brightness value be more than second threshold shooting background region, first threshold be less than second threshold.The low bright area of main body Be less than the shooting body region of third threshold value for the brightness value that has, main body highlight regions be with brightness value be more than the 4th threshold The shooting body region of value, third threshold value are less than the 4th threshold value.
Optionally, terminal can be obtained different possessed by shooting main body by the light sensor built in terminal taking software Different brightness values or terminal can also obtain different bright by other means possessed by brightness value and acquisition shooting background Angle value.
Optionally, terminal can set shooting background brightness division rule according to above-mentioned first threshold and second threshold, according to According to third threshold value and the 4th threshold value, setting shooting main body brightness division rule.Further, terminal can be according to shooting main body not With brightness value and shooting main body brightness division rule, shooting main body is divided into multiple and different body regions and terminal can root According to the different brightness values of shooting background and shooting background brightness division rule, shooting background is divided into multiple and different background areas Domain.Wherein, the low bright area of main body highlight regions, main body and main body general brightness region that shooting main body includes are at least one A, similarly, the low bright area of background highlight regions, background and background general brightness region that shooting background includes are at least one It is a.Wherein, main body general brightness region and background general brightness region refer to the region of normal exposure, and terminal can be to above-mentioned The brightness in two general brightness regions is adjusted, to ensure that the better shooting effect of acquisition or terminal can not also be to upper The brightness for stating two common bright areas is adjusted, to save power consumption of terminal.Above-mentioned middle first threshold and third threshold value can phases Together, it can also be different, second threshold and the 4th threshold value may be the same or different namely shoot main body brightness value and divide rule Then it can be the same or different with shooting background brightness value division rule.
As an example it is assumed that the third threshold value of terminal setting can be 35, the 4th threshold value can be 240, then further, terminal According to third threshold value and the 4th threshold value, presetting shooting main body brightness division rule can be:It shoots main body brightness value and is more than 240 Shooting body region based on highlight regions;It is general based on shooting body region of the shooting main body brightness value between 35-240 Logical luminance area;Low bright area based on shooting body region of the shooting main body brightness value less than 35.It may be assumed that terminal passes through light The multiple and different brightness values of shooting main body that line sensor obtains are respectively 30,45,25,190,255, then according to above-mentioned shooting main body Brightness division rule, terminal can determine whether low bright area based on shooting body region that shooting main body brightness value is 30 and 25, clap Take the photograph highlight regions based on the shooting body region that main body brightness value is 255, the shooting master that shooting main body brightness value is 45 and 190 General brightness region based on body region.Generally speaking, in above-mentioned example, it is low bright that terminal taking body region includes two main bodys Region, a main body highlight regions and two main body general brightness regions.Above citing is a kind of possible feelings of this implementation Condition.
205th, the brightness of main body highlight regions and the low bright area of main body is adjusted respectively and adjusts background highlight regions respectively The brightness of bright area low with background.
Optionally, terminal can be that shooting background region presets background highlight regions target brightness value range and background is low Bright area target brightness value range, then terminal is bright by the brightness value of multiple background highlight regions and the background highlight regions target Angle value range is compared and by the brightness value of the low bright area of multiple backgrounds bright area target brightness value range low with the background It is compared.If the brightness value of background highlight regions, not in the range of the background highlight regions target brightness value, terminal is adjusted The brightness of background highlight regions is up to the brightness value of the background highlight regions is in the range of background highlight regions target brightness value;Together Reason, if the brightness value of the low bright area of background, not in the range of the low bright area target brightness value of the background, terminal adjusts the back of the body The brightness of the low bright area of scape is up to the brightness value of the low bright area of the background is in the range of the low bright area target brightness value of background.
As an example it is assumed that the preset background highlight regions target brightness value ranging from 190-195 of terminal, background are low Bright area target brightness value ranging from 50-60, it is assumed that the brightness value of two background highlight regions of terminal may respectively be 220 and 180, The brightness value of the low bright area of two backgrounds can be 30 and 55, then terminal is according to above-mentioned adjusting method, by the back of the body that brightness value is 220 The brightness of scape highlight regions is turned down, until the brightness value of the background highlight regions is in background highlight regions target zone 190-195 It is interior;The brightness for the background highlight regions that brightness value is 180 is tuned up, until the brightness value of the background highlight regions is highlighted in background In regional aim range of luminance values.Similarly, it is 30 bright areas low with the background that brightness value is 55 that terminal adjusts brightness value respectively Brightness until the low bright area of each background brightness value within the scope of the low bright area target brightness value of background.
Optionally, terminal can be that shooting background presets a shooting background integration objective range of luminance values, terminal tune The brightness of multiple background highlight regions of shooting background is saved until the brightness value of multiple background highlight regions is comprehensive in the shooting background It closes in the range of target brightness value and terminal adjusts the brightness of the low bright area of multiple backgrounds of shooting background until multiple backgrounds are low The brightness value of bright area is within the integration objective range of luminance values.
As an example it is assumed that it is 80- that terminal, which is the preset shooting background integration objective range of luminance values of shooting background, 110, it is assumed that the brightness value for the background high-brightness region that terminal obtains can be 150, the low clear zone of a background that terminal obtains The brightness value in domain can be 65, then terminal is turned down the brightness of background highlight regions until the brightness value of background highlight regions is being shot In the range of contextual integration target brightness value;Terminal tunes up the brightness of the low bright area of background until the brightness value of the low bright area of the background In integration objective range of luminance values.
With it is above-mentioned similarly, optionally, terminal can be that shooting main body preset main body highlight regions target brightness value model Bright area target brightness value range low with main body is enclosed, then terminal highlights the brightness value of multiple main body highlight regions with the main body Regional aim range of luminance values is compared and by the brightness value of the low bright area of multiple main bodys bright area target low with the main body Range of luminance values is compared.If the brightness value of main body highlight regions is not in the shooting main body highlight regions target brightness value range Interior, then terminal adjusts the brightness of main body highlight regions until the brightness value of the main body highlight regions is bright in main body highlight regions target In the range of angle value;Similarly, if the brightness value of the low bright area of main body is not in the range of the low bright area target brightness value of the main body, Terminal adjusts the brightness of the low bright area of the main body until the brightness value of the low bright area of the main body is in the low bright area object brightness of main body In the range of value.
Optionally, terminal can be that shooting main body presets a shooting main body integration objective range of luminance values, terminal tune The brightness of multiple main body highlight regions of low shooting main body is until the brightness value of multiple main body highlight regions is comprehensive in the shooting main body It closes in the range of target brightness value and the brightness of the low bright area of multiple main bodys of shooting main body is turned up for terminal until multiple main bodys are low The brightness value of bright area is in the integration objective range of luminance values.
The embodiment of the present invention identifies the shooting main body in photographed scene in the case where terminal opens brightness control function, And different brightness values possessed by obtaining shooting main body and shooting background difference, using the different brightness values for shooting main body, will clap Take the photograph main body divide based on highlight regions, main body low-light level domain and main body general brightness region and using shooting background not Shooting background is divided into the low bright area of background highlight regions, background and background general brightness region, and terminal point by same brightness value The brightness of above-mentioned shooting main body and shooting background different zones is not adjusted, it can be for the bright of shooting areas different in photographed scene Degree is adjusted, and ensures picture or video quality that shooting obtains.
It is a kind of schematic block diagram of brightness regulating apparatus provided in an embodiment of the present invention referring to Fig. 3.As described in Figure 3 Device may include:Recognition unit 301, acquiring unit 302, division unit 303 and adjusting unit 304.
Recognition unit 301, for identifying the shooting main body in photographed scene;
Acquiring unit 302.For obtaining different brightness possessed by the shooting background in photographed scene in addition to main body is shot Value;
Division unit 303, for shooting background to be divided into the low clear zone of background highlight regions, background according to different brightness values Domain and background general brightness region;
Unit 304 is adjusted, for adjusting the brightness of background highlight regions and the low bright area of background respectively;
Wherein, the low bright area of background be with brightness value be less than first threshold shooting background region, background highlight bar Domain be with brightness value be more than second threshold shooting background region, first threshold be less than second threshold.
Optionally, acquiring unit 302 is additionally operable to obtain the brightness value of shooting main body;Unit 304 is adjusted to be additionally operable to when shooting The brightness value of main body adjusts the brightness of shooting main body until shooting the bright of main body not when shooting in subject goal range of luminance values Angle value is in shooting subject goal range of luminance values.
Optionally, acquiring unit 302, are additionally operable to obtain different brightness values possessed by shooting main body, division unit 303, Be additionally operable to according to different brightness values will shoot main body divide based on highlight regions, the low bright area of main body and main body general brightness Region;Unit 304 is adjusted, is additionally operable to adjust the brightness of main body highlight regions and the low bright area of main body respectively.Wherein, main body is low bright Region be with brightness value be less than the shooting body region of third threshold value, main body highlight regions be with brightness value be more than the The shooting body region of four threshold values, third threshold value are less than the 4th threshold value.
Optionally, unit 304 is adjusted for adjusting the specific of the brightness of main body highlight regions and the low bright area of main body respectively Mode is:
When the brightness value of main body highlight regions is not in the range of main body highlight regions target brightness value, adjusts main body and highlight The brightness in region is up to the brightness value of main body highlight regions is in the range of main body highlight regions target brightness value;
When the brightness value of the low bright area of main body is not in the range of the low bright area target brightness value of main body, it is low bright to adjust main body The brightness in region is up to the brightness value of the low bright area of main body is in the range of the low bright area target brightness value of main body;
Optionally, unit 304 is adjusted for adjusting the tool of the brightness of background highlight regions and the low bright area of background respectively Body mode is:
When the brightness value of background highlight regions is not in the range of background highlight regions target brightness value, adjusts background and highlight The brightness in region is up to the brightness value of background highlight regions is in the range of background highlight regions target brightness value;
When the brightness value of the low bright area of background is not in the range of the low bright area target brightness value of background, it is low bright to adjust background The brightness in region is up to the brightness value of the low bright area of background is in the range of the low bright area target brightness value of background;
Optionally, brightness regulating apparatus further includes:The feature of extraction shooting main body;Feature and the main body of default inventory is special Sign compares, and determines shooting main body.
Optionally, brightness regulating apparatus further includes judging unit 305, for it is determined whether to enable brightness control functions;If It opens, then acquiring unit 302 obtains different brightness values possessed by the shooting background in photographed scene in addition to main body is shot.
After recognition unit of the embodiment of the present invention 301 identifies the shooting main body in photographed scene, acquiring unit 302 obtains shooting Different brightness values possessed by the shooting background outside shooting main body are removed in scene, division unit 303 will according to different brightness values Shooting background is divided into the low bright area of background highlight regions, background and background general brightness region, adjusts unit 304 respectively to the back of the body The brightness of scape highlight regions and the low bright area of background is adjusted, can be directed to the brightness of different shooting areas in photographed scene into Row is adjusted.
It is a kind of terminal schematic block diagram provided in an embodiment of the present invention referring to Fig. 4.In the present embodiment as shown in Figure 4 Terminal can include:One or more processors 401, input equipment 402, output equipment 403 and memory 404.Above-mentioned processing Device 401, input equipment 402, output equipment 403 and memory 404 are connected by bus 405.Memory 404 calculates for storing Machine program, computer program include program instruction, and processor 401 is used to perform the program instruction of the storage of memory 404.Wherein, Processor 401 is configured for caller instruction and performs:
Identify the shooting main body in photographed scene;
Obtain different brightness values possessed by the shooting background in photographed scene in addition to main body is shot;
Shooting background is divided into the low bright area of background highlight regions, background according to different brightness values and background is commonly bright Spend region;
The brightness of background highlight regions and the low bright area of background is adjusted respectively;
Wherein, the low bright area of background be with brightness value be less than first threshold shooting background region, background highlight bar Domain be with brightness value be more than second threshold shooting background region, first threshold be less than second threshold.
Optionally, processor 401 is additionally operable to perform:
Obtain the brightness value of shooting main body;
When shooting the brightness value of main body not in shooting subject goal range of luminance values, the brightness for adjusting shooting main body is straight Brightness value to shooting main body is being shot in subject goal range of luminance values.
Optionally, processor 401 is additionally operable to perform:
Obtain different brightness values possessed by shooting main body;
According to different brightness values will shoot main body divide based on highlight regions, the low bright area of main body and main body it is commonly bright Spend region;
The brightness of main body highlight regions and the low bright area of main body is adjusted respectively.
Wherein, the low bright area of main body be with brightness value be less than third threshold value shooting body region, main body highlight bar Domain be with brightness value be more than the 4th threshold value shooting body region, third threshold value be less than the 4th threshold value.
Optionally, processor 401 has for performing the brightness for adjusting main body highlight regions and the low bright area of main body respectively Body mode is:
When the brightness value of main body highlight regions is not in the range of main body highlight regions target brightness value, adjusts main body and highlight The brightness in region is up to the brightness value of main body highlight regions is in the range of main body highlight regions target brightness value;
When the brightness value of the low bright area of main body is not in the range of the low bright area target brightness value of main body, it is low bright to adjust main body The brightness in region is up to the brightness value of the low bright area of main body is in the range of the low bright area target brightness value of main body;
Optionally, processor 401 adjusts the brightness of background highlight regions and the low bright area of background for execution respectively Concrete mode is:
When the brightness value of background highlight regions is not in the range of background highlight regions target brightness value, adjusts background and highlight The brightness in region is up to the brightness value of background highlight regions is in the range of background highlight regions target brightness value;
When the brightness value of the low bright area of background is not in the range of the low bright area target brightness value of background, it is low bright to adjust background The brightness in region is up to the brightness value of the low bright area of background is in the range of the low bright area target brightness value of background;
Optionally, processor 401 is specifically used for performing:
The feature of extraction shooting main body;
By feature compared with the body feature of default inventory, shooting main body is determined.
Optionally, processor 401 is additionally operable to perform:
It is determined whether to enable brightness control functions;
If opening, perform and obtain different brightness values possessed by the shooting background in photographed scene in addition to main body is shot Step.
It should be appreciated that in embodiments of the present invention, alleged processor 401 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
The memory 404 can include read-only memory and random access memory, and to processor 401 provide instruction and Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited Store up the information of device type.
In the specific implementation, the processor 401 described in the embodiment of the present invention can perform it is provided in an embodiment of the present invention bright The realization method described in Fig. 1 and Fig. 2 of adjusting method is spent, also can perform the described brightness regulation dress of the embodiment of the present invention Realization method is put, details are not described herein.
A kind of computer readable storage medium is provided in an embodiment of the present invention, and computer-readable recording medium storage has Computer program, computer program include program instruction, and specific implementation when program instruction is executed by processor can refer to above-mentioned The description of related content in each embodiment, details are not described herein.
More than, only some embodiments of the invention, but protection scope of the present invention is not limited thereto, in above-mentioned reality The various equivalent modifications or substitutions expected on the basis of example are applied, should be covered by the protection scope of the present invention.

Claims (10)

1. a kind of brightness adjusting method, which is characterized in that including:
Identify the shooting main body in photographed scene;
Obtain different brightness values possessed by the shooting background in the photographed scene in addition to the shooting main body;
The shooting background is divided into the low bright area of background highlight regions, background according to the different brightness values and background is general Logical luminance area;
The brightness of the background highlight regions and the low bright area of the background is adjusted respectively;
Wherein, the low bright area of the background be with brightness value be less than the shooting background region of first threshold, the background is high Bright area be with brightness value be more than second threshold shooting background region, the first threshold be less than the second threshold.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
Obtain the brightness value of the shooting main body;
When the brightness value of the shooting main body is not in the shooting subject goal range of luminance values, the shooting main body is adjusted Brightness until it is described shooting main body brightness value it is described shooting subject goal range of luminance values in.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
Obtain different brightness values possessed by the shooting main body;
According to the different brightness values by the shooting main body divide based on highlight regions, the low bright area of main body and main body it is general Logical luminance area;
The brightness of the main body highlight regions and the low bright area of the main body is adjusted respectively;
Wherein, the low bright area of the main body be with brightness value be less than the shooting body region of third threshold value, the main body is high Bright area be with brightness value be more than the 4th threshold value shooting body region, the third threshold value be less than the 4th threshold value.
4. the according to the method described in claim 3, it is characterized in that, main body highlight regions and described of adjusting respectively The brightness of the low bright area of main body, including:
When the brightness value of the main body highlight regions is not in the range of the main body highlight regions target brightness value, described in adjusting The brightness of main body highlight regions is up to the brightness value of the main body highlight regions is in the main body highlight regions target brightness value model In enclosing;
When the brightness value of the low bright area of the main body is not in the range of the low bright area target brightness value of the main body, described in adjusting The brightness of the low bright area of main body is up to the brightness value of the low bright area of the main body is in the low bright area target brightness value model of the main body In enclosing.
5. the according to the method described in claim 1, it is characterized in that, background highlight regions and described of adjusting respectively The brightness of the low bright area of background, including:
When the brightness value of the background highlight regions is not in the range of the background highlight regions target brightness value, described in adjusting The brightness of background highlight regions is up to the brightness value of the background highlight regions is in the background highlight regions target brightness value model In enclosing;
When the brightness value of the low bright area of the background is not in the range of the low bright area target brightness value of the background, described in adjusting The brightness of the low bright area of background is up to the brightness value of the low bright area of the background is in the low bright area target brightness value model of the background In enclosing.
6. according to the method described in claim 1, it is characterized in that, it is described identification photographed scene in shooting main body, including:
Extract the feature of the shooting main body;
By the feature compared with the body feature of default inventory, the shooting main body is determined.
7. according to the method described in claim 1, it is characterized in that, described obtain removes the shooting main body in the photographed scene Before different brightness values possessed by outer shooting background, the method further includes:
It is determined whether to enable brightness control functions;
If opening, perform different possessed by the shooting background obtained in the photographed scene in addition to the shooting main body The step of brightness value.
8. a kind of brightness regulating apparatus, which is characterized in that including:
Recognition unit, for identifying the shooting main body in photographed scene;
Acquiring unit, for obtaining different brightness possessed by the shooting background in the photographed scene in addition to the shooting main body Value;
Division unit, it is low bright for the shooting background to be divided into background highlight regions, background according to the different brightness values Region and background general brightness region;
Unit is adjusted, for adjusting the brightness of the background highlight regions and the low bright area of the background respectively;
Wherein, the low bright area of the background be with brightness value be less than the shooting background region of first threshold, the background is high Bright area be with brightness value be more than second threshold shooting background region, the first threshold be less than the second threshold.
9. a kind of terminal, which is characterized in that including processor, input equipment, output equipment and memory, the processor, institute Input equipment, the output equipment and the memory is stated to be connected with each other, wherein, the memory is used to store computer journey Sequence, the computer program include program instruction, and the processor is configured for calling described program instruction, performs such as right It is required that 1-7 any one of them methods.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program include program instruction, and described program instruction makes the processor perform such as when being executed by a processor Claim 1-7 any one of them methods.
CN201711432960.5A 2017-12-26 2017-12-26 A kind of brightness adjusting method, device, terminal and computer readable storage medium Pending CN108174088A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711432960.5A CN108174088A (en) 2017-12-26 2017-12-26 A kind of brightness adjusting method, device, terminal and computer readable storage medium
PCT/CN2018/123842 WO2019129041A1 (en) 2017-12-26 2018-12-26 Brightness adjustment method, apparatus, terminal, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711432960.5A CN108174088A (en) 2017-12-26 2017-12-26 A kind of brightness adjusting method, device, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108174088A true CN108174088A (en) 2018-06-15

Family

ID=62521098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711432960.5A Pending CN108174088A (en) 2017-12-26 2017-12-26 A kind of brightness adjusting method, device, terminal and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN108174088A (en)
WO (1) WO2019129041A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019129041A1 (en) * 2017-12-26 2019-07-04 深圳传音控股股份有限公司 Brightness adjustment method, apparatus, terminal, and computer readable storage medium
CN111447354A (en) * 2019-10-23 2020-07-24 泰州市海陵区一马商务信息咨询有限公司 Intelligent adjustment type camera shooting platform

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891530A (en) * 2021-09-28 2022-01-04 佛山电器照明股份有限公司 Intelligent illumination regulation and control method, equipment and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device
CN104580925A (en) * 2014-12-31 2015-04-29 安科智慧城市技术(中国)有限公司 Image brightness controlling method, device and camera
CN104978710A (en) * 2015-07-02 2015-10-14 广东欧珀移动通信有限公司 Method and device for identifying and adjusting human face luminance based on photographing
CN105049726A (en) * 2015-08-05 2015-11-11 广东欧珀移动通信有限公司 Mobile terminal shooting method and mobile terminal
CN106303250A (en) * 2016-08-26 2017-01-04 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN107172353A (en) * 2017-06-16 2017-09-15 广东欧珀移动通信有限公司 Automatic explosion method, device and computer equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238339B (en) * 2011-06-21 2013-06-05 深圳市先河系统技术有限公司 Method for compensating backlight
KR101812807B1 (en) * 2011-06-29 2017-12-27 엘지이노텍 주식회사 A method of adaptive auto exposure contol based upon adaptive region's weight
CN103905740B (en) * 2014-04-17 2017-04-19 广东欧珀移动通信有限公司 Method and device for improving automatic exposure effect realized through manual adjustment
CN105208281B (en) * 2015-10-09 2019-12-03 Oppo广东移动通信有限公司 A kind of night scene image pickup method and device
CN106375662B (en) * 2016-09-22 2019-04-12 宇龙计算机通信科技(深圳)有限公司 A kind of image pickup method based on dual camera, device and mobile terminal
CN107071290A (en) * 2016-12-28 2017-08-18 深圳天珑无线科技有限公司 Photographic method and its camera arrangement
CN108174088A (en) * 2017-12-26 2018-06-15 上海展扬通信技术有限公司 A kind of brightness adjusting method, device, terminal and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device
CN104580925A (en) * 2014-12-31 2015-04-29 安科智慧城市技术(中国)有限公司 Image brightness controlling method, device and camera
CN104978710A (en) * 2015-07-02 2015-10-14 广东欧珀移动通信有限公司 Method and device for identifying and adjusting human face luminance based on photographing
CN105049726A (en) * 2015-08-05 2015-11-11 广东欧珀移动通信有限公司 Mobile terminal shooting method and mobile terminal
CN106303250A (en) * 2016-08-26 2017-01-04 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN107172353A (en) * 2017-06-16 2017-09-15 广东欧珀移动通信有限公司 Automatic explosion method, device and computer equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019129041A1 (en) * 2017-12-26 2019-07-04 深圳传音控股股份有限公司 Brightness adjustment method, apparatus, terminal, and computer readable storage medium
CN111447354A (en) * 2019-10-23 2020-07-24 泰州市海陵区一马商务信息咨询有限公司 Intelligent adjustment type camera shooting platform
CN111447354B (en) * 2019-10-23 2020-10-27 岳阳县辉通物联网科技有限公司 Intelligent adjustment type camera shooting platform

Also Published As

Publication number Publication date
WO2019129041A1 (en) 2019-07-04

Similar Documents

Publication Publication Date Title
CN108377345B (en) Exposure parameter value determination method and device, multi-view camera and storage medium
WO2017096866A1 (en) Method and apparatus for generating high dynamic range image
CN108288044B (en) Electronic device, face recognition method and related product
KR20200017475A (en) Adjustment method, terminal device and non-transitory computer readable storage medium for automatic exposure control of the region of interest
EP3896955A1 (en) Image acquisition method, electronic device, and computer-readable storage medium
CN108174088A (en) A kind of brightness adjusting method, device, terminal and computer readable storage medium
CN104902177A (en) Intelligent photographing method and terminal
CN107948539A (en) A kind of flash lamp control method and terminal
CN108600633A (en) A kind of shooting angle determines method, apparatus, terminal and readable storage medium storing program for executing
CN110881108B (en) Image processing method and image processing apparatus
US20170331997A1 (en) Brightness compensation method and device, and computer storage medium
CN111771372A (en) Method and device for determining camera shooting parameters
CN110731076A (en) Shooting processing method and device and storage medium
CN104866191A (en) Photography method and mobile terminal
CN114257738A (en) Automatic exposure method, device, equipment and storage medium
CN113411498A (en) Image shooting method, mobile terminal and storage medium
CN106657798A (en) Photographing method for intelligent terminal
CN106650583B (en) Method for detecting human face, device and terminal device
CN108564537B (en) Image processing method, image processing device, electronic equipment and medium
CN113438411A (en) Image shooting method, image shooting device, computer equipment and computer readable storage medium
CN109040579A (en) A kind of filming control method, terminal and computer-readable medium
CN112399078A (en) Shooting method and device and electronic equipment
CN115633249A (en) Shooting method, shooting device, storage medium and electronic equipment
CN115205172A (en) Image processing method and device, electronic equipment and storage medium
CN111294518B (en) Portrait composition limb truncation detection method, device, terminal and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180615

RJ01 Rejection of invention patent application after publication