CN107241558B - Exposure processing method, device and terminal device - Google Patents

Exposure processing method, device and terminal device Download PDF

Info

Publication number
CN107241558B
CN107241558B CN201710459556.0A CN201710459556A CN107241558B CN 107241558 B CN107241558 B CN 107241558B CN 201710459556 A CN201710459556 A CN 201710459556A CN 107241558 B CN107241558 B CN 107241558B
Authority
CN
China
Prior art keywords
target area
exposure
target
image
weighted 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.)
Active
Application number
CN201710459556.0A
Other languages
Chinese (zh)
Other versions
CN107241558A (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 CN201710459556.0A priority Critical patent/CN107241558B/en
Publication of CN107241558A publication Critical patent/CN107241558A/en
Application granted granted Critical
Publication of CN107241558B publication Critical patent/CN107241558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals
    • 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

Abstract

The invention discloses a kind of exposure processing method, device and terminal devices, wherein, method includes: at least two target areas identified in image, determine the first exposure parameter of at least two target areas, according at least two target area target areas Zhong Ge occupied area in the picture, adjust the corresponding weighted value in each target area, according to the first exposure parameter and corresponding weighted value of each target area, the second exposure parameter of image is calculated, according to the second exposure parameter of image, processing is exposed to image.By being different target areas by image recognition, the second exposure parameter of image is calculated according to determining corresponding first exposure parameter in different target region and weighted value, second exposure parameter of the image has fully considered influence of the different target region to exposure parameter, solves the technical issues of leading to not blur-free imaging because of overexposure under backlighting condition.

Description

Exposure processing method, device and terminal device
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of exposure processing methods, device and terminal device.
Background technique
Backlight is a kind of since object is just at the situation between light source and camera, and this situation easily causes to make Object exposes insufficient situation.Although can use the special-effect of backlight generation as a kind of art when some The skill and technique of photography still in most cases, can lead to the problem of that the imaging is not clear.
Especially when being shot to portrait, under backlighting condition, the details such as human face five-sense-organ can not be carried out clearly Imaging, in the photo of shooting, often can be only seen the general profile of portrait.This is because under backlighting condition, using existing There is the style of shooting in technology, exposure bias value is calculated according to whole picture photo, causes portrait to occur under-exposure, leads to photo In, portrait part is partially dark, and includes that the problem of overexposure then occurs in the background of light source, and then occurs under this backlighting condition Can not blur-free imaging the case where.
Summary of the invention
The purpose of the present invention is intended to solve above-mentioned one of technical problem at least to a certain extent.
For this purpose, the first purpose of this invention is to propose a kind of exposure-processed method, by being difference by image recognition Target area, be calculated the second of image according to determining corresponding first exposure parameter in different target region and weighted value Exposure parameter, the second exposure parameter of the image have fully considered influence of the different target region to exposure parameter, have solved inverse The technical issues of leading to not blur-free imaging because of overexposure under the conditions of light.
Second object of the present invention is to propose a kind of exposure-processed device.
Third object of the present invention is to propose a kind of terminal device.
Fourth object of the present invention is to propose another terminal device.
5th purpose of the invention is to propose a kind of computer readable storage medium.
6th purpose of the invention is to propose a kind of computer program product.
To achieve the goals above, first aspect present invention embodiment proposes a kind of exposure processing method, this method are as follows:
Identify at least two target areas in image;
Determine the first exposure parameter of at least two target area;
According at least two target areas target area Zhong Ge occupied area in described image, each target area is adjusted The corresponding weighted value in domain;
According to the first exposure parameter and corresponding weighted value of each target area, the second exposure of described image is calculated Parameter;
According to the second exposure parameter of described image, processing is exposed to described image.
In exposure processing method of the invention, identifies at least two target areas in image, determine at least two targets First exposure parameter in region adjusts each mesh according at least two target area target areas Zhong Ge occupied area in the picture Image is calculated according to the first exposure parameter and corresponding weighted value of each target area in the corresponding weighted value in mark region Second exposure parameter is exposed processing to image according to the second exposure parameter of image.By being different by image recognition Target area, image is calculated according to determining corresponding first exposure parameter in different target region and weighted value second expose Optical parameter, the second exposure parameter of the image have fully considered influence of the different target region to exposure parameter, have solved backlight Under the conditions of the technical issues of leading to not blur-free imaging because of overexposure.
To achieve the goals above, second aspect of the present invention embodiment proposes a kind of exposure-processed device, the device packet It includes:
Identification module, for identification at least two target areas in image;
Determining module, for determining the first exposure parameter of at least two target area;
Module is adjusted, for according at least two target areas target area Zhong Ge shared face in described image Product, adjusts the corresponding weighted value in each target area;
Computing module is calculated described for the first exposure parameter and corresponding weighted value according to each target area Second exposure parameter of image;
Processing module is exposed processing to described image for the second exposure parameter according to described image.
In a kind of exposure-processed device of the embodiment of the present invention, identification module at least two targets in image for identification Region, determining module determine the first exposure parameter of at least two target areas, adjust module according at least two target areas In each target area occupied area in the picture, the corresponding weighted value in adjustment target area, computing module is according to each target area The first exposure parameter and corresponding weighted value, the second exposure parameter of image is calculated, processing module is according to the of image Two exposure parameters are exposed processing to image.By being different target areas by image recognition, according to determining different mesh The second exposure parameter of image is calculated in the corresponding exposure parameter in mark region and weighted value, and the second exposure parameter of the image fills Divide and consider influence of the different target region to exposure parameter, solves under backlighting condition because overexposure leads to not blur-free imaging Technical problem.
To achieve the goals above, third aspect present invention embodiment proposes a kind of terminal device, which includes the Exposure-processed device described in two aspect embodiments.
To achieve the goals above, fourth aspect present invention embodiment proposes another terminal device, including with next A or multiple components: shell and be located at the intracorporal processor of the shell and memory, wherein the memory is stored with executable Program code, the processor is run by reading the executable program code stored in the memory can be performed with described The corresponding program of program code, for realizing method described in first aspect embodiment.
To achieve the goals above, fifth aspect present invention embodiment proposes a kind of computer readable storage medium, On be stored with computer program, when which is executed by processor realize first aspect embodiment described in exposure processing method.
To achieve the goals above, sixth aspect present invention embodiment proposes a kind of computer program product, when described When instruction in computer program product is executed by processor, exposure processing method described in first aspect embodiment is executed.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of exposure processing method provided by the embodiment of the present invention
Fig. 2 is the flow diagram of another kind exposure processing method provided by the embodiment of the present invention;
Fig. 3 is the exemplary instruction schematic diagram of exposure compensating;
Fig. 4 is a kind of structural schematic diagram of exposure-processed device provided by the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of terminal device provided by the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another kind terminal device provided by the embodiment of the present invention;And
Fig. 7 is the schematic diagram of image processing circuit.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the exposure processing method, device and terminal device of the embodiment of the present invention are described.
People can obtain the major part comprising personage and shine when being taken pictures using camera shooting product, and also available includes people The photo of picture and landscape, it is also possible to the which only landscape of landscape shines, exposure of the present invention primarily directed to the photo containing portrait Processing, and for there is the photo of portrait, for ease of description, the target area in picture is divided into target area, the body of face The target area of the target area of body and/background, and at least two target areas identified in image are both participated in second and are exposed During the determination of optical parameter, can solve under backlighting condition can not blur-free imaging the technical issues of, propose a kind of exposure thus The method of light processing.
Fig. 1 is a kind of flow diagram of exposure processing method provided by the embodiment of the present invention, as shown in Figure 1, the party Method includes:
Step S101 identifies at least two target areas in image.
It specifically, may include different target areas in image when carrying out image acquisition, it is different for camera Target area have different depth, which can be acquired by camera, to identify different target areas Domain.As a kind of possible implementation, using dual camera, measurement is obtained while which can be responsible for imaging Depth information;It is achieved in that as alternatively possible using depth camera (Red-Green-Blue Depth) RGBD, Depth information is obtained while imaging, and depth of field acquisition or ranging can be additionally carried out by structure light/TOF camera lens, it is different herein One enumerates.
Wherein, depth information refers to that the data that each pixel is stored in image are exactly the distance camera shooting of this pixel The distance of head, that is, depth information.
Further, by measuring obtained depth data, after obtaining the corresponding depth information of each pixel in figure, knot Face recognition technology is closed, judges in present image whether to include that portrait identifies human face region when including portrait in image Location information obtains the target area comprising face, to obtain pixel that the target area comprising face includes and its right The depth information answered.Wherein, face recognition technology can identify the coordinate section of face using various face recognition algorithms, To obtain the location information of face.
For recognition of face, as a kind of possible implementation, using Adaboost model algorithm, Adaboost algorithm A kind of iterative algorithm, core concept is the classifier (Weak Classifier) different for the training of the same training set, then These weak classifier sets are got up, and constitute a stronger final classification device (strong classifier), the algorithm itself is to pass through change Data distribution realizes, it is according to whether the classification of sample each in each training set correct and general classification of last time Accuracy rate, to determine the weight of each sample, and give the new data set for modifying weight to sub-classification device and be trained, Finally the classifier that each training obtains finally is merged, as last Decision Classfication device.Preferably, in Adaboost Dynamic thresholding can be used in algorithm, further speed up the speed of recognition of face, face recognition algorithms can also use other energy The quickly algorithm of identification human face region, in the present invention without limitation to the algorithm of recognition of face.
Further, the depth information for including according to each pixel, and the target area comprising face identified, The depth information that can determine the pixel for including in face, since people's face and body substantially belongs to the same imaging plane, therefore The identical pixel of pixel depth information is the pixel for being identified as body in pixel depth information and face, that is, be can recognize Out include the target area of body in image, remove the target area comprising face and the target area comprising body in image, It is then the target area comprising background.
It should be noted that the target area comprising face is referred to as human face target region below in order to describe simplicity, Target area comprising body is referred to as targeted body region, and the target area comprising background is referred to as target context region.
Step S102 determines the first exposure parameter of at least two target areas.
Specifically, photometric system measures the brightness of each target area, determines target area according to the brightness that measurement obtains First exposure parameter, to obtain the exposure more balanced.
Step S103 adjusts each target according at least two target area target areas Zhong Ge occupied area in the picture The corresponding weighted value in region.
Specifically, there are many kinds of possible implementations for area shared by calculating target area, as a kind of possible reality Existing mode, is divided into multiple sub-blocks for Target Photo, the size of each sub-block is identical, for example, Target Photo is divided into m*n A sub-block, the length of each sub-block are the 1/m of Target Photo length, and the width of each sub-block is the 1/n of Target Photo width, from And the area of each sub-block is 1/m*n, wherein m and n is positive integer, it is preferable that m 9, n 7.
Further, from m*n sub-block of acquisition, the sub-block for being located at the coordinate section in human face target region is searched, and The sub-block at the edge in the coordinate section in human face target region is contained, all sub-blocks that human face target region is included are obtained.By Be in the area of each sub-block it is known, so as to which the area in human face target region is calculated.
Same method can find out all sub-blocks that targeted body region is included, since the area of each sub-block is It is known, so as to which the area of targeted body region is calculated.
Further, all sons that all sub-blocks and targeted body region that removal human face target region is included include All sub-blocks that target context region is included can be obtained in block.Target context can be calculated by the area of each sub-block The area in region, or the area in total area removal human face target region and targeted body region according to Target Photo, The area in available target context region.
It should be noted that for the implementation that each target area area is calculated, in the present embodiment without limitation.
Further, by the area in human face target region, the area of targeted body region and/or target context region Area obtains the specific gravity of each target area occupied area in the picture, corresponding according to each target area of the ratio recanalization of the area Weighted value.
The of image is calculated according to the first exposure parameter and corresponding weighted value of each target area in step S104 Two exposure parameters.
Specifically, according to first exposure parameter in the human face target region being calculated, the first of targeted body region exposes The corresponding weighted value of first exposure parameter and each target area in optical parameter and/or target context region, utilizes weighted average The second final exposure parameter of image is calculated.
Its kind, the first exposure parameter and the second exposure parameter here include exposure bias value, in the first exposure parameter Exposure bias value can be denoted as the first exposure bias value, the exposure bias value in the second exposure parameter can be denoted as the second exposure Offset.
Step S105 is exposed processing to image according to the second exposure parameter of image.
Specifically, according to the second exposure parameter of obtained image, processing is exposed to image, obtains what exposure was suitable for Image.
In a kind of exposure processing method of the present embodiment: at least two target areas in identification image determine target area First exposure parameter in domain, according to target area occupied area in the picture, the corresponding weighted value in adjustment target area, according to each The first exposure parameter and corresponding weighted value of target area, are calculated the second exposure parameter of image, according to the of image Two exposure parameters are exposed processing to image.By being different target areas by image recognition, according to determining different mesh The second exposure parameter of image, the second exposure ginseng of the image is calculated in corresponding first exposure parameter in mark region and weighted value Number fully considered influence of the different target region to exposure parameter, solve under backlighting condition because overexposure lead to not clearly at The technical issues of picture.
On the basis of a upper embodiment, for the more clear method for explaining exposure-processed, the invention proposes another Kind exposure processing method is explained in detail when target area is face target area, targeted body region and target context region When, the method for exposure-processed, Fig. 2 is the flow diagram of another kind exposure processing method provided by the embodiment of the present invention, such as Shown in Fig. 2, include the following steps:
Step S201 identifies three target areas in image.
Specifically, when in image including portrait, human face region is identified as a target area, referred to as human face target area Domain;It is another target area, referred to as targeted body region by the corresponding region recognition of body;By human face target region and body Region recognition other than target area is target context region.
The corresponding depth information of each pixel obtained using extraction, and the people identified by face recognition technology Face target area, available human body contour outline and corresponding target area remove human face target region, as physical target area Domain.Human face target region is removed from image and targeted body region then obtains target context region.
Step S202 calculates the brightness of each target area.
Specifically, image recognition is different target areas, the photometric system of camera is not to during taking pictures by camera Same target area carries out automatic light measuring, measures the brightness of image.
Current camera surveys light there are many kinds of possible implementation, and one of which is possible to be achieved in that, using camera lens Light (Through the lens, the TTL) mode of survey, i.e. automatic photometric system survey light, that is, light through Yu Jing by camera lens On the image sensor, imaging sensor performs an analysis the processor that optical signal sends camera to, to obtain image for head projection The brightness in middle different target region.Using the metering mode of the implementation, it is subdivided into spot light-metering, area metering, central heavy Point average metering etc..It should be noted that not limited in the present embodiment for the implementation for the brightness for measuring different zones It is fixed.
Step S203 determines the first exposure parameter of corresponding region according to the brightness of each target area.
Specifically, the brightness in the different target region obtained according to photometric system measurement determines that different target region is corresponding The first exposure parameter, include in the first exposure parameter exposure bias value (i.e. the first exposure bias value).
Further, aperture, shutter speed and ISO value are the three big elements for determining to expose in camera, and magazine survey Photosystem matches each other them according to the brightness that measurement obtains, i.e., determines aperture, shutter speed according to the brightness that measurement obtains With the combination exposure parameter of ISO value, under the original exposure parameter, obtained image may be over-exposed or expose not Foot needs to correct by determining the first exposure bias value.
The method for determining the first exposure bias value, there are many kinds of possible implementation, one of possible realization side Formula is, by measuring the brightness value and predetermined luminance threshold value comparison of obtained each target area, to determine the of each target area One exposure bias value.For example, when the brightness value in target context region is the then target context region greater than 200 Lux degree (lux) The first exposure bias value be -1EV, i.e. the brightness in target context region needs to reduce.To obtaining each target area in the present embodiment The mode of the first exposure bias value of domain is without limitation.
Step S204, according to target area shared area in the picture, the corresponding weighted value in adjustment target area.
Specifically, human face target region can be preset, the corresponding weight in targeted body region and target context region is one A specific numerical value carries out the corresponding weighted value in each target area further according to each target area shared area in the picture Adjustment, it is therefore an objective to when the corresponding shared area in human face target region and/or targeted body region is smaller, it is also desirable to face be turned up The corresponding weighted value in target area and/or targeted body region.Implementation is, can be by the threshold value of preset area and each Area shared by target area compares, it is determined whether human face target region and/or the corresponding weight in targeted body region is turned up.
One kind is possible to be achieved in that, first threshold is set, if human face target region and/or targeted body region are being schemed Occupied area ratio is lower than first threshold as in, and human face target region and/or the corresponding weighted value in targeted body region is turned up, with And turn down the corresponding weighted value in target context region.
Alternatively possible is achieved in that, sets second threshold, if target context region occupied area ratio is higher than the Two threshold values are turned up the corresponding weighted value in human face target region and/or the corresponding weighted value in targeted body region, and turn down background The corresponding weighted value in target area.
It should be noted that human face target region and/or the corresponding weight in targeted body region is turned up according to given threshold Value, specific threshold value and adjusting range can be set by those skilled in the art according to the analysis of statistical data in practical application, this reality It applies in example without limitation.
The of image is calculated according to the first exposure parameter and corresponding weighted value of each target area in step S205 Two exposure parameters.
Specifically, by the first exposure compensating in corresponding first exposure parameter of the weighted value obtained after adjustment and each region Value is weighted and averaged, and the exposure bias value (i.e. the second exposure bias value) in the second exposure parameter of image is calculated, from And adjusting is exposed to image using the second exposure bias value.
For example, human face target region weighted value adjusted can be higher than target context region weighted value adjusted, and/ Or, human face target region weighted value adjusted is higher than targeted body region weighted value adjusted, specifically, human face target First exposure bias value in region is xEV, and the first exposure bias value of targeted body region is yEV, the of target context region One exposure bias value is zEV, and corresponding weighted value is respectively 0.5,0.3,0.2, passes through weighted formula x*0.5+y*0.3+z*0.2 The second exposure bias value of final image is then calculated.Here the weighted value in human face target region is 0.5, respectively higher than body The weighted value 0.3 of target area and the weighted value 0.2 in target context region, thus preferential the according to human face target region One exposure bias value is exposed compensation to entire picture.As it can be seen that by adjusting human face target region, target context region and body During the weighted value of body target area, the weight in human face target region is turned up, so as to the exposure of preferential guarantor face part The accuracy of light.
It may occur to persons skilled in the art that under certain application scenarios, if desired preferentially guarantee target context region or Person is the exposure accuracy of targeted body region, can be accordingly by the weight tune of target context region either targeted body region Height, to preferentially guarantee the exposure accuracy of corresponding region.
Step S206 is exposed processing to image according to the second exposure parameter of image.
Specifically, according to the second exposure bias value of image, positive or negative sense exposure compensating is carried out to figure, thus It exposes picture suitably, obtains clearly image.Fig. 3 is the exemplary instruction schematic diagram of exposure compensating, such as Fig. 3 institute Show, for example, carrying out positive exposure compensating to image if exposure bias value is+1EV, improving the brightness of image;If exposed Light offset is -1EV, then carries out the exposure compensating of negative sense to image, reduce the brightness of image.
It should be noted that when only there are two target areas, i.e. human face target region and body for the target area in picture When target area or human face target region and target context region, exposure processing method as above-described embodiment principle, this Place repeats no more.
In order to realize above-described embodiment, the invention also provides a kind of exposure-processed device, Fig. 4 is institute of the embodiment of the present invention The structural schematic diagram of a kind of exposure-processed device provided, as shown in figure 4, the device includes: identification module 31, determining module 32, module 33, computing module 34 and processing module 35 are adjusted.
Identification module 31, for identification at least two target areas in image.
Determining module 32, for determining the first exposure parameter of at least two target area.
Module 33 is adjusted, for according at least two target areas target area Zhong Ge shared face in described image Product, adjusts the corresponding weighted value in each target area.
Institute is calculated for the first exposure parameter and corresponding weighted value according to each target area in computing module 34 State the second exposure parameter of image.
Processing module 35 is exposed processing to described image for the second exposure parameter according to described image.
It should be noted that the above-mentioned device that the embodiment of the present invention is also applied for the explanation of embodiment of the method, this Place repeats no more.
In the exposure-processed device of the embodiment of the present invention, identification module at least two target areas in image for identification Domain, determining module determine the first exposure parameter of at least two target areas, adjust module according at least two target areas Each target area occupied area in the picture, the corresponding weighted value in adjustment target area, computing module is according to each target area The second exposure parameter of image is calculated in first exposure parameter and corresponding weighted value, and processing module is according to the second of image Exposure parameter is exposed processing to image.By being different target areas by image recognition, according to determining different target The second exposure parameter of image is calculated in the corresponding exposure parameter in region and weighted value, and the second exposure parameter of the image is abundant Influence of the different target region to exposure parameter is considered, is solved under backlighting condition because overexposure leads to not the skill of blur-free imaging Art problem.
In order to realize above-described embodiment, the invention also provides a kind of terminal device, Fig. 5 is provided by the embodiment of the present invention A kind of terminal device structural schematic diagram, as shown in figure 5, the terminal device includes exposure-processed device 100.
It should be noted that the structure chart of exposure-processed device 100 specifically can refer to Fig. 4, it is aforementioned to exposure-processed device The description of embodiment, the exposure-processed device 100 being also applied in the terminal device of the embodiment of the present invention, realization principle class Seemingly, details are not described herein.
In order to realize above-described embodiment, the invention also provides another terminal device, Fig. 6 is mentioned by the embodiment of the present invention Supply another terminal device structural schematic diagram, as shown in fig. 6, the terminal device 1000 include: shell 1100 and be located at shell Memory 1111 and processor 1112 in body 1100.
Wherein, memory 1111 is stored with executable program code;Processor 1112 is deposited by reading in memory 1111 The executable program code of storage runs program corresponding with executable program code, for executing described in previous embodiment Exposure processing method.
It should be noted that the aforementioned description to exposure processing method embodiment, is also applied for the end of the embodiment of the present invention End equipment 1000, realization principle is similar, and details are not described herein.
In order to realize above-described embodiment, the invention also provides a kind of computer readable storage mediums, are stored thereon with meter Calculation machine program realizes exposure processing method provided by previous embodiment when the program is executed by processor.
In order to realize above-described embodiment, the invention also provides a kind of computer program products, when the computer program When instruction in product is executed by processor, exposure processing method provided by previous embodiment is executed.
The embodiment of the present invention additionally provides a kind of mobile terminal, which includes lens module.Specifically, should Lens module includes camera lens and imaging sensor.
Wherein, camera lens, the Optical devices being made of lens.The light or reflected light that object issues, are incident in camera lens It behind portion, is modulated as incident light by lens, so that incident light is imaged at imaging sensor.
Imaging sensor has included at least colorful optical filter array, pixel unit array and image processing circuit.Colour filter Filter Array includes multiple colored filter pixels, and pixel unit array includes multiple pixel units, colored filter battle array Colored filter pixel in column is aligned with respective pixel unit in pixel unit array.The incidence modulated by stationary lens Light is irradiated to corresponding pixel unit after being filtered by colored filter pixel.And photoelectricity is carried out by the pixel unit and is turned It changes, to convert optical signals to electric signal, to collect the image information of electrical signal form.In general, telecommunications here Number be analog signal.
In turn, image processing circuit carries out image procossing to pixel unit array institute acquired image information.In this reality It applies in example, image processing circuit is specifically used for executing following steps: according to acquired image information, identifying in image at least Two target areas determine the first exposure parameter of target area, according to target area occupied area in the picture, adjust target The of image is calculated according to the first exposure parameter and corresponding weighted value of each target area in the corresponding weighted value in region Two exposure parameters are exposed processing to the image according to the second exposure parameter of image.
As a kind of possible implementation, Fig. 7 is the schematic diagram of image processing circuit, as shown in fig. 7, image procossing is electric Road includes 71, analogue signal processor (Analog Correlated double sampler (Correlated Double Sampling, CDS) Signal Processor, ASP) 72, A-D converter (Analog to Digital Converter, ADC) 73, image letter Number processor (Image Signal Processing, ISP) 74 and sensing control block (Sensor Control Block) 75。
Pixel unit array 70 is connect with CDS71, and CDS71, ASP72, ADC73 and ISP74 are sequentially connected with, thus successively right The image information of pixel unit array acquisition carries out image procossing.Sensing control block 75 respectively with pixel unit array, CDS71, ASP72, ADC73 are connected with ISP74, and sensing control block 75 is used for according to the control parameter got from ISP74, to pixel unit Array, CDS71, ASP72, ADC73 image processing process controlled.
Wherein, CDS71, the control parameter for being provided according to sensing control block 75, using correlated-double-sampling mode, to figure As the collected analog electrical signal of sensor carries out noise suppressed.
ASP72, for according to sensing control block 75 provide control parameter, to the analog electrical signal carry out signal amplification, The signal processings such as automatic exposure adjustment, timing control, pixel samples control.
ADC73, the control parameter for being provided according to sensing control block 75, by the analog electrical signal of continuous variable, conversion For discrete digital electric signal, to obtain the image information of digital electric signal form.
ISP74, for carrying out image procossing according to the image information of digital electric signal form.Specifically, the present embodiment In, ISP74 identifies at least two target areas in image;And at least two target area target areas Zhong Ge are determined respectively First exposure parameter;According to each target area in described image occupied area, adjust the corresponding weighted value in each target area;Root According to the first exposure parameter and corresponding weighted value of each target area, the second exposure parameter of described image is calculated.In turn ISP74 is exposed processing to described image according to the second exposure parameter of described image.
Further, mobile terminal can also include graphics processor (Graphics Processing Unit, GPU), use It is rendered in the image after exposure-processed, so that it is shown on the display screen of mobile terminal.
In the present embodiment, mobile terminal has fully considered influence of the different zones to exposure parameter in image, solves existing There is the technical problem that exposure-processed accuracy is not high in technology.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (8)

1. a kind of exposure processing method, which comprises the following steps:
Identify at least two target areas in image;
Determine the first exposure parameter of at least two target area;
According at least two target areas target area Zhong Ge occupied area in described image, each target area pair is adjusted The weighted value answered, comprising: if the target area comprising face and/or the target area comprising the body shared face in described image Product ratio is lower than first threshold, and it is corresponding that the target area comprising face and/or the target area comprising body is turned up Weighted value, and turn down the corresponding weighted value in the target area comprising background;If the target area occupied area comprising background Ratio is higher than second threshold, and the corresponding weighted value in target area and/or the mesh comprising body comprising face is turned up The corresponding weighted value in region is marked, and turns down the corresponding weighted value in target area comprising background;
According to the first exposure parameter and corresponding weighted value of each target area, the second exposure ginseng of described image is calculated Number;
According to the second exposure parameter of described image, processing is exposed to described image.
2. exposure processing method according to claim 1, which is characterized in that at least two targets in the identification image Region, comprising:
Identify in described image whether include portrait;
When in described image including portrait, target area, the target area comprising body in described image comprising face are identified Domain and/or target area comprising background.
3. exposure processing method according to claim 2, which is characterized in that comprising face in the identification described image Target area, the target area comprising body and/or the target area comprising background, comprising:
Obtain the corresponding depth information of each pixel in described image;
According to the corresponding depth information of pixel each in described image, target area identification is carried out to each pixel, to identify It include target area, the target area comprising body and/or the target area comprising background of face in described image.
4. exposure processing method according to claim 1-3, which is characterized in that the determination described at least two First exposure parameter of target area, comprising:
For each target area at least two target area, the brightness of the target area is calculated;
According to the brightness of the target area, the first exposure parameter of the target area is determined;Wherein, the first exposure ginseng Number includes exposure bias value.
5. a kind of exposure-processed device characterized by comprising
Identification module, for identification at least two target areas in image;
Determining module, for determining the first exposure parameter of at least two target area;
Module is adjusted, for adjusting according at least two target areas target area Zhong Ge occupied area in described image The corresponding weighted value in whole each target area, wherein adjustment module, if specifically for the target area comprising face and/or comprising The target area of body occupied area ratio in described image is lower than first threshold, and the target area comprising face is turned up And/or the corresponding weighted value in the target area comprising body, and turn down the corresponding weight in the target area comprising background Value;If the target area occupied area ratio comprising background is higher than second threshold, the target area pair comprising face is turned up The corresponding weighted value of weighted value and/or the target area comprising body answered, and turn down the target comprising background The corresponding weighted value in region;
Described image is calculated for the first exposure parameter and corresponding weighted value according to each target area in computing module The second exposure parameter;
Processing module is exposed processing to described image for the second exposure parameter according to described image.
6. a kind of terminal device, which is characterized in that including exposure-processed device as claimed in claim 5.
7. a kind of terminal device, which is characterized in that include one or more of the following components: shell and be located at the intracorporal place of the shell Manage device and memory, wherein the memory is stored with executable program, and the processor is executed by the executable program Exposure processing method according to any one of claims 1-4.
8. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor Exposure processing method according to any one of claims 1-4 is realized when row.
CN201710459556.0A 2017-06-16 2017-06-16 Exposure processing method, device and terminal device Active CN107241558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710459556.0A CN107241558B (en) 2017-06-16 2017-06-16 Exposure processing method, device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710459556.0A CN107241558B (en) 2017-06-16 2017-06-16 Exposure processing method, device and terminal device

Publications (2)

Publication Number Publication Date
CN107241558A CN107241558A (en) 2017-10-10
CN107241558B true CN107241558B (en) 2019-07-19

Family

ID=59986476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710459556.0A Active CN107241558B (en) 2017-06-16 2017-06-16 Exposure processing method, device and terminal device

Country Status (1)

Country Link
CN (1) CN107241558B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108307123B (en) * 2018-01-22 2021-10-26 维沃移动通信有限公司 Exposure adjusting method and mobile terminal
CN108848320B (en) * 2018-07-06 2021-01-26 京东方科技集团股份有限公司 Depth detection system and exposure time adjusting method thereof
CN109242794B (en) * 2018-08-29 2021-05-11 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
US11089228B2 (en) * 2018-10-25 2021-08-10 Canon Kabushiki Kaisha Information processing apparatus, control method of information processing apparatus, storage medium, and imaging system
CN111447405B (en) * 2019-01-17 2021-10-29 杭州海康威视数字技术股份有限公司 Exposure method and device for video monitoring
CN109922275B (en) * 2019-03-28 2021-04-06 苏州科达科技股份有限公司 Self-adaptive adjustment method and device of exposure parameters and shooting equipment
CN110072050B (en) * 2019-03-28 2021-03-30 苏州科达科技股份有限公司 Self-adaptive adjustment method and device of exposure parameters and shooting equipment
CN110493538B (en) * 2019-08-16 2021-08-24 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN114727028B (en) * 2019-12-30 2024-04-16 深圳市道通智能航空技术股份有限公司 Image exposure method and device and unmanned aerial vehicle
CN113163101B (en) * 2020-01-22 2023-02-28 浙江宇视科技有限公司 Image exposure adjusting method, device, equipment and medium
CN114257712A (en) * 2020-09-25 2022-03-29 华为技术有限公司 Method and device for controlling light supplementing time of camera module
CN113891009B (en) * 2021-06-25 2022-09-30 荣耀终端有限公司 Exposure adjusting method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6349175B1 (en) * 1997-05-13 2002-02-19 Canon Kabushiki Kaisha Flash photography system
CN101247480A (en) * 2008-03-26 2008-08-20 北京中星微电子有限公司 Automatic exposure method based on objective area in image
CN104333710A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Camera exposure method, camera exposure device and camera exposure equipment
CN104394326A (en) * 2014-11-10 2015-03-04 广东欧珀移动通信有限公司 Photometry method and terminal
CN106682620A (en) * 2016-12-28 2017-05-17 北京旷视科技有限公司 Human face image acquisition method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101812807B1 (en) * 2011-06-29 2017-12-27 엘지이노텍 주식회사 A method of adaptive auto exposure contol based upon adaptive region's weight

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6349175B1 (en) * 1997-05-13 2002-02-19 Canon Kabushiki Kaisha Flash photography system
CN101247480A (en) * 2008-03-26 2008-08-20 北京中星微电子有限公司 Automatic exposure method based on objective area in image
CN104394326A (en) * 2014-11-10 2015-03-04 广东欧珀移动通信有限公司 Photometry method and terminal
CN104333710A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Camera exposure method, camera exposure device and camera exposure equipment
CN106682620A (en) * 2016-12-28 2017-05-17 北京旷视科技有限公司 Human face image acquisition method and device

Also Published As

Publication number Publication date
CN107241558A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
CN107241558B (en) Exposure processing method, device and terminal device
CN109348089B (en) Night scene image processing method and device, electronic equipment and storage medium
CN107888840B (en) High-dynamic-range image acquisition method and device
JP7015374B2 (en) Methods for image processing using dual cameras and mobile terminals
CN107959778B (en) Imaging method and device based on dual camera
CN108495050A (en) Photographic method, device, terminal and computer readable storage medium
CN108900782A (en) Exposal control method, device and electronic equipment
CN109068067A (en) Exposal control method, device and electronic equipment
CN110022469B (en) Image processing method, image processing device, storage medium and electronic equipment
WO2019148978A1 (en) Image processing method and apparatus, storage medium and electronic device
CN109218627B (en) Image processing method, image processing device, electronic equipment and storage medium
CN108702437A (en) High dynamic range depth for 3D imaging systems generates
CN108024056B (en) Imaging method and device based on dual camera
EP1583033A2 (en) Digital cameras with luminance correction
CN109005361A (en) Control method, device, imaging device, electronic equipment and readable storage medium storing program for executing
CN110225248A (en) Image-pickup method and device, electronic equipment, computer readable storage medium
CN108156369B (en) Image processing method and device
CN110248107A (en) Image processing method and device
CN109068058A (en) Filming control method, device and electronic equipment under super night scene mode
JP2014014076A (en) Image blur based on 3d depth information
CN107370910B (en) Minimum surround based on optimal exposure exposes set acquisition methods
CN110246101A (en) Image processing method and device
CN109639960A (en) Image processing apparatus, image processing method and recording medium
CN107846556A (en) imaging method, device, mobile terminal and storage medium
CN109361853B (en) Image processing method, image processing device, electronic equipment 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
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant