CN107438163A - A kind of photographic method, terminal and computer-readable recording medium - Google Patents
A kind of photographic method, terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107438163A CN107438163A CN201710643860.0A CN201710643860A CN107438163A CN 107438163 A CN107438163 A CN 107438163A CN 201710643860 A CN201710643860 A CN 201710643860A CN 107438163 A CN107438163 A CN 107438163A
- Authority
- CN
- China
- Prior art keywords
- region
- value
- present intensity
- image
- coefficient
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a kind of photographic method, terminal and computer-readable recording medium, wherein, methods described includes:The first image collected is divided into N number of region, determines N number of first present intensity value corresponding to N number of region, wherein, N is the natural number more than 1;M region for meeting preparatory condition is determined according to the N number of first present intensity value, wherein, M is the natural number more than or equal to 1, and M<N;The amendment light metering weight in the M region is determined according to the default light metering weight in the M region;According to the first present intensity value in the M region and the corresponding adjustment brightness value corrected the first present intensity that (N M) individual region outside the M region is removed in light metering weight and N number of region and corresponding default light metering weight, determine described first image;Exposure parameter is determined according to the adjustment brightness value, taken pictures according to the exposure parameter.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of photographic method, terminal and computer-readable recording medium.
Background technology
With the fast development of the communication technology, terminal increasingly develops to intelligentized direction, such as current smart mobile phone
Or tablet personal computer, its function is also more and more, and the mobile communication terminal is not the simple mutually interconnection for being used for meeting people already
System, more as highly important mobile personal recreation terminal in people's daily life.
At present, camera function has turned into the essential function of intelligent terminal, and people can record excellent anywhere or anytime
Moment.When being shot, in the environment of backlight, the brightness that possible reference object is presented will be dark more than background.Conversely,
If light source direct irradiation, when reference object, the brightness that reference object is presented will be far brighter than the background.And work as reference object
Brightness it is obvious partially bright or obvious partially dark, may result in reference object because of overexposure or under-exposure makes shooting
The related feature of the image deprivation of object.
The content of the invention
In view of this, the embodiment of the present invention it is expected to provide a kind of photographic method, terminal and computer-readable recording medium, solution
In prior art of having determined in shooting process reference object overexposure or under-exposure and make the image of reference object
The problem of losing correlated characteristic, is realized by being adjusted to the light metering weight in different images region, and brightness is carried out to image
Adjustment, so as to avoid reference object overexposure or under-exposure, and then improves the quality of image.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
In a first aspect, the embodiment of the present invention provides a kind of photographic method, methods described includes:
The first image collected is divided into N number of region, determines N number of first present intensity corresponding to N number of region
Value, wherein, N is the natural number more than 1;
M region for meeting preparatory condition is determined according to the N number of first present intensity value, wherein, M for more than or equal to
1 natural number, and M<N;
The amendment light metering weight in the M region is determined according to the default light metering weight in the M region;
Removed according in the first present intensity value in the M region and corresponding amendment light metering weight and N number of region
First present intensity and corresponding default light metering weight in (N-M) the individual region gone outside the M region, determine described first
The adjustment brightness value of image;
Exposure parameter is determined according to the adjustment brightness value, taken pictures according to the exposure parameter.
Second aspect, the embodiment of the present invention provide a kind of terminal, and the terminal comprises at least:Camera, processor, storage
Device and communication bus, wherein:
The camera, for gathering image;
The communication bus, for realizing the connection communication between processor and memory;
The memory, for storage image brightness adjustment program;
The processor, for performing the brightness of image adjustment programme stored in memory, to realize following steps:
The first image collected is divided into N number of region, determines N number of first present intensity corresponding to N number of region
Value, wherein, N is the natural number more than 1;
M region for meeting preparatory condition is determined according to the N number of first present intensity value, wherein, M for more than or equal to
1 natural number, and M<N;
The amendment light metering weight in the M region is determined according to the default light metering weight in the M region;
Removed according in the first present intensity value in the M region and corresponding amendment light metering weight and N number of region
First present intensity and corresponding default light metering weight in (N-M) the individual region gone outside the M region, determine described first
The adjustment brightness value of image;
Exposure parameter is determined according to the adjustment brightness value, taken pictures according to the exposure parameter.
The third aspect, the embodiment of the present invention provide a kind of computer-readable recording medium, the computer-readable storage medium
Program of taking pictures is stored with matter, the step of program of taking pictures realizes above-mentioned photographic method when being executed by processor.
A kind of photographic method, terminal and the computer-readable recording medium that embodiments of the invention are provided, wherein, first
The first image collected is divided into N number of region, determines N number of first present intensity value corresponding to N number of region, wherein, N
For the natural number more than 1;Then M region for meeting preparatory condition is determined according to N number of first present intensity value, wherein, M
For the natural number more than or equal to 1, and M<N;And the M region is determined according to the default light metering weight in the M region
Correct light metering weight;The first present intensity value and corresponding amendment light metering weight and N number of area further according to the M region
First present intensity in (N-M) individual region outside the M region and corresponding default light metering weight are removed in domain, determines institute
The adjustment brightness value of the first image is stated, exposure parameter is finally determined according to the adjustment brightness value, entered according to the exposure parameter
Row is taken pictures, in this way, when being shot, can adjust corresponding light-metering according to the brightness value of each segmented areas of preview image
Weight, so as to realize that the brightness to image is adjusted, reference object overexposure or under-exposure, Jin Erti can be avoided
The high quality of shooting image.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is a kind of implementation process schematic diagram of photographic method provided in an embodiment of the present invention;
Fig. 4 is the implementation process schematic diagram of another photographic method provided in an embodiment of the present invention;
Fig. 5 is the terminal interface schematic diagram of the image of the embodiment of the present invention first;
Fig. 6 is the terminal interface schematic diagram of the image of the embodiment of the present invention second;
Fig. 7 is the terminal interface schematic diagram of the image of the embodiment of the present invention the 3rd;
Fig. 8 is a kind of composition structural representation of terminal provided in an embodiment of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
UE 201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB 2021 and other eNodeB 2022 etc..Wherein, eNodeB 2021 can pass through
Backhaul (backhaul) (such as X2 interface) is connected with other eNodeB 2022, and eNodeB 2021 is connected to EPC 203,
ENodeB 2021 can provide the access that UE 201 arrives EPC 203.
EPC 203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME 2033, SGW (Serving Gate
Way, gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME 2031 is the processing Hes of UE 201
The control node of signaling between EPC 203, there is provided carrying and connection management.HSS 2032 is used to provide some registers to manage
Such as function of attaching position register (not shown) etc, and some are preserved about service features, data rate etc.
The special information of user.All customer data can be transmitted by SGW 2034, and PGW 2035 can provide UE 201
IP address distribution and other functions, PCRF 2036 be the strategy and charging control plan of business data flow and IP bearing resources
Slightly decision point, it selects and provided available strategy with charge execution function unit (not shown) for strategy and charging control is determined
Plan.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.Based on above-mentioned mobile terminal hardware configuration and communications network system, carry
Go out each embodiment of the inventive method.
The embodiment of the present invention provides a kind of photographic method, and Fig. 3 is a kind of reality of photographic method provided in an embodiment of the present invention
Existing schematic flow sheet, as shown in figure 3, the described method comprises the following steps:
Step S301, the first image collected is divided into N number of region, determined N number of first corresponding to N number of region
Present intensity value.
Here, the first image collected is divided into N number of region by step S301, is determined N number of corresponding to N number of region
First present intensity value can be realized by terminal, it is possible to further be mobile terminal, such as can be mobile phone
(mobile phone), iPad, notebook, wearable intelligent wrist-watch etc. have the mobile terminal of wireless communication ability, and the mobile terminal is extremely
Include camera and display screen less, the camera can be with the same face of plane where the display screen of terminal, can also
Positioned at the opposite face with plane where the terminal display.
It should be noted that described first image can be the preview image collected in the camera applications opening of terminal.
In the embodiment of the present invention and other embodiment, N is the natural number more than 1, such as N can be 256, that is to say, that
First image is divided into 16*16 matrix image region.
The brightness of image refers to the intensity of image pixel, and black is most dark, and white is most bright, and black is represented with 0, in vain
Color is represented with 255.One pixel, substantially represented with three color components of RGB (Red Green Blue, RGB)
R (0-255), G (0-255), B (0-255).This brightness and form and aspect are that not related, same brightness both can be red
Color can also be green, the same just as the image in black and white (gray scale) television set, not can determine that it is red only according to a gray scale
Color or green.So the brightness of pixel and form and aspect are unrelated.
The first present intensity value is the present intensity average value of an image-region.It is right in actual implementation process
In gray level image, determine that the first present intensity value of an image-region can be by by each pixel in the image-region
Brightness value carry out geometric average or weighted average to realize.And for coloured image, determine one image-region
First present intensity value is hue saturation brightness (Hue first by the rgb space matrix conversion of the image-region
Saturation Lightness, HSL) space matrix, the wherein L * component of HSL space matrixs represents brightness, then according to
The L * component of the image-region determines.
And the L * component in HSL matrixes determines that the first present intensity value of the image-region can pass through two ways
Realize:
First way:Average (mean) computing twice is carried out to the L * component of the image-region, you can obtain the image district
The average brightness in domain, namely the first present intensity value;
The second way:By L * component in the image-region change to log space calculate described image log space it is bright
Spend average value;The log space average brightness of the image-region is subjected to antilogarithm calculating, obtains the brightness of the image-region
Average value.
Certainly, the method for the first present intensity of above-mentioned calculating image-region is exemplary illustration, people in the art
Member is using the technological thought of the present invention, and itself proposed according to its real needs is it is determined that the first present intensity value of image-region
Mode it is within the scope of the present invention, herein without exhaustive one by one.
Step S302, M region for determining to meet preparatory condition according to N number of first present intensity value.Here, it is described
Step S302 determines to meet that M region of preparatory condition can be realized by terminal according to N number of first present intensity value.
The M is natural number more than or equal to 1, and M<N.M region can be understood as needing to carry out light metering weight
The region of adjustment.
The average brightness value of described first image is determined according to N number of first present intensity value, if the first image
When average brightness value is less than threshold value (the 5th threshold value), illustrates that the average brightness value of the image is too low, easily expose
Light deficiency, now need to improve the average brightness value of the first image;If the average brightness value of the first image is higher than another threshold
It is worth (first threshold), illustrates that the average brightness value of the image is too high, overexposure easily occurs, now needs to reduce the first image
Average brightness value.
The average brightness value of described first image can be the first present intensity value of N number of image-region is weighted it is flat
Obtain.
The average brightness value for reducing or improving image can be realized by changing the light metering weight of some image-regions.
Step S303, the amendment light metering weight in the M region is determined according to the default light metering weight in the M region.
Here, the step S303 determines that the amendment in the M region is surveyed according to the default light metering weight in the M region
Light weight can be realized by terminal.
In order to be better understood from the embodiment of the present invention, light-metering and various Exposure Meterings are illustrated at this.
Light-metering refers to determine the brightness that reference object reflects, also referred to as reflective light-metering.Common light-metering side
Formula has:Central average metering, central Partial metering, spot light-metering, Multi spot metering and evaluation light-metering.
Central average metering is that the sensory elements for being responsible for light-metering using a kind of most metering modes are surveyed the entirety of camera
Light value organically separates, and the photometric data of middle body occupies most ratios, and the photometric data beyond picture center is made
The booster action of light-metering is played for fraction ratio.By camera processor to this two lattice numeric weights averagely after ratio
Example, the camera photometering data shot.That is the light metering weight value in the region of picture middle body is larger, picture surrounding
Partial area metering weighted value is smaller.
Central Partial metering and central average metering are two kinds of different Exposure Meterings, and central average metering is with central area
Other regions are the Exposure Metering of auxiliary based on domain, and middle body light-metering is then that only one piece of region in picture center is surveyed
Light, photometric range are about 12 3 the percent to 1 of picture area.
Spot light-metering is exactly only to carry out light-metering to a point as its name suggests, and the point and focusing (are in fact in same position
One very small region, it is not complete point), the photometry region that most of points survey camera is the hundred of overall picture region
/ mono- to 3 percent.
Multi spot metering is by the brightness to scenery diverse location, by methods such as flash lamp compensation, reaches optimal and takes the photograph
Shadow effect, it is particularly suitable for shooting backlight object.First, user will carry out light-metering to scenery background, generally light source objects, then
Carry out AE lockings;Second step is to carry out light-metering to backlight scenery, and most professional or quasi- mm professional camera special can all automatically analyze, and
It is that backlight object carries out light filling with flash lamp.
It is to separate the picture into several regions to evaluate light-metering, each independent light-metering in region, and then camera processor collects each area
Numerical value that domain is measured simultaneously draws an end value by weight calculation, so as to carry out light-metering to whole picture.This metering mode
The balanced picture of light and shade can be obtained easily by being advantageous in that, be not in local bloom overexposure or owed to expose, and whole picture is bright
It is dark balanced.
The one or more in above Exposure Metering have been used in the embodiment of the present invention or other embodiment.
Light meter corresponding with this kind of Exposure Metering is all stored with regardless of Exposure Metering, in terminal, in light meter
Have and light metering weight is preset corresponding to each image-region., can be by changing image district when needing to adjust image frame brightness
Light metering weight corresponding to domain is realized.
Modification one image-region corresponding to light metering weight can be will corresponding to the image-region preset light metering weight it is straight
Take over and be changed to amendment light metering weight, in other embodiments, can also be multiplied by light metering weight is preset corresponding to the image-region
One coefficient obtains correcting light metering weight, and when to increase the light metering weight of the image-region, this coefficient is the number more than 1,
When to reduce the light metering weight of the image-region, this coefficient is the number less than 1.
Step S304, according to the first present intensity value in the M region and corresponding amendment light metering weight and described N number of
First present intensity in (N-M) individual region outside the M region and corresponding default light metering weight are removed in region, it is determined that
The adjustment brightness value of described first image.
Here, first present intensity values and corresponding amendment light metering weight of the step S304 according to the M region
With the first present intensity that (N-M) individual region outside the M region is removed in N number of region and corresponding default light-metering
Weight, the adjustment brightness value for determining described first image can be realized by terminal.
In other embodiments, the adjustment brightness value of described first image can be current by the first of the M region
Brightness value be multiplied by corresponding to amendment light metering weight and sum, then (N- outside the M region will be removed in N number of region
M) first present intensity in individual region be multiplied by corresponding to default light metering weight and sum, then the two summing values are added divided by
What N was obtained.
Step S305, exposure parameter is determined according to the adjustment brightness value, taken pictures according to the exposure parameter.
Here, it can be realized by terminal that the adjustment brightness value as exposure parameter take pictures by the step S305
's.
In other embodiments, the step S305 can be realized by the following steps:
Step S3051, obtain the target brightness value of shooting image;
Step S3052, determine that exposure value indexes according to the target brightness value and the adjustment brightness value;
Step S3053, the exposure value determined is indexed according to the exposure value and is taken pictures;
In the embodiment of the step S3051 to S3053, the target brightness value can be the production firm by terminal
It is being set when terminal is dispatched from the factory or be configured according to the shooting demand of oneself by user.
In practical implementations, it can determine that exposure value indexes according to formula (1-1):
Wherein, in the formula (1-1), index indexes for exposure value, and tar_luma is target brightness value, and lg () is
Common logarithm function, adj_luma are adjustment brightness value.
Each exposure value index corresponds to an exposure value, and exposure indexes and the corresponding relation of exposure value is stored in an exposure
In light table, wherein, exposure index is smaller, and corresponding exposure value is also just smaller, and the time for exposure is shorter.In embodiments of the present invention,
The brightness of image is adjusted by changing the light metering weight in different images region, and then adjusts exposure parameter, can so be avoided
Image overexposure or under-exposure.
In a kind of photographic method that embodiments of the invention provide, the first image collected is divided into first N number of
Region, N number of first present intensity value corresponding to N number of region is determined, wherein, N is the natural number more than 1;Then according to institute
The M region that N number of first present intensity value determines to meet preparatory condition is stated, wherein, M is the natural number more than or equal to 1, and M<
N;And the amendment light metering weight in the M region is determined according to the default light metering weight in the M region;Further according to the M
Removed in the first present intensity value in region and corresponding amendment light metering weight and N number of region outside the M region
(N-M) first present intensity in individual region and corresponding default light metering weight, the adjustment brightness value of described first image is determined, most
Exposure parameter is determined according to the adjustment brightness value afterwards, taken pictures according to the exposure parameter, in this way, when being shot,
Corresponding light metering weight can be adjusted according to the brightness value of each segmented areas of preview image, so as to realize the brightness to image
It is adjusted, reference object overexposure or under-exposure can be avoided, and then improves the quality of shooting image.
Based on foregoing embodiment, the embodiment of the present invention provides a kind of photographic method again, and applied to terminal, the terminal is at least
Including camera, Fig. 4 is the implementation process schematic diagram of another photographic method provided in an embodiment of the present invention, as shown in figure 4, institute
The method of stating comprises the following steps:
Step S401, terminal obtain the operational order that user starts camera applications.
Here, in the present embodiment, user can start camera applications in several ways, such as:Can be by clicking on
The camera applications icon for stating terminal starts camera applications, can also be realized by pressing the touch operation region of terminal side, i.e.,
The operational order that terminal obtains user's startup camera applications includes:What the default touch operation region of acquisition terminal side received
Touch operation, and determine control instruction corresponding to touch operation;When control instruction is starts camera applications, starting camera should
With.Also camera applications can be started by voice and gesture etc. in addition.The triggering side of the startup camera applications listed above enumerated
What formula was merely exemplary, those skilled in the art using the present invention technological thought, proposed according to its real needs its
The triggering mode that it starts camera applications is within the scope of the present invention, herein without exhaustive one by one.
Step S402, the terminal are based on the operation start instruction camera;
Here, the camera can be that front camera can also be rear camera.For example each camera applications open
Can be that acquiescence starts rear camera when dynamic.Can also start the camera used when camera applications are last to close.
After terminal starts the camera, into the shooting preview interface of terminal, user can in shooting preview interface
To carry out preview to the image captured by the camera.In the terminal, camera can be that standard camera head, wide-angle are taken the photograph
As head, focal length camera and black and white shooting are first-class.
In other embodiments of the present invention, when terminal includes multiple cameras, for example front camera has two, rearmounted
Camera has two, and the type of two front cameras can be identical or different.Such as two preposition shootings
Head is all standard camera head, or a front camera is standard camera head, and another front camera is black and white camera.
Similarly, the type of two rear cameras can be identical or different.For example two rear cameras are all
It is standard camera head, or, a rear camera is wide-angle camera, and another rear camera is focal length camera.
The first image collected is divided into N number of region by step S403, the terminal, determines that N number of region is corresponding
N number of first present intensity value.
Here, described first image is to start the preview image collected after camera applications, preview image (the first image)
Terminal interface schematic diagram referring to Fig. 5, from fig. 5, it can be seen that because the collection environment of preview image is dark, preview image
All than dark, human face region 501 can not be distinguished clearly for overall picture brightness.
Here, N is the natural number more than 1, such as N is 12,8,60,16,4 etc., is illustrated exemplified by 9, in equalization
In the case of division, that is to say, that the first image is divided into 3*3 image-region.N value can be with the shape of terminal interface
It is relevant, if terminal interface is shaped as rectangle, then N can be 12,54, etc..It is assumed that corresponding to 9 regions first work as
Preceding brightness value is respectively 50,70,45,63,95,70,52,80,60.
Step S404, if the flash state of camera applications is opens, the shooting that the terminal is sent according to user refers to
Order obtains the second image collected during the pre flashing of flash lamp.
Here, when user opens flash lamp, the flash state of camera applications sends shooting to open in user
In the second image collected after instruction, when the pre flashing of flash lamp got, as shown in fig. 6, face region 601,
Brightness is very high, easy overexposure.
Second image is divided into N number of region by step S405, the terminal, is determined N number of corresponding to N number of region
Second present intensity value.
Here, the second image is equally divided into 9 regions, it is assumed that second current corresponding to 9 regions in the second image
Brightness value is respectively 65,85,60,75,210,90,80,100,80.
Step S406, the terminal is by the ratio of the first present intensity value and the second present intensity value in N number of region
More than the region of the 4th threshold value, it is defined as M region for meeting preparatory condition.
Here, the step S406 is during realization, it is first determined the second present intensity value in N number of region and
The ratio of first present intensity value, then region of the ratio more than the 4th threshold value is defined as M region for meeting preparatory condition.
In embodiments of the present invention, the ratio of the second present intensity value in this 9 regions and the first present intensity value is distinguished
For 1.3,1.2,1.3,1.2,2.2,1.3,1.5,1.3,1.3.It is assumed that the 4th threshold value is 1.8, then in embodiments of the present invention
Meeting the region of preparatory condition has one, is the 5th region.
The default light metering weight in the M region is multiplied by the numerical value that the 5th coefficient obtains and determined by step S407, institute's terminal
For the amendment light metering weight in the M region.
Here, each region corresponds to a light metering weight, and this light metering weight is pre-set, and Exposure Metering is not
Together, then it is also different to preset light metering weight corresponding to each region, for example takes center in embodiments of the present invention and put down
Equal Exposure Metering, then it is bigger closer to light metering weight corresponding to the region in image center, closer to the region of image border
Corresponding light metering weight is smaller, for example, in embodiments of the present invention light metering weight corresponding to 9 regions be respectively 0.1,0.2,
0.1、0.2、0.8、0.1、0.1、0.2、0.1。
5th coefficient is a preset value, can be set in advance by the developer of the photographic method, may be used also
To be to be set by user according to the needs of oneself.It is 1.5 to assume the 5th coefficient in embodiments of the present invention, then, the 5th area
The revision light metering weight in domain is 1.2.
Step S408, second present intensity value and corresponding amendment light metering weight of the terminal according to the M region
With the second present intensity that (N-M) individual region outside the M region is removed in N number of region and corresponding default light-metering
Weight, determine the adjustment brightness value of second image.
Here, because flash lamp function is opened, then it is determined that the adjustment for the second image being to determine during brightness adjustment value
Brightness value, and be that average determination is weighted according to the second present intensity value and light metering weight.
Step S409, exposure parameter is determined according to the adjustment brightness value, taken pictures according to the exposure parameter.
In embodiments of the present invention, exposure parameter is determined according to the adjustment brightness value, and entered according to the exposure parameter
Row is taken pictures, and obtains the 3rd image.Fig. 7 is the terminal schematic diagram of the image of the embodiment of the present invention the 3rd, as shown in fig. 7, utilizing this hair
The 3rd image that the photographic method of bright embodiment obtains, due to improving the light metering weight in bright block region 701, overall picture it is bright
Degree improves, and according to brightness-formula (1-1) it is recognised that thus reducing the time for exposure, while enhances the brightness of whole picture,
So that bright block region is unlikely to overexposure, and background area is unlikely to too dark.
It should be noted that it be may be referred in the present embodiment with the explanation of same steps in other embodiments or concept other
Description in embodiment.
In photographic method provided in an embodiment of the present invention, terminal should according to the operation start instruction camera of user first
With, and control camera to gather the first image, the first image collected is then divided into N number of region, determines N number of area
N number of first present intensity value corresponding to domain, if the flash state of camera applications is opens, the terminal is sent according to user
Shooting instruction second image for collecting when obtaining the pre flashing of flash lamp, second image is also divided into N number of region,
N number of second present intensity value corresponding to N number of region is determined, and according to the first present intensity value in N number of region and
Two present intensity values determine M region for meeting preparatory condition, and determine the amendment light metering weight in the M region, further according to
The M region is removed in the second present intensity value in the M region and corresponding amendment light metering weight and N number of region
Outside (N-M) individual region the second present intensity and corresponding default light metering weight, determine that the adjustment of second image is bright
Angle value, finally the adjustment brightness value is taken pictures as exposure parameter, this way it is possible to avoid taking pictures and glistening under half-light
When lamp is opened, overexposure easily occurs for bright block region, so as to improve the quality of shooting picture.
The embodiment of the present invention provides a kind of photographic method again, and applied to terminal, the terminal comprises at least camera, this hair
The photographic method that bright embodiment provides comprises the following steps:
Step 11, terminal obtains the operational order that user starts camera applications.
Step 12, the terminal is based on the operation start instruction camera, and controls the camera to gather the first figure
Picture.
Step 13, the first image collected is divided into N number of region by the terminal, determines N corresponding to N number of region
Individual first present intensity value.
Wherein, N is the natural number more than 1.
Step 14, the terminal determines the average brightness value of described first image according to N number of first present intensity value.
Step 15, the terminal judges whether the average brightness value of described first image is more than first threshold.
Here, if the average brightness value of described first image is more than first threshold, into step 16;If described first
The average brightness value of image is not more than first threshold, into step
Step 16, the terminal is true less than the region of Second Threshold by the first present intensity value corresponding to N number of region
It is set to M region for meeting preparatory condition.
Here, if the average brightness value of described first image is more than first threshold, then need to reduce the first image
Average brightness value, the region that the first present intensity value can be now less than to Second Threshold are defined as meet preparatory condition M
Region.
In embodiments of the present invention, Second Threshold is assumed to 220.
Step 17, the default light metering weight of first area is multiplied by the first coefficient, the amendment for obtaining the first area is surveyed
Light weight.
Here, the first area is the region that the first present intensity value is less than the 3rd threshold value in the M region, described
First coefficient is more than 1.3rd threshold value is less than Second Threshold, in embodiments of the present invention, it is assumed that the 3rd threshold value is 200.
The first present intensity value is less than 200 region in first area i.e. the M region, current bright for first
The default light metering weight in region of the angle value less than 200 is multiplied by first coefficient, due to the first coefficient be more than 1 be that is by
The light metering weight increase in region of the first present intensity value less than 200.In embodiments of the present invention, it is assumed that the first coefficient is 2.
Step 18, according to the first present intensity value, Second Threshold, the 3rd threshold value and the first coefficient of second area, it is determined that
Second coefficient.
Here, the second area is that the region outside the first area is removed in the M region, that is to say, that the
Two regions are region of the first present intensity value between Second Threshold and the 3rd threshold value.Second coefficient is more than 1 and institute
State the second coefficient and be less than first coefficient.
In embodiments of the present invention, the first present intensity value is more than or equal to the region of Second Threshold, and light metering weight is not
Change, that is to say, that the amendment light metering weight that the first present intensity value is more than or equal to the region of Second Threshold is pre-
If light metering weight is multiplied by what coefficient 1 obtained, in order that the change amplitude for obtaining the light metering weight of second area is relative smooth, the
Second coefficient in each region is the second present intensity value, Second Threshold, the 3rd threshold value and first according to oneself in two regions
Coefficient carries out linear difference determination.
In this step, Second Threshold 220, coefficient corresponding to Second Threshold 220 are 1, and the 3rd threshold value is the 200, the 3rd
First coefficient corresponding to threshold value 200 is 2, then for the region that the first present intensity value is 210, its second coefficient isFor the region that the first present intensity value is 215, its second coefficient is
Step 19, the default light-metering weights of the second area are multiplied by the second coefficient, obtain repairing for the second area
Positive light metering weight.
Step 110, the terminal judges whether the average brightness value of described first image is less than the 5th threshold value.
Here, if the average brightness value of described first image enters step 111 less than the 5th threshold value;If described first
The average brightness value of image is not less than the 5th threshold value, and the shooting instruction for responding user is taken pictures.
Step 111, region of the first present intensity value in N number of region more than the 3rd threshold value is defined as by the terminal
Meet M region of preparatory condition.
Here, if the average brightness value of described first image is less than the 5th threshold value, then illustrate the brightness of the first image
Cross dark, it is necessary to improve the mean flow rate of the first image, now need to improve the light-metering in the higher region of the first present intensity value
Weight.Therefore, the region that the first present intensity value in N number of region is more than to the 3rd threshold value is defined as meeting preparatory condition
M region.
Step 112, the default light metering weight in the 3rd region is multiplied by the 3rd coefficient, the amendment for obtaining the first area is surveyed
Light weight.
Here, the 3rd region is the region that the first present intensity value is more than Second Threshold in the M region, described
3rd coefficient is more than 1.
That is first area is the region that the first present intensity value is more than 220 in the M region, and the 3rd coefficient is
2, i.e. the light metering weight in each region in the 3rd region is increased and is twice.
Step 113, according to the first present intensity of four-range value, Second Threshold, the 3rd threshold value and the first coefficient, it is determined that
4th coefficient.
Here, the 4th region is that the region outside the 3rd region, the 4th region are removed in the M region
It is exactly that the first present intensity value is more than the region that the 3rd threshold value is less than Second Threshold, second coefficient is more than 1 and less than described
First coefficient.
Equally, it is each in the 4th region in order that the change amplitude for obtaining four-range light metering weight is relative smooth
4th coefficient in region is carried out linearly according to the second present intensity value of oneself, Second Threshold, the 3rd threshold value and the first coefficient
What difference determined.
In this step, Second Threshold 220, the 3rd coefficient corresponding to Second Threshold 220 are 2, and the 3rd threshold value is 200,
Coefficient corresponding to 3rd threshold value 200 is 1, then for the region that the first present intensity value is 210, its second coefficient isFor the region that the first present intensity value is 215, its second coefficient is
Step 114, the four-range is preset into light-metering weights and is multiplied by the 4th coefficient, obtained the four-range and repair
Positive light metering weight.
Step 115, according to the first present intensity value in the M region and corresponding amendment light metering weight and described N number of
First present intensity in (N-M) individual region outside the M region and corresponding default light metering weight are removed in region, it is determined that
The adjustment brightness value of described first image.
Step 116, exposure parameter is determined according to the adjustment brightness value, taken pictures according to the exposure parameter.
It should be noted that it be may be referred in the present embodiment with the explanation of same steps in other embodiments or concept other
Description in embodiment.
In photographic method provided in an embodiment of the present invention, terminal should according to the operation start instruction camera of user first
With, and control camera to gather the first image, the first image collected is then divided into N number of region, and determine described N number of
N number of first present intensity value corresponding to region, it is then determined that the average brightness value of the first image, if the first image is average bright
Angle value is more than first threshold, then just the light metering weight in the region relatively low to brightness in the first image is adjusted, to reduce by
The average brightness value of one image is adjusted brightness value;If the average brightness value of the first image is less than the 5th threshold value, then just
The light-metering weights in the higher region of brightness to the first image are adjusted, and tune is worth to improve the mean flow rate of the first image
Whole brightness value, exposure parameter is finally determined according to adjustment brightness value, and taken pictures according to the exposure parameter, so, can be with
Brightness to image is dynamically adjusted, and then can prevent overexposure or under-exposure, improves the matter of shooting image
Amount.
The embodiment of the present invention provides a kind of terminal, and Fig. 8 is that a kind of composition structure of terminal provided in an embodiment of the present invention is shown
It is intended to, as shown in figure 8, the terminal 800 comprises at least:Processor 801, memory 802, communication bus 803 and camera
804, wherein:
The processor 801, for performing the brightness of image adjustment programme stored in memory, to realize following steps:
The first image collected is divided into N number of region, determines N number of first present intensity corresponding to N number of region
Value, wherein, N is the natural number more than 1;
M region for meeting preparatory condition is determined according to the N number of first present intensity value, wherein, M for more than or equal to
1 natural number, and M<N;
The amendment light metering weight in the M region is determined according to the default light metering weight in the M region;
Removed according in the first present intensity value in the M region and corresponding amendment light metering weight and N number of region
First present intensity and corresponding default light metering weight in (N-M) the individual region gone outside the M region, determine described first
The adjustment brightness value of image;
Exposure parameter is determined according to the adjustment brightness value, taken pictures according to the exposure parameter.
In other embodiments, the M area for determining to meet preparatory condition according to N number of first present intensity value
Domain, including:
The average brightness value of described first image is determined according to N number of first present intensity value;
If the average brightness value of described first image is more than first threshold, by present intensity corresponding to N number of region
The region that value is less than Second Threshold is defined as M region for meeting preparatory condition;
If the average brightness value of described first image is less than or equal to first threshold, by first in N number of region
The region that present intensity value is more than the 3rd threshold value is defined as M region for meeting preparatory condition, wherein, the 3rd threshold value is less than
The Second Threshold.
In other embodiments, the default light metering weight according to the M region determines the amendment in the M region
Light metering weight, including:
The default light metering weight of first area is multiplied by the first coefficient, obtains the amendment light metering weight of the first area,
Wherein, the first area is less than the region of the 3rd threshold value, first coefficient for the first present intensity value in the M region
More than 1;
According to the first present intensity value, Second Threshold, the 3rd threshold value and the first coefficient of second area, the second system is determined
Number, wherein, the second area is that the region outside the first area is removed in the M region, and second coefficient is big
In 1 and being less than first coefficient;
The default light-metering weights of the second area are multiplied by the second coefficient, obtain the amendment light-metering power of the second area
Weight.
In other embodiments, the default light metering weight according to the M region determines the amendment in the M region
Light metering weight, including:
The default light metering weight in the 3rd region is multiplied by the 3rd coefficient, obtains the amendment light metering weight in the 3rd region,
Wherein, the 3rd region is more than the region of Second Threshold, the 3rd coefficient for the first present intensity value in the M region
More than 1;
According to the first present intensity of four-range value, Second Threshold, the 3rd threshold value and the first coefficient, the 4th system is determined
Number, wherein, the 4th region is that the region outside the 3rd region is removed in the M region, and the 4th coefficient is big
In 1 and being less than the 4th coefficient;
The four-range is preset into light-metering weights and is multiplied by the 4th coefficient, obtains the four-range amendment light-metering power
Weight.
In other embodiments, the M area for determining to meet preparatory condition according to N number of first present intensity value
Domain, including:
It is pre- that if the shooting instruction that the flash state of camera applications to open, is sent according to user obtains the flash lamp
The second image collected during sudden strain of a muscle;
Second image is divided into N number of region, determines N number of second present intensity value corresponding to N number of region;
The ratio of first present intensity value and the second present intensity value in N number of region is more than to the area of the 4th threshold value
Domain, it is defined as M region for meeting preparatory condition.
In other embodiments, the amendment light-metering in the M region is determined according to the default light metering weight in the M region
Weight, including:
The default light-metering weights in the M region are multiplied by the numerical value that the 3rd coefficient obtains and are defined as the M region
Correct light metering weight.
The memory 802, for storage image brightness adjustment program;
The communication bus 803, for realizing the connection communication between processor and memory;
The camera 804, for gathering image.
The embodiment of the present invention provides a kind of computer-readable recording medium, and the computer-readable recording medium storage has one
Individual or multiple programs, one or more of programs can be by one or more computing devices, to realize following steps:
The first image collected is divided into N number of region, determines N number of first present intensity corresponding to N number of region
Value, wherein, N is the natural number more than 1;
M region for meeting preparatory condition is determined according to the N number of first present intensity value, wherein, M for more than or equal to
1 natural number, and M<N;
The amendment light metering weight in the M region is determined according to the default light metering weight in the M region;
Removed according in the first present intensity value in the M region and corresponding amendment light metering weight and N number of region
First present intensity and corresponding default light metering weight in (N-M) the individual region gone outside the M region, determine described first
The adjustment brightness value of image;
Exposure parameter is determined according to the adjustment brightness value, taken pictures according to the exposure parameter.
It should be noted that the bat that one or more program in the embodiment of the present invention uses when can be and be taken pictures
According to program.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner, or network equipment etc.) perform method described by each embodiment of the present invention.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of photographic method, it is characterised in that methods described includes:
The first image collected is divided into N number of region, determines N number of first present intensity value corresponding to N number of region, its
In, N is the natural number more than 1;
M region for determining to meet preparatory condition according to N number of first present intensity value, wherein, M is more than or equal to 1
Natural number, and M<N;
The amendment light metering weight in the M region is determined according to the default light metering weight in the M region;
Institute is removed according in the first present intensity value in the M region and corresponding amendment light metering weight and N number of region
First present intensity in (N-M) individual region outside M region and corresponding default light metering weight are stated, determines described first image
Adjustment brightness value;
Exposure parameter is determined according to the adjustment brightness value, taken pictures according to the exposure parameter.
2. method as described in claim 1, it is characterised in that described to be determined completely according to N number of first present intensity value
M region of sufficient preparatory condition, including:
The average brightness value of described first image is determined according to N number of first present intensity value;
It is if the average brightness value of described first image is more than first threshold, present intensity value corresponding to N number of region is small
In the M region that the region of Second Threshold is defined as meeting preparatory condition;
It is if the average brightness value of described first image is less than the 5th threshold value, the first present intensity value in N number of region is big
In the M region that the region of the 3rd threshold value is defined as meeting preparatory condition, wherein, the 3rd threshold value is less than second threshold
Value, the 5th threshold value are less than the first threshold.
3. method as described in claim 2, it is characterised in that the default light metering weight according to the M region is true
The amendment light metering weight in the fixed M region, including:
The default light metering weight of first area is multiplied by the first coefficient, obtains the amendment light metering weight of the first area, wherein,
The first area is the region that the first present intensity value is less than the 3rd threshold value in the M region, and first coefficient is more than
1;
According to the first present intensity value, Second Threshold, the 3rd threshold value and the first coefficient of second area, the second coefficient is determined, its
In, the second area is that region outside the first area is removed in the M region, second coefficient more than 1 and
Less than first coefficient;
The default light-metering weights of the second area are multiplied by the second coefficient, obtain the amendment light metering weight of the second area.
4. method as described in claim 2, it is characterised in that the default light metering weight according to the M region is true
The amendment light metering weight in the fixed M region, including:
The default light metering weight in the 3rd region is multiplied by the 3rd coefficient, obtains the amendment light metering weight in the 3rd region, wherein,
3rd region is the region that the first present intensity value is more than Second Threshold in the M region, and the 3rd coefficient is more than
1;
According to the first present intensity of four-range value, Second Threshold, the 3rd threshold value and the first coefficient, the 4th coefficient is determined, its
In, the 4th region is that region outside the 3rd region is removed in the M region, second coefficient more than 1 and
Less than first coefficient;
The four-range is preset into light-metering weights and is multiplied by the 4th coefficient, obtains the four-range amendment light metering weight.
5. method as described in claim 1, it is characterised in that described to be determined completely according to N number of first present intensity value
M region of sufficient preparatory condition, including:
If the shooting instruction that the flash state of camera applications to open, is sent according to user obtains the pre flashing of flash lamp
The second image collected;
Second image is divided into N number of region, determines N number of second present intensity value corresponding to N number of region;
The ratio of second present intensity value and the first present intensity value in N number of region is more than to the region of the 4th threshold value, really
It is set to M region for meeting preparatory condition.
6. method as described in claim 5, it is characterised in that institute is determined according to the default light metering weight in the M region
The amendment light metering weight in M region is stated, including:
The default light-metering weights in the M region are multiplied by the amendment that the numerical value that the 5th coefficient obtains is defined as the M region
Light metering weight.
7. a kind of terminal, it is characterised in that the terminal comprises at least:Camera, processor, memory and communication bus, its
In:
The camera, for gathering image;
The communication bus, for realizing the connection communication between processor and memory;
The memory, for storage image brightness adjustment program;
The processor, for performing the brightness of image adjustment programme stored in memory, to realize following steps:
The first image collected is divided into N number of region, determines N number of first present intensity value corresponding to N number of region, its
In, N is the natural number more than 1;
M region for determining to meet preparatory condition according to N number of first present intensity value, wherein, M is more than or equal to 1
Natural number, and M<N;
The amendment light metering weight in the M region is determined according to the default light metering weight in the M region;
Institute is removed according in the first present intensity value in the M region and corresponding amendment light metering weight and N number of region
First present intensity in (N-M) individual region outside M region and corresponding default light metering weight are stated, determines described first image
Adjustment brightness value;
Exposure parameter is determined according to the adjustment brightness value, taken pictures according to the exposure parameter.
8. terminal as described in claim 7, it is characterised in that described to be determined completely according to N number of first present intensity value
M region of sufficient preparatory condition, including:
The average brightness value of described first image is determined according to N number of first present intensity value;
It is if the average brightness value of described first image is more than first threshold, present intensity value corresponding to N number of region is small
In the M region that the region of Second Threshold is defined as meeting preparatory condition;
It is current by N number of region first if the average brightness value of described first image is less than or equal to first threshold
The region that brightness value is more than the 3rd threshold value is defined as M region for meeting preparatory condition, wherein, the 3rd threshold value is less than described
Second Threshold.
9. terminal as described in claim 7, it is characterised in that the default light metering weight according to the M region is true
The amendment light metering weight in the fixed M region, including:
The default light metering weight of first area is multiplied by the first coefficient, obtains the amendment light metering weight of the first area, wherein,
The first area is the region that the first present intensity value is less than the 3rd threshold value in the M region, and first coefficient is more than
1;
According to the first present intensity value, Second Threshold, the 3rd threshold value and the first coefficient of second area, the second coefficient is determined, its
In, the second area is that region outside the first area is removed in the M region, second coefficient more than 1 and
Less than first coefficient;
The default light-metering weights of the second area are multiplied by the second coefficient, obtain the amendment light metering weight of the second area.
10. a kind of computer-readable recording medium, it is characterised in that be stored with journey of taking pictures on the computer-readable recording medium
Sequence, the step of photographic method as any one of claim 1 to 6 is realized when the program of taking pictures is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710643860.0A CN107438163B (en) | 2017-07-31 | 2017-07-31 | Photographing method, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710643860.0A CN107438163B (en) | 2017-07-31 | 2017-07-31 | Photographing method, terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107438163A true CN107438163A (en) | 2017-12-05 |
CN107438163B CN107438163B (en) | 2020-07-07 |
Family
ID=60460402
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710643860.0A Active CN107438163B (en) | 2017-07-31 | 2017-07-31 | Photographing method, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107438163B (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108200352A (en) * | 2017-12-27 | 2018-06-22 | 努比亚技术有限公司 | A kind of method, terminal and storage medium for reconciling picture luminance |
CN108335301A (en) * | 2017-12-26 | 2018-07-27 | 努比亚技术有限公司 | A kind of photographic method and mobile terminal |
CN109359572A (en) * | 2018-09-30 | 2019-02-19 | 联想(北京)有限公司 | Information processing method, device and electronic equipment |
CN110070009A (en) * | 2019-04-08 | 2019-07-30 | 北京百度网讯科技有限公司 | Road surface object identification method and device |
CN110149550A (en) * | 2018-06-19 | 2019-08-20 | 腾讯科技(深圳)有限公司 | A kind of image processing method and device |
CN110248108A (en) * | 2019-06-14 | 2019-09-17 | 浙江大华技术股份有限公司 | Exposure adjustment and dynamic range under wide dynamic determine method and relevant apparatus |
CN110248141A (en) * | 2019-06-10 | 2019-09-17 | 广州视源电子科技股份有限公司 | Video image brightness adjusting method, device, equipment and readable storage medium |
CN110545375A (en) * | 2019-08-08 | 2019-12-06 | RealMe重庆移动通信有限公司 | Image processing method, image processing device, storage medium and electronic equipment |
CN110913123A (en) * | 2019-08-15 | 2020-03-24 | 厦门亿联网络技术股份有限公司 | Anti-backlight automatic exposure method and device based on image blocking filtering and electronic equipment |
CN111031255A (en) * | 2018-10-09 | 2020-04-17 | 科沃斯机器人股份有限公司 | Method, device and storage medium for light supplement |
CN111225162A (en) * | 2020-01-21 | 2020-06-02 | 厦门亿联网络技术股份有限公司 | Image exposure control method, system, readable storage medium and camera equipment |
CN111263078A (en) * | 2020-02-04 | 2020-06-09 | 浙江大华技术股份有限公司 | Method and device for determining image pickup mode, storage medium and electronic device |
CN111630839A (en) * | 2018-07-26 | 2020-09-04 | 华为技术有限公司 | Image processing method and device |
CN112312036A (en) * | 2020-10-30 | 2021-02-02 | 天津天地伟业智能安全防范科技有限公司 | Automatic exposure method in photographing field |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101064783A (en) * | 2006-04-30 | 2007-10-31 | 华为技术有限公司 | Method for obtaining automatic exposure control parameter and control method and image forming apparatus |
US20120052448A1 (en) * | 2010-09-01 | 2012-03-01 | Canon Kabushiki Kaisha | Determination method, exposure method and storage medium |
CN104580925A (en) * | 2014-12-31 | 2015-04-29 | 安科智慧城市技术(中国)有限公司 | Image brightness controlling method, device and camera |
CN105323496A (en) * | 2015-02-13 | 2016-02-10 | 维沃移动通信有限公司 | Automatic exposure method, photographing device and mobile terminal |
CN106791472A (en) * | 2016-12-29 | 2017-05-31 | 努比亚技术有限公司 | A kind of exposure method and terminal |
-
2017
- 2017-07-31 CN CN201710643860.0A patent/CN107438163B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101064783A (en) * | 2006-04-30 | 2007-10-31 | 华为技术有限公司 | Method for obtaining automatic exposure control parameter and control method and image forming apparatus |
US20120052448A1 (en) * | 2010-09-01 | 2012-03-01 | Canon Kabushiki Kaisha | Determination method, exposure method and storage medium |
CN104580925A (en) * | 2014-12-31 | 2015-04-29 | 安科智慧城市技术(中国)有限公司 | Image brightness controlling method, device and camera |
CN105323496A (en) * | 2015-02-13 | 2016-02-10 | 维沃移动通信有限公司 | Automatic exposure method, photographing device and mobile terminal |
CN106791472A (en) * | 2016-12-29 | 2017-05-31 | 努比亚技术有限公司 | A kind of exposure method and terminal |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108335301A (en) * | 2017-12-26 | 2018-07-27 | 努比亚技术有限公司 | A kind of photographic method and mobile terminal |
CN108335301B (en) * | 2017-12-26 | 2022-01-14 | 努比亚技术有限公司 | Photographing method and mobile terminal |
CN108200352A (en) * | 2017-12-27 | 2018-06-22 | 努比亚技术有限公司 | A kind of method, terminal and storage medium for reconciling picture luminance |
CN108200352B (en) * | 2017-12-27 | 2021-03-05 | 上海营湾医疗科技有限公司 | Method, terminal and storage medium for adjusting picture brightness |
CN110149550A (en) * | 2018-06-19 | 2019-08-20 | 腾讯科技(深圳)有限公司 | A kind of image processing method and device |
CN111630839A (en) * | 2018-07-26 | 2020-09-04 | 华为技术有限公司 | Image processing method and device |
CN111630839B (en) * | 2018-07-26 | 2021-08-31 | 华为技术有限公司 | Image processing method and device |
CN109359572A (en) * | 2018-09-30 | 2019-02-19 | 联想(北京)有限公司 | Information processing method, device and electronic equipment |
CN111031255A (en) * | 2018-10-09 | 2020-04-17 | 科沃斯机器人股份有限公司 | Method, device and storage medium for light supplement |
CN111031255B (en) * | 2018-10-09 | 2021-07-27 | 科沃斯机器人股份有限公司 | Method, device and storage medium for light supplement |
CN110070009A (en) * | 2019-04-08 | 2019-07-30 | 北京百度网讯科技有限公司 | Road surface object identification method and device |
CN110248141A (en) * | 2019-06-10 | 2019-09-17 | 广州视源电子科技股份有限公司 | Video image brightness adjusting method, device, equipment and readable storage medium |
CN110248108A (en) * | 2019-06-14 | 2019-09-17 | 浙江大华技术股份有限公司 | Exposure adjustment and dynamic range under wide dynamic determine method and relevant apparatus |
CN110248108B (en) * | 2019-06-14 | 2020-11-06 | 浙江大华技术股份有限公司 | Exposure adjustment and dynamic range determination method under wide dynamic state and related device |
US11968459B2 (en) | 2019-06-14 | 2024-04-23 | Zhejiang Dahua Technology Co., Ltd. | Systems and methods for automatic exposure control |
CN110545375A (en) * | 2019-08-08 | 2019-12-06 | RealMe重庆移动通信有限公司 | Image processing method, image processing device, storage medium and electronic equipment |
CN110913123B (en) * | 2019-08-15 | 2021-06-04 | 厦门亿联网络技术股份有限公司 | Anti-backlight automatic exposure method and device based on image blocking filtering and electronic equipment |
CN110913123A (en) * | 2019-08-15 | 2020-03-24 | 厦门亿联网络技术股份有限公司 | Anti-backlight automatic exposure method and device based on image blocking filtering and electronic equipment |
CN111225162A (en) * | 2020-01-21 | 2020-06-02 | 厦门亿联网络技术股份有限公司 | Image exposure control method, system, readable storage medium and camera equipment |
CN111225162B (en) * | 2020-01-21 | 2021-08-03 | 厦门亿联网络技术股份有限公司 | Image exposure control method, system, readable storage medium and camera equipment |
CN111263078A (en) * | 2020-02-04 | 2020-06-09 | 浙江大华技术股份有限公司 | Method and device for determining image pickup mode, storage medium and electronic device |
CN112312036A (en) * | 2020-10-30 | 2021-02-02 | 天津天地伟业智能安全防范科技有限公司 | Automatic exposure method in photographing field |
Also Published As
Publication number | Publication date |
---|---|
CN107438163B (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107438163A (en) | A kind of photographic method, terminal and computer-readable recording medium | |
CN107302663A (en) | A kind of brightness of image method of adjustment, terminal and computer-readable recording medium | |
CN108270966A (en) | A kind of method, mobile terminal and storage medium for adjusting light filling brightness | |
CN107454342A (en) | A kind of control method, mobile terminal and computer-readable recording medium | |
CN107592451A (en) | A kind of multi-mode auxiliary photo-taking method, apparatus and computer-readable recording medium | |
CN108495056A (en) | Photographic method, mobile terminal and computer readable storage medium | |
CN107820016A (en) | Shooting display methods, double screen terminal and the computer-readable storage medium of double screen terminal | |
CN107690065A (en) | A kind of white balance correcting, device and computer-readable recording medium | |
CN108063901A (en) | A kind of image-pickup method, terminal and computer readable storage medium | |
CN109068052A (en) | video capture method, mobile terminal and computer readable storage medium | |
CN107682627A (en) | A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium | |
CN107959795A (en) | A kind of information collecting method, equipment and computer-readable recording medium | |
CN109525782A (en) | A kind of image pickup method, terminal and computer readable storage medium | |
CN107493426A (en) | A kind of information collecting method, equipment and computer-readable recording medium | |
CN107948530A (en) | A kind of image processing method, terminal and computer-readable recording medium | |
CN108200352A (en) | A kind of method, terminal and storage medium for reconciling picture luminance | |
CN108419008A (en) | A kind of image pickup method, terminal and computer readable storage medium | |
CN107040723A (en) | A kind of imaging method based on dual camera, mobile terminal and storage medium | |
CN107749947A (en) | Photographic method, mobile terminal and computer-readable recording medium | |
CN107995437A (en) | Photograph taking method for polishing and mobile terminal | |
CN109348137A (en) | Mobile terminal camera control method, device, mobile terminal and storage medium | |
CN107240072A (en) | A kind of screen luminance adjustment method, terminal and computer-readable recording medium | |
CN108184105A (en) | A kind of method, apparatus and computer readable storage medium for adjusting brightness | |
CN107239205A (en) | A kind of photographic method, mobile terminal and storage medium | |
CN109377531A (en) | Image color cast method of adjustment, device, mobile terminal and readable storage medium storing program for executing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |