CN104360829B - The method and apparatus for adjusting screen color temp - Google Patents

The method and apparatus for adjusting screen color temp Download PDF

Info

Publication number
CN104360829B
CN104360829B CN201410623783.9A CN201410623783A CN104360829B CN 104360829 B CN104360829 B CN 104360829B CN 201410623783 A CN201410623783 A CN 201410623783A CN 104360829 B CN104360829 B CN 104360829B
Authority
CN
China
Prior art keywords
user interface
green ratio
value
bluish
tone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410623783.9A
Other languages
Chinese (zh)
Other versions
CN104360829A (en
Inventor
里强
苗雷
陈曼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201410623783.9A priority Critical patent/CN104360829B/en
Publication of CN104360829A publication Critical patent/CN104360829A/en
Priority to PCT/CN2015/089630 priority patent/WO2016070681A1/en
Priority to PCT/CN2015/092875 priority patent/WO2016070730A1/en
Application granted granted Critical
Publication of CN104360829B publication Critical patent/CN104360829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of method and apparatus for adjusting screen color temp, the method for the regulation screen color temp includes step:Detect the rgb value of the pixel in the user interface of terminal;The hue information of the user interface is obtained according to the rgb value;According to default tone and the corresponding relation of colour temperature, the color temperature value corresponding with the hue information of the user interface is obtained;The colour temperature of screen is adjusted according to the color temperature value for obtaining.So that terminal can be with the colour temperature of the dynamic regulation screen of the change of user interface, so that the colour temperature of screen matches with user interface.Such as when the tone of user interface is colder, then color is allowed to warm up partially the colour temperature reduction of screen accordingly;When the tone of user interface is relatively warmed up, then the colour temperature of screen is raised accordingly, make color more colder, by mutually comprehensive, mutual offset so that the final display effect more natural reality of user interface, it is to avoid picture color distortion, the display effect of terminal is improve, Consumer's Experience is improved.

Description

The method and apparatus for adjusting screen color temp
Technical field
The present invention relates to communication technical field, more particularly, to a kind of method and apparatus for adjusting screen color temp.
Background technology
The colour temperature of screen is to weigh one of mostly important standard of the quality that shows of screen color, and user is mutually homochromy to screen Color impression allows generally for user and the colour temperature of screen is adjusted manually with the different and different of screen color temp, therefore terminal device Section, but with the intelligent development of terminal, screen color temp is adjusted manually obviously can not meet the demand of user.
Meanwhile, the different user interface of terminal, the tone shown by its picture is different, and some tones are colder, have Tone is warmed up partially, when the colour temperature of screen is mismatched with the tone of user interface, can cause the cross-color of picture, influence terminal Display effect.
The content of the invention
It is a primary object of the present invention to provide a kind of method and apparatus for adjusting screen color temp, it is intended to according to user interface The colour temperature of dynamic regulation screen, improves display effect, lifts Consumer's Experience.
To achieve these objectives, the present invention proposes a kind of method for adjusting screen color temp, including step:
Detect the rgb value of the pixel in the user interface of terminal;
The hue information of the user interface is obtained according to the rgb value;
According to default tone and the corresponding relation of colour temperature, the color corresponding with the hue information of the user interface is obtained Temperature value;
The colour temperature of screen is adjusted according to the color temperature value for obtaining.
Preferably, the hue information for obtaining the user interface according to the rgb value includes:
Rgb value to all pixels in the user interface carries out statistical computation, obtains RGB in the user interface Three statistical values of reference colours;
Statistical value according to three reference colours of the RGB calculates red green ratio in the user interface or/and bluish-green Ratio;
The hue information of the user interface is obtained according to the red green ratio or/and bluish-green ratio.
Preferably, the hue information for obtaining the user interface according to the rgb value includes:
Rgb value according to each pixel calculates red green ratio or/and bluish-green ratio in each pixel;
Red green ratio or/and bluish-green ratio to all pixels in the user interface carry out statistical computation, obtain described The statistical value of red green ratio or/and bluish-green ratio;
Statistical value according to the red green ratio or/and bluish-green ratio obtains the hue information of the user interface.
Preferably, the hue information is the changes in temperature grade or tone value of tone.
Preferably, the tone shown by the hue information of the user interface is colder, then corresponding color temperature value is smaller.
The present invention proposes a kind of device for adjusting screen color temp, including analytical calculation module and adjustment module simultaneously, wherein:
Analytical calculation module, for the rgb value of the pixel in the user interface for detecting terminal, obtains according to the rgb value The hue information of the user interface;
Adjustment module, for the corresponding relation according to default tone and colour temperature, obtains the tone with the user interface The corresponding color temperature value of information, the colour temperature of screen is adjusted according to the color temperature value for obtaining.
Preferably, the analytical calculation module is used for:
Rgb value to all pixels in the user interface carries out statistical computation, obtains RGB in the user interface Three statistical values of reference colours;
Statistical value according to three reference colours of the RGB calculates red green ratio in the user interface or/and bluish-green Ratio;
The hue information of the user interface is obtained according to the red green ratio or/and bluish-green ratio.
Preferably, the analytical calculation module is used for:
Rgb value according to each pixel calculates red green ratio or/and bluish-green ratio in each pixel;
Red green ratio or/and bluish-green ratio to all pixels in the user interface carry out statistical computation, obtain red green The statistical value of ratio or/and bluish-green ratio;
Statistical value according to the red green ratio or/and bluish-green ratio obtains the hue information of the user interface.
Preferably, the hue information is the changes in temperature grade or tone value of tone.
Preferably, the tone shown by the hue information of the user interface is colder, then corresponding color temperature value is smaller.
A kind of method for adjusting screen color temp provided by the present invention, by the pixel in the user interface for detecting terminal Rgb value, the rgb value according to pixel obtains the hue information of user interface, according to default tone and the corresponding relation of colour temperature, obtains The color temperature value corresponding with the hue information of user interface is taken, the colour temperature of screen is adjusted finally according to the color temperature value for obtaining so that Terminal can be with the colour temperature of the dynamic regulation screen of the change of user interface, so that the colour temperature of screen and user interface phase Match somebody with somebody.Such as when the tone of user interface is colder, then color is allowed to warm up partially the colour temperature reduction of screen accordingly;As user circle When the tone in face is relatively warmed up, then the colour temperature of screen is raised accordingly, make color more colder.So as to by mutually comprehensive, mutual Offset so that the final display effect more natural reality of user interface, it is to avoid picture color distortion, improves the display of terminal Effect, improves Consumer's Experience.
Brief description of the drawings
Fig. 1 is the flow chart of the method first embodiment of present invention regulation screen color temp;
Fig. 2 is the flow chart of the method second embodiment of present invention regulation screen color temp;
Fig. 3 is the module diagram of the embodiment of device one of present invention regulation screen color temp.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific 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.
The method of present invention regulation screen color temp, by the rgb value of the pixel in the user interface for detecting terminal, according to picture The rgb value of element obtains the hue information of user interface, according to default tone and the corresponding relation of colour temperature, obtains and user interface The corresponding color temperature value of hue information, the colour temperature of screen is adjusted finally according to the color temperature value for obtaining so that terminal can be with The colour temperature of the dynamic regulation screen of change of user interface, so that the colour temperature of screen matches with user interface, so that user circle The picture that face shows more natural reality, enhances the display effect of terminal, improves Consumer's Experience.
It is described in detail below by way of specific embodiment.
Referring to Fig. 1, the method first embodiment of present invention regulation screen color temp is proposed, the described method comprises the following steps:
Step S10:Detect the rgb value of the pixel in the user interface of terminal
Terminal can be in real time or every the RGB of the pixel in the current user interface of Preset Time terminal of detection Value, it is preferable that when terminal detects current user interface to be changed, then carry out one-time detection.
Terminal can detect only to rgb value that pre-conditioned pixel is met in user interface, such as a certain preset areas Domain or the pixel of user designated area.The rgb value of all pixels is detected in the present embodiment preferred pair user interface.
The rgb value, refers to red (Red), green (Green), blue (Blue) three reference colours included in a pixel Numerical value, the different colors of different rgb values correspondences.For example, the color of a certain pixel is yellow, then its corresponding rgb value is (R255, G255, B0), i.e. red value are 255, and green value is 255, and blue valve is 0.
Step S11:Rgb value to all pixels in user interface carries out statistical computation, obtains RGB in user interface Three statistical values of reference colours
The statistical computation can be read group total or mean value calculation, and corresponding statistical value is then summing value or average Value.For example, it is assumed that user interface includes N number of pixel, the corresponding rgb value of each pixel is (R1, G1, B1), (R2, G2, B2) ... (Rn, Gn, Bn), three reference colours of RGB to all pixels in user interface carry out summation operation, obtain red statistical value Be Rs=(R1+R2+ ...+Rn), green statistics value be Gs=(G1+G2+ ...+Gn), blue statistical value be Bs=(B1+B2+ ...+ Bn)。
In certain embodiments, statistical computation only is carried out to the rgb value that pre-conditioned pixel is met in user interface.Example Such as, after the pixel such as black, white, pure green, pure red or/and pure blue in removal user interface, remaining pixel is then Meet pre-conditioned pixel.
Step S12:Statistical value according to three reference colours of RGB calculates red green ratio in user interface or/and bluish-green Ratio
Red green ratio in user interface is Rs/Gs, and bluish-green ratio is Bs/Gs, red green ratio and indigo plant in user interface Green ratio determines the changes in temperature degree of user interface tone.Wherein, red green ratio correspondence warm tones, red green ratio is bigger, then represent Tone is warmer;Bluish-green ratio correspondence cool tone, bluish-green ratio is bigger, then represent tone colder.
Step S13:The hue information of user interface is obtained according to red green ratio or/and bluish-green ratio
Hue information can be represented with the changes in temperature grade of tone, as being defined as 1 grade successively (from low to high) from cold to warm ~n grades, the red green ratio and bluish-green ratio of different range are referred to different grades, with red green ratio gradually increase, Bluish-green ratio is gradually reduced, and tone changes in temperature grade is raised step by step, so as to red green ratio and bluish-green ratio in user interface Value obtains corresponding changes in temperature grade.In some embodiments it is possible to only by one of them in bluish-green ratio and red green ratio Value defines the changes in temperature grade of tone, and the changes in temperature grade of tone is such as only defined by bluish-green ratio, and bluish-green ratio is bigger, then right The changes in temperature lower grade answered, so as to the bluish-green ratio in user interface obtains corresponding changes in temperature grade;Or only by red Green ratio defines the changes in temperature grade of tone, and red green ratio is bigger, then corresponding changes in temperature grade higher, so as to according to user interface In red green ratio obtain corresponding changes in temperature grade.
Hue information can also represent with tone value, such as by ratio (the red green ratio/indigo plant of red green ratio and bluish-green ratio Green ratio) or difference (red green ratio-bluish-green ratio) used as tone value, tone value is bigger, corresponding tone is warmer, and tone value is got over Small, corresponding tone is colder.
Step S14:According to default tone and the corresponding relation of colour temperature, obtain corresponding with the hue information of user interface Color temperature value
The corresponding relation of tone and colour temperature, can be the one-to-one relationship of the changes in temperature grade with color temperature value of tone, also may be used Being the one-to-one relationship of tone value and color temperature value.Tone shown by the hue information of user interface is colder, then corresponding Color temperature value is smaller.I.e. with the rising of tone changes in temperature grade, corresponding color temperature value also increases, with the drop of tone changes in temperature grade Low, corresponding color temperature value also reduces;With the increase of tone value, corresponding color temperature value also increases, right with the reduction of tone value The color temperature value answered also reduces.
Step S15:The colour temperature of screen is adjusted according to the color temperature value for obtaining
In the present embodiment, when the tone of user interface is colder, then color is allowed to warm up partially the colour temperature reduction of screen accordingly Some;When the tone of user interface is relatively warmed up, then the colour temperature of screen is raised accordingly, make color more colder.So as to pass through Mutually comprehensively, mutual offset so that the final display effect more natural reality of user interface, it is to avoid color of image distortion, carries The display effect of terminal high.
Referring to Fig. 2, the method second embodiment of present invention regulation screen color temp is proposed, the described method comprises the following steps:
Step S20:Detect the rgb value of the pixel in the user interface of terminal
Terminal can be in real time or every the RGB of the pixel in the current user interface of Preset Time terminal of detection Value, it is preferable that when terminal detects current user interface to be changed, then carry out one-time detection.
Terminal can be detected only to rgb value that pre-conditioned pixel is met in user interface, such as some region of Pixel.The rgb value of all pixels is detected in the present embodiment preferred pair user interface.
The rgb value, refers to red (Red), green (Green), blue (Blue) three reference colours included in a pixel Numerical value, the different colors of different rgb values correspondences.For example, the color of a certain pixel is sky blue, then its corresponding rgb value It is (R135, G206, B235) that is, red value is 135, and green value is 206, and blue valve is 235.
Step S21:Rgb value according to each pixel calculates red green ratio or/and bluish-green ratio in each pixel
Red green ratio in pixel is R/G, and bluish-green ratio is B/G, and the red green ratio and bluish-green ratio in pixel determine picture The changes in temperature degree that plain color is adjusted.Wherein, red green ratio correspondence warm tones, red green ratio is bigger, then represent tone warmer;Bluish-green ratio Correspondence cool tone, bluish-green ratio is bigger, then represent tone colder.
Step S22:Red green ratio or/and bluish-green ratio to all pixels in user interface carry out statistical computation, obtain The statistical value of red green ratio or/and bluish-green ratio
The statistical computation can be read group total or mean value calculation, and corresponding statistical value is then summing value or average Value.For example, it is assumed that user interface includes N number of pixel, the corresponding rgb value of each pixel is (R1, G1, B1), (R2, G2, B2) ... (Rn,Gn,Bn);Then the corresponding red green ratio of each pixel is R1/G1, R2/G2 ... Rn/Gn, to all pixels in user interface Red green ratio carries out summation operation, and the statistical value for obtaining red green ratio is [R/G]=(R1/G1+R2/G2+ ...+Rn/Gn);Each picture The corresponding bluish-green ratio of element is B1/G1, B2/G2 ... Bn/Gn, and the bluish-green ratio to all pixels in user interface carries out summation fortune Calculate, the statistical value for obtaining bluish-green ratio is [B/G]=(B1/G1+B2/G2+ ...+Bn/Gn).
In certain embodiments, only red green ratio or/and bluish-green is carried out to meeting pre-conditioned pixel in user interface The calculating and statistical computation of ratio.For example, black, white, pure green, pure red or/and ethereal blue in removal user interface After the pixels such as color, remaining pixel is then to meet pre-conditioned pixel.
Step S23:Statistical value according to red green ratio or/and bluish-green ratio obtains the hue information of user interface
Hue information can be represented with the changes in temperature grade of tone, as being defined as 1 grade successively (from low to high) from cold to warm ~n grades, the statistical value of the red green ratio of different range and bluish-green ratio is referred to different grades, with the system of red green ratio Gradually increase, the statistical value of bluish-green ratio of evaluation are gradually reduced, and tone changes in temperature grade raises step by step, so as to according to user circle The statistical value of the red green ratio in face and the statistical value of bluish-green ratio obtain corresponding changes in temperature grade.In some embodiments it is possible to The changes in temperature grade of tone is only defined by the one of value in the statistical value of bluish-green ratio and the statistical value of red green ratio, such as The changes in temperature grade of tone is only defined by the statistical value of bluish-green ratio, the statistical value of bluish-green ratio is bigger, then corresponding changes in temperature Lower grade, so as to the statistical value of the bluish-green ratio in user interface obtains corresponding changes in temperature grade;Or only by red The statistical value of green ratio defines the changes in temperature grade of tone, and the statistical value of red green ratio is bigger, then corresponding changes in temperature grade higher, So as to the statistical value of the red green ratio in user interface obtains corresponding changes in temperature grade.
Hue information can also be represented with tone value, such as by the statistical value of red green ratio and the statistical value of bluish-green ratio Ratio (statistical value of the statistical value of red green ratio/bluish-green ratio) or the difference (statistics of the statistical value of red green ratio-bluish-green ratio Value) used as tone value, tone value is bigger, and corresponding tone is warmer, and tone value is smaller, and corresponding tone is colder.
Step S24:According to default tone and the corresponding relation of colour temperature, obtain corresponding with the hue information of user interface Color temperature value
The corresponding relation of tone and colour temperature, can be the one-to-one relationship of the changes in temperature grade with color temperature value of tone, also may be used Being the one-to-one relationship of tone value and color temperature value.Tone shown by the hue information of user interface is colder, then corresponding Color temperature value is smaller.I.e. with the rising of tone changes in temperature grade, corresponding color temperature value also increases, with the drop of tone changes in temperature grade Low, corresponding color temperature value then reduces;With the increase of tone value, corresponding color temperature value also increases, right with the reduction of tone value The color temperature value answered then reduces.
Step S25:The colour temperature of screen is adjusted according to the color temperature value for obtaining
In the present embodiment, when the tone of user interface is colder, then color is allowed to warm up partially the colour temperature reduction of screen accordingly Some;When the tone of user interface is relatively warmed up, then the colour temperature of screen is raised accordingly, make color more colder.So as to pass through Mutually comprehensively, mutual offset so that the final display effect more natural reality of user interface, it is to avoid picture color distortion, carries The display effect of terminal high, improves Consumer's Experience.
So as to the method for present invention regulation screen color temp, terminal can dynamically adjust screen with the change of user interface The colour temperature of curtain, so that the colour temperature of screen matches with user interface, such as when the tone of user interface is colder, then accordingly will screen The colour temperature reduction of curtain, allows color to warm up partially;When the tone of user interface is relatively warmed up, then the colour temperature of screen is raised accordingly, Make color more colder.So as to by mutually comprehensive, mutual offset so that the final display effect of user interface is more natural Truly, it is to avoid picture color distortion, the display effect of terminal is improve, improves Consumer's Experience.
Referring to Fig. 3, the embodiment of device one of present invention regulation screen color temp is proposed, described device includes analytical calculation module And adjustment module, wherein:
Analytical calculation module:For the rgb value for the pixel in the user interface for detecting terminal, obtained according to rgb value The hue information of user interface.
Analytical calculation module can be in real time or every the picture in the current user interface of Preset Time terminal of detection The rgb value of element, it is preferable that when analytical calculation module detects current user interface to be changed, then carry out one-time detection.Analysis Computing module can detect only to rgb value that pre-conditioned pixel is met in user interface, such as a certain predeterminable area or The pixel of user designated area.The rgb value of all pixels is detected in the present embodiment preferred pair user interface.
In certain embodiments, analytical calculation module carries out statistical computation to the rgb value of all pixels in user interface, obtains Three statistical values of reference colours of RGB in user interface are obtained, the statistical value according to three reference colours of RGB calculates user interface In red green ratio or/and bluish-green ratio, the hue information of user interface is obtained according to red green ratio or/and bluish-green ratio.
Specifically, the statistical computation can be read group total or mean value calculation, corresponding statistical value is then summation Value or average value.For example, it is assumed that user interface includes N number of pixel, the corresponding rgb value of each pixel is (R1, G1, B1), (R2, G2, B2) ... (Rn, Gn, Bn), analytical calculation module is sued for peace to three reference colours of RGB of all pixels in user interface Computing, it is Rs=(R1+R2+ ...+Rn) to obtain red statistical value, and green statistics value is Gs=(G1+G2+ ...+Gn), blueness statistics Be worth is Bs=(B1+B2+ ...+Bn).
Alternatively, the rgb value that analytical calculation module can also be only to meeting pre-conditioned pixel in user interface is carried out Statistical computation.For example, after removing the pixels such as black, white, pure green, the pure red or/and pure blue in user interface, being left Pixel then to meet pre-conditioned pixel.
Red green ratio in user interface is Rs/Gs, and bluish-green ratio is Bs/Gs, red green ratio and indigo plant in user interface Green ratio determines the changes in temperature degree of user interface tone.Wherein, red green ratio correspondence warm tones, red green ratio is bigger, then represent Tone is warmer;Bluish-green ratio correspondence cool tone, bluish-green ratio is bigger, then represent tone colder.
Hue information can be represented with the changes in temperature grade of tone, as being defined as 1 grade successively (from low to high) from cold to warm ~n grades, the red green ratio and bluish-green ratio of different range are referred to different grades, with red green ratio gradually increase, Bluish-green ratio is gradually reduced, and tone changes in temperature grade is raised step by step, so that red green ratio of the analytical calculation module according to user interface Value and bluish-green ratio obtain corresponding changes in temperature grade.In some embodiments it is possible to only by bluish-green ratio and red green ratio One of value define the changes in temperature grade of tone, the changes in temperature grade of tone, bluish-green ratio are such as only defined by bluish-green ratio Value is bigger, then corresponding changes in temperature lower grade, so that bluish-green ratio of the analytical calculation module in user interface is corresponded to Changes in temperature grade;Or the changes in temperature grade of tone is only defined by red green ratio, red green ratio is bigger, then corresponding changes in temperature etc. Level is higher, so that red green ratio of the analytical calculation module in user interface obtains corresponding changes in temperature grade.
Hue information can also represent with tone value, and such as analytical calculation module is by the ratio of red green ratio and bluish-green ratio , used as tone value, tone value is bigger for (red green ratio/bluish-green ratio) or difference (red green ratio-bluish-green ratio), corresponding tone Warmer, tone value is smaller, and corresponding tone is colder.
In further embodiments, analytical calculation module is red green in the rgb value of each pixel each pixel of calculating Ratio or/and bluish-green ratio, red green ratio or/and bluish-green ratio to all pixels in user interface carry out statistical computation, obtain The statistical value of red green ratio or/and bluish-green ratio is obtained, the statistical value according to red green ratio or/and bluish-green ratio obtains user interface Hue information.
Specifically, the red green ratio in pixel is R/G, bluish-green ratio is B/G, red green ratio and bluish-green ratio in pixel Determine the changes in temperature degree of pixel tone.Wherein, red green ratio correspondence warm tones, red green ratio is bigger, then represent tone warmer;It is blue Green ratio correspondence cool tone, bluish-green ratio is bigger, then represent tone colder.
The statistical computation can be read group total or mean value calculation, and corresponding statistical value is then summing value or average Value.For example, it is assumed that user interface includes N number of pixel, the corresponding rgb value of each pixel is (R1, G1, B1), (R2, G2, B2) ... (Rn,Gn,Bn);Then the corresponding red green ratio of each pixel is R1/G1, R2/G2 ... Rn/Gn, and analytical calculation module is to user interface The red green ratio of middle all pixels carries out summation operation, and the statistical value for obtaining red green ratio is [R/G]=(R1/G1+R2/G2+ ... +Rn/Gn);The corresponding bluish-green ratio of each pixel is B1/G1, B2/G2 ... Bn/Gn, and analytical calculation module in user interface to owning The bluish-green ratio of pixel carries out summation operation, and the statistical value for obtaining bluish-green ratio is [B/G]=(B1/G1+B2/G2+ ...+Bn/ Gn)。
Alternatively, analytical calculation module only can carry out red green ratio to meeting pre-conditioned pixel in user interface Or/and the calculating and statistical computation of bluish-green ratio.For example, black, white in removal user interface, pure green, pure red Or/and after the pixel such as pure blue, remaining pixel is then to meet pre-conditioned pixel.
Hue information can be represented with the changes in temperature grade of tone, as being defined as 1 grade successively (from low to high) from cold to warm ~n grades, the statistical value of the red green ratio of different range and bluish-green ratio is referred to different grades, with the system of red green ratio Gradually increase, the statistical value of bluish-green ratio of evaluation are gradually reduced, and tone changes in temperature grade is raised step by step, so that analytical calculation mould Root tuber obtains corresponding changes in temperature grade according to the statistical value of the red green ratio of user interface and the statistical value of bluish-green ratio.In some realities Apply in example, tone only can be defined by the one of value in the statistical value of bluish-green ratio and the statistical value of red green ratio Changes in temperature grade, such as only defines the changes in temperature grade of tone by the statistical value of bluish-green ratio, and the statistical value of bluish-green ratio is bigger, then Corresponding changes in temperature lower grade, so that the statistical value of bluish-green ratio of the analytical calculation module in user interface obtains corresponding Changes in temperature grade;Or the changes in temperature grade of tone is only defined by the statistical value of red green ratio, the statistical value of red green ratio is bigger, Then corresponding changes in temperature grade higher, so that the statistical value of red green ratio of the analytical calculation module in user interface is corresponded to Changes in temperature grade.
Hue information can also represent with tone value, and such as analytical calculation module is by the statistical value of red green ratio and bluish-green ratio The ratio (statistical value of the statistical value of red green ratio/bluish-green ratio) or the difference (statistical value-indigo plant of red green ratio of the statistical value of value The statistical value of green ratio) used as tone value, tone value is bigger, and corresponding tone is warmer, and tone value is smaller, and corresponding tone is got over It is cold.
Adjustment module:For the corresponding relation according to default tone and colour temperature, the hue information with user interface is obtained Corresponding color temperature value, the colour temperature of screen is adjusted according to the color temperature value for obtaining.
The corresponding relation of tone and colour temperature, can be the one-to-one relationship of the changes in temperature grade with color temperature value of tone, also may be used Being the one-to-one relationship of tone value and color temperature value.Tone shown by the hue information of user interface is colder, then corresponding Color temperature value is smaller.I.e. with the rising of tone changes in temperature grade, corresponding color temperature value also increases, with the drop of tone changes in temperature grade Low, corresponding color temperature value also reduces;With the increase of tone value, corresponding color temperature value also increases, right with the reduction of tone value The color temperature value answered also reduces.
So as to when the tone of user interface is colder, adjustment module then accordingly by the colour temperature reduction of screen, makes color inclined It is warm;When the tone of user interface is relatively warmed up, adjustment module then accordingly raises the colour temperature of screen, allows color colder A bit.So as to by mutually comprehensive, mutual offset so that the final display effect more natural reality of user interface, it is to avoid image Cross-color, improves the display effect of terminal.
The device of present invention regulation screen color temp, can dynamically adjust the colour temperature of screen with the change of user interface, So that the colour temperature of screen matches with user interface, such as when the tone of user interface is colder, then accordingly by the colour temperature of screen Reduce, allow color to warm up partially;When the tone of user interface is relatively warmed up, then the colour temperature of screen is raised accordingly, make color inclined It is colder.So as to by mutually comprehensive, mutual offset so that the final display effect more natural reality of user interface, it is to avoid Picture color distortion, improves display effect, improves Consumer's Experience.
User interface of the present invention, can refer to all pictures shown on screen.
It should be noted that:Above-described embodiment provide regulation screen color temp device adjust screen color temp when, only with The division of above-mentioned each functional module is carried out for example, in practical application, as needed can distribute by not above-mentioned functions Same functional module is completed.In addition, the method for the device with screen color temp is adjusted of the regulation screen color temp that above-described embodiment is provided Embodiment belongs to same design, and it implements technical characteristic that process referred in embodiment of the method, and embodiment of the method in dress Put to correspond in embodiment and be applicable, repeat no more here.
One of ordinary skill in the art will appreciate that, realize that all or part of step in above-described embodiment method can lead to The hardware that program is crossed to control correlation is completed, and described program can be stored in a computer read/write memory medium, described Storage medium can be ROM/RAM, disk, CD etc..
It should be appreciated that these are only the preferred embodiments of the present invention, it is impossible to therefore the scope of the claims of the invention is limited, Equivalent structure or equivalent flow conversion that every utilization description of the invention and accompanying drawing content are made, or be directly or indirectly used in Other related technical fields, are included within the scope of the present invention.

Claims (8)

1. it is a kind of adjust screen color temp method, it is characterised in that including step:
When detecting the current user interface of terminal and changing, the rgb value of the pixel in the user interface is detected;
Red green ratio or/and bluish-green ratio in the user interface is calculated according to the rgb value, and according to the user interface In red green ratio or/and bluish-green ratio obtain the hue information of the user interface;
According to default tone and the corresponding relation of colour temperature, the colour temperature corresponding with the hue information of the user interface is obtained Value, wherein, the tone shown by the hue information of the user interface is colder, then corresponding color temperature value is smaller;
The colour temperature of screen is adjusted according to the color temperature value for obtaining.
2. it is according to claim 1 regulation screen color temp method, it is characterised in that it is described according to the rgb value obtain The hue information of the user interface includes:
Rgb value to all pixels in the user interface carries out statistical computation, obtains RGB three in the user interface The statistical value of reference colours;
Statistical value according to three reference colours of the RGB calculates red green ratio or/and bluish-green ratio in the user interface Value;
The hue information of the user interface is obtained according to the red green ratio or/and bluish-green ratio.
3. it is according to claim 1 regulation screen color temp method, it is characterised in that it is described according to the rgb value obtain The hue information of the user interface includes:
Rgb value according to each pixel calculates red green ratio or/and bluish-green ratio in each pixel;
Red green ratio or/and bluish-green ratio to all pixels in the user interface carry out statistical computation, obtain described red green The statistical value of ratio or/and bluish-green ratio;
Statistical value according to the red green ratio or/and bluish-green ratio obtains the hue information of the user interface.
4. the method for the regulation screen color temp according to claim any one of 1-3, it is characterised in that the hue information is The changes in temperature grade or tone value of tone.
5. it is a kind of adjust screen color temp device, it is characterised in that including analytical calculation module and adjustment module, wherein:
Analytical calculation module, for when detecting the current user interface of terminal and changing, detecting the picture in the user interface The rgb value of element, the red green ratio or/and bluish-green ratio in the user interface are calculated according to the rgb value, and according to the use Red green ratio or/and bluish-green ratio in the interface of family obtain the hue information of the user interface, wherein, the user interface Tone shown by hue information is colder, then corresponding color temperature value is smaller;
Adjustment module, for the corresponding relation according to default tone and colour temperature, obtains the hue information with the user interface Corresponding color temperature value, the colour temperature of screen is adjusted according to the color temperature value for obtaining.
6. it is according to claim 5 regulation screen color temp device, it is characterised in that the analytical calculation module is used for:
Rgb value to all pixels in the user interface carries out statistical computation, obtains RGB three in the user interface The statistical value of reference colours;
Statistical value according to three reference colours of the RGB calculates red green ratio or/and bluish-green ratio in the user interface Value;
The hue information of the user interface is obtained according to the red green ratio or/and bluish-green ratio.
7. it is according to claim 5 regulation screen color temp device, it is characterised in that the analytical calculation module is used for:
Rgb value according to each pixel calculates red green ratio or/and bluish-green ratio in each pixel;
Red green ratio or/and bluish-green ratio to all pixels in the user interface carry out statistical computation, obtain red green ratio Or/and the statistical value of bluish-green ratio;
Statistical value according to the red green ratio or/and bluish-green ratio obtains the hue information of the user interface.
8. the device of the regulation screen color temp according to claim any one of 5-7, it is characterised in that the hue information is The changes in temperature grade or tone value of tone.
CN201410623783.9A 2014-11-07 2014-11-07 The method and apparatus for adjusting screen color temp Active CN104360829B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201410623783.9A CN104360829B (en) 2014-11-07 2014-11-07 The method and apparatus for adjusting screen color temp
PCT/CN2015/089630 WO2016070681A1 (en) 2014-11-07 2015-09-15 Method and device for adjusting color temperature of screen, and computer storage medium
PCT/CN2015/092875 WO2016070730A1 (en) 2014-11-07 2015-10-26 Method and device for adjusting screen color temperature, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410623783.9A CN104360829B (en) 2014-11-07 2014-11-07 The method and apparatus for adjusting screen color temp

Publications (2)

Publication Number Publication Date
CN104360829A CN104360829A (en) 2015-02-18
CN104360829B true CN104360829B (en) 2017-06-30

Family

ID=52528093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410623783.9A Active CN104360829B (en) 2014-11-07 2014-11-07 The method and apparatus for adjusting screen color temp

Country Status (2)

Country Link
CN (1) CN104360829B (en)
WO (2) WO2016070681A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360829B (en) * 2014-11-07 2017-06-30 努比亚技术有限公司 The method and apparatus for adjusting screen color temp
CN106331344B (en) * 2016-08-23 2019-10-29 维沃移动通信有限公司 A kind of adjusting method and mobile terminal of screen color temp
CN108182658B (en) * 2018-01-30 2021-10-22 北京小米移动软件有限公司 Image beautifying method and device
CN108391112A (en) * 2018-04-02 2018-08-10 深圳Tcl新技术有限公司 A kind of method, system and storage medium promoting display image quality
CN110415226A (en) * 2019-07-23 2019-11-05 Oppo广东移动通信有限公司 Measuring method, device, electronic equipment and the storage medium of stray light
CN110808002A (en) * 2019-11-28 2020-02-18 北京迈格威科技有限公司 Screen display compensation method and device and electronic equipment
CN111147838B (en) * 2020-01-03 2022-08-09 惠州Tcl移动通信有限公司 Image processing method and device and mobile terminal

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3733873B2 (en) * 2001-06-07 2006-01-11 ノーリツ鋼機株式会社 Photo image processing apparatus, method, and photo processing apparatus
CN100533543C (en) * 2003-12-12 2009-08-26 松下电器产业株式会社 Color image display apparatus, color converter, color-simulating apparatus, and method for the same
KR100651946B1 (en) * 2004-09-22 2006-12-06 엘지전자 주식회사 Apparatus and method for adjusting color temperature of PDP
CN100586197C (en) * 2006-05-31 2010-01-27 深圳Tcl工业研究院有限公司 Color temperature dynamic regulation method
JP2008070621A (en) * 2006-09-14 2008-03-27 Canon Inc Image display device and electronic equipment using the same
US8265389B2 (en) * 2008-07-02 2012-09-11 Qualcomm Icorporated Color enhancement for digital images
CN102419947B (en) * 2011-11-21 2013-12-18 四川长虹电器股份有限公司 Color temperature debugging method of liquid crystal display screen
CN102810306B (en) * 2012-07-26 2015-01-07 广东欧珀移动通信有限公司 Method for automatically controlling brightness of display screen wallpaper
CN103391363B (en) * 2013-07-11 2015-10-28 广东欧珀移动通信有限公司 One is taken pictures preview display method, device and mobile terminal
CN104360829B (en) * 2014-11-07 2017-06-30 努比亚技术有限公司 The method and apparatus for adjusting screen color temp

Also Published As

Publication number Publication date
WO2016070681A1 (en) 2016-05-12
WO2016070730A1 (en) 2016-05-12
CN104360829A (en) 2015-02-18

Similar Documents

Publication Publication Date Title
CN104360829B (en) The method and apparatus for adjusting screen color temp
CN101272506B (en) Imaging device
CN107154059A (en) A kind of high dynamic range video processing method
CN102223547B (en) Image color enhancement device and method
CN104935900B (en) Image sensing device, color correction matrix correction method and lookup table establishment method
CN108933933B (en) A kind of video signal processing method and device
WO2013131311A1 (en) Method and system for carrying out vision perception high-fidelity transformation on color digital image
JP2008522530A (en) Electronic color image saturation processing method
CN105898252A (en) Television color adjustment method and device
US8064693B2 (en) Methods of and apparatus for adjusting colour saturation in an input image
CN113132696A (en) Image tone mapping method, device, electronic equipment and storage medium
CN105654925B (en) High dynamic range images processing method and system
CN107027017A (en) A kind of method of adjustment, device, picture processing chip and the storage device of image white balance
CN103679658B (en) A kind of image processing method according to the decolouring of dominant hue intelligence
CN101616332A (en) A kind of color domain expanding system and method
CN101304467B (en) Color processing apparatus and method
WO2023241339A1 (en) Color cast correction method and apparatus, device, storage medium and program product
Lee et al. Contrast-preserved chroma enhancement technique using YCbCr color space
CN108391112A (en) A kind of method, system and storage medium promoting display image quality
EP2802139B1 (en) Image color adjusting method and electronic device using the same
CN113596422B (en) Method for adjusting CCM (color correction matrix) and monitoring equipment
CN105184746B (en) Color image enhancement processing method based on histogram equalization
CN103379253A (en) Color processing apparatus and method
CN105867863B (en) A kind of big colour gamut shows the image reproduction increased quality method of equipment
CN104505053A (en) Display signal conversion method and display signal conversion device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: A District No. 9018 Han innovation building in Nanshan District high tech Zone in Shenzhen city of Guangdong Province, North Central Avenue, 518000 floor 10

Applicant after: Nubian Technologies Ltd.

Address before: A District No. 9018 Han innovation building in Nanshan District high tech Zone in Shenzhen city of Guangdong Province, North Central Avenue, 518000 floor 10

Applicant before: Shenzhen ZTE Mobile Tech Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant