CN107529051A - Method, equipment and the computer for adjusting color temp can storage mediums - Google Patents
Method, equipment and the computer for adjusting color temp can storage mediums Download PDFInfo
- Publication number
- CN107529051A CN107529051A CN201710641424.XA CN201710641424A CN107529051A CN 107529051 A CN107529051 A CN 107529051A CN 201710641424 A CN201710641424 A CN 201710641424A CN 107529051 A CN107529051 A CN 107529051A
- Authority
- CN
- China
- Prior art keywords
- temperature value
- color temperature
- preview image
- color
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a kind of method for adjusting color temp, including:After color temp adjustment modes are opened, the color temperature value of preview image is obtained;If the color temperature value of preview image brings up to the first colour temperature threshold value within the first color temperature value interval range, by the color temperature value of preview image, the preview image after being adjusted;Wherein, the first colour temperature threshold value is the maximum more than or equal to the first color temperature value section;If the color temperature value of preview image is reduced to the second colour temperature threshold value within the second color temperature value interval range, by the color temperature value of preview image, the preview image after being adjusted;Wherein, the second colour temperature threshold value is the minimum value less than or equal to the second color temperature value section, does not exist between the first color temperature value section and the second color temperature value section and occurs simultaneously.Can storage medium the invention also discloses a kind of equipment and computer.By means of the invention it is possible to realize that the colour temperature that shooting image is provided the user according to different scenes adjusts, the effect of shooting image is improved in some scenes.
Description
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of method, equipment and calculating for adjusting color temp
Machine can storage medium.
Background technology
With the rapid development of science and technology, terminal plays very important effect, Ren Menyue in the live and work of people
Carry out more too busy to get away terminal;When people are taken pictures using terminal at present, usually it is directly entered shooting interface and is taken pictures, not
With scene under, for example, in coffee shop or lounge, it is necessary to shooting colour temperature be warm colour, it is strong on big seashore or sunlight
Strong place is, it is necessary to which the colour temperature of shooting is cool colour;But the also no method of existing terminal provides the user according to different scenes
The colour temperature adjustment of shooting image, thus cause the effect that shooting image is reduced in some scenes.
The content of the invention
In view of this, the embodiment of the present invention it is expected that providing a kind of method, equipment and computer for adjusting color temp can deposit
Storage media, to realize that the colour temperature that shooting image is provided the user according to different scenes adjusts, shooting is improved in some scenes
The effect of image.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
The present invention provides a kind of method for adjusting color temp, and methods described includes:
After color temp adjustment modes are opened, the color temperature value of preview image is obtained;
If the color temperature value of the preview image is within the first color temperature value interval range, by the colour temperature of the preview image
Value brings up to the first colour temperature threshold value, the preview image after being adjusted;Wherein, the first colour temperature threshold value is more than or equal to institute
State the maximum in the first color temperature value section;
If the color temperature value of the preview image is within the second color temperature value interval range, by the colour temperature of the preview image
Value is reduced to the second colour temperature threshold value, the preview image after being adjusted;Wherein, the second colour temperature threshold value is less than or equal to institute
The minimum value in the second color temperature value section is stated, does not exist between the first color temperature value section and the second color temperature value section and hands over
Collection.
In such scheme, the color temperature value for obtaining preview image, including:
Obtain the three primary colors rgb value of the color mode of the preview image;
The color temperature value of the preview image is calculated according to the rgb value of the color mode of the preview image.
In such scheme, the color temperature value by the preview image brings up to the first colour temperature threshold value, including:
The rgb value of color mode corresponding to the color temperature value of the preview image is brought up into the first colour temperature threshold value institute
The rgb value of corresponding color mode;
The color temperature value by the preview image is reduced to the second colour temperature threshold value, including:
The rgb value of color mode corresponding to the color temperature value of the preview image is reduced to the second colour temperature threshold value institute
The rgb value of corresponding color mode.
In such scheme, after the color temperature value of the acquisition preview image, methods described also includes:
Judge whether the color temperature value of the preview image drops into the first color temperature value interval range, or judge described pre-
Whether the color temperature value of image look at drops into the second color temperature value interval range;
If the color temperature value of the preview image does not fall within the first color temperature value interval range and second color temperature value
Interval range, then the preview image is not dealt with.
In such scheme, before the unlatching color temp adjustment modes, methods described also includes:
Open exposal model;
It is described after the preview image after being adjusted, methods described also includes:
Preview image after the adjustment is formed by photo according to photographing instruction.
In such scheme, the first color temperature value section is cool colour color temperature value section, and the cool colour color temperature value section is
5000K to 6500K section;The second color temperature value section is warm colour color temperature value section, and the warm colour color temperature value section is
2700K is to the section between 3000K;Wherein, the K is Kelvin.
The present invention also provides a kind of equipment for adjusting color temp, and the equipment includes:Interface, processor, memory and
Communication bus;
The communication bus, for realizing the connection communication between the interface, the processor and the memory;
The processor, for performing the program of the adjustment color temp stored in the memory, to realize following walk
Suddenly:
After color temp adjustment modes are opened, the color temperature value of preview image is obtained;
If the color temperature value of the preview image is within the first color temperature value interval range, by the colour temperature of the preview image
Value brings up to the first colour temperature threshold value, the preview image after being adjusted;Wherein, the first colour temperature threshold value is more than or equal to institute
State the maximum in the first color temperature value section;
If the color temperature value of the preview image is within the second color temperature value interval range, by the colour temperature of the preview image
Value is reduced to the second colour temperature threshold value, the preview image after being adjusted;Wherein, the second colour temperature threshold value is less than or equal to institute
The minimum value in the second color temperature value section is stated, does not exist between the first color temperature value section and the second color temperature value section and hands over
Collection.
In such scheme, the processor, for performing the program of the adjustment color temp, to implement following walk
Suddenly:
The rgb value of color mode corresponding to the color temperature value of the preview image is brought up into the first colour temperature threshold value institute
The rgb value of corresponding color mode;
The processor, for performing the program of the adjustment color temp, to implement following steps:
The rgb value of color mode corresponding to the color temperature value of the preview image is reduced to the second colour temperature threshold value institute
The rgb value of corresponding color mode.
In such scheme, the processor, it is additionally operable to perform the program of the adjustment color temp, is walked so that realization is following
Suddenly:
Judge whether the color temperature value of the preview image drops into the first color temperature value interval range, or judge described pre-
Whether the color temperature value of image look at drops into the second color temperature value interval range;
If the color temperature value of the preview image does not fall within the first color temperature value interval range and second color temperature value
Interval range, then the preview image is not dealt with.
The present invention also provides a kind of computer-readable recording medium, the computer-readable recording medium storage have one or
The multiple programs of person, one or more of programs can be by one or more computing devices, to realize tune as described above
The step of method of whole color temp.
It is provided by the invention adjustment color temp method, equipment and computer can storage medium, by open image
After colour temperature adjustment modes, the color temperature value of preview image is obtained;If the color temperature value of preview image the first color temperature value interval range it
It is interior, then the color temperature value of preview image is brought up into the first colour temperature threshold value, the preview image after being adjusted, wherein, the first colour temperature
Threshold value is the maximum more than or equal to the first color temperature value section;If the color temperature value of preview image is in the second color temperature value interval range
Within, then the color temperature value of preview image is reduced to the second colour temperature threshold value, the preview image after being adjusted, wherein, the second color
Warm threshold value is the minimum value less than or equal to the second color temperature value section, between the first color temperature value section and the second color temperature value section not
In the presence of common factor;By judging the color temperature value of preview image, color temperature value drop into default first color temperature value section or
When in the second color temperature value section, the color temperature value of preview image is adjusted according to colour temperature threshold value corresponding to respective color temperature value section
It is whole, the color temperature value that image is adjusted according to the color temperature value of preview image is realized, shooting image can be improved in some scenes
Effect.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for an optional mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the communications network system structural representation that mobile terminal provided in an embodiment of the present invention can operate;
Fig. 3 is the flow chart of the embodiment of the method one of present invention adjustment color temp;
Fig. 4 is the flow chart of the embodiment of the method two of present invention adjustment color temp;
Fig. 5 is the schematic diagram of the color temperature value of the acquisition preview image of the embodiment of the method two of present invention adjustment color temp;
Fig. 6 is the schematic diagram one for being adjusted rear preview image of the embodiment of the method two of present invention adjustment color temp;
Fig. 7 is the schematic diagram two for being adjusted rear preview image of the embodiment of the method two of present invention adjustment color temp;
Fig. 8 is the structural representation of the device embodiment of present invention adjustment color temp;
Fig. 9 is the structural representation of the apparatus embodiments of present invention adjustment color temp.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes.
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, Fig. 1 is the hardware configuration signal for an optional mobile terminal for realizing each embodiment of the present invention
Figure, the mobile terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output
Unit 103, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface
The parts such as unit 108, memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that show in Fig. 1
The mobile terminal structure gone out does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less portions
Part, either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Show referring to Fig. 2, Fig. 2 is the communications network system structure that mobile terminal provided in an embodiment of the present invention can operate
It is intended to, the communications network system is the LTE system of universal mobile communications technology, and the LTE system includes communicating the UE of connection successively
(User Equipment, user equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access
Network, evolved UMTS Terrestrial radio access network) 202, EPC (Evolved Packet Core, evolved block core
Net) 203 and operator IP operation 204.
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 MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, 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, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiment one
Described in the embodiment of the present invention adjustment color temp terminal can include such as mobile phone, smart phone,
Notebook computer, digit broadcasting receiver, personal digital assistant (PDA), tablet personal computer (PAD), portable media player
(PMP), the terminal of guider etc..
If terminal has operating system, the operating system can be UNIX, Linux, Windows, Mac OS X, Android
(Android), Windows Phone etc..
Application software (Application, APP) is the third party application of intelligent terminal, and user can be by various
The application software of various kinds is handled official business, is entertained, obtains information etc., and its form includes such as ipa, pxl, deb, apk lattice
Formula.
Fig. 3 is the flow chart of the embodiment of the method one of present invention adjustment color temp, as shown in figure 1, the embodiment of the present invention
The method of the adjustment color temp of offer can be applied in the terminal (hereinafter referred to as terminal) of adjustment color temp, this method bag
Include following steps:
Step 301, after color temp adjustment modes are opened, obtain the color temperature value of preview image.
After color temp adjustment modes are opened, terminal obtains the color temperature value of preview image;Wherein, color temp adjustment mould
Formula can be activated or switched on by user in terminal, can also be arranged to give tacit consent to open mode;Preview image can be for user just
Preview image shown on screen or show when using terminal is taken pictures when being directly viewable picture in the terminal
The preview image shown;Terminal can utilize the color temperature value of built-in image processing tool acquisition present preview image in the terminal.
If the color temperature value of step 302, the preview image is within the first color temperature value interval range, by the preview graph
The color temperature value of picture brings up to the first colour temperature threshold value, the preview image after being adjusted.
After terminal gets the color temperature value of present preview image, it can determine whether out the color temperature value of present preview image whether
Within temperature value interval range of the same colour, if the color temperature value of present preview image not within the first color temperature value interval range, to work as
Preceding preview image is not processed, and subsequent treatment is carried out according to normal processing step;If the color temperature value of present preview image is
Within temperature value interval range of the same colour, then the color temperature value of present preview image is brought up into the first colour temperature threshold value, after being adjusted
Preview image simultaneously shows the preview image after adjustment.
Wherein, the first colour temperature threshold value is the maximum more than or equal to the first color temperature value section;Here the first colour temperature
Value section user can be set according to the actual requirements, for example, user wants to carry out small-scale adjustment to the colour temperature of preview image,
So the minimum value in the first color temperature value section and maximum can be set a less difference, meanwhile, the first colour temperature threshold value
It is set equal to the maximum of the first color temperature value;If user wants to adjust the colour temperature of preview image on a large scale, that
The minimum value in the first color temperature value section and maximum can be set a larger difference, meanwhile, the first colour temperature threshold value is set
The maximum more than the first color temperature value is set to, if necessary to further adjustment, the first colour temperature threshold value can be arranged to more
Big value.
If the color temperature value of step 303, the preview image is within the second color temperature value interval range, by the preview graph
The color temperature value of picture is reduced to the second colour temperature threshold value, the preview image after being adjusted.
After terminal gets the color temperature value of present preview image, it can determine whether out the color temperature value of present preview image whether
Within two color temperature value interval ranges, if the color temperature value of present preview image not within the second color temperature value interval range, to work as
Preceding preview image is not processed, and subsequent treatment is carried out according to normal processing step;If the color temperature value of present preview image is
Within two color temperature value interval ranges, then the color temperature value of present preview image is brought up into the second colour temperature threshold value, after being adjusted
Preview image simultaneously shows the preview image after adjustment.
Wherein, the second colour temperature threshold value is the minimum value less than or equal to the second color temperature value section, first in step 302
Do not exist between color temperature value section and the second color temperature value section and occur simultaneously, i.e. any one value in the first color temperature value section and the
Any one value in two color temperature value sections differs.
Here the second color temperature value section user can be set according to the actual requirements, for example, user is wanted to preview image
Colour temperature carry out small-scale adjustment, then the minimum value in the second color temperature value section and maximum can be set one it is less
Difference, meanwhile, the second colour temperature threshold value is set equal to the minimum value of the second color temperature value;If user wants the color to preview image
Temperature is adjusted on a large scale, then the minimum value in the second color temperature value section and maximum can be set into a larger difference
Value, meanwhile, the second colour temperature threshold value is set smaller than the minimum value of the second color temperature value, can be with if necessary to further adjustment
Second colour temperature threshold value is arranged to smaller value.
Adjustment color temp method provided in an embodiment of the present invention, terminal by after color temp adjustment modes are opened,
Obtain the color temperature value of preview image;If the color temperature value of preview image is within the first color temperature value interval range, by preview image
Color temperature value bring up to the first colour temperature threshold value, the preview image after being adjusted, wherein, the first colour temperature threshold value be more than or equal to
The maximum in the first color temperature value section;If the color temperature value of preview image is within the second color temperature value interval range, by preview graph
The color temperature value of picture is reduced to the second colour temperature threshold value, the preview image after being adjusted, wherein, the second colour temperature threshold value is is less than or waited
Minimum value in the second color temperature value section, do not exist between the first color temperature value section and the second color temperature value section and occur simultaneously;By right
The color temperature value of preview image is judged, is dropped into color temperature value in default first color temperature value section or the second color temperature value section
When, the color temperature value of preview image is adjusted according to colour temperature threshold value corresponding to respective color temperature value section, realized according to preview
The color temperature value of the color temperature value adjust automatically image of image, the effect of shooting image can be improved in some scenes.
It is further to illustrate on the basis of above-described embodiment in order to more embody the purpose of the present invention.
Embodiment two
Fig. 4 is the flow chart of the embodiment of the method two of present invention adjustment color temp, as shown in figure 4, the embodiment of the present invention
The method of the adjustment color temp of offer is applied on smart mobile phone, and this method may include steps of:
Step 401, open exposal model.
Smart mobile phone opens exposal model according to the operation of user.
Step 402, judge whether to open color temp adjustment modes.
Smart mobile phone judges whether to open color temp adjustment modes, however, it is determined that goes out color temp adjustment modes to close shape
State, then perform step 403;If it is determined that color temp adjustment modes are opening, then step 404 is performed.
Step 403, terminate processing task.
Smart mobile phone is determined after not opening color temp adjustment modes, is handled according to normal flow of taking pictures.
Step 404, the color temperature value for obtaining preview image.
Smart mobile phone is determined after opening color temp adjustment modes, and preview graph is got by the photo-sensitive cell in camera
The three primary colors rgb value of the color mode of picture, afterwards, smart mobile phone is calculated the rgb value of the color mode of preview image, is obtained
To the color temperature value of preview image.
For example, Fig. 5 is showing for the color temperature value of the acquisition preview image of the embodiment of the method two of present invention adjustment color temp
Be intended to, as shown in figure 5, smart mobile phone get the color mode of preview image rgb value be respectively red 80, green 62,
The color mode of the composition of blueness 56, smart mobile phone is 2800K by the color temperature value obtained after calculating, and wherein K is Kelvin.
Step 405, judge whether the color temperature value of preview image drops into the first color temperature value interval range, or judge preview graph
Whether the color temperature value of picture drops into the second color temperature value interval range.
Smart mobile phone judges whether the color temperature value of the preview image drops into after the color temperature value of preview image is got
Temperature value interval range of the same colour, or judge whether the color temperature value of preview image drops into the second color temperature value interval range, wherein, first
Do not exist between color temperature value section and the second color temperature value section and occur simultaneously, be i.e. any one value and second in the first color temperature value section
Any one value in color temperature value section is unequal.
If the color temperature value that smart mobile phone judges to obtain preview image is not fallen within to the first color temperature value interval range and second
During color temperature value interval range, then step 406 is performed;If smart mobile phone judges to obtain the color temperature value of preview image in the first color temperature value
When within interval range, then step 407a is performed;If smart mobile phone judges to obtain the color temperature value of preview image in the second color temperature value
When within interval range, then step 407b is performed.
Specifically, in embodiments of the present invention, the first color temperature value section is cool colour color temperature value section, cool colour color temperature value area
Between be 5000K to 6500K section;Second color temperature value section is warm colour color temperature value section, warm colour color temperature value section be 2700K extremely
Section between 3000K.
Need exist for explanation, in embodiments of the present invention, above-mentioned cool colour color temperature value section and warm colour color temperature value area
Between be for example, specific numerical value can be configured according to the actual requirements, be not any limitation as herein.
Step 406, preview image is not dealt with.
Smart mobile phone is not processed to preview image, and follow-up work is performed according to existing processing mode.
Step 407a, the color temperature value of preview image is brought up into the first colour temperature threshold value, the preview image after being adjusted.
Smart mobile phone is by built-in image processing tool by the RGB of the color mode corresponding to the color temperature value of preview image
Value brings up to the rgb value of the color mode corresponding to the first colour temperature threshold value, i.e., the color temperature value of preview image is brought up into the first color
Warm threshold value, the preview image after being adjusted;Wherein, the first colour temperature threshold value is more than or equal to the first color temperature value section most
Big value.
For example, the first color temperature value section is cool colour color temperature value section, cool colour color temperature value section is 5000K to 6500K area
Between, the first colour temperature threshold value is 7000K;Fig. 6 is adjusted rear preview for the embodiment of the method two of present invention adjustment color temp
The schematic diagram one of image, as shown in fig. 6, the color temperature value for the preview image that smart mobile phone is got is 5500K, smart mobile phone determines
The color temperature value 5500K of present preview image has dropped into cool colour color temperature value section 5000K to 6500K, and therefore, smart mobile phone passes through
The rgb value of color mode corresponding to the color temperature value 5500K of preview image is brought up to the first color by built-in image processing tool
The rgb value of color mode corresponding to warm threshold value 7000K, i.e., the red proportion in rgb value is reduced, blue proportion increase, most
Color temperature value after being adjusted eventually is 7000K preview image and shows the image after adjustment.
, can be by the first color if user is not satisfied enough for the degree for adjusting cool colour colour temperature it is desirable to explanation
Warm threshold value is heightened in real time, further increases cool colour colour temperature;Here the first colour temperature threshold value is only with for example, its is specific
Numerical value can be configured according to user's request, be not any limitation as herein.
Step 407b, the color temperature value of preview image is reduced to the second colour temperature threshold value, the preview image after being adjusted.
Smart mobile phone is by built-in image processing tool by the RGB of the color mode corresponding to the color temperature value of preview image
Value is reduced to the rgb value of the color mode corresponding to the second colour temperature threshold value, i.e., the color temperature value of preview image is reduced into the second color
Warm threshold value, the preview image after being adjusted;Wherein, the second colour temperature threshold value is less than or equal to the second color temperature value section most
Small value.
For example, the second color temperature value section is warm colour color temperature value section, warm colour color temperature value section is 2700K between 3000K
Section, the second colour temperature threshold value is 2500K;After Fig. 7 is being adjusted of embodiment of the method two of present invention adjustment color temp
The schematic diagram two of preview image, as shown in fig. 7, the color temperature value for the preview image that smart mobile phone is got is 2800K, smart mobile phone
Determine that the color temperature value 2800K of present preview image has dropped into warm colour color temperature value section 2700K to 3000K, therefore, smart mobile phone
The rgb value of the color mode corresponding to the color temperature value 2800K of preview image is reduced to by built-in image processing tool
The rgb value of color mode corresponding to two colour temperature threshold value 2500K, i.e., by the red proportion increase in rgb value, blue proportion drop
It is low, the color temperature value after adjustment is finally given as 2500K preview image and shows the image after adjustment.
, can be by the second color if user is not satisfied enough for the degree for adjusting warm colour colour temperature it is desirable to explanation
Warm threshold value is turned down in real time, further increases warm colour colour temperature;Here the second colour temperature threshold value is only with for example, its is specific
Numerical value can be configured according to user's request, be not any limitation as herein.
Step 408, according to photographing instruction by after adjustment preview image formed photo.
The photographing instruction that smart mobile phone inputs according to user, the preview image after adjustment is formed into photo and is stored in intelligent hand
In machine;According to the example described in above-mentioned steps 407a and step 407b, finally, smart mobile phone pressed according to user take pictures by
After key, the preview image that the color temperature value after being adjusted in step 407a is 7000K is formed into photo and is stored in smart mobile phone;Or
The preview image that color temperature value after adjusting in step 407b is 2500K is formed into photo to be stored in smart mobile phone.
The method of adjustment color temp provided in an embodiment of the present invention, after exposal model is opened, judgement is smart mobile phone
No unlatching color temp adjustment modes;After confirming to open color temp adjustment modes, the color temperature value of preview image is obtained;Judge
Whether the color temperature value of preview image drops into the first color temperature value interval range, or judges whether the color temperature value of preview image drops into
Second color temperature value interval range;If judge that the color temperature value for obtaining preview image is dropped within the first color temperature value interval range,
The color temperature value of preview image is brought up into the first colour temperature threshold value, the preview image after being adjusted, if judging to obtain preview image
Color temperature value within the second color temperature value interval range when, the color temperature value of preview image is reduced to the second colour temperature threshold value, obtained
Preview image after adjustment;Preview image after adjustment is formed by photo according to photographing instruction;Preview graph during by taking pictures
The color temperature value of picture is judged, when color temperature value is dropped into default first color temperature value section or the second color temperature value section, root
The color temperature value of preview image is adjusted according to colour temperature threshold value corresponding to respective color temperature value section, realized according to preview image
The color temperature value of color temperature value adjust automatically image, the effect of shooting image can be improved in some scenes.
Embodiment three
Fig. 8 is the structural representation of the device embodiment of present invention adjustment color temp, as shown in figure 8, the present invention is implemented
The device 08 for the adjustment color temp that example provides includes:
Acquisition module 81, for after color temp adjustment modes are opened, obtaining the color temperature value of preview image;
First processing module 82, if the color temperature value for the preview image within the first color temperature value interval range,
The color temperature value of the preview image is brought up into the first colour temperature threshold value, the preview image after being adjusted;Wherein, first color
Warm threshold value is the maximum more than or equal to the first color temperature value section;
Second processing module 83, if the color temperature value for the preview image within the second color temperature value interval range,
The color temperature value of the preview image is reduced to the second colour temperature threshold value, the preview image after being adjusted;Wherein, second color
Warm threshold value is the minimum value less than or equal to the second color temperature value section, the first color temperature value section and second colour temperature
It is worth not exist between section and occurs simultaneously.
Further, the acquisition module 81, the three primary colors RGB of the color mode specifically for obtaining the preview image
Value;
The acquisition module 81, institute is calculated also particularly useful for the rgb value of the color mode according to the preview image
State the color temperature value of preview image.
Further, the first processing module 82, specifically for the color corresponding to by the color temperature value of the preview image
The rgb value of color pattern brings up to the rgb value of the color mode corresponding to the first colour temperature threshold value;
The Second processing module 83, specifically for by the color mode corresponding to the color temperature value of the preview image
Rgb value is reduced to the rgb value of the color mode corresponding to the second colour temperature threshold value.
Further, described device also includes:
Whether judge module 84, the color temperature value for judging the preview image drop into the first color temperature value section model
Enclose, or judge whether the color temperature value of the preview image drops into the second color temperature value interval range;
3rd processing module 85, if the color temperature value for the preview image does not fall within the first color temperature value section model
Enclose with the second color temperature value interval range, then the preview image is not dealt with.
Further, described device also includes:
Photo module 86, for opening exposal model;
Described device also includes:
Module 87 is formed, for the preview image after the adjustment to be formed into photo according to photographing instruction.
Further, the first color temperature value section is cool colour color temperature value section, and the cool colour color temperature value section is 5000K
To 6500K section;The second color temperature value section is warm colour color temperature value section, the warm colour color temperature value section be 2700K extremely
Section between 3000K;Wherein, the K is Kelvin.
The device of the present embodiment, can be used for performing it is above-mentioned shown in embodiment of the method technical scheme, its realization principle and
Technique effect is similar, and here is omitted.
In actual applications, the acquisition module 81, first processing module 82, Second processing module 83, judge module 84,
3rd processing module 85, photo module 86, formation module 87 can be by the centres in the device 08 of adjustment color temp
Manage device (Central Processing Unit, CPU), microprocessor (Micro Processor Unit, MPU), data signal
Processor (Digital Signal Processor, DSP) or field programmable gate array (Field Programmable
Gate Array, FPGA) etc. realize.
Example IV
Fig. 9 is the structural representation of the apparatus embodiments of present invention adjustment color temp, as shown in figure 9, the present invention is implemented
The equipment 09 for the adjustment color temp that example provides includes:Interface 91, processor 92, memory 93 and communication bus 94;
Wherein, the communication bus 94, for realizing between the interface 91, the processor 92 and the memory 93
Connection communication;
The processor 92, for perform stored in the memory 93 adjustment color temp program, with realize with
Lower step:
After color temp adjustment modes are opened, the color temperature value of preview image is obtained;
If the color temperature value of the preview image is within the first color temperature value interval range, by the colour temperature of the preview image
Value brings up to the first colour temperature threshold value, the preview image after being adjusted;Wherein, the first colour temperature threshold value is more than or equal to institute
State the maximum in the first color temperature value section;
If the color temperature value of the preview image is within the second color temperature value interval range, by the colour temperature of the preview image
Value is reduced to the second colour temperature threshold value, the preview image after being adjusted;Wherein, the second colour temperature threshold value is less than or equal to institute
The minimum value in the second color temperature value section is stated, does not exist between the first color temperature value section and the second color temperature value section and hands over
Collection.
Further, the processor 92, for performing the program of the adjustment color temp, to implement following walk
Suddenly:
Obtain the three primary colors rgb value of the color mode of the preview image;
The color temperature value of the preview image is calculated according to the rgb value of the color mode of the preview image.
Further, the processor 92, for performing the program of the adjustment color temp, to implement following walk
Suddenly:
The rgb value of color mode corresponding to the color temperature value of the preview image is brought up into the first colour temperature threshold value institute
The rgb value of corresponding color mode;
The processor 92, for performing the program of the adjustment color temp, to implement following steps:
The rgb value of color mode corresponding to the color temperature value of the preview image is reduced to the second colour temperature threshold value institute
The rgb value of corresponding color mode.
Further, the processor 92, it is additionally operable to perform the program of the adjustment color temp, to realize following walk
Suddenly:
Judge whether the color temperature value of the preview image drops into the first color temperature value interval range, or judge described pre-
Whether the color temperature value of image look at drops into the second color temperature value interval range;
If the color temperature value of the preview image does not fall within the first color temperature value interval range and second color temperature value
Interval range, then the preview image is not dealt with.
Further, the processor 92, it is additionally operable to perform the program of the adjustment color temp, to realize following walk
Suddenly:
Open exposal model;
The processor 92, it is additionally operable to perform the program of the adjustment color temp, to realize following steps:
Preview image after the adjustment is formed by photo according to photographing instruction.
Further, the first color temperature value section is cool colour color temperature value section, and the cool colour color temperature value section is 5000K
To 6500K section;The second color temperature value section is warm colour color temperature value section, the warm colour color temperature value section be 2700K extremely
Section between 3000K;Wherein, the K is Kelvin.
As shown in figure 9, the equipment 09 of adjustment color temp can be mobile phone, computer, digital broadcast terminal, information
Transceiver, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.;It is understood that communication bus
94 in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition, but illustrates in order to clear
See, various buses are all designated as communication bus 94 in fig.9.
Wherein, interface 91 can include display, keyboard, mouse, trace ball, click wheel, button, button, touch-sensitive plate or
Person's touch-screen etc..
It is appreciated that memory 93 can be volatile memory or nonvolatile memory, may also comprise volatibility and
Both nonvolatile memories;Wherein, nonvolatile memory can be read-only storage (ROM, Read Only Memory),
Programmable read only memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM
(EPROM, Erasable Programmable Read-Only Memory), Electrically Erasable Read Only Memory
(EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access store
Device (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface are deposited
Reservoir, CD or read-only optical disc (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be
Magnetic disk storage or magnetic tape storage;Volatile memory can be random access memory (RAM, Random Access
Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as
Static RAM (SRAM, Static Random Access Memory), synchronous static RAM
(SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM,
Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous
Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM,
Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random
Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links
Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus
Random access memory (DRRAM, Direct Rambus Random Access Memory);Description of the embodiment of the present invention is deposited
Reservoir 93 is intended to the memory of including but not limited to these and any other suitable type.
Memory 93 in the embodiment of the present invention is used to store various types of data to support to adjust setting for color temp
Standby 09 operation;The example of these data includes:For any computer journey operated in the equipment 09 of adjustment color temp
Sequence, such as operating system and application program, contact data, telephone book data, message, picture, video;Wherein, operating system
Comprising various system programs, such as ccf layer, core library layer, driving layer etc., for realizing various basic businesses and processing base
In the task of hardware;Application program can include various application programs, such as media player (Media Player), browser
(Browser) etc., for realizing various applied business;Realize that the program of present invention method may be embodied in application program
In.
The method that the embodiments of the present invention disclose can apply in processor 92, or be realized by processor 92;Place
It is probably a kind of IC chip to manage device 92, has the disposal ability of signal;In implementation process, each step of the above method
It can be completed by the integrated logic circuit of the hardware in processor 92 or the instruction of software form;Above-mentioned processor 92 can
To be general processor, digital signal processor (DSP, Digital Signal Processor), or other programmable are patrolled
Collect device, discrete gate or transistor logic, discrete hardware components etc.;The present invention can be realized or performed to processor 92
Disclosed each method, step and logic diagram in embodiment;General processor can be microprocessor or any conventional
Processor etc.;The step of method with reference to disclosed in the embodiment of the present invention, hardware decoding processor execution can be embodied directly in
Complete, or completion is performed with the hardware in decoding processor and software module combination;Software module can be located at storage medium
In, the storage medium is located at memory 93, and processor 92 reads the information in memory 93, and preceding method is completed with reference to its hardware
The step of.
In the exemplary embodiment, the equipment 09 for adjusting color temp can be by one or more application specific integrated circuits
(ASIC, Application Specific Integrated Circuit), DSP, PLD (PLD,
Programmable Logic Device), CPLD (CPLD, Complex Programmable Logic
Device), field programmable gate array (FPGA, Field-Programmable Gate Array), general processor, control
Device, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor) or other electronics member
Part is realized, for performing preceding method.
The equipment of the present embodiment, can be used for performing it is above-mentioned shown in embodiment of the method technical scheme, its realization principle and
Technique effect is similar, and here is omitted.
Embodiment five
The present invention also provides a kind of computer-readable recording medium, computer-readable recording medium can be FRAM, ROM,
The memory such as PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, CD or CD-ROM;It can also be bag
The various equipment of one of above-mentioned memory or any combination are included, such as mobile phone, computer, tablet device, personal digital assistant
Deng;The computer-readable recording medium storage has one or more program, and one or more of programs can be by one
Or multiple computing devices, to realize following steps:
After color temp adjustment modes are opened, the color temperature value of preview image is obtained;
If the color temperature value of the preview image is within the first color temperature value interval range, by the colour temperature of the preview image
Value brings up to the first colour temperature threshold value, the preview image after being adjusted;Wherein, the first colour temperature threshold value is more than or equal to institute
State the maximum in the first color temperature value section;
If the color temperature value of the preview image is within the second color temperature value interval range, by the colour temperature of the preview image
Value is reduced to the second colour temperature threshold value, the preview image after being adjusted;Wherein, the second colour temperature threshold value is less than or equal to institute
The minimum value in the second color temperature value section is stated, does not exist between the first color temperature value section and the second color temperature value section and hands over
Collection.
Further, one or more of programs can be by one or more of computing devices, with specific real
Existing following steps:
Obtain the three primary colors rgb value of the color mode of the preview image;
The color temperature value of the preview image is calculated according to the rgb value of the color mode of the preview image.
Further, one or more of programs can be by one or more of computing devices, with specific real
Existing following steps:
The rgb value of color mode corresponding to the color temperature value of the preview image is brought up into the first colour temperature threshold value institute
The rgb value of corresponding color mode;
The color temperature value by the preview image is reduced to the second colour temperature threshold value, including:
The rgb value of color mode corresponding to the color temperature value of the preview image is reduced to the second colour temperature threshold value institute
The rgb value of corresponding color mode.
Further, one or more of programs can also be by one or more of computing devices, to realize
Following steps:
Judge whether the color temperature value of the preview image drops into the first color temperature value interval range, or judge described pre-
Whether the color temperature value of image look at drops into the second color temperature value interval range;
If the color temperature value of the preview image does not fall within the first color temperature value interval range and second color temperature value
Interval range, then the preview image is not dealt with.
Further, one or more of programs can also be by one or more of computing devices, to realize
Following steps:
Open exposal model;
One or more of programs can also be by one or more of computing devices, to realize following steps:
Preview image after the adjustment is formed by photo according to photographing instruction.
Further, the first color temperature value section is cool colour color temperature value section, and the cool colour color temperature value section is 5000K
To 6500K section;The second color temperature value section is warm colour color temperature value section, the warm colour color temperature value section be 2700K extremely
Section between 3000K;Wherein, the K is Kelvin.
The computer-readable recording medium of the present embodiment, it can be used for the technical side for performing above-mentioned shown embodiment of the method
Case, its implementing principle and technical effect is similar, and here is omitted.
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)
- A kind of 1. method for adjusting color temp, it is characterised in that methods described includes:After color temp adjustment modes are opened, the color temperature value of preview image is obtained;If the color temperature value of the preview image carries the color temperature value of the preview image within the first color temperature value interval range Height is to the first colour temperature threshold value, the preview image after being adjusted;Wherein, the first colour temperature threshold value is more than or equal to described the The maximum in temperature value section of the same colour;If within the second color temperature value interval range, the color temperature value of the preview image is dropped for the color temperature value of the preview image It is low to the second colour temperature threshold value, the preview image after being adjusted;Wherein, the second colour temperature threshold value is less than or equal to described the The minimum value in two color temperature value sections, do not exist between the first color temperature value section and the second color temperature value section and occur simultaneously.
- 2. according to the method for claim 1, it is characterised in that the color temperature value for obtaining preview image, including:Obtain the three primary colors rgb value of the color mode of the preview image;The color temperature value of the preview image is calculated according to the rgb value of the color mode of the preview image.
- 3. according to the method for claim 1, it is characterised in that the color temperature value by the preview image brings up to first Colour temperature threshold value, including:The rgb value of color mode corresponding to the color temperature value of the preview image is brought up to corresponding to the first colour temperature threshold value Color mode rgb value;The color temperature value by the preview image is reduced to the second colour temperature threshold value, including:The rgb value of color mode corresponding to the color temperature value of the preview image is reduced to corresponding to the second colour temperature threshold value Color mode rgb value.
- 4. according to the method for claim 1, it is characterised in that described after the color temperature value of the acquisition preview image Method also includes:Judge whether the color temperature value of the preview image drops into the first color temperature value interval range, or judge the preview graph Whether the color temperature value of picture drops into the second color temperature value interval range;If the color temperature value of the preview image does not fall within the first color temperature value interval range and the second color temperature value section Scope, then the preview image is not dealt with.
- 5. according to the method for claim 1, it is characterised in that described before the unlatching color temp adjustment modes Method also includes:Open exposal model;It is described after the preview image after being adjusted, methods described also includes:Preview image after the adjustment is formed by photo according to photographing instruction.
- 6. according to the method described in any one of claim 1 to 5, it is characterised in that the first color temperature value section is cool colour color Temperature value section, the cool colour color temperature value section are 5000K to 6500K section;The second color temperature value section is warm colour colour temperature It is worth section, the warm colour color temperature value section is 2700K to the section between 3000K;Wherein, the K is Kelvin.
- 7. a kind of equipment for adjusting color temp, it is characterised in that the equipment includes:Interface, processor, memory and communication Bus;The communication bus, for realizing the connection communication between the interface, the processor and the memory;The processor, for performing the program of the adjustment color temp stored in the memory, to realize following steps:After color temp adjustment modes are opened, the color temperature value of preview image is obtained;If the color temperature value of the preview image carries the color temperature value of the preview image within the first color temperature value interval range Height is to the first colour temperature threshold value, the preview image after being adjusted;Wherein, the first colour temperature threshold value is more than or equal to described the The maximum in temperature value section of the same colour;If within the second color temperature value interval range, the color temperature value of the preview image is dropped for the color temperature value of the preview image It is low to the second colour temperature threshold value, the preview image after being adjusted;Wherein, the second colour temperature threshold value is less than or equal to described the The minimum value in two color temperature value sections, do not exist between the first color temperature value section and the second color temperature value section and occur simultaneously.
- 8. equipment according to claim 7, it is characterised in that the processor, for performing the adjustment color temp Program, to implement following steps:The rgb value of color mode corresponding to the color temperature value of the preview image is brought up to corresponding to the first colour temperature threshold value Color mode rgb value;The processor, for performing the program of the adjustment color temp, to implement following steps:The rgb value of color mode corresponding to the color temperature value of the preview image is reduced to corresponding to the second colour temperature threshold value Color mode rgb value.
- 9. equipment according to claim 6, it is characterised in that the processor, be additionally operable to perform the adjustment pattern colour The program of temperature, to realize following steps:Judge whether the color temperature value of the preview image drops into the first color temperature value interval range, or judge the preview graph Whether the color temperature value of picture drops into the second color temperature value interval range;If the color temperature value of the preview image does not fall within the first color temperature value interval range and the second color temperature value section Scope, then the preview image is not dealt with.
- 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, to realize such as claim 1 to 6 The step of method of any one adjustment color temp.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710641424.XA CN107529051A (en) | 2017-07-31 | 2017-07-31 | Method, equipment and the computer for adjusting color temp can storage mediums |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710641424.XA CN107529051A (en) | 2017-07-31 | 2017-07-31 | Method, equipment and the computer for adjusting color temp can storage mediums |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107529051A true CN107529051A (en) | 2017-12-29 |
Family
ID=60680385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710641424.XA Pending CN107529051A (en) | 2017-07-31 | 2017-07-31 | Method, equipment and the computer for adjusting color temp can storage mediums |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107529051A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111050162A (en) * | 2019-12-27 | 2020-04-21 | 深圳Tcl新技术有限公司 | Color temperature test method, device, equipment and computer readable storage medium |
CN113225546A (en) * | 2021-04-25 | 2021-08-06 | Oppo广东移动通信有限公司 | Color temperature adjusting method and device, electronic equipment and computer readable storage medium |
CN116743976A (en) * | 2023-06-07 | 2023-09-12 | 识光科技(广州)有限责任公司 | Live broadcasting room color temperature adjustment method, live broadcasting system and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083774A (en) * | 2006-05-31 | 2007-12-05 | 深圳Tcl工业研究院有限公司 | Color temperature dynamic regulation method |
CN102271259A (en) * | 2011-08-09 | 2011-12-07 | 深圳市万兴软件有限公司 | Color temperature adjusting method and device |
CN102572206A (en) * | 2010-12-31 | 2012-07-11 | 比亚迪股份有限公司 | Color correction method |
US20140085503A1 (en) * | 2012-09-24 | 2014-03-27 | Htc Corporation | Mobile Communication Apparatus and Flashlight Controlling Method |
JP2015099980A (en) * | 2013-11-18 | 2015-05-28 | キヤノン株式会社 | Image processing system, image processing method, and program |
-
2017
- 2017-07-31 CN CN201710641424.XA patent/CN107529051A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083774A (en) * | 2006-05-31 | 2007-12-05 | 深圳Tcl工业研究院有限公司 | Color temperature dynamic regulation method |
CN102572206A (en) * | 2010-12-31 | 2012-07-11 | 比亚迪股份有限公司 | Color correction method |
CN102271259A (en) * | 2011-08-09 | 2011-12-07 | 深圳市万兴软件有限公司 | Color temperature adjusting method and device |
US20140085503A1 (en) * | 2012-09-24 | 2014-03-27 | Htc Corporation | Mobile Communication Apparatus and Flashlight Controlling Method |
JP2015099980A (en) * | 2013-11-18 | 2015-05-28 | キヤノン株式会社 | Image processing system, image processing method, and program |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111050162A (en) * | 2019-12-27 | 2020-04-21 | 深圳Tcl新技术有限公司 | Color temperature test method, device, equipment and computer readable storage medium |
CN111050162B (en) * | 2019-12-27 | 2022-07-29 | 深圳Tcl新技术有限公司 | Color temperature test method, device, equipment and computer readable storage medium |
CN113225546A (en) * | 2021-04-25 | 2021-08-06 | Oppo广东移动通信有限公司 | Color temperature adjusting method and device, electronic equipment and computer readable storage medium |
CN116743976A (en) * | 2023-06-07 | 2023-09-12 | 识光科技(广州)有限责任公司 | Live broadcasting room color temperature adjustment method, live broadcasting system and storage medium |
CN116743976B (en) * | 2023-06-07 | 2024-03-19 | 识光科技(广州)有限责任公司 | Live broadcasting room color temperature adjustment method, live broadcasting system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107770448A (en) | A kind of image-pickup method, mobile terminal and computer-readable storage medium | |
CN107317896A (en) | A kind of Double-camera device and mobile terminal | |
CN107343064A (en) | A kind of mobile terminal of two-freedom rotating camera | |
CN107729133A (en) | A kind of method, terminal and computer-readable recording medium for running application program | |
CN107731199A (en) | A kind of screen color temp adjusting method, terminal and computer-readable recording medium | |
CN107690065A (en) | A kind of white balance correcting, device and computer-readable recording medium | |
CN107613489A (en) | A kind of wireless charging method, hotspot equipment, terminal and storage medium | |
CN107465869A (en) | A kind of focus adjustment method and terminal | |
CN107493426A (en) | A kind of information collecting method, equipment and computer-readable recording medium | |
CN107807857A (en) | Method, equipment and the computer for clearing up running memory can storage mediums | |
CN107704176A (en) | A kind of picture-adjusting method and terminal | |
CN107404618A (en) | A kind of image pickup method and terminal | |
CN107705247A (en) | A kind of method of adjustment of image saturation, terminal and storage medium | |
CN107239205A (en) | A kind of photographic method, mobile terminal and storage medium | |
CN108540639A (en) | Display processing method, equipment and the computer of Mosaic screen can storage mediums | |
CN107483804A (en) | A kind of image pickup method, mobile terminal and computer-readable recording medium | |
CN107979667A (en) | Double-screen display method, mobile terminal and computer-readable recording medium | |
CN107563158A (en) | Show hiden application figure calibration method, equipment and computer-readable recording medium | |
CN107360311A (en) | A kind of interface control method, mobile terminal and computer-readable recording medium | |
CN107635232A (en) | A kind of network share method, terminal and computer-readable recording medium | |
CN107529051A (en) | Method, equipment and the computer for adjusting color temp can storage mediums | |
CN108184106A (en) | Image processing method, mobile terminal and computer readable storage medium | |
CN107613206A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN107563316A (en) | A kind of image pickup method, terminal and computer-readable recording medium | |
CN107241504A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171229 |
|
RJ01 | Rejection of invention patent application after publication |