CN107734318A - A kind of color conditioning method, terminal and computer-readable recording medium - Google Patents
A kind of color conditioning method, terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107734318A CN107734318A CN201711047333.XA CN201711047333A CN107734318A CN 107734318 A CN107734318 A CN 107734318A CN 201711047333 A CN201711047333 A CN 201711047333A CN 107734318 A CN107734318 A CN 107734318A
- Authority
- CN
- China
- Prior art keywords
- color
- parameter
- values
- mentioned
- temperature value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
-
- 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/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
-
- 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
Abstract
The embodiment of the invention discloses a kind of color conditioning method, terminal and computer-readable recording medium, the color conditioning method includes:Detect color parameter corresponding to flash lamp;Wherein, flash lamp is configured in terminal, and color parameter includes red channel R values, green channel G values and blue channel B values corresponding to flash lamp;According to color parameter and default computation model, calculate and obtain color temperature parameters corresponding to color parameter;According to color temperature parameters and pre-stored criteria parameter, color-toning parameters corresponding to color parameter are determined;Wherein, color-toning parameters include the first adjustment parameter and the second adjustment parameter, and the first adjustment parameter is used to adjust R values, and the second adjustment parameter is used to adjust B values;Color parameter is adjusted according to color-toning parameters.Color conditioning method provided in an embodiment of the present invention, the terminal after carry out color adjustment can be made to show optimal color temperature distribution, so as to effectively improve the shooting effect of terminal.
Description
Technical field
The present invention relates to terminal technology, more particularly to a kind of color conditioning method, terminal and computer-readable recording medium.
Background technology
The purpose for carrying out AWB (Automatic white balance, AWB) processing is by changing terminal
The gain of color channel, to the deviation of the misalignment caused by colour temperature environment and terminal intrinsic color channel gains in itself
Unified compensation is carried out, so as to allow the image of acquisition correctly to reflect the realistic colour of object.In the prior art, to terminal
When flash lamp carries out AWB processing, the regulation of flash of light lamp color is mainly carried out according to terminal storage pre-stored criteria parameter,
Specifically, the R passages and channel B of flash lamp are mended respectively according to R offsets corresponding to pre-stored criteria parameter and B offsets
Repay.
However, for different terminals, the color parameter of its flash lamp is not identical, that is to say, that different
The color temperature distribution of terminal flash lamp is not consistent, carries out lamp color of glistening according to same pre-stored criteria parameter in the prior art
Regulation, it can not make the terminal after carry out color adjustment that optimal color temperature distribution be presented, so as to reduce the shooting effect of terminal.
The content of the invention
In view of this, the embodiments of the invention provide a kind of color conditioning method, terminal and computer-readable recording medium,
The terminal after carry out color adjustment can be made to show optimal color temperature distribution, so as to effectively improve the shooting effect of terminal.
What the technical scheme of the embodiment of the present invention was realized in:
The embodiments of the invention provide a kind of color conditioning method, including:
Detect color parameter corresponding to flash lamp;Wherein, the flash lamp is configured in terminal, and the color parameter includes
Red channel R values, green channel G values and blue channel B values corresponding to the flash lamp;
According to the color parameter and default computation model, calculate and obtain color temperature parameters corresponding to the color parameter;
According to the color temperature parameters and pre-stored criteria parameter, color-toning parameters corresponding to the color parameter are determined;Its
In, the color-toning parameters include the first adjustment parameter and the second adjustment parameter, and first adjustment parameter is used to adjust institute
R values are stated, second adjustment parameter is used to adjust the B values;
The color parameter is adjusted according to the color-toning parameters.
In such scheme, the color temperature parameters include the first range of color temperature value, described according to the color parameter and pre-
If computation model, calculate and obtain color temperature parameters corresponding to the color parameter, including:
Scale operation is carried out to the R values and the G values, obtains the first ratio knot corresponding to the R values and the G values
Fruit;
The first ratio result is defined as the first range of color temperature value.
In such scheme, the color temperature parameters also include the second range of color temperature value, it is described according to the color parameter and
Default computation model, calculate and obtain color temperature parameters corresponding to the color parameter, including:
Scale operation is carried out to the B values and the G values, obtains the second ratio knot corresponding to the B values and the G values
Fruit;
The second ratio result is defined as the second range of color temperature value.
In such scheme, the pre-stored criteria parameter includes the first reference colour temperature value, described according to the color temperature parameters
With pre-stored criteria parameter, color-toning parameters corresponding to the color parameter are determined, including:
Scale operation is carried out to the first range of color temperature value and the first reference colour temperature value, calculates and obtains the 3rd ratio
As a result;
First adjustment parameter is determined according to the 3rd ratio result.
In such scheme, the pre-stored criteria parameter also includes the second reference colour temperature value, described to be joined according to the colour temperature
Number and pre-stored criteria parameter, determine color-toning parameters corresponding to the color parameter, including:
Scale operation is carried out to the second range of color temperature value and the second reference colour temperature value, calculates and obtains the 4th ratio
As a result;
Second adjustment parameter is determined according to the 4th ratio result.
It is described that first adjustment parameter is determined according to the 3rd ratio result in such scheme, including:
The first R offsets according to corresponding to the first range of color temperature value determines the R values;
The 2nd R offsets according to corresponding to the first reference colour temperature value determines the R values;
According to the 3rd ratio result, the first R offsets and the 2nd R offsets, described first is determined
Adjustment parameter.
It is described that second adjustment parameter is determined according to the 4th ratio result in such scheme, including:
The first B offsets according to corresponding to the second range of color temperature value determines the B values;
The 2nd B offsets according to corresponding to the second reference colour temperature value determines the B values;
According to the 4th ratio result, the first B offsets and the 2nd B offsets, described second is determined
Adjustment parameter.
It is described to adjust the color parameter according to the color-toning parameters in such scheme, including:
The R values are adjusted according to first adjustment parameter;
The B values are adjusted according to second adjustment parameter.
The embodiments of the invention provide a kind of terminal, the terminal includes:Processor, memory, flash lamp and communication
Bus;The communication bus is used to realize the connection communication between the processor, the memory and the flash lamp;Institute
State processor to be used to perform the data transmission program stored in the memory, to realize the side of any of the above-described color adjustment
Method.
The embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable recording medium storage has
One or more program, one or more of programs can be by one or more computing devices, to realize above-mentioned
The method of one color adjustment.
As can be seen here, in the technical scheme of the embodiment of the present invention, color parameter corresponding to flash lamp is detected;Wherein, glisten
Lamp is configured in terminal, and color parameter includes red channel R values, green channel G values and blue channel B corresponding to flash lamp
Value;According to color parameter and default computation model, calculate and obtain color temperature parameters corresponding to color parameter;According to color temperature parameters and in advance
Canonical parameter is deposited, determines color-toning parameters corresponding to color parameter;Wherein, color-toning parameters include the first adjustment parameter and
Second adjustment parameter, the first adjustment parameter are used to adjust R values, and the second adjustment parameter is used to adjust B values;According to color-toning parameters
Adjust color parameter.As can be seen here, a kind of color conditioning method, terminal and the computer-readable storage that the embodiment of the present invention proposes
Medium, first the color parameter of terminal flash lamp can be detected, then according to color parameter and pre-stored criteria parameter to dodging
Light lamp carries out color adjustment, so as to make the terminal after carry out color adjustment show optimal color temperature distribution, and then effectively
Improve the shooting effect of terminal in ground.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the optional 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 RGB numerical value schematic diagram corresponding to different colours in the embodiment of the present invention;
Fig. 4 is RGB numeric distributions schematic diagram corresponding to different colours in the embodiment of the present invention;
Fig. 5 is the multicolour schematic diagram based on three primary colours in the embodiment of the present invention;
Fig. 6 is the implementation process schematic diagram one for the color conditioning method that the embodiment of the present invention proposes;
Fig. 7 is the implementation process schematic diagram two for the color conditioning method that the embodiment of the present invention proposes;
Fig. 8 is the implementation process schematic diagram three for the color conditioning method that the embodiment of the present invention proposes;
Fig. 9 is the implementation process schematic diagram four for the color conditioning method that the embodiment of the present invention proposes;
Figure 10 is the implementation process schematic diagram five for the color conditioning method that the embodiment of the present invention proposes;
Figure 11 is the implementation process schematic diagram six for the color conditioning method that the embodiment of the present invention proposes;
Figure 12 is the implementation process schematic diagram seven for the color conditioning method that the embodiment of the present invention proposes;
Figure 13 is the implementation process schematic diagram eight for the color conditioning method that the embodiment of the present invention proposes;
Figure 14 is the composition structural representation for the terminal that the embodiment of the present invention proposes.
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 configuration signal for a kind of optional mobile terminal of each embodiment of the realization present invention
Figure, the mobile terminal 100 can include:Radio frequency (Radio Frequency, RF) unit 101, Wireless Fidelity (WIreless-
Fidelity, Wi-Fi) it is module 102, audio output unit 103, audio/video (A/V) input block 104, sensor 105, aobvious
Show the parts such as unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111.
It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 1 does not form the restriction to mobile terminal, it is mobile whole
End 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, by up color adjustment 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 global system for mobile communications (Global System of Mobile
Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division it is more
Location 2000 (Code Division Multiple Access 2000, CDMA2000), WCDMA (Wideband
Code Division Multiple Access, WCDMA), TD SDMA (Time Division-
Synchronous Code Division Multiple Access, TD-SCDMA), FDD Long Term Evolution
(Frequency Division Duplexing-Long Term Evolution, FDD-LTE) and time division duplex Long Term Evolution
(Time Division Duplexing-Long Term Evolution, TDD-LTE) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch by Wi-Fi module 102
Email, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1
Wi-Fi module 102 is shown, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can basis
Need to omit 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 Wi-Fi module 102 it is receiving or
It is sound that the voice data that person stores in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit
103 can also provide performed to mobile terminal 100 the related audio output of specific function (for example, call signal reception sound,
Message sink 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 Wi-Fi 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 includes communicating the user equipment (User of connection successively for the LTE system of universal mobile communications technology, the LTE system
Equipment, UE) 201, evolved UMTS Terrestrial radio access network (Evolved UMTS Terrestrial Radio
Access Network, E-UTRAN) 202, evolved packet-based core networks (Evolved Packet Core, EPC) 203 and operation
The IP operation 204 of business.
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include mobility management entity (Mobility Management Entity, MME) 2031, ownership
Client server (Home Subscriber Server, HSS) 2032, other MME2033, gateway (Serving Gate
Way, SGW) 2034, grouped data network gateway (PDN Gate Way, PGW) 2035 and policy and rate functional entity
(Policy and Charging Rules Function, PCRF) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IP multimedia subsystem (IP Multimedia
Subsystem, IMS) 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, each embodiment of the inventive method is proposed.
Embodiment one
In an embodiment of the present invention, rgb color pattern is a kind of color standard of industrial quarters, is by red (R), green
(G), the change of blue (B) three Color Channels and their mutual superpositions obtain miscellaneous color, and RGB is
It is the color for representing three passages of red, green, blue, this standard almost includes all colours that human eyesight can perceive, is
At present with one of most wide color system.
Fig. 3 is RGB numerical value schematic diagram corresponding to different colours in the embodiment of the present invention, as shown in figure 3, for different face
Color, corresponding RGB numerical value is also different, wherein, the maximum numerical value of R values, G values, B values is 255, and minimum numerical value is 0.
Fig. 4 is RGB numeric distributions schematic diagram corresponding to different colours in the embodiment of the present invention, as shown in figure 4, different colours
The distribution of corresponding RGB numerical value is different.
Fig. 5 is the multicolour schematic diagram based on three primary colours in the embodiment of the present invention, as shown in figure 5, the institute in nature
There is color to be mixed by the three primary colours of red, green, blue according to different ratios, for example, according to a certain percentage will be red
Color mixes with green, can obtain yellow.
Fig. 6 is the implementation process schematic diagram one for the color conditioning method that the embodiment of the present invention proposes, as shown in fig. 6, at this
In the embodiment of invention, the method that terminal carries out color adjustment may comprise steps of:
Color parameter corresponding to step 101, detection flash lamp;Wherein, flash lamp is configured in terminal, and color parameter includes
Red channel R values, green channel G values and blue channel B values corresponding to flash lamp.
In an embodiment of the present invention, above-mentioned terminal can be detected first to the color parameter of flash lamp, to obtain end
Hold the above-mentioned color parameter of flash lamp.Wherein, above-mentioned color parameter can be the rgb value of above-mentioned terminal flash lamp.
Further, in an embodiment of the present invention, above-mentioned color parameter can include red corresponding to above-mentioned flash lamp
The B values of the R values of passage, the G values of green channel and blue channel.
It should be noted that in an embodiment of the present invention, above-mentioned terminal can be to be configured with the camera terminal of flash lamp,
For example, above-mentioned terminal can be to be configured with mobile phone, smart camera, tablet personal computer of flash lamp etc..
Step 102, according to color parameter and default computation model, calculate and obtain color temperature parameters corresponding to color parameter.
In an embodiment of the present invention, above-mentioned terminal is after above-mentioned color parameter corresponding to detection flash lamp, Ke Yigen
According to above-mentioned color parameter and default computation model, calculate and obtain color temperature parameters corresponding to above-mentioned color parameter.
Further, in an embodiment of the present invention, above-mentioned color temperature parameters can include the first range of color temperature value and second
Range of color temperature value, specifically, in an embodiment of the present invention, above-mentioned first range of color temperature value can be above-mentioned R values and above-mentioned G values
Ratio, above-mentioned second range of color temperature value can be the ratio of above-mentioned B values and above-mentioned G values.
Further, in an embodiment of the present invention, above-mentioned default computation model was used for according to above-mentioned rgb value to above-mentioned end
The color temperature parameters of the flash lamp at end are calculated.For example, above-mentioned terminal can calculate the first range of color temperature value according to formula (1)
D1, above-mentioned terminal can calculate the second range of color temperature value D2 according to formula (2),
D1=R/G (1)
D2=B/G (2)
Wherein, R is the red channel R values of above-mentioned terminal, and B is the blue channel B values of above-mentioned terminal, and G is above-mentioned terminal
Green channel G values.
It should be noted that in an embodiment of the present invention, above-mentioned first range of color temperature value can be used for embodying above-mentioned sudden strain of a muscle
The warm colour colour temperature of light lamp, correspondingly, above-mentioned second range of color temperature value can be used for the cool colour colour temperature for embodying above-mentioned flash lamp.
Step 103, according to color temperature parameters and pre-stored criteria parameter, determine color-toning parameters corresponding to color parameter;Its
In, color-toning parameters include the first adjustment parameter and the second adjustment parameter, and the first adjustment parameter is used to adjust R values, and second adjusts
Section parameter is used to adjust B values.
In an embodiment of the present invention, above-mentioned terminal is calculated and obtained according to above-mentioned color parameter and default computation model
After color temperature parameters corresponding to above-mentioned color parameter, above-mentioned color can be determined according to above-mentioned color temperature parameters and pre-stored criteria parameter
Color-toning parameters corresponding to colour parameter.
It should be noted that in an embodiment of the present invention, above-mentioned color-toning parameters are used to enter above-mentioned color parameter
Row regulation.Specifically, in an embodiment of the present invention, above-mentioned color-toning parameters can be the first adjustment parameter and the second regulation
Parameter.
Further, in an embodiment of the present invention, above-mentioned first adjustment parameter can be the offset to red channel,
That is R offsets;Above-mentioned second adjustment parameter can be the offset to blue channel, i.e. B offsets.
Further, in an embodiment of the present invention, above-mentioned first adjustment parameter can be used for above-mentioned terminal progress R values
Regulation;Correspondingly, above-mentioned second adjustment parameter can be used for the regulation that above-mentioned terminal carries out B values.
It should be noted that in an embodiment of the present invention, above-mentioned pre-stored criteria parameter can be that above-mentioned terminal is deposited in advance
Storage, for characterizing the color temperature distribution of flash lamp in the ideal situation.
Step 104, according to color-toning parameters adjust color parameter.
In an embodiment of the present invention, above-mentioned terminal determines above-mentioned according to above-mentioned color temperature parameters and pre-stored criteria parameter
After above-mentioned color-toning parameters corresponding to color parameter, above-mentioned color parameter can be adjusted according to above-mentioned color-toning parameters.
Further, in an embodiment of the present invention, above-mentioned terminal is after above-mentioned color-toning parameters are obtained, Ke Yigen
The color parameter of above-mentioned terminal flash lamp is adjusted according to above-mentioned color-toning parameters.It should be noted that the present invention's
In embodiment, above-mentioned terminal is according to above-mentioned color parameter and the above-mentioned above-mentioned color-toning parameters of pre-stored criteria gain of parameter, also
It is to say, above-mentioned color-toning parameters are related to above-mentioned color parameter and above-mentioned pre-stored criteria parameter, and therefore, above-mentioned terminal is according to upper
When stating color-toning parameters above-mentioned color parameter being adjusted, it can show the terminal after carry out color adjustment most suitably used
In the color temperature distribution of above-mentioned terminal.
The color conditioning method that the embodiment of the present invention proposes, detect color parameter corresponding to flash lamp;Wherein, flash lamp is matched somebody with somebody
It is placed in terminal, color parameter includes red channel R values, green channel G values and blue channel B values corresponding to flash lamp;Root
According to color parameter and default computation model, calculate and obtain color temperature parameters corresponding to color parameter;According to color temperature parameters and the mark that prestores
Quasi- parameter, determine color-toning parameters corresponding to color parameter;Wherein, color-toning parameters include the first adjustment parameter and second
Adjustment parameter, the first adjustment parameter are used to adjust R values, and the second adjustment parameter is used to adjust B values;Adjusted according to color-toning parameters
Color parameter.As can be seen here, a kind of color conditioning method that the embodiment of the present invention proposes, can be first to the color of terminal flash lamp
Parameter is detected, and then carries out color adjustment to flash lamp according to color parameter and pre-stored criteria parameter, so as to make into
Terminal after row color adjustment shows optimal color temperature distribution, and then effectively improves the shooting effect of terminal.
Embodiment two
Based on above-described embodiment one, Fig. 7 is the implementation process schematic diagram for the color conditioning method that the embodiment of the present invention proposes
Two, as shown in fig. 7, in an embodiment of the present invention, above-mentioned color temperature parameters include the first range of color temperature value, and above-mentioned terminal is according to color
Colour parameter and default computation model, the method for calculating color temperature parameters corresponding to acquisition color parameter may comprise steps of:
Step 102a, scale operation is carried out to R values and G values, obtains the first ratio result corresponding to R values and G values.
In an embodiment of the present invention, above-mentioned terminal after detection obtains above-mentioned color parameter, i.e., examining by above-mentioned terminal
Survey after obtaining R values corresponding to flash lamp and G values, scale operation can be carried out to above-mentioned R values and above-mentioned G values, obtain above-mentioned R values
With above-mentioned G values corresponding to the first ratio result.
Further, in an embodiment of the present invention, above-mentioned first ratio result, i.e., the ratio of above-mentioned R values and above-mentioned G values
Value, can be used for the warm colour colour temperature for characterizing above-mentioned terminal flash lamp.
Step 102b, the first ratio result is defined as the first range of color temperature value.
In an embodiment of the present invention, above-mentioned terminal is carrying out scale operation to above-mentioned R values and above-mentioned G values, obtains above-mentioned R
Corresponding to value and above-mentioned G values after the first ratio result, above-mentioned first ratio result can be defined as above-mentioned the by above-mentioned terminal
Color temperature interval value.
It should be noted that in an embodiment of the present invention, above-mentioned color temperature parameters can include the first range of color temperature value, tool
Body, in an embodiment of the present invention, above-mentioned first range of color temperature value can be used for the warm colour colour temperature for embodying above-mentioned flash lamp.
It can be seen from the description above, by above-mentioned step 102a~102b, above-mentioned terminal-pair R values and G values are compared
Example computing, obtains the first ratio result corresponding to R values and G values;First ratio result is defined as the first range of color temperature value.Thus
It can be seen that a kind of color conditioning method that the embodiment of the present invention proposes, first can be detected to the color parameter of terminal flash lamp,
Then color adjustment is carried out to flash lamp according to color parameter and pre-stored criteria parameter, after making carry out color adjustment
Terminal shows optimal color temperature distribution, and then effectively improves the shooting effect of terminal.
Embodiment three
Based on above-described embodiment one, Fig. 8 is the implementation process schematic diagram for the color conditioning method that the embodiment of the present invention proposes
Three, as shown in figure 8, in an embodiment of the present invention, above-mentioned color temperature parameters also include the second range of color temperature value, above-mentioned terminal according to
Color parameter and default computation model, the method for calculating color temperature parameters corresponding to acquisition color parameter may comprise steps of:
Step 102c, scale operation is carried out to B values and G values, obtains the second ratio result corresponding to B values and G values.
In an embodiment of the present invention, above-mentioned terminal after detection obtains above-mentioned color parameter, i.e., examining by above-mentioned terminal
Survey and obtain corresponding to flash lamp after B and G values, can to above-mentioned B values and above-mentioned G values progress scale operation, obtain above-mentioned B values with
Second ratio result corresponding to above-mentioned G values.
Further, in an embodiment of the present invention, above-mentioned second ratio result, i.e., the ratio of above-mentioned B values and above-mentioned G values
Value, can be used for the cool colour colour temperature for characterizing above-mentioned terminal flash lamp.
Step 102d, the second ratio result is defined as the second range of color temperature value.
In an embodiment of the present invention, above-mentioned terminal is carrying out scale operation to above-mentioned B values and above-mentioned G values, obtains above-mentioned B
Corresponding to value and above-mentioned G values after the second ratio result, above-mentioned second ratio result can be defined as above-mentioned the by above-mentioned terminal
Two range of color temperature values.
It should be noted that in an embodiment of the present invention, above-mentioned color temperature parameters can include the second range of color temperature value, tool
Body, in an embodiment of the present invention, above-mentioned second range of color temperature value can be used for the cool colour colour temperature for embodying above-mentioned flash lamp.
It can be seen from the description above, by above-mentioned step 102c~102d, above-mentioned terminal-pair B values and G values are compared
Example computing, obtains the second ratio result corresponding to B values and G values;Second ratio result is defined as the second range of color temperature value.Thus
It can be seen that a kind of color conditioning method that the embodiment of the present invention proposes, first can be detected to the color parameter of terminal flash lamp,
Then color adjustment is carried out to flash lamp according to color parameter and pre-stored criteria parameter, after making carry out color adjustment
Terminal shows optimal color temperature distribution, and then effectively improves the shooting effect of terminal.
Example IV
Based on above-described embodiment two, Fig. 9 is the implementation process schematic diagram for the color conditioning method that the embodiment of the present invention proposes
Four, as shown in figure 9, in an embodiment of the present invention, above-mentioned pre-stored criteria parameter includes the first reference colour temperature value, above-mentioned terminal root
According to color temperature parameters and pre-stored criteria parameter, following step can be included by determining the method for color-toning parameters corresponding to color parameter
Suddenly:
Step 103a, scale operation is carried out to the first range of color temperature value and the first reference colour temperature value, calculates and obtain the 3rd ratio
It is worth result.
In an embodiment of the present invention, above-mentioned terminal is calculated and obtained according to above-mentioned color parameter and default computation model
After color temperature parameters corresponding to above-mentioned color parameter, above-mentioned first range of color temperature value and above-mentioned first reference colour temperature value can be entered
Row scale operation, calculate and obtain the 3rd ratio result.
It should be noted that in an embodiment of the present invention, above-mentioned pre-stored criteria parameter can include the first standard color temperature
Value, specifically, in an embodiment of the present invention, above-mentioned first reference colour temperature value can be the R of flash lamp ideallyIt is preferable
Value and GIt is preferableThe ratio of value, i.e., above-mentioned first reference colour temperature value can be used for the warm colour colour temperature point for characterizing ideally flash lamp
Cloth.
Further, in an embodiment of the present invention, above-mentioned terminal can incite somebody to action after the above-mentioned color temperature parameters of acquisition are calculated
The first range of color temperature value in above-mentioned color temperature parameters carries out scale operation with above-mentioned first reference colour temperature value, so as to calculate in acquisition
The ratio of the first range of color temperature value and above-mentioned first reference colour temperature value is stated, i.e., above-mentioned 3rd ratio result.
Step 103b, the first adjustment parameter is determined according to the 3rd ratio result.
In an embodiment of the present invention, above-mentioned terminal is to above-mentioned first range of color temperature value and above-mentioned first reference colour temperature value
Scale operation is carried out, is calculated after obtaining above-mentioned 3rd ratio result, above-mentioned the can be determined according to above-mentioned 3rd ratio result
One adjustment parameter.
It should be noted that in an embodiment of the present invention, above-mentioned color-toning parameters are used to enter above-mentioned color parameter
Row regulation.Further, in an embodiment of the present invention, above-mentioned first adjustment parameter can be the offset to red channel,
That is R offsets.
It can be seen from the description above, pass through above-mentioned step 103a~103b, above-mentioned the first range of color temperature of terminal-pair value
Scale operation is carried out with the first reference colour temperature value, calculates and obtains the 3rd ratio result;First tune is determined according to the 3rd ratio result
Save parameter.As can be seen here, a kind of color conditioning method that the embodiment of the present invention proposes, first the color of terminal flash lamp can be joined
Number is detected, and then color adjustment is carried out to flash lamp according to color parameter and pre-stored criteria parameter, so as to make progress
Terminal after color adjustment shows optimal color temperature distribution, and then effectively improves the shooting effect of terminal.
Embodiment five
Based on above-described embodiment three, Figure 10 is the implementation process schematic diagram for the color conditioning method that the embodiment of the present invention proposes
Five, as shown in Figure 10, in an embodiment of the present invention, pre-stored criteria parameter also includes the second reference colour temperature value, above-mentioned terminal root
According to color temperature parameters and pre-stored criteria parameter, following step can be included by determining the method for color-toning parameters corresponding to color parameter
Suddenly:
Step 103c, scale operation is carried out to the second range of color temperature value and the second reference colour temperature value, calculates and obtain the 4th ratio
It is worth result.
In an embodiment of the present invention, above-mentioned terminal is calculated and obtained according to above-mentioned color parameter and default computation model
After color temperature parameters corresponding to above-mentioned color parameter, above-mentioned second range of color temperature value and above-mentioned second reference colour temperature value can be entered
Row scale operation, calculate and obtain the 4th ratio result.
It should be noted that in an embodiment of the present invention, above-mentioned pre-stored criteria parameter can include the second standard color temperature
Value, specifically, in an embodiment of the present invention, above-mentioned second reference colour temperature value can be the B of flash lamp ideallyIt is preferable
Value and GIt is preferableThe ratio of value, i.e., above-mentioned second reference colour temperature value can be used for the cool colour colour temperature point for characterizing ideally flash lamp
Cloth.
Further, in an embodiment of the present invention, above-mentioned terminal can incite somebody to action after the above-mentioned color temperature parameters of acquisition are calculated
The second range of color temperature value in above-mentioned color temperature parameters carries out scale operation with above-mentioned second reference colour temperature value, so as to calculate in acquisition
The ratio of the second range of color temperature value and above-mentioned second reference colour temperature value is stated, i.e., above-mentioned 4th ratio result.
Step 103d, the second adjustment parameter is determined according to the 4th ratio result.
In an embodiment of the present invention, above-mentioned terminal is to above-mentioned second range of color temperature value and above-mentioned second reference colour temperature value
Scale operation is carried out, is calculated after obtaining above-mentioned 4th ratio result, above-mentioned the can be determined according to above-mentioned 4th ratio result
Two adjustment parameters.
It should be noted that in an embodiment of the present invention, above-mentioned color-toning parameters are used to enter above-mentioned color parameter
Row regulation.Further, in an embodiment of the present invention, above-mentioned second adjustment parameter can be the offset to blue channel,
That is B offsets.
It can be seen from the description above, pass through above-mentioned step 103c~103d, above-mentioned the second range of color temperature of terminal-pair value
Scale operation is carried out with the second reference colour temperature value, calculates and obtains the 4th ratio result;Second tune is determined according to the 4th ratio result
Save parameter.As can be seen here, a kind of color conditioning method that the embodiment of the present invention proposes, first the color of terminal flash lamp can be joined
Number is detected, and then color adjustment is carried out to flash lamp according to color parameter and pre-stored criteria parameter, so as to make progress
Terminal after color adjustment shows optimal color temperature distribution, and then effectively improves the shooting effect of terminal.
Embodiment six
Based on above-described embodiment four, Figure 11 is the implementation process schematic diagram for the color conditioning method that the embodiment of the present invention proposes
Six, as shown in figure 11, in an embodiment of the present invention, above-mentioned terminal determines the side of the first adjustment parameter according to the 3rd ratio result
Method may comprise steps of:
Step 201, the first R offsets according to corresponding to the first range of color temperature value determines R values.
In an embodiment of the present invention, above-mentioned terminal is calculated and obtained according to above-mentioned color parameter and default computation model
After color temperature parameters corresponding to above-mentioned color parameter, it can be determined according to the above-mentioned first range of color temperature value in above-mentioned color temperature parameters
First R offsets corresponding to above-mentioned R values.
It should be noted that in an embodiment of the present invention, above-mentioned first R offsets can be above-mentioned first range of color temperature
The inverse of value.Further, in an embodiment of the present invention, above-mentioned first range of color temperature value can be above-mentioned R values and above-mentioned G values
Ratio, correspondingly, above-mentioned first R offsets can be the ratio of above-mentioned G values and above-mentioned R values.
Step 202, the 2nd R offsets according to corresponding to the first reference colour temperature value determines R values.
In an embodiment of the present invention, above-mentioned terminal can determine that above-mentioned R values are corresponding according to above-mentioned first reference colour temperature value
The 2nd R offsets.
It should be noted that in an embodiment of the present invention, above-mentioned 2nd R offsets can be above-mentioned first standard color temperature
The inverse of value.Further, in an embodiment of the present invention, above-mentioned first reference colour temperature value can be flash of light ideally
The R of lampIt is preferableValue and GIt is preferableThe ratio of value, correspondingly, above-mentioned 2nd R offsets can be the G of flash lamp ideallyIt is preferableValue
With RIt is preferableThe ratio of value.
Step 203, according to the 3rd ratio result, the first R offsets and the 2nd R offsets, determine the first adjustment parameter.
In an embodiment of the present invention, above-mentioned terminal is true in the above-mentioned first range of color temperature value in above-mentioned color temperature parameters
First R offsets corresponding to fixed above-mentioned R values, and the 2nd R is compensated according to corresponding to above-mentioned first reference colour temperature value determines above-mentioned R values
After value, it can determine that above-mentioned first adjusts according to above-mentioned 3rd ratio result, above-mentioned first R offsets and the 2nd R offsets
Save parameter.
It should be noted that in an embodiment of the present invention, above-mentioned first adjustment parameter can be should to above-mentioned terminal-pair
Red channel offset, i.e. R offsets.
The color conditioning method that the embodiment of the present invention proposes, detect color parameter corresponding to flash lamp;Wherein, flash lamp is matched somebody with somebody
It is placed in terminal, color parameter includes red channel R values, green channel G values and blue channel B values corresponding to flash lamp;Root
According to color parameter and default computation model, calculate and obtain color temperature parameters corresponding to color parameter;According to color temperature parameters and the mark that prestores
Quasi- parameter, determine color-toning parameters corresponding to color parameter;Wherein, color-toning parameters include the first adjustment parameter and second
Adjustment parameter, the first adjustment parameter are used to adjust R values, and the second adjustment parameter is used to adjust B values;Adjusted according to color-toning parameters
Color parameter.As can be seen here, a kind of color conditioning method that the embodiment of the present invention proposes, can be first to the color of terminal flash lamp
Parameter is detected, and then carries out color adjustment to flash lamp according to color parameter and pre-stored criteria parameter, so as to make into
Terminal after row color adjustment shows optimal color temperature distribution, and then effectively improves the shooting effect of terminal.
Embodiment seven
Based on above-described embodiment five, Figure 12 is the implementation process schematic diagram for the color conditioning method that the embodiment of the present invention proposes
Seven, as shown in figure 12, in an embodiment of the present invention, above-mentioned terminal determines the side of the second adjustment parameter according to the 4th ratio result
Method may comprise steps of:
Step 301, the first B offsets according to corresponding to the second range of color temperature value determines B values.
In an embodiment of the present invention, above-mentioned terminal is calculated and obtained according to above-mentioned color parameter and default computation model
After color temperature parameters corresponding to above-mentioned color parameter, it can be determined according to the above-mentioned second range of color temperature value in above-mentioned color temperature parameters
First B offsets corresponding to above-mentioned B values.
It should be noted that in an embodiment of the present invention, above-mentioned first B offsets can be above-mentioned second range of color temperature
The inverse of value.Further, in an embodiment of the present invention, above-mentioned second range of color temperature value can be above-mentioned B values and above-mentioned G values
Ratio, correspondingly, above-mentioned first B offsets can be the ratio of above-mentioned G values and above-mentioned B values.
Step 302, the 2nd B offsets according to corresponding to the second reference colour temperature value determines B values.
In an embodiment of the present invention, above-mentioned terminal can determine that above-mentioned B values are corresponding according to above-mentioned second reference colour temperature value
The 2nd B offsets.
It should be noted that in an embodiment of the present invention, above-mentioned 2nd B offsets can be above-mentioned second standard color temperature
The inverse of value.Further, in an embodiment of the present invention, above-mentioned second reference colour temperature value can be flash of light ideally
The B of lampIt is preferableValue and GIt is preferableThe ratio of value, correspondingly, above-mentioned 2nd B offsets can be the G of flash lamp ideallyIt is preferableValue
With BIt is preferableThe ratio of value.
Step 303, according to the 4th ratio result, the first B offsets and the 2nd B offsets, determine the second adjustment parameter.
In an embodiment of the present invention, above-mentioned terminal is true in the above-mentioned second range of color temperature value in above-mentioned color temperature parameters
First B offsets corresponding to fixed above-mentioned B values, and the 2nd B is compensated according to corresponding to above-mentioned second reference colour temperature value determines above-mentioned B values
After value, it can determine that above-mentioned second adjusts according to above-mentioned 4th ratio result, above-mentioned first B offsets and the 2nd B offsets
Save parameter.
It should be noted that in an embodiment of the present invention, above-mentioned second adjustment parameter can be should to above-mentioned terminal-pair
Blue channel offset, i.e. B offsets.
The color conditioning method that the embodiment of the present invention proposes, detect color parameter corresponding to flash lamp;Wherein, flash lamp is matched somebody with somebody
It is placed in terminal, color parameter includes red channel R values, green channel G values and blue channel B values corresponding to flash lamp;Root
According to color parameter and default computation model, calculate and obtain color temperature parameters corresponding to color parameter;According to color temperature parameters and the mark that prestores
Quasi- parameter, determine color-toning parameters corresponding to color parameter;Wherein, color-toning parameters include the first adjustment parameter and second
Adjustment parameter, the first adjustment parameter are used to adjust R values, and the second adjustment parameter is used to adjust B values;Adjusted according to color-toning parameters
Color parameter.As can be seen here, a kind of color conditioning method that the embodiment of the present invention proposes, can be first to the color of terminal flash lamp
Parameter is detected, and then carries out color adjustment to flash lamp according to color parameter and pre-stored criteria parameter, so as to make into
Terminal after row color adjustment shows optimal color temperature distribution, and then effectively improves the shooting effect of terminal.
Embodiment eight
Based on above-described embodiment one to embodiment seven, Figure 13 is the realization for the color conditioning method that the embodiment of the present invention proposes
Schematic flow sheet eight, as shown in figure 13, in an embodiment of the present invention, above-mentioned terminal is joined according to color-toning parameters regulation color
Several methods may comprise steps of:
Step 104a, R values are adjusted according to the first adjustment parameter.
In an embodiment of the present invention, above-mentioned terminal determines above-mentioned according to above-mentioned color temperature parameters and pre-stored criteria parameter
After above-mentioned color-toning parameters corresponding to color parameter, it can join according to above-mentioned first regulation in above-mentioned color-toning parameters
Number adjusts above-mentioned R values.
It should be noted that in an embodiment of the present invention, above-mentioned terminal is according to above-mentioned 3rd ratio result, above-mentioned
One R offsets and above-mentioned 2nd R offsets, after determining above-mentioned first adjustment parameter, it can be joined according to the above-mentioned first regulation
It is several that above-mentioned R values are adjusted.
Step 104b, B values are adjusted according to the second adjustment parameter.
In an embodiment of the present invention, above-mentioned terminal determines above-mentioned according to above-mentioned color temperature parameters and pre-stored criteria parameter
After above-mentioned color-toning parameters corresponding to color parameter, it can join according to above-mentioned second regulation in above-mentioned color-toning parameters
Number adjusts above-mentioned B values.
It should be noted that in an embodiment of the present invention, above-mentioned terminal is according to above-mentioned 4th ratio result, above-mentioned
One B offsets and above-mentioned 2nd B offsets, after determining above-mentioned second adjustment parameter, it can be joined according to the above-mentioned second regulation
It is several that above-mentioned B values are adjusted.
It can be seen from the description above, by above-mentioned step 104a~104b, above-mentioned terminal is according to the first adjustment parameter
Adjust R values;B values are adjusted according to the second adjustment parameter.As can be seen here, a kind of color conditioning method that the embodiment of the present invention proposes,
First the color parameter of terminal flash lamp can be detected, then flash lamp is entered according to color parameter and pre-stored criteria parameter
Row color adjustment, so as to make the terminal after carry out color adjustment show optimal color temperature distribution, and then effectively improve
The shooting effect of terminal.
Embodiment nine
Figure 14 is the composition structural representation one for the terminal that the embodiment of the present invention proposes, in actual applications, based on implementation
Under example one to the same inventive concept of embodiment eight, as shown in figure 14, the terminal 3 of the embodiment of the present invention includes:Processor 31, deposit
Reservoir 32, flash lamp 33 and communication bus 34.It should be noted that in an embodiment of the present invention, the processor in Figure 14
31 and memory 32 correspond to processor 110 and memory 109 in above-mentioned figure one respectively.During specific embodiment, on
State processor 31 can be application-specific IC (Application Specific Integrated Circuit,
ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing device (Digital
Signal Processing Device, DSPD), programmable logic device (Programmable Logic Device, PLD),
Field programmable gate array (Field Programmable Gate Array, FPGA), central processing unit (Central
Processing Unit, CPU), controller, microcontroller, at least one of microprocessor.It is to be appreciated that for difference
Equipment, for realize above-mentioned processor function electronic device can also be it is other, the embodiment of the present invention is not especially limited.
In an embodiment of the present invention, above-mentioned communication bus 34 is used to realize processor 31, memory 32 and flash lamp
Connection communication between 33;Above-mentioned processor 31 is used to perform the color adjustment program stored in memory 32, following to realize
Step:
Detect color parameter corresponding to flash lamp;Wherein, flash lamp is configured in terminal, and color parameter includes flash lamp pair
Red channel R values, green channel G values and the blue channel B values answered;And according to color parameter and default computation model, meter
Calculate and obtain color temperature parameters corresponding to color parameter;And according to color temperature parameters and pre-stored criteria parameter, determine that color parameter is corresponding
Color-toning parameters;Wherein, color-toning parameters include the first adjustment parameter and the second adjustment parameter, and the first adjustment parameter is used
In regulation R values, the second adjustment parameter is used to adjust B values;And adjust color parameter according to color-toning parameters.
In an embodiment of the present invention, further, color temperature parameters include the first range of color temperature value, above-mentioned processor 31,
Specifically for carrying out scale operation to R values and G values, the first ratio result corresponding to R values and G values is obtained;And by the first ratio
As a result it is defined as the first range of color temperature value.
In an embodiment of the present invention, further, color temperature parameters also include the second range of color temperature value, above-mentioned processor
31, scale operation is carried out also particularly useful for B values and G values, obtains the second ratio result corresponding to B values and G values;And by second
Ratio result is defined as the second range of color temperature value.
In an embodiment of the present invention, further, pre-stored criteria parameter includes the first reference colour temperature value, above-mentioned processor
31, scale operation is carried out also particularly useful for the first range of color temperature value and the first reference colour temperature value, calculates and obtains the 3rd ratio knot
Fruit;And the first adjustment parameter is determined according to the 3rd ratio result.
In an embodiment of the present invention, further, pre-stored criteria parameter also includes the second reference colour temperature value, above-mentioned processing
Device 31, scale operation is carried out also particularly useful for the second range of color temperature value and the second reference colour temperature value, calculates and obtains the 4th ratio
As a result;And the second adjustment parameter is determined according to the 4th ratio result.
In an embodiment of the present invention, further, above-mentioned processor 31, also particularly useful for according to the first range of color temperature value
Determine the first R offsets corresponding to R values;And the 2nd R offsets according to corresponding to the first reference colour temperature value determines R values;And
According to the 3rd ratio result, the first R offsets and the 2nd R offsets, the first adjustment parameter is determined.
In an embodiment of the present invention, further, above-mentioned processor 31, also particularly useful for according to the second range of color temperature value
Determine the first B offsets corresponding to B values;And the 2nd B offsets according to corresponding to the second reference colour temperature value determines B values;And
According to the 4th ratio result, the first B offsets and the 2nd B offsets, the second adjustment parameter is determined.
In an embodiment of the present invention, further, above-mentioned processor 31, adjusted also particularly useful for according to the first adjustment parameter
Save R values;And adjust B values according to the second adjustment parameter.
The terminal that the embodiment of the present invention proposes, detect color parameter corresponding to flash lamp;Wherein, flash lamp is configured at terminal
On, color parameter includes red channel R values, green channel G values and blue channel B values corresponding to flash lamp;Joined according to color
Several and default computation model, calculate and obtain color temperature parameters corresponding to color parameter;According to color temperature parameters and pre-stored criteria parameter, really
Color-toning parameters corresponding to fixation colour parameter;Wherein, color-toning parameters include the first adjustment parameter and the second adjustment parameter,
First adjustment parameter is used to adjust R values, and the second adjustment parameter is used to adjust B values;Color parameter is adjusted according to color-toning parameters.
As can be seen here, the terminal that the embodiment of the present invention proposes, first can be detected, then basis to the color parameter of terminal flash lamp
Color parameter and pre-stored criteria parameter carry out color adjustment to flash lamp, so as to which the terminal after carry out color adjustment is presented
Go out optimal color temperature distribution, and then effectively improve the shooting effect of terminal.
The embodiment of the present invention provides a kind of computer-readable recording medium, and above computer readable storage medium storing program for executing is stored with one
Individual or multiple programs, said one or multiple programs, applied in terminal, can be somebody's turn to do by one or more computing device
The method such as embodiment one to embodiment eight is realized when program is executed by processor.
Specifically, programmed instruction corresponding to a kind of color conditioning method in the present embodiment can be stored in CD,
In the storage mediums such as hard disk, USB flash disk, when programmed instruction corresponding with a kind of color conditioning method is set by an electronics in storage medium
During for reading or be performed, comprise the following steps:
Detect color parameter corresponding to flash lamp;Wherein, flash lamp is configured in terminal, and color parameter includes flash lamp pair
Red channel R values, green channel G values and the blue channel B values answered;
According to color parameter and default computation model, calculate and obtain color temperature parameters corresponding to color parameter;
According to color temperature parameters and pre-stored criteria parameter, color-toning parameters corresponding to color parameter are determined;Wherein, color is adjusted
Section parameter includes the first adjustment parameter and the second adjustment parameter, and the first adjustment parameter is used to adjust R values, and the second adjustment parameter is used for
Adjust B values;
Color parameter is adjusted according to color-toning parameters.
In an embodiment of the present invention, further, color temperature parameters include the first range of color temperature value, according to color parameter and
Default computation model, when calculating color temperature parameters corresponding to acquisition color parameter, said one or multiple programs can also be above-mentioned
One or more computing device, implement following steps:
Scale operation is carried out to R values and G values, obtains the first ratio result corresponding to R values and G values;
First ratio result is defined as the first range of color temperature value.
In an embodiment of the present invention, further, color temperature parameters also include the second range of color temperature value, according to color parameter
With default computation model, when calculating color temperature parameters corresponding to acquisition color parameter, said one or multiple programs are by above-mentioned one
Individual or multiple computing devices, implement following steps:
Scale operation is carried out to B values and G values, obtains the second ratio result corresponding to B values and G values;
Second ratio result is defined as the second range of color temperature value.
In an embodiment of the present invention, further, pre-stored criteria parameter includes the first reference colour temperature value, is joined according to colour temperature
Number and pre-stored criteria parameter, when determining color-toning parameters corresponding to color parameter, said one or multiple programs are above-mentioned
One or more computing device, implement following steps:
Scale operation is carried out to the first range of color temperature value and the first reference colour temperature value, calculates and obtains the 3rd ratio result;
First adjustment parameter is determined according to the 3rd ratio result.
In an embodiment of the present invention, further, pre-stored criteria parameter also includes the second reference colour temperature value, according to colour temperature
Parameter and pre-stored criteria parameter, when determining color-toning parameters corresponding to color parameter, in said one or multiple programs
One or more computing device is stated, implements following steps:
Scale operation is carried out to the second range of color temperature value and the second reference colour temperature value, calculates and obtains the 4th ratio result;
Second adjustment parameter is determined according to the 4th ratio result.
In an embodiment of the present invention, further, when determining the first adjustment parameter according to the 3rd ratio result, above-mentioned one
Individual either multiple programs are by said one or multiple computing devices, specific implementation following steps:
The first R offsets according to corresponding to the first range of color temperature value determines R values;
The 2nd R offsets according to corresponding to the first reference colour temperature value determines R values;
According to the 3rd ratio result, the first R offsets and the 2nd R offsets, the first adjustment parameter is determined.
In an embodiment of the present invention, further, when determining the second adjustment parameter according to the 4th ratio result, above-mentioned one
Individual either multiple programs are by said one or multiple computing devices, specific implementation following steps:
The first B offsets according to corresponding to the second range of color temperature value determines B values;
The 2nd B offsets according to corresponding to the second reference colour temperature value determines B values;
According to the 4th ratio result, the first B offsets and the 2nd B offsets, the second adjustment parameter is determined.
In an embodiment of the present invention, further, according to color-toning parameters adjust color parameter when, said one or
The multiple programs of person are by said one or multiple computing devices, specific implementation following steps:
R values are adjusted according to the first adjustment parameter;
B values are adjusted according to the second adjustment parameter.
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 (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one 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 a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
1. a kind of color conditioning method, it is characterised in that methods described includes:
Detect color parameter corresponding to flash lamp;Wherein, the flash lamp is configured in terminal, and the color parameter includes described
Red channel R values, green channel G values and blue channel B values corresponding to flash lamp;
According to the color parameter and default computation model, calculate and obtain color temperature parameters corresponding to the color parameter;
According to the color temperature parameters and pre-stored criteria parameter, color-toning parameters corresponding to the color parameter are determined;Wherein, institute
Stating color-toning parameters includes the first adjustment parameter and the second adjustment parameter, and first adjustment parameter is used to adjust the R values,
Second adjustment parameter is used to adjust the B values;
The color parameter is adjusted according to the color-toning parameters.
2. according to the method for claim 1, it is characterised in that the color temperature parameters include the first range of color temperature value, described
According to the color parameter and default computation model, calculate and obtain color temperature parameters corresponding to the color parameter, including:
Scale operation is carried out to the R values and the G values, obtains the first ratio result corresponding to the R values and the G values;
The first ratio result is defined as the first range of color temperature value.
3. according to the method for claim 1, it is characterised in that the color temperature parameters also include the second range of color temperature value, institute
State according to the color parameter and default computation model, calculate and obtain color temperature parameters corresponding to the color parameter, including:
Scale operation is carried out to the B values and the G values, obtains the second ratio result corresponding to the B values and the G values;
The second ratio result is defined as the second range of color temperature value.
4. according to the method for claim 2, it is characterised in that the pre-stored criteria parameter includes the first reference colour temperature value,
It is described to determine color-toning parameters corresponding to the color parameter according to the color temperature parameters and pre-stored criteria parameter, including:
Scale operation is carried out to the first range of color temperature value and the first reference colour temperature value, calculates and obtains the 3rd ratio knot
Fruit;
First adjustment parameter is determined according to the 3rd ratio result.
5. according to the method for claim 3, it is characterised in that the pre-stored criteria parameter also includes the second standard color temperature
Value, it is described according to the color temperature parameters and pre-stored criteria parameter, color-toning parameters corresponding to the color parameter are determined, are wrapped
Include:
Scale operation is carried out to the second range of color temperature value and the second reference colour temperature value, calculates and obtains the 4th ratio knot
Fruit;
Second adjustment parameter is determined according to the 4th ratio result.
6. according to the method for claim 4, it is characterised in that described to determine described first according to the 3rd ratio result
Adjustment parameter, including:
The first R offsets according to corresponding to the first range of color temperature value determines the R values;
The 2nd R offsets according to corresponding to the first reference colour temperature value determines the R values;
According to the 3rd ratio result, the first R offsets and the 2nd R offsets, first regulation is determined
Parameter.
7. according to the method for claim 5, it is characterised in that described to determine described second according to the 4th ratio result
Adjustment parameter, including:
The first B offsets according to corresponding to the second range of color temperature value determines the B values;
The 2nd B offsets according to corresponding to the second reference colour temperature value determines the B values;
According to the 4th ratio result, the first B offsets and the 2nd B offsets, second regulation is determined
Parameter.
8. the method according to claim 6 or 7, it is characterised in that described according to described in color-toning parameters regulation
Color parameter, including:
The R values are adjusted according to first adjustment parameter;
The B values are adjusted according to second adjustment parameter.
9. a kind of terminal, it is characterised in that the terminal includes:Processor, memory, flash lamp and communication bus;It is described
Communication bus is used to realize the connection communication between the processor, the memory and the flash lamp;The processor
For performing the data transmission program stored in the memory, to realize the method as described in claim any one of 1-8.
A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or
Multiple programs, one or more of programs can be by one or more computing devices, and to realize, such as claim 1-8 appoints
Method described in one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711047333.XA CN107734318A (en) | 2017-10-31 | 2017-10-31 | A kind of color conditioning method, terminal and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711047333.XA CN107734318A (en) | 2017-10-31 | 2017-10-31 | A kind of color conditioning method, terminal and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107734318A true CN107734318A (en) | 2018-02-23 |
Family
ID=61202851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711047333.XA Pending CN107734318A (en) | 2017-10-31 | 2017-10-31 | A kind of color conditioning method, terminal and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107734318A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108461073A (en) * | 2018-04-09 | 2018-08-28 | 四川长虹电器股份有限公司 | A method of realizing dynamic control color temperature of display device consistency |
CN111010530A (en) * | 2018-10-05 | 2020-04-14 | 大陆汽车有限责任公司 | Emergency vehicle detection |
CN114286476A (en) * | 2020-09-27 | 2022-04-05 | 深圳市零壹视讯科技有限公司 | On-site light RGB parameter adjusting method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101543046A (en) * | 2006-09-22 | 2009-09-23 | 索尼爱立信移动通讯股份有限公司 | Color adjustment for camera |
CN101753847A (en) * | 2008-12-10 | 2010-06-23 | 三星数码影像株式会社 | Color temperature compensating imaging apparatus and method |
CN102346356A (en) * | 2010-07-30 | 2012-02-08 | 佳能株式会社 | Light-emitting apparatus, image pickup apparatus, and camera system capable of changing emission color temperature |
CN105530436A (en) * | 2016-01-11 | 2016-04-27 | 广东欧珀移动通信有限公司 | Shooting parameter adjustment method and shooting terminal |
CN106412543A (en) * | 2016-09-06 | 2017-02-15 | 深圳天珑无线科技有限公司 | Method and device for calibrating color cast of flashlight |
-
2017
- 2017-10-31 CN CN201711047333.XA patent/CN107734318A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101543046A (en) * | 2006-09-22 | 2009-09-23 | 索尼爱立信移动通讯股份有限公司 | Color adjustment for camera |
CN101753847A (en) * | 2008-12-10 | 2010-06-23 | 三星数码影像株式会社 | Color temperature compensating imaging apparatus and method |
CN102346356A (en) * | 2010-07-30 | 2012-02-08 | 佳能株式会社 | Light-emitting apparatus, image pickup apparatus, and camera system capable of changing emission color temperature |
CN105530436A (en) * | 2016-01-11 | 2016-04-27 | 广东欧珀移动通信有限公司 | Shooting parameter adjustment method and shooting terminal |
CN106412543A (en) * | 2016-09-06 | 2017-02-15 | 深圳天珑无线科技有限公司 | Method and device for calibrating color cast of flashlight |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108461073A (en) * | 2018-04-09 | 2018-08-28 | 四川长虹电器股份有限公司 | A method of realizing dynamic control color temperature of display device consistency |
CN111010530A (en) * | 2018-10-05 | 2020-04-14 | 大陆汽车有限责任公司 | Emergency vehicle detection |
US11341753B2 (en) | 2018-10-05 | 2022-05-24 | Continental Automotive Gmbh | Emergency vehicle detection |
CN114286476A (en) * | 2020-09-27 | 2022-04-05 | 深圳市零壹视讯科技有限公司 | On-site light RGB parameter adjusting method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107690065A (en) | A kind of white balance correcting, device and computer-readable recording medium | |
CN107463481A (en) | Data interactive method, mobile terminal and storage medium | |
CN107731199A (en) | A kind of screen color temp adjusting method, terminal and computer-readable recording medium | |
CN107454342A (en) | A kind of control method, mobile terminal and computer-readable recording medium | |
CN107479781A (en) | A kind of update method and terminal of application icon color | |
CN107613489A (en) | A kind of wireless charging method, hotspot equipment, terminal and storage medium | |
CN107315515A (en) | Color change method, terminal and the computer-readable recording medium of status bar icon | |
CN107291334A (en) | A kind of icon font color determines method and apparatus | |
CN106953684A (en) | A kind of method for searching star, mobile terminal and computer-readable recording medium | |
CN107705247A (en) | A kind of method of adjustment of image saturation, terminal and storage medium | |
CN107295270A (en) | Determination method, device, terminal and the computer-readable recording medium of a kind of image brightness values | |
CN107067842A (en) | Colour method of adjustment, mobile terminal and storage medium | |
CN107240072A (en) | A kind of screen luminance adjustment method, terminal and computer-readable recording medium | |
CN107506163A (en) | Adjust method, terminal and the computer-readable recording medium of screen display | |
CN107608613A (en) | A kind of method and terminal for preventing maloperation | |
CN107734318A (en) | A kind of color conditioning method, terminal and computer-readable recording medium | |
CN107368241A (en) | A kind of information processing method, equipment and computer-readable recording medium | |
CN107833190A (en) | A kind of parameter determination method, terminal and computer-readable recording medium | |
CN108184106A (en) | Image processing method, mobile terminal and computer readable storage medium | |
CN107516289A (en) | A kind of certificate image acquisition methods and equipment | |
CN108053383A (en) | A kind of noise-reduction method, equipment and computer readable storage medium | |
CN107529051A (en) | Method, equipment and the computer for adjusting color temp can storage mediums | |
CN107657638A (en) | A kind of image processing method, device and computer-readable recording medium | |
CN107491709A (en) | A kind of recognition methods of code figure, terminal and computer-readable recording medium | |
CN107423065A (en) | Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180223 |
|
RJ01 | Rejection of invention patent application after publication |