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.