CN108040240A - The method, apparatus and mobile terminal of a kind of blank level adjustment - Google Patents

The method, apparatus and mobile terminal of a kind of blank level adjustment Download PDF

Info

Publication number
CN108040240A
CN108040240A CN201711091685.5A CN201711091685A CN108040240A CN 108040240 A CN108040240 A CN 108040240A CN 201711091685 A CN201711091685 A CN 201711091685A CN 108040240 A CN108040240 A CN 108040240A
Authority
CN
China
Prior art keywords
pixel data
white balance
real
level adjustment
reference object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711091685.5A
Other languages
Chinese (zh)
Other versions
CN108040240B (en
Inventor
崔瀚涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711091685.5A priority Critical patent/CN108040240B/en
Publication of CN108040240A publication Critical patent/CN108040240A/en
Application granted granted Critical
Publication of CN108040240B publication Critical patent/CN108040240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Of Color Television Signals (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

An embodiment of the present invention provides the method, apparatus and mobile terminal of a kind of blank level adjustment, wherein the described method includes:References object is shot, obtains real-time pixel data;According to the real-time pixel data and default benchmark pixel data, white balance parameter is determined;Based on the white balance parameter and current scene brightness, blank level adjustment is carried out.The embodiment of the present invention carries out blank level adjustment, can accurately realize the color rendition of current scene according to real-time pixel data, default benchmark pixel data and current scene brightness.

Description

The method, apparatus and mobile terminal of a kind of blank level adjustment
Technical field
The present embodiments relate to technique for taking field, more particularly to a kind of method, apparatus of blank level adjustment and shifting Dynamic terminal.
Background technology
With the development of information technology, the camera application program on mobile terminal is more and more extensive, after user is to taking pictures The requirement of image quality is also higher and higher.And the quality of camera imaging setting depending on the size of photo-sensitive cell, camera lens and aperture Meter etc..But due to being limited to the size of mobile terminal, the design of the optical element such as photo-sensitive cell and camera lens is just received with quality Limitation.Therefore, when designing ISP (Image Signal Processor, the image processor) of mobile terminal, how for sense The corrections such as the obtained original image of optical element (raw image) is exposed, white balance, are an important research directions.
White balance (White Balance) most important purpose of image is the colour temperature of the current photographed scene of reduction, into And reduce color at that time.In the prior art, usually using automatic white balance (Automatic white balance, abbreviation AWB) algorithm carries out blank level adjustment, and in practice, automatic white balance algorithm has been coordinated by grey world's method and white reflection method Into.Grey world's method is most common, most classical method, that is, assumes that the average reflection in a scene is colourless (grey), That is R=G=B, white balance compensation is carried out as target.White reflection method, is called perfect reflection, i.e., is reflected at RGB maximums Color out is exactly the color of trimmed book body, and the image that maximum shows is white, this rule is in high contrast Scene (such as backlight) does very well.
However, grey world's method and white reflection method are all based on what is assumed in fact, grey world's method is rich in color in nature The rule summarized under scene, but in the situation of solid color, such as situations such as green grassland, greenery, AWB can fall partially;And right The scene more relatively low than degree, white reflection method can cause the situation of the picture color distortion after white balance.
The content of the invention
The embodiment of the present invention provides a kind of method of blank level adjustment, to solve picture color in existing blank level adjustment The problem of distortion.
In order to solve the above-mentioned technical problem, the present invention is realized in:A kind of method of blank level adjustment, including:
References object is shot, obtains real-time pixel data;
According to the real-time pixel data and default benchmark pixel data, white balance parameter is determined;
Based on the white balance parameter and current scene brightness, blank level adjustment is carried out.
In a first aspect, the embodiment of the present invention additionally provides a kind of device of blank level adjustment, including:
Real-time pixel data acquisition module, for being shot to references object, obtains real-time pixel data;
White balance parameter acquisition module, for according to the real-time pixel data and default benchmark pixel data, determining White balance parameter;
Blank level adjustment module, for based on the white balance parameter and current scene brightness, carrying out blank level adjustment.
Second aspect, an embodiment of the present invention provides a kind of mobile terminal, including processor, memory and is stored in described It is real when the computer program is performed by the processor on memory and the computer program that can run on the processor The step of method of existing above-mentioned blank level adjustment.
The third aspect, an embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage Computer program is stored on medium, the computer program realizes the method for above-mentioned blank level adjustment when being executed by processor Step.
In embodiments of the present invention, according to real-time pixel data, default benchmark pixel data and current scene brightness, into Row blank level adjustment, can accurately realize the color rendition of current scene.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of the embodiment of the method for blank level adjustment of the embodiment of the present invention;
Fig. 2 is a kind of step flow chart of another embodiment of method of blank level adjustment of the embodiment of the present invention;
Fig. 3 is the registration prompting interface schematic diagram of the embodiment of the present invention;
Fig. 4 is the colour of skin register interface schematic diagram of the embodiment of the present invention;
Fig. 5 is the white balance button schematic diagram of the embodiment of the present invention;
Fig. 6 is the colour of skin acquisition interface schematic diagram of the embodiment of the present invention;
Fig. 7 is a kind of structure diagram of the device embodiment of blank level adjustment of the embodiment of the present invention;
Fig. 8 is a kind of hardware architecture diagram of mobile terminal of the embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, belongs to the scope of protection of the invention.
The embodiment of the present invention can be shot as one kind supplement of automatic white balance AWB screening-modes in automatic white balance Under pattern, if running into the scene of AWB inaccuracy, the blank level adjustment scheme of the embodiment of the present invention can be used, to reach this The accurate color rendition of scene.It is, of course, also possible to be operated according to the setting of user, the embodiment of the present invention is used when starting shooting Blank level adjustment scheme, the embodiment of the present invention is not construed as limiting this.
With reference to Fig. 1, show a kind of step flow chart of the embodiment of the method for blank level adjustment of the embodiment of the present invention, have Body may include steps of:
Step 101, references object is shot, obtains real-time pixel data;
In the concrete realization, in camera application program, can include with the relevant screening-mode of blank level adjustment automatic The default pattern of pattern and white balance of white balance AWB.
When user selects the default pattern of white balance, camera application program is opened, into corresponding screening-mode, this When, real-time pixel data can be obtained.
As a kind of preferred exemplary of the embodiment of the present invention, pixel data can include but is not limited to:The gain of red primaries The amount of gain adjustment B-gain of adjustment amount R-gain and blue primary.Then, real-time pixel data can include real-time R-gain with And real-time B-gain.
In the concrete realization, R-gain=G/R;B-gain=G/B.
Wherein, R, G, B respectively represent the average value of three passages of red, green, blue respectively, it can pass through the ISP of terminal AE (auto exposure, automatic exposure) algorithm counted.
In practice, in the calculation formula of above-mentioned R-gain, B-gain, R-gain, B-gain actual are R/G and B/G Inverse, therefore, pixel data can be represented with R/G, B/G.
Step 102, according to the real-time pixel data and default benchmark pixel data, white balance parameter is determined;
In embodiments of the present invention, benchmark pixel data can be preset, which can include benchmark R-gain and benchmark B-gain.
After obtaining real-time pixel data, it can be determined to the real-time pixel data compared with benchmark pixel data White balance parameter.
In a kind of preferred embodiment of the embodiment of the present invention, step 102 can include following sub-step:
The difference between the real-time pixel data and the benchmark pixel data is calculated, as white balance parameter.
In the concrete realization, both differences can be calculated by real-time pixel data compared with benchmark pixel data, As white balance parameter.
For example, the white balance parameter of R passages=real-time R-gain of benchmark R-gain-;
The white balance parameter of the channel B=real-time B-gain of benchmark B-gain-.
Step 103, based on the white balance parameter and current scene brightness, blank level adjustment is carried out.
After obtaining white balance parameter, blank level adjustment can be carried out according to the white balance parameter and current scene brightness.
In a kind of preferred embodiment of the embodiment of the present invention, step 103 can further include following sub-step:
Sub-step S11, determines current scene brightness;
As a kind of example, brightness can be represented with luminance parameter, which can include brightness value and/or brightness Index (brightness index).
When realizing, the brightness value Y of present filming scene can be calculated first, then determined according to this brightness value corresponding Brightness index.
In one embodiment, the brightness value Y of present filming scene can be counted by the AE algorithms of the ISP of terminal.
It is for instance possible to use following manner determines the brightness value Y of present filming scene:
Y=Mr*R+Mg*G+Mb*B;
Wherein, Mr, Mg, Mb are respectively the corresponding weight in three chrominance channel of red, green, blue, it can be by manufacturer terminal according to not With demand be configured, different manufacturers can set different weight, for example, Mr can be set as to 0.299, by Mg It is set as 0.587, Mb is set as 0.114.
In the concrete realization, the index column between multiple brightness indexs and corresponding range of luminance values can be preset Table, after the brightness value of current scene is determined, can search the scope where the brightness value, and be based in the index list The scope determines corresponding brightness index, wherein, brightness index can serve to indicate which kind of current photographed scene corresponds to Environment, such as outdoor environment, indoor environment, half-light environment, light environment.
Sub-step S12, based on the brightness, the real-time pixel data are compensated by the white balance parameter.
In the concrete realization, after obtaining luminance parameter, it is possible to know which kind of environment is current scene be in, then can know Road R-gain and real-time B-gain in real time obtained above is the real-time pixel data under which kind of environment, in order to enable different bright Under degree, white balance has a style tendency, for example, under half-light it is general partially yellow, under light it is general partially it is blue some etc., can use White balance parameter carries out white balance compensation to the real-time pixel data, to reduce the colour temperature of current scene.
For example, a kind of mode of white balance compensation is, real-time pixel data are multiplied by corresponding white balance parameter.
Certainly, the embodiment of the present invention is not limited to the concrete mode of white balance compensation, and those skilled in the art are based on white flat The parameter that weighs and/or benchmark pixel data and/or real-time pixel data, are possible by the way of other white balance compensations.
In embodiments of the present invention, according to real-time pixel data, default benchmark pixel data and current scene brightness, into Row blank level adjustment, can accurately realize the color rendition of current scene.
Reference Fig. 2, shows a kind of step flow of another embodiment of method of blank level adjustment of the embodiment of the present invention Figure, specifically may include steps of:
Step 201, when first time opening camera application program, alternatively, specifying screening-mode when detecting that user sets When opening camera application program afterwards, the first view data of reference object is obtained;
In the concrete realization, in camera application program, can include with the relevant screening-mode of blank level adjustment automatic The default pattern of pattern and white balance of white balance AWB, it can be the default screening-mode of white balance that this, which specifies screening-mode,.
User can select current white balance mode to specify screening-mode in function is set.
In a kind of preferred embodiment of the embodiment of the present invention, step 201 can include following sub-step:
Sub-step S21, when first time opening camera application program, alternatively, specifying shooting mould when detecting that user sets When camera application program is opened after formula, registration prompt message is shown in preview interface;
Specifically, when the camera application program of user's first time using terminal, registration can be shown in preview interface Prompt message, the registration prompt message can be used for reminding user to carry out blank level adjustment registration using reference object so that white Balance is more accurate.
For example, the registration prompting interface schematic diagram with reference to shown in figure 3, it is assumed that using the colour of skin as reference object, then in preview Shown in region 301 on interface registration prompt message, for example, this register prompt message can be " click here register the colour of skin, Make the white balance more accurate ".
Sub-step S22, when detecting the confirmation operation for the registration prompt message, shows the first operation button, And show the first shooting prompting of reference object in preview interface;
After user clicks on the registration prompt message in Fig. 3, you can prompt to believe for the registration to be judged to detecting The confirmation operation of breath, at this point it is possible into colour of skin register interface, which, which is included in the interface of terminal, shows One operation button, and show the first shooting prompting of reference object in preview interface.For example, the colour of skin register interface such as Fig. 4 Shown in schematic diagram, which can be " registration " button in Fig. 4, which may be displayed on Fig. 4 In 401 regions go out, for example, the shooting that the first shooting prompting can be " the back of the hand is put into frame " is prompted, and in preview circle Square frame 402 is shown in face.It should be noted that the embodiment of the present invention is not limited to the reference object of " the back of the hand ", can also be it His reference object.
Sub-step S23 is right to the reference in preview interface when detecting the trigger action to first operation button As being shot, the first view data is obtained.
For example, as shown in figure 4, after the back of the hand is placed on square frame by user, click on " registration " button, then can be determined that for Detect the trigger action to first operation button, at this point it is possible to be shot to preview interface, obtain corresponding first figure As data.
Step 202, based on described first image data, current scene brightness is obtained;
In one embodiment, after obtaining the first view data, the image of the subregion in square frame can be intercepted Data, as destination image data, and calculate the brightness of the destination image data.
For example, the view data in the region at the square frame center 1/3 in Fig. 4 can be extracted as destination image data.
When realizing, the brightness in destination image data can be calculated in the following way:
It is possible, firstly, to the brightness value Y of the AE algorithms statistics current scene for the ISP for passing through terminal.
It is for instance possible to use following manner determines the brightness value Y of current scene:
Y=Mr*R+Mg*G+Mb*B;
Wherein, R, G, B are respectively the average value of three passages of red, green, blue in the destination image data respectively, it can lead to The AE algorithms for crossing the ISP of terminal are counted;Mr, Mg, Mb are respectively the corresponding weight in three chrominance channel of red, green, blue, it can be by Manufacturer terminal is configured according to different demands, and different manufacturers can set different weight, for example, can set Mr It is set to 0.299, Mg is set as to 0.587, Mb is set as 0.114.
In the concrete realization, the index column between multiple brightness indexs and corresponding range of luminance values can be preset Table, after the brightness value of current scene is determined, can search the scope where the brightness value, and be based in the index list The scope determines corresponding brightness index, as luminance parameter.
Step 203, if the brightness meets preset condition, the corresponding benchmark pixel data of the reference object are obtained;
Current environment can be determined according to luminance parameter, if the environment is the excessively dark environment of light, such as artificial light field Scape, artificial light sources have partial spectrum missing, be easy to cause metamerism phenomenon, so in the case of the colour of skin registered can be not allowed Really, therefore, if current environment is the excessively dark environment of light, it can be determined that the luminance parameter is unsatisfactory for preset condition.
, whereas if according to the luminance parameter current environment can be determined for bright and clear environment (such as natural ring of light Border), then it can be determined that the luminance parameter meets preset condition.At this point it is possible to obtain the corresponding reference image prime number of the reference object According to.
As a kind of example, benchmark pixel data can include benchmark R-gain and benchmark B-gain, and benchmark R- The inverse of R/G on the basis of gain reality, the inverse of B/G on the basis of benchmark B-gain reality, it is therefore possible to use benchmark R/G with And benchmark B/G represents benchmark pixel data.
In the concrete realization, (can each be led in three passages of red, green, blue according to R, G, B in destination image data The average value in road), calculating benchmark R/G, benchmark B/G, and benchmark R/G and benchmark B/G is stored in the terminal, to complete to note Volume.
It should be noted that when brightness is unsatisfactory for preset condition, then registration is exited.
If exiting registration because preset condition is unsatisfactory for, alternatively, because user does not have prompts letter to above-mentioned registration When breath performs confirmation operation (as directly shot or returning homepage) and exits registration, subsequent user, which can be manually entered, sets boundary Face is registered, and during manual registration, user can set specified screening-mode, and later on camera application program enters Fig. 3 institutes The interface shown enters register flow path.
Step 204, references object is shot, obtains real-time pixel data;
After completing registration, the benchmark pixel data can as the benchmark of blank level adjustment, in user's normal photographing, Real-time real-time pixel data can be obtained first.
In a kind of preferred embodiment of the embodiment of the present invention, step 204 can further include following sub-step:
Sub-step S31, under the specified screening-mode of camera application program, shows white balance button in preview interface;
After completing colour of skin registration, when user is normally taken pictures using camera application program, if the exposal model is specified Screening-mode, user can click on preview optional position, then white balance can be shown in the preview interface of camera application program Button, the white balance button are used to remind user to complete colour of skin registration in the case where this specifies screening-mode, can carry out white balance Adjustment.
For example, as shown in the white balance button schematic diagram of Fig. 5, which can be " WB " button in Fig. 5.
The white balance button can set Show Styles, for example, the Show Styles of the white balance button can be the blueness back of the body Scape, transparency 50%.
Sub-step S32, when detecting that the white balance button is triggered, shows the second operation button, and in preview circle Face shows the second shooting prompting of reference object;
After user clicks on the white balance button (WB buttons) in Fig. 5, you can be judged to detecting the white balance by Button is triggered, at this point it is possible into colour of skin acquisition interface, which is included in the behaviour of display second in the interface of terminal Make button, and the second shooting prompting of reference object is shown in preview interface.For example, the colour of skin acquisition interface such as Fig. 6 is illustrated Shown in figure, which can be " locking " button in Fig. 6, which may be displayed in Fig. 6 601 regions, for example, the shooting that the second shooting prompting can be " please the back of the hand is put into frame " is prompted, and in preview interface Show square frame 602.It should be noted that in order to ensure the accuracy of white balance, the reference object in colour of skin acquisition interface is preferred Ground needs consistent with the reference object in colour of skin register interface.
Sub-step S33 is right to the reference in preview interface when detecting the trigger action to second operation button As being shot, the second view data is obtained;
For example, as shown in fig. 6, after the back of the hand is placed on square frame by user, click on " locking " button, then can be determined that for Detect the trigger action to second operation button, at this point it is possible to be shot to preview interface, obtain corresponding second figure As data.
Sub-step S34, based on second view data, obtains the corresponding real-time pixel data of the reference object.
In one embodiment, after obtaining the second view data, the image of the subregion in square frame can be intercepted Data, as image to be detected data, and calculate the real-time pixel data of image to be detected data.
For example, the view data in the region at the square frame center 1/3 in Fig. 6 can be extracted as image to be detected data.
In embodiments of the present invention, real-time pixel data can include real-time R/G and real-time B/G.
The calculation of real-time pixel data is similar with the calculation of said reference pixel data, specifically may be referred to The calculation of benchmark pixel data is stated, details are not described herein again.
Step 205, according to the real-time pixel data and default benchmark pixel data, white balance parameter is determined;
In a kind of preferred embodiment of the embodiment of the present invention, step 205 can be:
The difference between the real-time pixel data and the benchmark pixel data is calculated, as white balance parameter.
Specifically, corresponding benchmark R-gain and benchmark B- can be conversed respectively according to benchmark R/G and benchmark B/G Gain, can converse corresponding R-gain and real-time B-gain in real time respectively, then according to real-time R/G and real-time B/G The difference of calculating benchmark R-gain and real-time R-gain can obtain the white balance parameter on R passages, calculating benchmark B-gain with The difference of real-time B-gain can obtain the white balance parameter in channel B.
Step 206, based on the white balance parameter and current scene brightness, blank level adjustment is carried out;
In a kind of preferred embodiment of the embodiment of the present invention, step 206 can include following sub-step:
Determine current scene brightness;Based on the brightness, the white balance parameter is compensated into the real-time pixel data.
Specifically, the acquisition of current scene brightness herein is referred to the acquisition of the luminance parameter in above-mentioned steps 202 Mode, after the brightness for obtaining target image to be detected, it is possible to determine which kind of environment is current scene be in, be then known that The pixel datas such as the real-time R-gain and real-time B-gain that state are the real-time pixel data under which kind of environment, then, can To carry out white balance compensation in real-time pixel data application Delta using white balance parameter, to reduce the colour temperature of current scene.
For example, a kind of mode of white balance compensation is, real-time pixel data are multiplied by corresponding white balance parameter.
In embodiments of the present invention, can also include the following steps:Change the Show Styles of the white balance button.
Specifically, after carrying out white balance compensation, the white balance locking after can this be compensated, after locking, white balance is pressed Button can be resided, and its Show Styles will change, for example, becoming opaque by 50% transparency.
In embodiments of the present invention, when detecting the trigger action to the white balance button, for example, user clicks in vain Balance button, can unlock, and exit this and specify screening-mode.
Step 207, based on the pixel data after adjustment, reference object is shot.
After carrying out white balance compensation, it is possible to enter the flow normally taken pictures, reference object shot, obtain with The corresponding view data of reference object, the view data are the images carried out after blank level adjustment.
In embodiments of the present invention, there is provided a kind of interactive mode that white balance is preset by the colour of skin, allows user first It is secondary using camera application program when register the colour of skin, be recorded as benchmark pixel data, if afterwards in use, running into AWB not Accurate scene, on the basis of the colour of skin of registration, can be obtained real-time by the interaction of an easily white balance pre-set button Pixel data, the comparison based on benchmark pixel data and real-time pixel data obtain white balance parameter, are then joined according to white balance Number and current scene brightness carry out white balance to real-time white balance data and preset and lock, to reach the accurate color of the scene also It is former.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group Close, but those skilled in the art should know, the embodiment of the present invention and from the limitation of described sequence of movement, because according to According to the embodiment of the present invention, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
Reference Fig. 7, shows a kind of structure diagram of the device embodiment of blank level adjustment of the embodiment of the present invention, specifically It can include following module:
Real-time pixel data acquisition module 701, for being shot to references object, obtains real-time pixel data;
White balance parameter acquisition module 702, for according to the real-time pixel data and default benchmark pixel data, really Ding white ware balance parameters;
Blank level adjustment module 703, for based on the white balance parameter and current scene brightness, carrying out white balance tune It is whole.
In a kind of preferred embodiment of the embodiment of the present invention, described device can also include following module:
Taking module, for based on the pixel data after adjustment, being shot to reference object.
In a kind of preferred embodiment of the embodiment of the present invention, described device can also include following module:
First image data acquisition module, for when first time opening camera application program, user to be detected alternatively, working as When opening camera application program after the specified screening-mode of setting, the first view data of reference object is obtained;
Luminance parameter acquisition module, for based on described first image data, obtaining current scene brightness;
Benchmark pixel data acquisition module, if meeting preset condition for the brightness, obtains the reference object pair The benchmark pixel data answered.
In a kind of preferred embodiment of the embodiment of the present invention, described first image data acquisition module can include as follows Submodule:
Prompting message display sub-module is registered, for when first time opening camera application program, use to be detected alternatively, working as When opening camera application program after the specified screening-mode of family setting, registration prompt message is shown in preview interface;
First shooting prompting display sub-module, for when detect for it is described registration prompt message confirmation operation when, Show the first operation button, and the first shooting prompting of reference object is shown in preview interface;
First shooting submodule, for when detecting the trigger action to first operation button, to preview interface In reference object shot, obtain the first view data.
In a kind of preferred embodiment of the embodiment of the present invention, the real-time pixel data acquisition module 701 can include Following submodule:
White balance button display sub-module, under the specified screening-mode of camera application program, in preview interface Show white balance button;
Second shooting prompting display sub-module, for when detecting that the white balance button is triggered, display second to be grasped Make button, and the second shooting prompting of reference object is shown in preview interface;
Second shooting submodule, for when detecting the trigger action to second operation button, to preview interface In reference object shot, obtain the second view data;
Real-time pixel data acquisition submodule, for based on second view data, obtaining the reference object and corresponding to Real-time pixel data.
In a kind of preferred embodiment of the embodiment of the present invention, the white balance parameter acquisition module 702 can be included such as Lower submodule:
Mathematic interpolation submodule, for calculating the difference between the real-time pixel data and the benchmark pixel data, As white balance parameter.
In a kind of preferred embodiment of the embodiment of the present invention, the blank level adjustment module 703 can include following son Module:
Luminance parameter calculating sub module, for determining current scene brightness;
White balance compensation submodule, for based on the brightness, the white balance parameter to be compensated the real-time pixel number According to.
In a kind of preferred embodiment of the embodiment of the present invention, described device can also include following module:
Module is exited, for when detecting the trigger action to the white balance button, exiting specified screening-mode.
For device embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2 Each process, to avoid repeating, which is not described herein again.The mobile terminal presets benchmark pixel data, by the reality of acquisition When pixel data compared with benchmark pixel data, determine white balance parameter, and can be according to white balance parameter and current Scene brightness carries out blank level adjustment, and carrying out white balance based on the benchmark pixel data presets and lock, and can reach and work as front court The accurate color rendition of scape.
Fig. 8 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention, the mobile terminal 80 Including but not limited to:Radio frequency unit 81, mixed-media network modules mixed-media 82, audio output unit 83, input unit 84, sensor 85, display are single The components such as member 86, user input unit 87, interface unit 88, memory 89, processor 810 and power supply 811.This area skill Art personnel are appreciated that the mobile terminal structure shown in Fig. 8 does not form the restriction to mobile terminal, and mobile terminal can wrap Include than illustrating more or fewer components, either combine some components or different components arrangement.In the embodiment of the present invention In, mobile terminal include but not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, And pedometer etc..
Wherein, processor 810, for being shot to references object, obtain real-time pixel data;According to the real-time picture Prime number evidence and default benchmark pixel data, determine white balance parameter;Based on the white balance parameter and current scene brightness, into Row blank level adjustment.
The embodiment of the present invention can preset benchmark pixel data, by the real-time pixel data of acquisition and reference image prime number According to being compared, white balance parameter is determined, and blank level adjustment can be carried out according to white balance parameter and current scene brightness, White balance is carried out based on the benchmark pixel data to preset and lock, and can reach the accurate color rendition of current scene.
It should be understood that in the embodiment of the present invention, radio frequency unit 81 can be used for receiving and sending messages or communication process in, signal Receive and send, specifically, after the downlink data from base station is received, handled to processor 810;In addition, the number by uplink According to being sent to base station.In general, radio frequency unit 81 include but not limited to antenna, at least one amplifier, transceiver, coupler, Low-noise amplifier, duplexer etc..In addition, radio frequency unit 81 can also be led to by wireless communication system and network and other equipment Letter.
Mobile terminal has provided wireless broadband internet to the user by mixed-media network modules mixed-media 82 and has accessed, and such as helps user's transmitting-receiving Email, browse webpage and access streaming video etc..
Audio output unit 83 can be receiving by radio frequency unit 81 or mixed-media network modules mixed-media 82 or is stored in memory 89 Voice data be converted into audio signal and export be sound.Moreover, audio output unit 83 can also be provided with movement eventually The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end 80 performs.Audio Output unit 83 includes loudspeaker, buzzer and receiver etc..
Input unit 84 is used to receive audio or video signal.Input unit 84 can include graphics processor (Graphics Processing Unit, GPU) 841 and microphone 842, graphics processor 841 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 handled. Picture frame after processing may be displayed on display unit 86.Picture frame after the processing of graphics processor 841 can be stored in It is transmitted in memory 89 (or other storage mediums) or via radio frequency unit 81 or mixed-media network modules mixed-media 82.Microphone 842 can To receive sound, and can be voice data by such acoustic processing.Voice data after processing can be in telephone relation The form output of mobile communication base station can be sent to via radio frequency unit 81 by being converted in the case of pattern.
Mobile terminal 80 further includes at least one sensor 85, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to ambient light The light and shade of line adjusts the brightness of display panel 861, and proximity sensor can close display when mobile terminal 80 is moved in one's ear Panel 861 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three Axis) acceleration size, size and the direction of gravity are can detect that when static, it is (such as horizontal available for identification mobile terminal posture Portrait layout switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 85 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, Thermometer, infrared ray sensor etc., details are not described herein.
Display unit 86 is used for the information for showing by information input by user or being supplied to user.Display unit 86 may include Display panel 861, can use liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 861.
User input unit 87 can be used for the numeral or character information for receiving input, and produce the user with mobile terminal Set and function control it is related key signals input.Specifically, user input unit 87 include contact panel 871 and other Input equipment 872.Contact panel 871, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example are used Family uses the behaviour of any suitable object or annex on contact panel 871 or near contact panel 871 such as finger, stylus Make).Contact panel 871 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 810, processor 810 is received and sends Order and performed.Furthermore, it is possible to realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Contact panel 871.Except contact panel 871, user input unit 87 can also include other input equipments 872.Specifically, its His input equipment 872 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), rail Mark ball, mouse, operation lever, details are not described herein.
Further, contact panel 871 can be covered on display panel 861, when contact panel 871 detect on it or After neighbouring touch operation, processor 810 is sent to determine the type of touch event, is followed by subsequent processing device 810 according to touch thing The type of part provides corresponding visual output on display panel 861.Although in fig. 8, contact panel 871 and display panel 861 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments it is possible to Contact panel 871 and display panel 861 are integrated and realize the function that outputs and inputs of mobile terminal, is not limited herein specifically It is fixed.
Interface unit 88 is the interface that external device (ED) is connected with mobile terminal 80.For example, external device (ED) can include it is wired Or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 88 can be used for input (for example, data message, electric power etc.) of the reception from external device (ED) and will The one or more elements or can be used in mobile terminal 80 and outside that the input received is transferred in mobile terminal 80 Data are transmitted between device.
Memory 89 can be used for storage software program and various data.Memory 89 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 Playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as sound according to mobile phone Frequency evidence, phone directory etc.) etc..In addition, memory 89 can include high-speed random access memory, can also include non-volatile Memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 810 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection A part, by running or performing the software program and/or module that are stored in memory 89, and calls and is stored in memory Data in 89, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Processor 810 may include one or more processing units;Preferably, processor 810 can integrate application processor and modem processor, Wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor mainly handles nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 810.
Mobile terminal 80 can also include the power supply 811 (such as battery) to all parts power supply, it is preferred that power supply 811 Can be logically contiguous by power-supply management system and processor 810, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
In addition, mobile terminal 80 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 810, and memory 89, is stored in It is real when which is performed by processor 810 on reservoir 89 and the computer program that can be run on the processor 810 Each process of the embodiment of the method for existing above-mentioned blank level adjustment, and identical technique effect can be reached, to avoid repeating, here Repeat no more.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each process of the embodiment of the method for above-mentioned blank level adjustment when being executed by processor, And identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable recording medium, Such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, letter Claim RAM), magnetic disc or CD etc..
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 other elements that are not explicitly listed are further included, or further include as 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 Also there are other identical element in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can 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 substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much Form, belongs within the protection of the present invention.

Claims (10)

  1. A kind of 1. method of blank level adjustment, it is characterised in that the described method includes:
    References object is shot, obtains real-time pixel data;
    According to the real-time pixel data and default benchmark pixel data, white balance parameter is determined;
    Based on the white balance parameter and current scene brightness, blank level adjustment is carried out.
  2. 2. according to the method described in claim 1, it is characterized in that, described bright based on the white balance parameter and current scene After the step of degree, progress blank level adjustment, further include:
    Based on the pixel data after adjustment, reference object is shot.
  3. 3. method according to claim 1 or 2, it is characterised in that shoot, obtain real-time to references object described Before the step of pixel data, further include:
    , should alternatively, opening camera after detecting that screening-mode is specified in user's setting when first time opening camera application program During with program, the first view data of reference object is obtained;
    Based on described first image data, current scene brightness is obtained;
    If the brightness meets preset condition, the corresponding benchmark pixel data of the reference object are obtained.
  4. 4. according to the method described in claim 3, it is characterized in that, it is described first time open camera application program when, alternatively, When opening camera application program after detecting that screening-mode is specified in user's setting, the first view data of reference object is obtained Step includes:
    , should alternatively, opening camera after detecting that screening-mode is specified in user's setting when first time opening camera application program During with program, registration prompt message is shown in preview interface;
    When detecting the confirmation operation for the registration prompt message, the first operation button is shown, and show in preview interface Show the first shooting prompting of reference object;
    When detecting the trigger action to first operation button, the reference object in preview interface is shot, is obtained Obtain the first view data.
  5. 5. a kind of device of blank level adjustment, it is characterised in that described device includes:
    Real-time pixel data acquisition module, for being shot to references object, obtains real-time pixel data;
    White balance parameter acquisition module, for according to the real-time pixel data and default benchmark pixel data, determining white flat Weigh parameter;
    Blank level adjustment module, for based on the white balance parameter and current scene brightness, carrying out blank level adjustment.
  6. 6. device according to claim 5, it is characterised in that further include:
    Taking module, for based on the pixel data after adjustment, being shot to reference object.
  7. 7. the device according to claim 5 or 6, it is characterised in that further include:
    First image data acquisition module, for when first time opening camera application program, detecting that user sets alternatively, working as When opening camera application program after specified screening-mode, the first view data of reference object is obtained;
    Luminance parameter acquisition module, for based on described first image data, obtaining current scene brightness;
    Benchmark pixel data acquisition module, if meeting preset condition for the brightness, it is corresponding to obtain the reference object Benchmark pixel data.
  8. 8. device according to claim 7, it is characterised in that described first image data acquisition module includes:
    Prompting message display sub-module is registered, for when first time opening camera application program, detecting that user sets alternatively, working as When opening camera application program after surely specified screening-mode, registration prompt message is shown in preview interface;
    First shooting prompting display sub-module, for when detecting the confirmation operation for the registration prompt message, showing First operation button, and show the first shooting prompting of reference object in preview interface;
    First shooting submodule, for when detecting the trigger action to first operation button, in preview interface Reference object is shot, and obtains the first view data.
  9. 9. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be described The computer program run on processor, is realized when the computer program is performed by the processor as in Claims 1-4 The step of method of any one of them blank level adjustment.
  10. 10. a kind of computer-readable recording medium, it is characterised in that computer journey is stored on the computer-readable recording medium Sequence, realizes the side of blank level adjustment according to any one of claims 1 to 4 when the computer program is executed by processor The step of method.
CN201711091685.5A 2017-11-08 2017-11-08 White balance adjustment method and device and mobile terminal Active CN108040240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711091685.5A CN108040240B (en) 2017-11-08 2017-11-08 White balance adjustment method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711091685.5A CN108040240B (en) 2017-11-08 2017-11-08 White balance adjustment method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN108040240A true CN108040240A (en) 2018-05-15
CN108040240B CN108040240B (en) 2020-06-30

Family

ID=62093638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711091685.5A Active CN108040240B (en) 2017-11-08 2017-11-08 White balance adjustment method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN108040240B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020048496A1 (en) * 2018-09-07 2020-03-12 晶晨半导体(上海)股份有限公司 Method and system for adjusting white balance, and display
CN111182217A (en) * 2020-01-07 2020-05-19 徐梦影 Image white balance processing method and device
CN111583884A (en) * 2020-05-29 2020-08-25 深圳市华星光电半导体显示技术有限公司 White balance adjusting method and device
CN112449112A (en) * 2020-11-18 2021-03-05 努比亚技术有限公司 Camera white balance adjusting method, mobile terminal and computer readable storage medium
CN113065487A (en) * 2021-04-09 2021-07-02 深圳市汇顶科技股份有限公司 Fingerprint identification method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030052978A1 (en) * 2001-06-25 2003-03-20 Nasser Kehtarnavaz Automatic white balancing via illuminant scoring autoexposure by neural network mapping
CN101350883A (en) * 2007-07-17 2009-01-21 富士胶片株式会社 Auto white balance correction value calculation device, method, program, and image pickup device
CN102685513A (en) * 2012-05-21 2012-09-19 信利光电(汕尾)有限公司 White balance processing method and device
CN103139573A (en) * 2011-11-22 2013-06-05 三星电子株式会社 Apparatus and method for adjusting white balance
CN104902180A (en) * 2015-05-27 2015-09-09 青岛海信移动通信技术股份有限公司 Mobile terminal camera parameter adjusting method and mobile terminal
CN106331661A (en) * 2015-06-25 2017-01-11 西安中兴新软件有限责任公司 White balance processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030052978A1 (en) * 2001-06-25 2003-03-20 Nasser Kehtarnavaz Automatic white balancing via illuminant scoring autoexposure by neural network mapping
CN101350883A (en) * 2007-07-17 2009-01-21 富士胶片株式会社 Auto white balance correction value calculation device, method, program, and image pickup device
CN103139573A (en) * 2011-11-22 2013-06-05 三星电子株式会社 Apparatus and method for adjusting white balance
CN102685513A (en) * 2012-05-21 2012-09-19 信利光电(汕尾)有限公司 White balance processing method and device
CN104902180A (en) * 2015-05-27 2015-09-09 青岛海信移动通信技术股份有限公司 Mobile terminal camera parameter adjusting method and mobile terminal
CN106331661A (en) * 2015-06-25 2017-01-11 西安中兴新软件有限责任公司 White balance processing method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020048496A1 (en) * 2018-09-07 2020-03-12 晶晨半导体(上海)股份有限公司 Method and system for adjusting white balance, and display
CN111182217A (en) * 2020-01-07 2020-05-19 徐梦影 Image white balance processing method and device
CN111182217B (en) * 2020-01-07 2021-08-10 上海海鸥数码照相机有限公司 Image white balance processing method and device
CN111583884A (en) * 2020-05-29 2020-08-25 深圳市华星光电半导体显示技术有限公司 White balance adjusting method and device
CN111583884B (en) * 2020-05-29 2021-11-02 深圳市华星光电半导体显示技术有限公司 White balance adjusting method and device
CN112449112A (en) * 2020-11-18 2021-03-05 努比亚技术有限公司 Camera white balance adjusting method, mobile terminal and computer readable storage medium
CN113065487A (en) * 2021-04-09 2021-07-02 深圳市汇顶科技股份有限公司 Fingerprint identification method and device and electronic equipment
CN113065487B (en) * 2021-04-09 2023-01-31 深圳市汇顶科技股份有限公司 Fingerprint identification method and device and electronic equipment

Also Published As

Publication number Publication date
CN108040240B (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN107580184B (en) A kind of image pickup method and mobile terminal
CN108040240A (en) The method, apparatus and mobile terminal of a kind of blank level adjustment
CN109272968A (en) A kind of screen nonuniformity calibration method and terminal device
CN108307125A (en) A kind of image-pickup method, device and storage medium
CN107438163A (en) A kind of photographic method, terminal and computer-readable recording medium
CN107908383A (en) A kind of screen color method of adjustment, device and mobile terminal
CN107770438A (en) A kind of photographic method and mobile terminal
CN108270966A (en) A kind of method, mobile terminal and storage medium for adjusting light filling brightness
CN107665697A (en) The adjusting method and mobile terminal of a kind of screen intensity
CN107454342A (en) A kind of control method, mobile terminal and computer-readable recording medium
CN107959839B (en) A kind of method of blank level adjustment, terminal and computer readable storage medium
CN107302663A (en) A kind of brightness of image method of adjustment, terminal and computer-readable recording medium
CN110602473A (en) White balance calibration method and device
CN108900790A (en) Method of video image processing, mobile terminal and computer readable storage medium
CN107809599A (en) A kind of light compensation method and device and mobile terminal
CN107958470A (en) A kind of color correcting method, mobile terminal
CN107846537B (en) A kind of CCD camera assembly, image acquiring method and mobile terminal
CN107690065A (en) A kind of white balance correcting, device and computer-readable recording medium
CN109361867A (en) A kind of filter processing method and mobile terminal
CN107846583A (en) A kind of image shadow compensating method and mobile terminal
CN107040723A (en) A kind of imaging method based on dual camera, mobile terminal and storage medium
CN107240072A (en) A kind of screen luminance adjustment method, terminal and computer-readable recording medium
CN107995437A (en) Photograph taking method for polishing and mobile terminal
CN108200352B (en) Method, terminal and storage medium for adjusting picture brightness
CN108184105A (en) A kind of method, apparatus and computer readable storage medium for adjusting brightness

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