CN104076928A - Method for adjusting color tone of text display area - Google Patents

Method for adjusting color tone of text display area Download PDF

Info

Publication number
CN104076928A
CN104076928A CN201410337406.9A CN201410337406A CN104076928A CN 104076928 A CN104076928 A CN 104076928A CN 201410337406 A CN201410337406 A CN 201410337406A CN 104076928 A CN104076928 A CN 104076928A
Authority
CN
China
Prior art keywords
tone
target photo
sampled point
colour
viewing area
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
CN201410337406.9A
Other languages
Chinese (zh)
Other versions
CN104076928B (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.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201410337406.9A priority Critical patent/CN104076928B/en
Publication of CN104076928A publication Critical patent/CN104076928A/en
Application granted granted Critical
Publication of CN104076928B publication Critical patent/CN104076928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Spectrometry And Color Measurement (AREA)

Abstract

The embodiment of the invention discloses a method for adjusting the color tone of a text display area. The method comprises the steps that a target picture and the text display area corresponding to the target picture are obtained; the color value of at least one sampling point is obtained in the target picture; the color tone of the target picture is determined according to the obtained color values of the sampling points; the color tone of the text display area is adjusted according to the color tone of the target picture. According to the method, the color tone of the text display area corresponding to the picture can be adjusted according to the color tone of the picture, the display effect is enhanced, and therefore user experience is enhanced.

Description

A kind of method of adjusting word viewing area tone
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of method of adjusting word viewing area tone.
Background technology
Nowadays, news is read has become the conventional operation of dismissing the scattered time in people's daily life on communication terminal (as mobile phone, PAD, PC or notebook computer).In numerous news item, how reader is clicked and is read, APP end devisers design focal point has been placed on picture and caption text simultaneously, by both combination from the eyeball of reader visually.
At present, for caption text can be shown on various pictures, and not affecting user reads, the general centre at picture and caption text, add last layer black transparent background color, the problem that realizes the combination of picture and caption text by described method is: the black transparent background color adding under caption text can not be arranged in pairs or groups with all pictures, for example, the color of picture is very bright-coloured, if still cover black transparent background color on this picture, color can form strong contrast, reduces display effect.
Summary of the invention
The embodiment of the present invention provides a kind of method of adjusting word viewing area tone, can strengthen display effect, experiences thereby strengthen user.
The embodiment of the present invention provides a kind of method of adjusting word viewing area tone, comprising:
Obtain the word viewing area that Target Photo and described Target Photo are corresponding;
In described Target Photo, obtain the colour of at least one sampled point;
According to the colour of the described sampled point acquiring, determine the tone of described Target Photo;
According to the tone of described Target Photo, adjust the tone of described word viewing area.
The embodiment of the present invention, terminal can be obtained the colour of at least one sampled point in Target Photo, according to the colour of the sampled point acquiring, determine the tone of described Target Photo, according to the tone of described Target Photo, adjust the tone of described word viewing area, realize the tone of the word viewing area corresponding according to this picture of the hue adjustment of picture, strengthen display effect, thereby strengthened user's experience.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of method flow diagram of adjusting word viewing area tone that the embodiment of the present invention provides;
Fig. 2 is a kind of method flow diagram of adjusting word viewing area tone that another embodiment of the present invention provides.
Fig. 3 is the structural representation of a kind of terminal of providing of the embodiment of the present invention;
Fig. 4 is the structural representation of the tone determining unit that provides of the embodiment of the present invention;
Fig. 5 is the structural representation of the reference sample point determining unit that provides of the embodiment of the present invention;
Fig. 6 is the structural representation of the adjustment unit that provides of the embodiment of the present invention;
Fig. 7 is the structural representation of the another kind of terminal that provides of the embodiment of the present invention.
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 clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is a kind of method flow diagram of adjusting word viewing area tone that the embodiment of the present invention provides.The method of the adjustment word viewing area tone that the embodiment of the present invention provides can realize on the terminal devices such as mobile phone, PAD, notebook computer or PC.The flow process of the adjustment word viewing area tone in the present embodiment can comprise as shown in Figure 1:
Step S110, obtains the word viewing area that Target Photo and described Target Photo are corresponding.
Concrete, terminal can arrange corresponding picture and word for every popularization news in advance, when getting the click commands of user for popularization news corresponding to described Target Photo, or, the display cycle that reaches the promotion message that shows that described Target Photo is corresponding, terminal is obtained described Target Photo and word viewing area corresponding to described Target Photo.
Wherein, described word viewing area is used for showing the word that described Target Photo is corresponding, the particular location of described word viewing area on described Target Photo, and the present invention does not limit.
Step S120 obtains the colour of at least one sampled point in described Target Photo.
In RGB color mode, color is mixed by red, green, blueness, and colour represents color corresponding value in RGB color mode, and for example, redness corresponding value in RGB color mode is 255,0,0; Green corresponding value in RGB color mode is 0,255,0; Blueness corresponding value in RGB color mode is 0,0,255.
Concrete, in the time that terminal gets Target Photo, terminal can be obtained the colour of at least one sampled point in described Target Photo.
Wherein, the described sampled point acquiring can be evenly distributed on described Target Photo, for example, Target Photo is evenly divided into four regions, in each region, obtain a sampled point, wherein, the quantity of the quantity in the region of division and the sampled point that obtains in each region, the present invention does not limit.
Optionally, terminal can be sampled for Target Photo and word viewing area lap, thereby in the lap of described Target Photo, obtain the colour of at least one sampled point, can be close with the tone of Target Photo lap with the tone of finally definite word viewing area.
Step S130, according to the colour of the described sampled point acquiring, determines the tone of described Target Photo.
Tone can be from form and aspect H (Hue), Reinheitszahl S (saturation) and three aspect definition of lightness B (brightness), use HSB value representation, for representing the general inclination in certain color, as partially blue, partially red, partially warm or colder etc., wherein, the maximal value of form and aspect is 255, and the maximal value of Reinheitszahl is 100%, and the maximal value of lightness is 100%.
As the optional embodiment of one, terminal can, according to the colour of the described sampled point acquiring, be determined reference sample point, then according to the colour of described reference sample point, determine the tone of described Target Photo in described each sampled point.
In specific implementation, terminal can be according to the colour of acquired sampled point, calculates the Reinheitszahl S of each sampled point, and the sampled point of the described Reinheitszahl maximum calculating is defined as to described reference sample point; Or terminal can be defined as described reference sample point by any one sampled point within the scope of default Reinheitszahl by Reinheitszahl S; Terminal, again according to the colour of described reference sample point, is determined the tone of described Target Photo, optional, and terminal can arrive according to rgb value the transformational relation of HSB value, determines the tone of described Target Photo.
Wherein, terminal calculate the form and aspect H of Target Photo according to rgb value can be with reference to following formula:
H=(0+(G-B)/(MAX-MIN))*60,IF?R=MAX;
H=(2+(B-R)/(MAX-MIN))*60,IF?G=MAX;
H=(4+(R-G)/(MAX-MIN))*60,IF?B=MAX;
Terminal can be according to the difference of maximal value in rgb value and minimum value and peaked ratio, the Reinheitszahl of calculating sampling point, and for example, the rgb value of sampled point is 0,255,180, equals 100% according to the Reinheitszahl that calculates known this sampled point.
Terminal can be defined as lightness B by the ratio of the maximal value in rgb value and 255, and for example, rgb value is 0,90,200, and so, maximal value is 200, and brightness value B is 200/255=0.784=78%.
As the optional embodiment of another kind, if terminal has been obtained the colour of at least two sampled points in described Target Photo, terminal can be according to the colour of described at least two sampled points that acquire, calculate the Reinheitszahl of described each sampled point, the sampled point of the described Reinheitszahl maximum calculating is defined as to described the first sampled point, and the sampled point of Reinheitszahl minimum is defined as to the second sampled point; Taking 2 as example, the colour of the first sampled point is R1, G1, and B1, the colour of the second sampled point is R2, G2, B2, the interval of the colour between the first sampled point and the second sampled point calculating is R1-R2, G1-G2, B1-B2; If terminal has been determined at least three sampled points in Target Photo, terminal is determined the first sampled point and the second sampled point in described sampled point according to the Reinheitszahl of each sampled point.
Terminal, again according to the interval of the colour between described the first sampled point and the second sampled point, is determined the tone of described Target Photo.
Optionally, in the interval of the colour that terminal can be between described the first sampled point and the second sampled point, determine a colour, determine the tone of described Target Photo according to the colour of determining.For example, the interval of the colour between the first sampled point and the second sampled point is 10-110,35-75,65-200, terminal can be determined a colour in described interval value, for example 56,70,100 or 80,40,150 etc., terminal can, according to the transformational relation of colour and tone, be determined the tone of described Target Photo.
Wherein, in the interval of the colour that terminal can also be between described the first sampled point and the second sampled point, determine at least two colours, calculate the multiple color tones of described Target Photo according to each colour correspondence of determining.The interval of the colour between the first sampled point and the second sampled point is still with 10-110,35-75, and 65-200 is example, terminal can be determined at least two colours in described interval value, for example 56,70,100,80,40,150 and 90,60,180 etc., terminal can calculate respectively described tone corresponding to each colour, the described tone calculating is defined as to the tone of described Target Photo.
Step S140, according to the tone of described Target Photo, adjusts the tone of described word viewing area.
Concrete, if terminal is only determined a kind of tone of described Target Photo, the tone that terminal can be described Target Photo by the hue adjustment of described word viewing area; If terminal is determined at least two kinds of tones of described Target Photo, terminal can be adjusted in conjunction with the multiple color tones of described Target Photo the tone of described word viewing area, word viewing area is divided into different area parts, the tone difference of zones of different part according to the number of the tone of the Target Photo of determining.
Further alternative, terminal can also be controlled the gradation of hue of described word viewing area, and the tone of controlling described word viewing area shoals gradually or deepens etc. gradually.
The embodiment of the present invention, terminal can be obtained the colour of at least one sampled point in Target Photo, according to the colour of the sampled point acquiring, determine the tone of described Target Photo, according to the tone of described Target Photo, adjust the tone of described word viewing area, realize the tone of the word viewing area corresponding according to this picture of the hue adjustment of picture, strengthen display effect, thereby strengthened user's experience.
Fig. 2 is the method flow diagram that the another kind that provides of the embodiment of the present invention is adjusted word viewing area tone.The method of the adjustment word viewing area tone that the embodiment of the present invention provides can realize on the terminal devices such as mobile phone, PAD, notebook computer or PC.The flow process of the adjustment word viewing area tone in the present embodiment can comprise as shown in Figure 2:
Step S210, obtains the word viewing area that Target Photo and described Target Photo are corresponding.
Concrete, terminal can arrange corresponding picture and word for every popularization news in advance, when getting the click commands of user for popularization news corresponding to described Target Photo, or, the display cycle that reaches the promotion message that shows that described Target Photo is corresponding, terminal is obtained described Target Photo and word viewing area corresponding to described Target Photo.
Step S220 obtains the colour of at least one sampled point in described Target Photo.
Concrete, in the time that terminal gets Target Photo, terminal can be obtained the colour of at least one sampled point in described Target Photo.
Wherein, the described sampled point acquiring can be evenly distributed on described Target Photo, for example, Target Photo is evenly divided into four regions, in each region, obtain a sampled point, wherein, the quantity of the quantity in the region of division and the sampled point that obtains in each region, the present invention does not limit.
Optionally, terminal can be sampled for Target Photo and word viewing area lap, thereby in the lap of described Target Photo, obtain the colour of at least one sampled point, can be close with the tone of Target Photo lap with the tone of finally definite word viewing area.
Step S230, according to the colour of the described sampled point acquiring, determines the tone of described Target Photo.
As the optional embodiment of one, terminal can, according to the colour of the described sampled point acquiring, be determined reference sample point, then according to the colour of described reference sample point, determine the tone of described Target Photo in described each sampled point.
In specific implementation, terminal can be according to the colour of acquired sampled point, calculates the Reinheitszahl S of each sampled point, and the sampled point of the described Reinheitszahl maximum calculating is defined as to described reference sample point; Or terminal can be defined as described reference sample point by any one sampled point within the scope of default Reinheitszahl by Reinheitszahl S; Terminal, again according to the colour of described reference sample point, is determined the tone of described Target Photo, optional, and terminal can arrive according to rgb value the transformational relation of HSB value, determines the tone of described Target Photo.
Wherein, the form and aspect calculating section that terminal please refer to embodiment mono-according to the form and aspect H of rgb value calculating Target Photo, is not repeated at this.
Terminal can be according to the difference of maximal value in rgb value and minimum value and peaked ratio, the Reinheitszahl of calculating sampling point, and for example, the rgb value of sampled point is 0,255,180, equals 100% according to the Reinheitszahl that calculates known this sampled point.
Terminal can be defined as lightness B by the ratio of the maximal value in rgb value and 255, and for example, rgb value is 0,90,200, and so, maximal value is 200, and brightness value B is 200/255=0.784=78%.
As the optional embodiment of another kind, if terminal has been obtained the colour of at least two sampled points in described Target Photo, terminal can be according to the colour of described at least two sampled points that acquire, calculate the Reinheitszahl of described each sampled point, the sampled point of the described Reinheitszahl maximum calculating is defined as to described the first sampled point, and the sampled point of Reinheitszahl minimum is defined as to the second sampled point; Taking 2 as example, the colour of the first sampled point is R1, G1, and B1, the colour of the second sampled point is R2, G2, B2, the interval of the colour between the first sampled point and the second sampled point calculating is R1-R2, G1-G2, B1-B2; If terminal has been determined at least three sampled points in Target Photo, terminal is determined the first sampled point and the second sampled point in described sampled point according to the Reinheitszahl of each sampled point.
Terminal, again according to the interval of the colour between described the first sampled point and the second sampled point, is determined the tone of described Target Photo.
Optionally, in the interval of the colour that terminal can be between described the first sampled point and the second sampled point, determine a colour, determine the tone of described Target Photo according to the colour of determining.For example, the interval of the colour between the first sampled point and the second sampled point is 10-110,35-75,65-200, terminal can be determined a colour in described interval value, for example 56,70,100 or 80,40,150 etc., terminal can, according to the transformational relation of colour and tone, be determined the tone of described Target Photo.
Wherein, in the interval of the colour that terminal can also be between described the first sampled point and the second sampled point, determine at least two colours, calculate the multiple color tones of described Target Photo according to each colour correspondence of determining.The interval of the colour between the first sampled point and the second sampled point is still with 10-110,35-75, and 65-200 is example, terminal can be determined at least two colours in described interval value, for example 56,70,100,80,40,150 and 90,60,180 etc., terminal can calculate respectively described tone corresponding to each colour, the described tone calculating is defined as to the tone of described Target Photo.
Step S240, obtains the color of the word of described word viewing area.
It is to be noted, in the embodiment of the present invention, terminal is after determining the tone of described Target Photo, described in just carrying out, obtain the step of the color of the word of described word viewing area, in other embodiment, terminal can be before determining the tone of described Target Photo, just gets the color of the word of described word viewing area.
Step S250, in conjunction with the color of word described in the color harmony of described Target Photo, adjusts the tone of described word viewing area.
As the optional embodiment of one, tone comprises form and aspect, Reinheitszahl and lightness, if the color of described word is white, the lightness of calculating described Target Photo is multiplied by the result of the first predetermined threshold value n1 as the tone of described word viewing area, only the lightness of described Target Photo is multiplied by the first predetermined threshold value n1, form and aspect and Reinheitszahl remain unchanged, using the lightness calculating in conjunction with original form and aspect and original Reinheitszahl the tone as described word viewing area, wherein, 0<n1<1, suppose, n1 equals 1/2, the tone HSB value of the Target Photo that terminal is determined is 162, 100, 100, the tone that terminal can be determined described word viewing area in conjunction with the color of word and the tone of Target Photo is 162, 100, 50.
As the optional embodiment of another kind, if the color of described word is black, the lightness of calculating described Target Photo is multiplied by the result of the second predetermined threshold value n2 as the tone of described word viewing area, only the lightness of described Target Photo is multiplied by the second predetermined threshold value n2, form and aspect and Reinheitszahl remain unchanged, using the lightness calculating in conjunction with original form and aspect and original Reinheitszahl the tone as described word viewing area, wherein, n2>1, suppose that n2 equals 3/2, the tone HSB value of the Target Photo that terminal is determined is 162, 100, 50, the tone that terminal can be determined described word viewing area in conjunction with the color of word and the tone of Target Photo is 162, 100, 75.
It is to be noted, if the lightness of described Target Photo is multiplied by the maximal value 100% that n2 value has afterwards exceeded lightness, ignore the part exceeding, be defined as 100% by lightness, for example, the HSB value of Target Photo is 162,100,90, n2 equals 1.5, the tone that calculates described word viewing area is 162,100,100.
Further alternative, terminal can also be controlled the gradation of hue of described word viewing area, and the tone of controlling described word viewing area shoals gradually or deepens etc. gradually.
The embodiment of the present invention, terminal can, further combined with the color of word, be adjusted the tone of word viewing area, compares an embodiment, is further conducive to user and reads Word message, has strengthened user's experience.
Fig. 3 is the structural representation of a kind of terminal of providing of the embodiment of the present invention.The terminal that the embodiment of the present invention provides comprises mobile phone, PAD, notebook computer or PC etc.Terminal 30 in the embodiment of the present invention at least can comprise acquiring unit 31, colour sampling unit 32, tone determining unit 33 and adjustment unit 34 as shown in Figure 3, wherein:
Acquiring unit 31, for obtaining the word viewing area that Target Photo and described Target Photo are corresponding.
In specific implementation, terminal can arrange corresponding picture and word for every popularization news in advance, when acquiring unit 31 gets the click commands of user for popularization news corresponding to described Target Photo, or, the display cycle that reaches the promotion message that shows that described Target Photo is corresponding, 31 of acquiring units obtain described Target Photo and word viewing area corresponding to described Target Photo.
Colour sampling unit 32, for obtaining the colour of at least one sampled point at described Target Photo.
In specific implementation, in the time that acquiring unit 31 gets Target Photo, colour sampling unit 32 can obtain the colour of at least one sampled point in described Target Photo.
Wherein, the described sampled point acquiring can be evenly distributed on described Target Photo, for example, Target Photo is evenly divided into four regions, in each region, obtain a sampled point, wherein, the quantity of the quantity in the region of division and the sampled point that obtains in each region, the present invention does not limit.
Optionally, colour sampling unit 32 can be sampled for Target Photo and word viewing area lap, thereby in the lap of described Target Photo, obtain the colour of at least one sampled point, can be close with the tone of Target Photo lap with the tone of finally definite word viewing area.
Tone determining unit 33, for the colour of the sampled point that acquires described in basis, determines the tone of described Target Photo.
Optionally, described tone determining unit 33 further can comprise reference sample point determining unit 331 and the first determining unit 332 as shown in Figure 4, wherein:
Reference sample point determining unit 331 for the colour of the sampled point that acquires described in basis, is determined reference sample point in described each sampled point; The first determining unit 332, for according to the colour of described reference sample point, determines the tone of described Target Photo.
Optionally, described reference sample point determining unit 331 further can comprise the first Reinheitszahl computing unit 3311 and the second determining unit 3312 as shown in Figure 5, wherein:
The first Reinheitszahl computing unit 3311, for the colour of the sampled point that acquires described in basis, calculates the Reinheitszahl of described each sampled point; The second determining unit 3312, for the sampled point of the described Reinheitszahl maximum calculating is defined as to described reference sample point, described the second determining unit 3312 can also be used for any one sampled point within the scope of default Reinheitszahl by Reinheitszahl and be defined as described reference sample point.
Described the first determining unit 332 can be utilized the transformational relation of rgb value to HSB value, determines the tone of described Target Photo according to the colour of reference sample point determining unit 331 determined reference sample points.
If described colour sampling unit 32 has obtained the colour of at least two sampled points in described Target Photo, described tone determining unit 33 further can comprise the second Reinheitszahl computing unit 333, the 3rd determining unit 334 and the 4th determining unit 335 as shown in Figure 4, wherein:
The second Reinheitszahl computing unit 333, for the colour of at least two sampled points acquiring described in basis, calculates the Reinheitszahl of described each sampled point; The 3rd determining unit 334, for the sampled point of the described Reinheitszahl maximum calculating is defined as to the first sampled point, and is defined as the second sampled point by the sampled point of Reinheitszahl minimum; The 4th determining unit 335, for according to the interval of the colour between described the first sampled point and the second sampled point, determines the tone of described Target Photo.
Taking 2 as example, suppose that the colour of the first definite sampled point of the 3rd determining unit 334 is R1, G1, B1, the colour of the second sampled point is R2, G2, B2, the interval of the colour between the first sampled point and the second sampled point that the 4th determining unit 335 calculates is R1-R2, G1-G2, B1-B2; If colour sampling unit 32 has been determined at least three sampled points in Target Photo, the second 333 of Reinheitszahl computing units are determined the first sampled point and the second sampled point in described sampled point according to the Reinheitszahl of each sampled point.
Wherein, in the interval of the colour that the 4th determining unit 335 can be between described the first sampled point and the second sampled point, determine a colour, determine the tone of described Target Photo according to the colour of determining.For example, the interval of the colour between the first sampled point and the second sampled point is 10-110,35-75,65-200, the 4th determining unit 335 can be determined a colour in described interval value, for example 56,70,100 or 80,40,150 etc., the 4th determining unit 335 can, according to the transformational relation of colour and tone, be determined the tone of described Target Photo.
In the interval of colour that the 4th determining unit 335 can also be between described the first sampled point and the second sampled point, determine at least two colours, calculate the multiple color tones of described Target Photo according to each colour correspondence of determining.The interval of the colour between the first sampled point and the second sampled point is still with 10-110,35-75, and 65-200 is example, the 4th determining unit 335 can be determined at least two colours in described interval value, for example 56,70,100,80,40,150 and 90,60,180 etc., the 4th determining unit 335 can calculate respectively described tone corresponding to each colour, the described tone calculating is defined as to the tone of described Target Photo.
Described tone determining unit 33 can also comprise linkage unit 336, and for connecting reference sample point determining unit 331 and the second Reinheitszahl computing unit 333, linkage unit 3365 can be common link.
Adjustment unit 34, for according to the tone of described Target Photo, adjusts the tone of described word viewing area.
In specific implementation, if 33 of tone determining units are determined a kind of tone of described Target Photo, the tone that adjustment unit 34 can be described Target Photo by the hue adjustment of described word viewing area; If tone determining unit 33 is determined at least two kinds of tones of described Target Photo, adjustment unit 34 can be adjusted in conjunction with the multiple color tones of described Target Photo the tone of described word viewing area, word viewing area is divided into different area parts, the tone difference of zones of different part according to the number of the tone of the Target Photo of determining.
Further, described terminal 30 can also comprise text color acquiring unit 35, and for obtaining the color of word of described word viewing area, described adjustment unit 34 can also be used for the color in conjunction with word described in the color harmony of described Target Photo, adjust the tone of described word viewing area
It is to be noted, acquiring unit 31, colour sampling unit 32 or tone determining unit 33 can trigger described text color acquiring unit 35 obtains the color of the word of described word viewing area, that is to say, in the time that acquiring unit 31 gets Target Photo and word viewing area corresponding to described Target Photo, or, when colour sampling unit 32 gets the colour of at least one sampled point in described Target Photo, or, the colour of the sampled point acquiring described in tone determining unit 33 bases, while determining the tone of described Target Photo, can trigger the color that described text color acquiring unit 35 obtains the word of described word viewing area, the present invention is not construed as limiting.
Wherein, described adjustment unit 34 can comprise the first tone computing unit 341 and/or the second tone computing unit 342, wherein:
The first tone computing unit 341, if be white for the color of described word, the lightness of calculating described Target Photo is multiplied by the result of the first predetermined threshold value n1 as the tone of described word viewing area, wherein, and 0<n1<1.
In specific implementation, tone comprises form and aspect, Reinheitszahl and lightness, if the color of described word is white, the first tone computing unit 341 can only be multiplied by the first predetermined threshold value n1 by the lightness of described Target Photo, form and aspect and Reinheitszahl remain unchanged, using the lightness calculating in conjunction with original form and aspect and original Reinheitszahl the tone as described word viewing area, suppose, n1 equals 1/2, the tone HSB value of the Target Photo that tone determining unit 33 is determined is 162, 100, 100, the tone that the first tone computing unit 341 can be determined described word viewing area in conjunction with the color of word and the tone of Target Photo is 162, 100, 50.
The second tone computing unit 342, if be black for the color of described word, the lightness of calculating described Target Photo is multiplied by the result of the second predetermined threshold value n2 as the tone of described word viewing area, wherein, n2>1.
In specific implementation, the second tone computing unit 342 can only be multiplied by the second predetermined threshold value n2 by the lightness of described Target Photo, form and aspect and Reinheitszahl remain unchanged, using the lightness calculating in conjunction with original form and aspect and original Reinheitszahl the tone as described word viewing area, suppose that n2 equals 3/2, the tone HSB value of the Target Photo that tone determining unit 33 is made is 162,100,50, the tone that the second tone computing unit 342 can be determined described word viewing area in conjunction with the color of word and the tone of Target Photo is 162,100,75.
It is to be noted, if the lightness of described Target Photo is multiplied by the maximal value 100% that n2 value has afterwards exceeded lightness, the second tone computing unit 342 can be ignored the part exceeding, and is defined as 100% by lightness, for example, the HSB value of Target Photo is 162,100,90, n2 equals 1.5, to calculate the tone of described word viewing area be 162,100,100 to the second tone computing unit 342.
Described adjustment unit 34 can also comprise linkage unit 343, for connecting the first tone computing unit 341 and the second tone computing unit 342, described adjustment unit 34 can time common interface unit.
Further, described terminal 30 can also comprise tone control module 36, for controlling the gradation of hue of described word viewing area.
Concrete, tone control module 36 can be controlled the gradation of hue of described word viewing area, and the tone of controlling described word viewing area shoals gradually or deepens etc. gradually.
The embodiment of the present invention, colour sampling unit can obtain the colour of at least one sampled point in Target Photo, tone determining unit can be according to the colour of the sampled point acquiring, determine the tone of described Target Photo, adjustment unit can, according to the tone of described Target Photo, be adjusted the tone of described word viewing area, has realized the tone of the word viewing area corresponding according to this picture of the hue adjustment of picture, strengthen display effect, thereby strengthened user's experience.
Refer to Fig. 7, Fig. 7 is the structural representation of a kind of terminal of providing of another embodiment of the present invention, and as shown in Figure 7, this terminal 70 can comprise: at least one processor 71, for example CPU, at least one communication bus 72, display 73 and storer 74.Wherein, described display 73 is for display-object picture and word viewing area corresponding to described Target Photo; Communication bus 72 is for realizing the connection communication between these assemblies.Storer 74 can be high-speed RAM storer, also can the unsettled storer of right and wrong (non-volatile memory), and for example at least one magnetic disk memory.In storer 74, store batch processing code, and processor 71 is for calling the program code of storer 74 storages, for carrying out following operation:
Obtain the word viewing area that Target Photo and described Target Photo are corresponding;
In described Target Photo, obtain the colour of at least one sampled point;
According to the colour of the described sampled point acquiring, determine the tone of described Target Photo;
According to the tone of described Target Photo, adjust the tone of described word viewing area.
As the optional embodiment of one, processor 71 according to described in the colour of the sampled point that acquires, determine that the tone of described Target Photo specifically can comprise:
According to the colour of the described sampled point acquiring, in described each sampled point, determine reference sample point;
According to the colour of described reference sample point, determine the tone of described Target Photo.
Wherein, processor 71 according to described in the colour of the sampled point that acquires, in described each sampled point, determine that reference sample point specifically can comprise:
According to the colour of the described sampled point acquiring, calculate the Reinheitszahl of described each sampled point;
The sampled point of the described Reinheitszahl maximum calculating is defined as to described reference sample point.
As the optional embodiment of another kind, if obtained the colour of at least two sampled points in described Target Photo, processor 71 according to described in the colour of the sampled point that acquires, determine that the tone of described Target Photo specifically can comprise:
According to the colour of described at least two sampled points that acquire, calculate the Reinheitszahl of described each sampled point;
The sampled point of the described Reinheitszahl maximum calculating is defined as to the first sampled point, and the sampled point of Reinheitszahl minimum is defined as to the second sampled point;
According to the interval of the colour between described the first sampled point and the second sampled point, determine the tone of described Target Photo.
Optionally, processor 901, according to the tone of described Target Photo, before adjusting the tone of described word viewing area, is also carried out following steps:
Obtain the color of the word of described word viewing area;
Described according to the tone of described Target Photo, the tone of adjusting described word viewing area comprises:
In conjunction with the color of word described in the color harmony of described Target Photo, adjust the tone of described word viewing area.
Wherein, processor 901 is in conjunction with the color of word described in the color harmony of described Target Photo, and the tone of adjusting described word viewing area specifically can comprise:
If the color of described word is white, the lightness of calculating described Target Photo is multiplied by the result of the first predetermined threshold value n1 as the tone of described word viewing area, wherein, and 0<n1<1.
Wherein, processor 901 is in conjunction with the color of word described in the color harmony of described Target Photo, and the tone of adjusting described word viewing area specifically can also comprise:
If the color of described word is black, the lightness of calculating described Target Photo is multiplied by the result of the second predetermined threshold value n2 as the tone of described word viewing area, wherein, and n2>1.
Further, processor 901, according to the tone of described Target Photo, after adjusting the tone of described word viewing area, is also carried out following steps:
Control the gradation of hue of described word viewing area.
The embodiment of the present invention, processor can obtain the colour of at least one sampled point in Target Photo, according to the colour of the sampled point acquiring, determine the tone of described Target Photo, according to the tone of described Target Photo, adjust the tone of described word viewing area, realize the tone of the word viewing area corresponding according to this picture of the hue adjustment of picture, strengthen display effect, thereby strengthened user's experience.
It should be noted that, in the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields in certain embodiment, there is no the part of detailed description, can be referring to the associated description of other embodiment.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the embodiment of the present invention is necessary.
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Unit in embodiment of the present invention device can merge according to actual needs, divides and delete.
Unit described in the embodiment of the present invention, can pass through universal integrated circuit, for example CPU (Central Processing Unit, central processing unit), or realize by ASIC (Application Specific Integrated Circuit, special IC).
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (8)

1. a method of adjusting word viewing area tone, is characterized in that, comprising:
Obtain the word viewing area that Target Photo and described Target Photo are corresponding;
In described Target Photo, obtain the colour of at least one sampled point;
According to the colour of the described sampled point acquiring, determine the tone of described Target Photo;
According to the tone of described Target Photo, adjust the tone of described word viewing area.
2. the method for claim 1, is characterized in that, the colour of the sampled point acquiring described in described basis determines that the tone of described Target Photo comprises:
According to the colour of the described sampled point acquiring, in described each sampled point, determine reference sample point;
According to the colour of described reference sample point, determine the tone of described Target Photo.
3. method as claimed in claim 2, is characterized in that, the colour of the sampled point acquiring described in described basis determines that in described each sampled point reference sample point comprises:
According to the colour of the described sampled point acquiring, calculate the Reinheitszahl of described each sampled point;
The sampled point of the described Reinheitszahl maximum calculating is defined as to described reference sample point.
4. the method for claim 1, is characterized in that, if obtained the colour of at least two sampled points in described Target Photo, and the colour of the sampled point acquiring described in described basis, determine that the tone of described Target Photo comprises:
According to the colour of described at least two sampled points that acquire, calculate the Reinheitszahl of described each sampled point;
The sampled point of the described Reinheitszahl maximum calculating is defined as to the first sampled point, and the sampled point of Reinheitszahl minimum is defined as to the second sampled point;
According to the interval of the colour between described the first sampled point and the second sampled point, determine the tone of described Target Photo.
5. the method for claim 1, is characterized in that, described according to the tone of described Target Photo, before adjusting the tone of described word viewing area, also comprises:
Obtain the color of the word of described word viewing area;
Described according to the tone of described Target Photo, the tone of adjusting described word viewing area comprises:
In conjunction with the color of word described in the color harmony of described Target Photo, adjust the tone of described word viewing area.
6. method as claimed in claim 5, is characterized in that, the color of word described in the color harmony of Target Photo described in described combination, and the tone of adjusting described word viewing area comprises:
If the color of described word is white, the lightness of calculating described Target Photo is multiplied by the result of the first predetermined threshold value n1 as the tone of described word viewing area, wherein, and 0<n1<1.
7. method as claimed in claim 6, is characterized in that, the color of word described in the color harmony of Target Photo described in described combination, and the tone of adjusting described word viewing area comprises:
If the color of described word is black, the lightness of calculating described Target Photo is multiplied by the result of the second predetermined threshold value n2 as the tone of described word viewing area, wherein, and n2>1.
8. the method as described in claim 1-7 any one, is characterized in that, described according to the tone of described Target Photo, after adjusting the tone of described word viewing area, also comprises:
Control the gradation of hue of described word viewing area.
CN201410337406.9A 2014-07-15 2014-07-15 A kind of method for adjusting text importing image Active CN104076928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410337406.9A CN104076928B (en) 2014-07-15 2014-07-15 A kind of method for adjusting text importing image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410337406.9A CN104076928B (en) 2014-07-15 2014-07-15 A kind of method for adjusting text importing image

Publications (2)

Publication Number Publication Date
CN104076928A true CN104076928A (en) 2014-10-01
CN104076928B CN104076928B (en) 2017-11-07

Family

ID=51598238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410337406.9A Active CN104076928B (en) 2014-07-15 2014-07-15 A kind of method for adjusting text importing image

Country Status (1)

Country Link
CN (1) CN104076928B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320583A (en) * 2014-11-03 2015-01-28 联想(北京)有限公司 Image processing method and device and electronic device
CN104915971A (en) * 2015-05-29 2015-09-16 深圳市金立通信设备有限公司 Method and terminal for obtaining color values
CN104967923A (en) * 2015-06-30 2015-10-07 北京奇艺世纪科技有限公司 Subtitle color setting method and device
CN105718229A (en) * 2014-12-05 2016-06-29 珠海金山办公软件有限公司 Text display effect switching method and device
CN105812888A (en) * 2016-03-31 2016-07-27 北京奇艺世纪科技有限公司 Character display method and device
CN106502614A (en) * 2016-10-26 2017-03-15 维沃移动通信有限公司 A kind of font control method and mobile terminal
WO2017166752A1 (en) * 2016-04-01 2017-10-05 乐视控股(北京)有限公司 Text color configuration method, apparatus, and electronic device
CN109408177A (en) * 2018-09-29 2019-03-01 北京金山安全软件有限公司 Method and device for configuring color of characters in picture and electronic equipment
CN109859283A (en) * 2018-12-22 2019-06-07 Oppo广东移动通信有限公司 One kind taking color method, takes color device, electronic equipment and can storage medium
WO2019184017A1 (en) * 2018-03-28 2019-10-03 华为技术有限公司 Control display method and electronic device
CN111932640A (en) * 2020-09-25 2020-11-13 北京尽微至广信息技术有限公司 Method and device for adjusting color gradient effect and storage medium
CN113989396A (en) * 2021-11-05 2022-01-28 北京字节跳动网络技术有限公司 Picture rendering method, device, equipment, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706718A (en) * 2009-11-05 2010-05-12 中兴通讯股份有限公司 Method and device for automatically changing desktop text color
CN102768763A (en) * 2011-05-05 2012-11-07 方正国际软件(北京)有限公司 Method and device for outlining characters
CN103049471A (en) * 2012-09-15 2013-04-17 珠海金山办公软件有限公司 Method and system for adjusting colors of characters or backgrounds in presentation documents automatically
CN103137103A (en) * 2011-12-05 2013-06-05 中兴通讯股份有限公司 Character display method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706718A (en) * 2009-11-05 2010-05-12 中兴通讯股份有限公司 Method and device for automatically changing desktop text color
CN102768763A (en) * 2011-05-05 2012-11-07 方正国际软件(北京)有限公司 Method and device for outlining characters
CN103137103A (en) * 2011-12-05 2013-06-05 中兴通讯股份有限公司 Character 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

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320583B (en) * 2014-11-03 2018-12-14 联想(北京)有限公司 Image processing method, image processing apparatus and electronic equipment
CN104320583A (en) * 2014-11-03 2015-01-28 联想(北京)有限公司 Image processing method and device and electronic device
CN105718229A (en) * 2014-12-05 2016-06-29 珠海金山办公软件有限公司 Text display effect switching method and device
CN105718229B (en) * 2014-12-05 2019-05-31 珠海金山办公软件有限公司 A kind of character display effect switching method and device
CN104915971A (en) * 2015-05-29 2015-09-16 深圳市金立通信设备有限公司 Method and terminal for obtaining color values
CN104967923A (en) * 2015-06-30 2015-10-07 北京奇艺世纪科技有限公司 Subtitle color setting method and device
CN104967923B (en) * 2015-06-30 2019-02-01 北京奇艺世纪科技有限公司 A kind of method and device that subtitle color is set
CN105812888B (en) * 2016-03-31 2019-02-22 北京奇艺世纪科技有限公司 A kind of character displaying method and device
CN105812888A (en) * 2016-03-31 2016-07-27 北京奇艺世纪科技有限公司 Character display method and device
WO2017166752A1 (en) * 2016-04-01 2017-10-05 乐视控股(北京)有限公司 Text color configuration method, apparatus, and electronic device
CN106502614B (en) * 2016-10-26 2020-01-10 维沃移动通信有限公司 Font adjusting method and mobile terminal
CN106502614A (en) * 2016-10-26 2017-03-15 维沃移动通信有限公司 A kind of font control method and mobile terminal
US11615513B2 (en) 2018-03-28 2023-03-28 Huawei Technologies Co., Ltd. Control display method and electronic device
WO2019184017A1 (en) * 2018-03-28 2019-10-03 华为技术有限公司 Control display method and electronic device
CN109408177A (en) * 2018-09-29 2019-03-01 北京金山安全软件有限公司 Method and device for configuring color of characters in picture and electronic equipment
CN109408177B (en) * 2018-09-29 2022-08-12 北京乐蜜科技有限责任公司 Method and device for configuring color of characters in picture and electronic equipment
CN109859283A (en) * 2018-12-22 2019-06-07 Oppo广东移动通信有限公司 One kind taking color method, takes color device, electronic equipment and can storage medium
CN109859283B (en) * 2018-12-22 2024-01-09 Oppo广东移动通信有限公司 Color taking method, color taking device, electronic equipment and storable medium
CN111932640A (en) * 2020-09-25 2020-11-13 北京尽微至广信息技术有限公司 Method and device for adjusting color gradient effect and storage medium
CN111932640B (en) * 2020-09-25 2021-02-09 北京尽微至广信息技术有限公司 Method and device for adjusting color gradient effect and storage medium
CN113989396A (en) * 2021-11-05 2022-01-28 北京字节跳动网络技术有限公司 Picture rendering method, device, equipment, storage medium and program product
WO2023078284A1 (en) * 2021-11-05 2023-05-11 北京字节跳动网络技术有限公司 Image rendering method and apparatus, device, storage medium, and program product

Also Published As

Publication number Publication date
CN104076928B (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN104076928A (en) Method for adjusting color tone of text display area
WO2021047383A1 (en) Image processing method and apparatus for electronic ink screen, and electronic ink screen
CN108701351B (en) Image display enhancement method and device
CN111416950A (en) Video processing method and device, storage medium and electronic equipment
CN107992182B (en) Method and device for displaying interface image
RU2669511C2 (en) Method and device for recognising picture type
CN109727216B (en) Image processing method, device, terminal equipment and storage medium
WO2021114684A1 (en) Image processing method and apparatus, computing device, and storage medium
CN109859283B (en) Color taking method, color taking device, electronic equipment and storable medium
CN104967784B (en) Mobile terminal calls the method and mobile terminal of the substrate features pattern of camera function
CN107799093A (en) Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal
CN105955754B (en) A kind of user interface character displaying method and device
CN110996174B (en) Video image quality enhancement method and related equipment thereof
CN108337496A (en) White balancing treatment method, processing unit, processing equipment and storage medium
EP2284800A1 (en) Method and system for creating an image
CN113064687A (en) Color adaptation processing method, device and equipment for user interface component
CN110444181B (en) Display method, display device, terminal and computer-readable storage medium
WO2020259517A1 (en) Display attribute adjusting method and related device
CN113989396A (en) Picture rendering method, device, equipment, storage medium and program product
CN111901519A (en) Screen light supplement method and device and electronic equipment
CN111124404A (en) Custom color display method and system
CN114242023A (en) Display screen brightness adjusting method, display screen brightness adjusting device and electronic equipment
WO2019184017A1 (en) Control display method and electronic device
WO2022120799A9 (en) Image processing method and apparatus, electronic device, and storage medium
US20200404124A1 (en) Skin color image gamut weight detecting method and device thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20180428

Granted publication date: 20171107

PD01 Discharge of preservation of patent
PD01 Discharge of preservation of patent

Date of cancellation: 20210428

Granted publication date: 20171107

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210608

Address after: 518057 Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 17th Floor (15th Floor of Natural Floor) 1702-1703

Patentee after: Shenzhen Microphone Holdings Co.,Ltd.

Address before: 518040 21 floor, east block, Times Technology Building, 7028 Shennan Road, Futian District, Shenzhen, Guangdong.

Patentee before: DONGGUAN GOLDEX COMMUNICATION TECHNOLOGY Co.,Ltd.