CN101119499A - Method for performing self-adaption paint to text focus on set up box - Google Patents

Method for performing self-adaption paint to text focus on set up box Download PDF

Info

Publication number
CN101119499A
CN101119499A CNA2007101457692A CN200710145769A CN101119499A CN 101119499 A CN101119499 A CN 101119499A CN A2007101457692 A CNA2007101457692 A CN A2007101457692A CN 200710145769 A CN200710145769 A CN 200710145769A CN 101119499 A CN101119499 A CN 101119499A
Authority
CN
China
Prior art keywords
foreground
color
complementary colours
brightness
background colour
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007101457692A
Other languages
Chinese (zh)
Other versions
CN100551079C (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007101457692A priority Critical patent/CN100551079C/en
Publication of CN101119499A publication Critical patent/CN101119499A/en
Application granted granted Critical
Publication of CN100551079C publication Critical patent/CN100551079C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a method used for self-adapting coloring on the text focus of a set-top box; while the method comprises the following steps: acquiring the foreground color and the background color, and determining the complemental color of the foreground color and the background color, and mapping the complemental color of the foreground color and the complemental color of the background color in the RGB color space into the YUV color space and acquiring the brightness value of the colors, adjusting the brightness of the complemental color of the foreground color and/or otherwise the complemental color of the background color making the difference of the brightness larger than the preset threshold value and setting the two colors whose brightness difference larger then the preset threshold value as the foreground color and background value of the focus of the text. The present invention can make the colored foreground text has high contrast against the background color thus makes the checked content can be distinguished clearly and solves the problems that the colored up foreground text does not contrast obviously against the background color when prior set-top box colors the focus of the text.

Description

A kind of method of on set-top box, text focus being carried out self-adaption paint
Technical field
The present invention relates to the digitized image Display Technique, relate in particular to a kind of method of on set-top box, text focus being carried out self-adaption paint.
Background technology
In today of IP broadband network fast development, multimedia technology, computer technology combine with household appliances day by day, and the set-top box product is popularized rapidly, and people can be by the multiple information on the set-top box view Internet.By set-top box browsing page information the time, how eye-catching the text focus of choosing in the display web page be a difficult problem always, the browser text focus is painted to be comprised to the color setting of text with to the setting of background Fill Color, by HTML (Hypertext Markup Language, HTML) the direct specify text color of the page or CSS (CSS Cascading Style Sheets), but adopt by expanding self-defined object setting or finishing by default setting usually for being provided with at present of background fill color.Illustrated respectively below:
By expanding the mode that self-defined object is provided with the background fill color is by self-defined JavaScript (Java descriptive language) EXPANDING DISPLAY AREA (as " ztebw " object) default background Fill Color (defaultBgColor) to be set, as ztebw.defaultBgColor=" #FCFF05 "; Adopting default mode that the background fill color is set is that browser inside can be provided with a kind of color automatically as default background Fill Color when the page does not clearly indicate default background Fill Color.
Many times need browser to adjust literal and background tone automatically in the prior art, and note the collocation of textcolor and background color, show flicker or the unconspicuous problem of display effect in order to avoid cause according to actual conditions.Set-top box is carried out when painted the text focus of choosing in the webpage in the prior art, usually adopt current text of choosing and background area thereof are got its complementary colours simultaneously (if two kinds of coloured light phase mixing energies form white light, these two kinds of coloured light complementary colours each other then) shows, but textcolor after many times getting complementary colours merely and background color contrast and not obvious, the interface can't be seen clearly at all sometimes.
Summary of the invention
The invention provides a kind of method of on set-top box, text focus being carried out self-adaption paint, in order to solve in the prior art set-top box text focus of choosing in the webpage is carried out when painted, the mode that employing is got its complementary colours simultaneously to the text chosen and background area thereof, the unconspicuous problem of its contrast effect.
A kind of method of text focus being carried out self-adaption paint on set-top box comprises step:
A, the foreground of obtaining text focus and background colour;
B, determine the complementary colours of described foreground and described background colour;
C, respectively the complementary colours of described foreground and the complementary colours of described background colour are mapped to the YUV color space from the RGB color space, and obtain its brightness value;
The brightness of the complementary colours of D, the complementary colours of adjusting described foreground and/or described background colour makes its luminance difference greater than predetermined threshold value, with this luminance difference greater than two kinds of colors of predetermined threshold value respectively as the foreground and the background colour of file (basis) focus.
Among the described step B, the foreground and the white of described text focus are carried out the complementary colours that XOR obtains foreground, the background colour and the white of described text focus are carried out the complementary colours that XOR obtains background colour.
Among the described step C, the complementary colours of described foreground and the complementary colours of described background colour are mapped to the YUV color space from the RGB color space according to following formula:
Y=0.299R+0.587G+0.114B
U=-0.147*R-0.289*G+0.436*B
V=0.615*R-0.515*G-0.100*B
Wherein, Y represents the brightness of YUV color space, and U, V are two chrominance components of YUV color model, the expression aberration; R represents the redness of RGB color space; G represents the green of RGB color space; B represents the blueness of RGB color space.
Described predetermined threshold value is not less than 125.
Among the described step D, only adjust the brightness of the complementary colours of described foreground, the luminance difference of complementary colours that makes itself and described background colour is greater than predetermined threshold value.
Among the described step D, only adjust the brightness of the complementary colours of described background colour, the luminance difference of complementary colours that makes itself and described foreground is greater than predetermined threshold value.
Among the described step D, adjust the brightness of the complementary colours of the brightness of complementary colours of described foreground and described background colour respectively, make its luminance difference greater than predetermined threshold value.
The principle that the present invention is the most responsive to the brightness in the color according to human eye, with color when the RGB color space is mapped to the YUV color space, obtain the brightness value of the complementary colours of the complementary colours of foreground and background colour, the brightness of the complementary colours by adjusting described foreground and/or the complementary colours of described background colour, make its luminance difference greater than predetermined threshold value, with this luminance difference greater than two kinds of colors of predetermined threshold value respectively as the foreground and the background colour of file (basis) focus, with this text focus of choosing is carried out self-adaption paint, thereby make prospect text and background colour after painted have higher contrast ratio, make the user can differentiate content selected clearly, solved in the prior art set-top box text focus of choosing in the page has been carried out when painted, the prospect text after painted and the unconspicuous problem of contrast effect of background colour thereof.
Description of drawings
Fig. 1 carries out the flow chart of the method for self-adaption paint to text focus on set-top box for the present invention.
Embodiment
The used color principle of the present invention is as follows:
The principle of three primary colours, any one coloured light F can add with R, G, B three form and aspect of different components and mixes.
F=r[R]+g[G]+b[B]
Wherein, r, g, b are respectively the coefficient that three primary colors participate in mixing.When all being 0 (the most weak), the three primary colors component is mixed into black light; And when all being k (the strongest), the three primary colors component is mixed into white light.Adjust the value of r, g, three coefficients of b, can blend the various coloured light between black light and white light.
In modern vitascan, usually adopt tricolo(u)r camera or colourful CCD video camera to make a video recording, to take the photograph then color picture signal through color separation, obtain the RGB image behind the amplification correction respectively, obtain brightness signal Y and two color difference signal R-Y (being U), B-Y (being V) through matrixer again, last transmitting terminal is encoded brightness and three signals of aberration respectively, sends with same channel.The method for expressing of this color is exactly that the YUV color space is represented.
The importance that adopts the YUV color space is that its brightness signal Y is separated with carrier chrominance signal U, V.Do not have U, V component if having only the Y-signal component, the image of expression is exactly the black and white gray level image so like this.Color TV adopts yuv space just in order to solve the compatibling problem of color television set and black and white television set with brightness signal Y, makes black and white television set also can receive colour TV signal.
The formula that YUV image and RGB image are changed mutually following (R, G, B span are 0-255):
Y=0.299*R+0.587*G+0.114*B
U=-0.147*R-0.289*G+0.436*B
V=0.615*R-0.515*G-0.100*B
Wherein, Y represents the brightness of YUV color model, and U, V are two chrominance components of YUV color model, the expression aberration; R represents the redness of rgb color space; G represents the green of rgb color space; B represents the blueness of rgb color space.
With regard to the satisfaction that people watch coloured image, high brightness is more even more important than high saturation, will directly cause poor contrast because brightness is low, and brightness will reduce the bright-coloured sense of human eye to color when low.Because computer uses the RGB color space to represent color, TV uses the YUV color space to represent color, so on the display on the display effect of webpage and the TV display effect of webpage still be distinguishing, the principle that the present invention is the most responsive to the brightness in the color according to human eye, with color when the RGB color space is mapped to the YUV color space, obtain the brightness value of the complementary colours of the complementary colours of foreground and background colour, the brightness of the complementary colours by adjusting described foreground and/or the complementary colours of described background colour, make its luminance difference greater than predetermined threshold value, with this luminance difference greater than two kinds of colors of predetermined threshold value respectively as the foreground and the background colour of file (basis) focus, with this text focus of choosing is carried out self-adaption paint, make prospect text and background colour after painted have higher contrast ratio, solved in the prior art set-top box text focus of choosing in the page has been carried out when painted, the prospect text after painted and the unconspicuous problem of contrast effect of background colour thereof.
See also Fig. 1, this figure is the present invention carries out the method for self-adaption paint to text focus on set-top box a flow chart, and its main implementation procedure is:
Step S10, on the page, choose a text focus.
Step S11, the foreground A that obtains text focus and background colour B, the foreground A of text focus are the color of text, and the background colour B of text focus is the background fill color of text.
Step S12, foreground A and background colour B are carried out XOR with white (0XFFFFFF) respectively, determine the complementary colours AA of foreground A and the complementary colours BB of background colour B.
Step 13, respectively the complementary colours AA of described foreground and the complementary colours BB of described background colour are mapped to the YUV color space from the RGB color space, and obtain its brightness value YA and YB;
According to following formula the complementary colours AA of described foreground and the complementary colours BB of described background colour are mapped to the YUV color space from the RGB color space:
Y=0.299R+0.587G+0.114B
U=-0.147*R-0.289*G+0.436*B
V=0.615*R-0.515*G-0.100*B
Wherein, Y represents the brightness of YUV color space, and U, V are two chrominance components of YUV color model, the expression aberration; R represents the redness of RGB color space; G represents the green of RGB color space; B represents the blueness of RGB color space.
The brightness YA of the complementary colours AA of step 14, adjustment foreground, and/or the brightness YB of the complementary colours BB of adjustment background colour make adjusted luminance difference greater than predetermined threshold value, and this threshold value is not less than 125,
In this step, can adjust the brightness YB of the complementary colours BB of the brightness YA of complementary colours AA of foreground or background colour separately, also can adjust the brightness YB of the complementary colours BB of the brightness YA of complementary colours AA of foreground and background colour simultaneously, make adjusted luminance difference greater than predetermined threshold value, illustrated respectively below:
First kind of mode is: only adjust the brightness YA of the complementary colours AA of foreground, make difference between YA and the YB greater than 125;
The second way is: only adjust the brightness YB of the complementary colours BB of background colour, make difference between YA and the YB greater than 125;
The third mode is: adjust the brightness YB of the complementary colours BB of the brightness YA of complementary colours AA of foreground and background colour respectively, make difference between YA and the YB greater than 125.
Step 15, with the luminance difference that obtains in the step 14 greater than two kinds of colors of predetermined threshold value respectively as the foreground and the background colour of text focus, realize painted to text focus with this.
Below by an instantiation said method of the present invention is described further, the specific implementation process is as follows:
Step 20, for the current text focus of choosing, obtain its foreground A=" #FFFFFF ", background colour B=" #FCFF05 ";
Step 21, foreground A and background colour B are carried out XOR with white (0XFFFFFF) respectively, obtain its complementary colours, the complementary colours of foreground A correspondence is AA=" #000000 ", brightness YA=" 0 "; Background colour B corresponding complementary look is BB=" #03FA00 ", brightness YB=" 147 ";
Step 22, because of the luminance difference between YB and YA (147-0) greater than 125, therefore need not adjust AA, so New_AA=AA;
Step 23, the foreground New_AA=" #000000 " of text focus will be set, will the background colour BB=" #03fa00 " of text focus be set.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (7)

1. a method of text focus being carried out self-adaption paint on set-top box is characterized in that, comprises step:
A, the foreground of obtaining text focus and background colour;
B, determine the complementary colours of described foreground and described background colour;
C, respectively the complementary colours of described foreground and the complementary colours of described background colour are mapped to the YUV color space from the RGB color space, and obtain its brightness value;
The brightness of the complementary colours of D, the complementary colours of adjusting described foreground and/or described background colour makes its luminance difference greater than predetermined threshold value, with this luminance difference greater than two kinds of colors of predetermined threshold value respectively as the foreground and the background colour of file (basis) focus.
2. the method for claim 1 is characterized in that, among the described step B, the foreground and the white of described text focus is carried out the complementary colours that XOR obtains foreground, and the background colour and the white of described text focus are carried out the complementary colours that XOR obtains background colour.
3. the method for claim 1 is characterized in that, among the described step C, according to following formula the complementary colours of described foreground and the complementary colours of described background colour is mapped to the YUV color space from the RGB color space:
Y=0.299R+0.587G+0.114B
U=-0.147*R-0.289*G+0.436*B
V=0.615*R-0.515*G-0.100*B
Wherein, Y represents the brightness of YUV color space, and U, V are two chrominance components of YUV color model, the expression aberration; R represents the redness of RGB color space; G represents the green of RGB color space; B represents the blueness of RGB color space.
4. the method for claim 1 is characterized in that, described predetermined threshold value is not less than 125.
5. the method for claim 1 is characterized in that, among the described step D, only adjusts the brightness of the complementary colours of described foreground, and the luminance difference of complementary colours that makes itself and described background colour is greater than predetermined threshold value.
6. the method for claim 1 is characterized in that, among the described step D, only adjusts the brightness of the complementary colours of described background colour, and the luminance difference of complementary colours that makes itself and described foreground is greater than predetermined threshold value.
7. the method for claim 1 is characterized in that, among the described step D, adjusts the brightness of the complementary colours of the brightness of complementary colours of described foreground and described background colour respectively, makes its luminance difference greater than predetermined threshold value.
CNB2007101457692A 2007-09-06 2007-09-06 A kind of method of on set-top box, text focus being carried out self-adaption paint Expired - Fee Related CN100551079C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101457692A CN100551079C (en) 2007-09-06 2007-09-06 A kind of method of on set-top box, text focus being carried out self-adaption paint

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101457692A CN100551079C (en) 2007-09-06 2007-09-06 A kind of method of on set-top box, text focus being carried out self-adaption paint

Publications (2)

Publication Number Publication Date
CN101119499A true CN101119499A (en) 2008-02-06
CN100551079C CN100551079C (en) 2009-10-14

Family

ID=39055392

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101457692A Expired - Fee Related CN100551079C (en) 2007-09-06 2007-09-06 A kind of method of on set-top box, text focus being carried out self-adaption paint

Country Status (1)

Country Link
CN (1) CN100551079C (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011006386A1 (en) * 2009-07-13 2011-01-20 中兴通讯股份有限公司 Method and apparatus for displaying the color of desktop text on mobile terminal
CN103049471A (en) * 2012-09-15 2013-04-17 珠海金山办公软件有限公司 Method and system for adjusting colors of characters or backgrounds in presentation documents automatically
CN103136764A (en) * 2011-11-25 2013-06-05 捷达世软件(深圳)有限公司 Method and system for analyzing picture foreground colors
CN103137103A (en) * 2011-12-05 2013-06-05 中兴通讯股份有限公司 Character display method and device
CN103369394A (en) * 2013-06-26 2013-10-23 深圳市睿立南方科技有限公司 Television set-top box and brightness adjusting method thereof
CN103559249A (en) * 2013-10-29 2014-02-05 北京国双科技有限公司 Webpage thermodynamic diagram shading method and device
CN104853080A (en) * 2014-02-13 2015-08-19 宏达国际电子股份有限公司 Image processing device
CN105204807A (en) * 2015-09-24 2015-12-30 北京金山安全软件有限公司 Method and device for adjusting color of display content at front end of screen
CN105451094A (en) * 2014-08-20 2016-03-30 深圳Tcl新技术有限公司 Subtitle color adjusting method and device
CN105717988A (en) * 2016-01-14 2016-06-29 广东欧珀移动通信有限公司 Control method, control apparatus and electronic apparatus
CN105791945A (en) * 2016-03-14 2016-07-20 深圳市茁壮网络股份有限公司 Focal point displaying method and apparatus
CN103761079B (en) * 2013-12-12 2017-01-18 北京奇虎科技有限公司 Method and device for automatically graying page
US9807372B2 (en) 2014-02-12 2017-10-31 Htc Corporation Focused image generation single depth information from multiple images from multiple sensors
CN112328133A (en) * 2020-11-23 2021-02-05 深圳Tcl新技术有限公司 Icon display method and device and storage medium
CN113157356A (en) * 2020-01-22 2021-07-23 阿里巴巴集团控股有限公司 Method and device for adjusting object color, electronic equipment and computer storage medium

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605175B (en) * 2009-07-13 2012-04-18 中兴通讯股份有限公司 Method and apparatus for displaying colorful desktop text by mobile terminal
WO2011006386A1 (en) * 2009-07-13 2011-01-20 中兴通讯股份有限公司 Method and apparatus for displaying the color of desktop text on mobile terminal
CN103136764A (en) * 2011-11-25 2013-06-05 捷达世软件(深圳)有限公司 Method and system for analyzing picture foreground colors
CN103137103A (en) * 2011-12-05 2013-06-05 中兴通讯股份有限公司 Character display method and device
WO2013082892A1 (en) * 2011-12-05 2013-06-13 中兴通讯股份有限公司 Text display method and device
CN103049471A (en) * 2012-09-15 2013-04-17 珠海金山办公软件有限公司 Method and system for adjusting colors of characters or backgrounds in presentation documents automatically
CN103369394A (en) * 2013-06-26 2013-10-23 深圳市睿立南方科技有限公司 Television set-top box and brightness adjusting method thereof
CN103559249B (en) * 2013-10-29 2016-10-05 北京国双科技有限公司 Webpage thermodynamic coloring treatment process and device
CN103559249A (en) * 2013-10-29 2014-02-05 北京国双科技有限公司 Webpage thermodynamic diagram shading method and device
CN103761079B (en) * 2013-12-12 2017-01-18 北京奇虎科技有限公司 Method and device for automatically graying page
US9807372B2 (en) 2014-02-12 2017-10-31 Htc Corporation Focused image generation single depth information from multiple images from multiple sensors
CN104853080A (en) * 2014-02-13 2015-08-19 宏达国际电子股份有限公司 Image processing device
CN104853080B (en) * 2014-02-13 2018-05-11 宏达国际电子股份有限公司 Image processing apparatus
CN105451094A (en) * 2014-08-20 2016-03-30 深圳Tcl新技术有限公司 Subtitle color adjusting method and device
CN105451094B (en) * 2014-08-20 2018-11-02 深圳Tcl新技术有限公司 Subtitle color adjustment method and device
CN105204807A (en) * 2015-09-24 2015-12-30 北京金山安全软件有限公司 Method and device for adjusting color of display content at front end of screen
CN105204807B (en) * 2015-09-24 2018-05-25 北京金山安全软件有限公司 Method and device for adjusting color of display content at front end of screen
CN105717988A (en) * 2016-01-14 2016-06-29 广东欧珀移动通信有限公司 Control method, control apparatus and electronic apparatus
CN105791945A (en) * 2016-03-14 2016-07-20 深圳市茁壮网络股份有限公司 Focal point displaying method and apparatus
CN105791945B (en) * 2016-03-14 2018-07-24 深圳市茁壮网络股份有限公司 A kind of focus display methods and device
CN113157356A (en) * 2020-01-22 2021-07-23 阿里巴巴集团控股有限公司 Method and device for adjusting object color, electronic equipment and computer storage medium
CN112328133A (en) * 2020-11-23 2021-02-05 深圳Tcl新技术有限公司 Icon display method and device and storage medium

Also Published As

Publication number Publication date
CN100551079C (en) 2009-10-14

Similar Documents

Publication Publication Date Title
CN100551079C (en) A kind of method of on set-top box, text focus being carried out self-adaption paint
KR101170408B1 (en) Dominant color extraction for ambient light derived from video content mapped through unrendered color space
JP6356349B2 (en) Saturation processing specifications for dynamic range mapping
CN101404148B (en) Method for regulating terminal screen display effect and terminal unit
CN102209179B (en) Image-color-gamut-based adaptive color gamut matching method
KR20210019076A (en) Video signal processing method and apparatus
CN106791865A (en) The method of the self adaptation form conversion based on high dynamic range video
WO2006003624A1 (en) Ambient lighting derived from video content and with broadcast influenced by perceptual rules and user preferences
CN102169682B (en) Terminal, ambient light adapting method and system
CN106780635B (en) Picture adaptation method and system of intelligent terminal
KR20070026701A (en) Dominant color extraction using perceptual rules to produce ambient light derived from video content
CN102792670A (en) Image quality control apparatus, image quality control method, and image quality control program
CN108200420A (en) Picture adjustment methods, device, readable storage medium storing program for executing and terminal
CN106506950A (en) A kind of image processing method and device
CN105979370B (en) A kind of method and device configuring image model
WO2007026283A2 (en) Ambient lighting derived from video content using adaptive extraction regions
CN113132696A (en) Image tone mapping method, device, electronic equipment and storage medium
US20080297531A1 (en) Color gamut component analysis apparatus, method of analyzing color gamut component, and color gamut component analysis program
CN107592517B (en) Skin color processing method and device
CN108234982A (en) A kind of video transmission method of the more primary components of automatic identification image
CN107197235B (en) A kind of HDR video pre-filterings method
CN105120369A (en) Menu background color processing method and apparatus
CN108205795A (en) Face image processing process and system during a kind of live streaming
CN105338418A (en) Adjustment method and system for video night playing
WO2016086493A1 (en) Immersive video presentation method for intelligent mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091014

Termination date: 20160906