Specific embodiment
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for the embodiment of the present invention
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings
His accompanying drawing.
Illustrate first, the colour temperature of screen is to weigh one of mostly important standard of quality that screen color show, use
Family, with the different and different of screen color temp, therefore can be solved to the impression of screen same hue by the regulation to screen color temp
The certainly problem of screen angle of squint colour cast.
Below by way of specific embodiment, the present invention is described in detail.
Shown in Figure 1, the embodiment of the present invention provides a kind of method for adjusting screen color temp, is applied to include the shifting of screen
Dynamic terminal, comprises the following steps 101~step 103, and details are as follows.
Step 101:Obtain angle change value of the user relative to the viewing visual angle of screen.
Wherein, user is specially the sight line of user and angle formed by the vertical direction of screen relative to the viewing visual angle of screen
Degree.Generally, when user is 0 degree relative to the viewing visual angle of screen, user is positive visual angle relative to the viewing visual angle of screen, no
There is a problem of angle of squint colour cast, and with the change of viewing visual angle, it may appear that the problem of screen color temp colour cast.For example, user
Be not in colour temperature colour cast problem during positive visual angle viewing mobile phone screen, and during the 45 degree of viewing mobile phone screens in angle of squint, according to reality
Situation occurs the partially red phenomenon of colour temperature.Here, angle change value of the user relative to the viewing visual angle of screen is obtained, it is main to use
In the adjustment of follow-up screen color temp, so that user's bias colour ground viewing screen.
Step 102:According to default angle change value and the corresponding relation of colour temperature changing value, it is determined that with the angle change
It is worth corresponding target colour temperature changing value.
Wherein, in order to be based on angle change value of the user relative to the viewing visual angle of screen for having obtained, determine corresponding
Target colour temperature changing value, can in the terminal pre-set the correspondence of angle change value and colour temperature changing value according to actual conditions
Relation, with can obtain angle change value after, according to default angle change value and the corresponding relation of colour temperature changing value, it is determined that
Go out the target colour temperature changing value of matching.
For example, the corresponding relation of default angle change value and colour temperature changing value can be:
Color_temp_change=T* (eye_angle/90 °).
Wherein, Color_temp_change is colour temperature changing value, and eye_angle is regarded for user relative to the viewing of screen
The angle change value at angle, T is preset value.
It should be noted that bulk material of the default value of T typically with screen is relevant, the bulk material of screen is different, T
Default value can change.For example, the corresponding colour temperature excursion of a mobile phone screen is 0 degree of 6500K~90 degree 8500K,
I.e. when user is 90 degree relative to the angle change value of the viewing visual angle of screen, corresponding colour temperature changing value is 2000K, then may be used
T is preset as 2000K, the corresponding relation of the default angle change value of mobile phone correspondence and colour temperature changing value can be:
Color_temp_change=2000K* (eye_angle/90 °)
Step 103:According to the target colour temperature changing value, the colour temperature of the screen is adjusted.
Wherein, after target colour temperature changing value is determined, mobile terminal can be according to the target colour temperature changing value, to screen
Colour temperature be adjusted, the angle of squint colour cast to screen is compensated, it is ensured that the colour temperature at this visual angle is basic with the colour temperature at positive visual angle
Consistent or deviation very little, so that user's bias colour ground viewing screen.
The method of the adjustment screen color temp of the embodiment of the present invention, by obtaining angle of the user relative to the viewing visual angle of screen
Degree changing value, according to default angle change value and the corresponding relation of colour temperature changing value, it is determined that corresponding with the angle change value
Target colour temperature changing value, according to the target colour temperature changing value, adjust the colour temperature of the screen, can be by relative to user
In the automatic detection of the viewing visual angle of screen, the colour temperature of real-time adjustment screen, so that the angle of squint colour cast of screen is compensated,
On the basis of screen cost and thickness is not increased, effectively solve the problems, such as angle of squint colour cast, it is ensured that display it is consistent
Property, optimize the display effect that user watches screen.
The basic implementation process of the method for adjustment screen color temp of the invention is above embodiments illustrated, below by some
Specific embodiment is further illustrated to the method for adjustment screen color temp of the invention.
Shown in Figure 2, the embodiment of the present invention also provides a kind of method for adjusting screen color temp, is applied to include screen
Mobile terminal, comprises the following steps 201~step 213, and details are as follows.
Step 201:By front camera and gravity sensor, direction of the detection user relative to screen.
Wherein, the front camera of mobile terminal such as mobile phone is normally at the top of mobile terminal screen, by preposition
Image captured by camera can direction of the Preliminary detection to user relative to screen.For example, the figure captured by front camera
When there is mobile terminal screen as in, user can be substantially detected positioned at the front of screen, the image captured by front camera
In when there is no mobile terminal screen, can substantially detect the front that user is not at screen.The gravity sensor of mobile terminal
The general attitude that can detect that mobile terminal, i.e., by the three-dimensional component of the mobile terminal gravity detected by gravity sensor,
Can determine that mobile terminal is kept flat or side is put.And according to user's use habit, normally only put or non-flat in mobile terminal side
When putting, user can just watch mobile terminal screen, i.e. user positioned at the front of mobile terminal screen.So, with reference to preposition shooting
The testing result of head and gravity sensor, mobile terminal can accurately determine direction of the user relative to screen.
Step 202:When user is detected positioned at the front of the screen, the figure captured by the front camera is recognized
Spacing as between user's eyes.
Wherein, when being located at the front of screen because of user, it is only possible to normally watch screen, so, it is located at when user is detected
During the front of screen, mobile terminal can further determine that viewing visual angle of the user relative to screen.Mobile terminal is it is determined that user
Relative to screen viewing visual angle when, can by front camera, detect user relative to screen viewing visual angle.By preceding
Put camera detection user relative to screen viewing visual angle when, can first recognize user in the image captured by front camera
Spacing between eyes, to determine user to the distance of screen.
Mobile terminal, can be by movement in spacing between user's eyes in recognizing the image captured by front camera
Recognizer in terminal handler is processed the image captured by front camera, with recognize in image user's eyes it
Between spacing, also can be double by user in the image captured by the identification function Direct Recognition front camera of the front camera
Spacing between eye, the present invention is not limited.
Step 203:According to the corresponding relation between default eyes distance value and screen distance value, it is determined that with recognize
The first distance of the corresponding user of spacing between user's eyes to the screen.
Wherein, it must be spacing in image captured by front camera between user's eyes, screen that eyes distance value refers to
Distance value refers to the distance that must be user to screen.Typically, the actual spacing between user's eyes is fixed, but front camera
Spacing in captured image between user's eyes is pixel distance, can be become to the change of the distance of screen with user
Change, i.e. user distance screen is nearer, and the pixel distance in the image captured by front camera between user's eyes is bigger, and it is logical
Often it is directly proportional.Therefore, in order to accurately determine user to the distance of screen, can in advance be set in the terminal according to actual conditions
The corresponding relation between eyes distance value and screen distance value is put, with can be in the image captured by front camera is recognized
After spacing between user's eyes, according to the corresponding relation, corresponding user to the distance of screen is determined.
For example, the corresponding relation between default eyes distance value and screen distance value can be:
Lface_to_phone=S*Leye_in_phone
Wherein, Lface_to_phone is screen distance value, and Leye_in_phone is eyes distance value, and S is preset ratio
Coefficient.
Step 204:If first distance is recognized more than or equal to the first predetermined threshold value and less than the second predetermined threshold value
The first area in image captured by the front camera shared by the first object.
Wherein, the first object is, for example, user face, the whole head of user etc..First predetermined threshold value and the second predetermined threshold value
Pre-set, and the first predetermined threshold value is less than second predetermined threshold value.Typically when the first distance is less than the first predetermined threshold value
When, the distance of user to screen is close, does not have necessity of color temperature compensating.It is preposition when the first distance is more than the second predetermined threshold value
The entire area of the first object can be included in image captured by camera, so as to the figure captured by front camera cannot be utilized
Viewing visual angle of the areal calculation user relative to screen as in shared by the first object.For example, the first predetermined threshold value is chosen as
20cm, the second predetermined threshold value is chosen as 100cm.
When the first distance is more than or equal to the first predetermined threshold value and during less than the second predetermined threshold value, front camera can shoot
To the first object, and on the premise of the first distance (distance of user to screen) is fixed, the sight with user relative to screen
See that visual angle changes, the area in the image captured by front camera shared by the first object can also change, it is general to see
See that the gradient at visual angle is bigger, the area in image shared by the first object is smaller.And when the first distance is less than the first predetermined threshold value,
User can be close to the distance of screen, and now no matter how user changes relative to the viewing visual angle of screen, because eyes of user away from
Off screen curtain is relatively near, the colour cast problem meeting very little of screen, can disregard substantially, i.e., screen color temp is essentially identical to the positive visual angle viewing of user
Colour temperature during screen, so, screen color temp can not be adjusted in such cases.
Mobile terminal, can be by movement in the area shared by the first object in recognizing the image captured by front camera
Recognizer in terminal handler is processed the image captured by front camera, to recognize the first object institute in image
The area for accounting for, also can be by first pair in the image captured by the identification function Direct Recognition front camera of the front camera
As shared area.
Step 205:It is determined that with described first apart from corresponding first object preset area.
Typically, the real area of the first object is fixed, but complete first pair in image captured by front camera
As the area i.e. elemental area that can be accounted for, can change to the change of the distance of screen with user, i.e., eyes of user is apart from screen
Nearer, the elemental area that complete first object can be accounted in the image captured by front camera is bigger.So, determining user
Eyes to after the first distance of screen, preset relation that can be in mobile terminal, it is determined that with first apart from corresponding first pair
The preset area of elephant.
It is pointed out that the preset area of the first object is specially (i.e. sight of the user relative to screen of the positive visual angle of user
See visual angle be 0 degree) watch screen when, the elemental area that complete first object can be accounted in the image captured by front camera.
Step 206:Preset area and first area according to first object, calculate user relative to the screen
The viewing visual angle of curtain.
Wherein, on the premise of the distance of user to screen is fixed, as user occurs relative to the viewing visual angle of screen
Change, the elemental area in the image captured by front camera shared by the first object can also change, and both are present admittedly
Fixed relation.
Specifically, user can represent relative to the viewing visual angle eye_angle of screen:
Eye_angle=90 ° of * (1-now_square/all_square)
Wherein, now_square represents elemental area i.e. shared by the first object in the image captured by front camera
One area, all_square represents the preset area of the first object.
So, after the preset area of the first object and the first area is determined, so that it may calculate use according to above-mentioned formula
Viewing visual angle of the family relative to screen.
Step 207:If first distance is more than or equal to second predetermined threshold value and default less than or equal to the 3rd
Threshold value, the second area in the image captured by the identification front camera shared by the second object.
Wherein, the second object is, for example, user's upper part of the body etc., in practice, the face of the area more than the first object of the second object
Product.3rd predetermined threshold value pre-sets, and the 3rd predetermined threshold value is more than the second predetermined threshold value.
When the first distance is more than or equal to the second predetermined threshold value and during less than or equal to three predetermined threshold values, front camera
The second object can be photographed, and on the premise of the first distance (distance of user to screen) is fixed, as user is relative to screen
The viewing visual angle of curtain changes, and the area in the image captured by front camera shared by the second object can also change,
The gradient of general viewing visual angle is bigger, and the area in image shared by the second object is smaller.And when the first distance is preset more than the 3rd
During threshold value, the entire area of the second object is may include in the image captured by front camera, therefore utilize the second Object identifying
Area be no longer desirable for calculate user relative to screen viewing visual angle.
Step 208:It is determined that with described first apart from corresponding second object preset area.
Wherein it is determined that the mode of the preset area of the second object is identical with the mode of the preset area for determining the first object,
Will not be repeated here.The preset area of the second object is specially the positive visual angle of user, and (i.e. user is 0 relative to the viewing visual angle of screen
Degree) viewing screen when, the elemental area that complete second object can be accounted in the image captured by front camera.
Step 209:According to the preset area and the second area of second object, user is calculated relative to the screen
The viewing visual angle of curtain.
Wherein, the calculating process in this step is identical with the calculating process in above-mentioned steps 206, will not be repeated here.
Step 210:Judge whether the viewing visual angle calculated in Preset Time changes.
Wherein, in order to obtain angle change value of the user relative to the viewing visual angle of screen, calculate user relative to
After the viewing visual angle of screen, so that it may judge whether the viewing visual angle calculated in Preset Time changes, to change
In the case of, the angle change value of viewing visual angle is obtained in time.The mode of judgement is, for example,:Compare what is calculated in Preset Time
Viewing visual angle, judges that whether the difference between them, more than a predetermined threshold value, such as exceedes, then judge that viewing visual angle becomes
Change.The Preset Time can in the terminal pre-set according to user's request.
Step 211:If the viewing visual angle calculated in Preset Time changes, user is obtained relative to the screen
The angle change value of viewing visual angle.
Wherein, user is obtained relative to the angle change value of the viewing visual angle of screen, is mainly used in follow-up screen color temp
Adjustment so that user's bias colour ground viewing screen.
I.e. in the embodiment of the present invention, mistake of the acquisition for mobile terminal user relative to the angle change value of the viewing visual angle of screen
Journey can be summarized as:First, by front camera, user is relative to the viewing visual angle of screen for detection, then, judges Preset Time
Whether the viewing visual angle for inside detecting changes, and finally, if the viewing visual angle detected in Preset Time changes, obtains
Take angle change value of the family relative to the viewing visual angle of screen.
Step 212:According to default angle change value and the corresponding relation of colour temperature changing value, it is determined that with the angle change
It is worth corresponding target colour temperature changing value.
Wherein, in order to be based on angle change value of the user relative to the viewing visual angle of screen for having obtained, determine corresponding
Target colour temperature changing value, can in the terminal pre-set the correspondence of angle change value and colour temperature changing value according to actual conditions
Relation, with can obtain angle change value after, according to default angle change value and the corresponding relation of colour temperature changing value, it is determined that
Go out the target colour temperature changing value of matching.
For example, the corresponding relation of default angle change value and colour temperature changing value can be:
Color_temp_change=T* (eye_angle/90 °).
Wherein, Color_temp_change is colour temperature changing value, and eye_angle is regarded for user relative to the viewing of screen
The angle change value at angle, T is preset value.Bulk material of the default value of T typically with screen is relevant, and the bulk material of screen is not
Together, the default value of T can change.
Step 213:According to the target colour temperature changing value, the colour temperature of the screen is adjusted.
Wherein, after target colour temperature changing value is determined, mobile terminal can be according to the target colour temperature changing value, to screen
Colour temperature be adjusted, the angle of squint colour cast to screen is compensated, it is ensured that the colour temperature at this visual angle is basic with the colour temperature at positive visual angle
Consistent or deviation very little, so that user's bias colour ground viewing screen.
The method of the adjustment screen color temp of the embodiment of the present invention, by combining distance, front camera of the user to screen
First object or the elemental area and corresponding with the distance of user to screen first shared by the second object in captured image
The preset area of object or the second object calculates viewing visual angle of the user relative to screen, is changed in viewing visual angle
In the case of, the angle change value of viewing visual angle is obtained, and according to default angle change value and the corresponding relation of colour temperature changing value,
It is determined that target colour temperature changing value corresponding with angle change value, according to target colour temperature changing value, adjusts the colour temperature of screen, can borrow
Front camera real-time detection user is helped relative to the changing value of the viewing visual angle of screen, so that real-time adjustment screen color temp, right
The angle of squint colour cast of screen is compensated, and on the basis of screen cost and thickness is not increased, effectively solves angle of squint inclined
The problem of color, it is ensured that the uniformity of display, optimizes the display effect that user watches screen.
Shown in Figure 3, the embodiment of the present invention also provides a kind of method for adjusting screen color temp, is applied to include screen
Mobile terminal, comprises the following steps 301~step 308, and details are as follows.
Step 301:By front camera, user to the second distance of the screen is determined.
Wherein, mobile terminal by front camera, determine user to screen second distance when, before can recognizing first
The spacing between user's eyes in the image captured by camera is put, then according to default eyes distance value and screen distance value
Between corresponding relation, it is determined that user corresponding with the spacing between the user's eyes for recognizing to screen second away from
From.Wherein, it must be spacing in image captured by front camera between user's eyes, screen distance value that eyes distance value refers to
Refer to the distance that must be user to screen.
Typically, the actual spacing between user's eyes is fixed, but user is double in image captured by front camera
Spacing between eye is pixel distance, can be changed to the change of the distance of screen with user, i.e. user distance screen is nearer,
Pixel distance in image captured by front camera between user's eyes is bigger, and is generally directly proportional.Therefore, in order to accurate
Determine user to the distance of screen, can in the terminal pre-set eyes distance value and screen distance according to actual conditions
Corresponding relation between value, with can after the spacing between user's eyes in recognizing the image captured by front camera,
According to the corresponding relation, corresponding user to the distance of screen is determined.
Step 302:If the second distance is recognized described preposition more than the 4th predetermined threshold value and less than the 5th predetermined threshold value
The mobile terminal area in the eyes of user in image captured by camera.
Wherein, the 4th predetermined threshold value and the 5th predetermined threshold value pre-set, and the 4th predetermined threshold value is pre- less than the 5th
If threshold value.Typically when second distance is less than or equal to four predetermined threshold values, the distance of user to screen is close, does not have colour temperature
Necessity of compensation.When second distance is more than or equal to four predetermined threshold values, the use in image captured by front camera
Mobile terminal area in the eyes of family is the area of whole mobile terminal, so as to calculating user cannot be utilized relative to screen
Viewing visual angle.
When the second distance is more than the 4th predetermined threshold value and during less than five predetermined threshold values, the figure captured by front camera
There can be mobile terminal in eyes of user as in, and on the premise of second distance (distance of user to screen) is fixed, with
User to be changed relative to the viewing visual angle of screen, the movement in the eyes of user in image captured by front camera
The area (i.e. elemental area) of terminal can also change, and the gradient of general viewing visual angle is bigger, the mobile end in eyes of user
The area at end is smaller.
Mobile terminal recognize front camera captured by image in eyes of user in mobile terminal area when, can
The image captured by front camera is processed by the recognizer in mobile terminal processor, with recognizing image
Mobile terminal area in eyes of user, can also be clapped by the identification function Direct Recognition front camera of the front camera
Mobile terminal area in eyes of user in the image taken the photograph.
Step 303:It is determined that default mobile terminal area corresponding with the second distance.
Wherein, it is that the positive visual angle of user (i.e. user is 0 degree relative to the viewing visual angle of screen) is seen to preset mobile terminal area
When seeing screen, the area that the whole mobile terminal in the eyes of user in image captured by front camera can be accounted for.
Step 304:According to the default mobile terminal area and the mobile terminal area for recognizing, user's phase is calculated
For the viewing visual angle of the screen.
Wherein, on the premise of the distance of user to screen is fixed, as user occurs relative to the viewing visual angle of screen
Change, the mobile terminal area in the eyes of user in image captured by front camera can also change, and both deposit
In fixed relation.
Specifically, user can represent relative to the viewing visual angle eye_angle of screen:
Eye_angle=90 ° of * (1-now_UE_square_in_eye/UE_square_in_eye)
Wherein, now_UE_square_in_eye represents the shifting in the eyes of user in the image captured by front camera
Dynamic terminal area, UE_square_in_eye represents default mobile terminal area.
So, after default mobile terminal area and the mobile terminal area for recognizing is determined, so that it may according to above-mentioned public affairs
Formula calculates viewing visual angle of the user relative to screen.
Step 305:Judge whether the viewing visual angle calculated in Preset Time changes.
Wherein, in order to obtain angle change value of the user relative to the viewing visual angle of screen, calculate user relative to
After the viewing visual angle of screen, so that it may judge whether the viewing visual angle calculated in Preset Time changes, to change
In the case of, the angle change value of viewing visual angle is obtained in time.The mode of judgement is, for example,:Compare what is calculated in Preset Time
Viewing visual angle, judges that whether the difference between them, more than a predetermined threshold value, such as exceedes, then judge that viewing visual angle becomes
Change.The Preset Time can in the terminal pre-set according to user's request.
Step 306:If calculating viewing visual angle in Preset Time to change, sight of the user relative to the screen is obtained
See the angle change value at visual angle.
Wherein, user is obtained relative to the angle change value of the viewing visual angle of screen, is mainly used in follow-up screen color temp
Adjustment so that user's bias colour ground viewing screen.
Step 307:According to default angle change value and the corresponding relation of colour temperature changing value, it is determined that with the angle change
It is worth corresponding target colour temperature changing value.
Wherein, in order to be based on angle change value of the user relative to the viewing visual angle of screen for having obtained, determine corresponding
Target colour temperature changing value, can in the terminal pre-set the correspondence of angle change value and colour temperature changing value according to actual conditions
Relation, with can obtain angle change value after, according to default angle change value and the corresponding relation of colour temperature changing value, it is determined that
Go out the target colour temperature changing value of matching.
For example, the corresponding relation of default angle change value and colour temperature changing value can be:
Color_temp_change=T* (eye_angle/90 °).
Wherein, Color_temp_change is colour temperature changing value, and eye_angle is regarded for user relative to the viewing of screen
The angle change value at angle, T is preset value.Bulk material of the default value of T typically with screen is relevant, and the bulk material of screen is not
Together, the default value of T can change.
Step 308:According to the target colour temperature changing value, the colour temperature of the screen is adjusted.
Wherein, after target colour temperature changing value is determined, mobile terminal can be according to the target colour temperature changing value, to screen
Colour temperature be adjusted, the angle of squint colour cast to screen is compensated, it is ensured that the colour temperature at this visual angle is basic with the colour temperature at positive visual angle
Consistent or deviation very little, so that user's bias colour ground viewing screen.
The method of the adjustment screen color temp of the embodiment of the present invention, by combining distance, front camera of the user to screen
Mobile terminal area and default mobile terminal area in eyes of user in captured image calculate user relative to screen
The viewing visual angle of curtain, in the case where viewing visual angle changes, obtains the angle change value of viewing visual angle, according to default angle
The corresponding relation of degree changing value and colour temperature changing value, it is determined that target colour temperature changing value corresponding with angle change value, according to target
Colour temperature changing value, adjusts the colour temperature of screen, viewing visual angle that can be by front camera real-time detection user relative to screen
Changing value so that real-time adjustment screen color temp, the angle of squint colour cast to screen is compensated, and is not increasing screen cost and thickness
On the basis of degree, angle of squint colour cast is effectively solved the problems, such as, it is ensured that the uniformity of display, optimize user institute viewing screen
The display effect of curtain.
Above example is illustrated to the implementation process of the method for adjustment screen color temp of the invention, below by reality
Example is applied to be illustrated to realizing the mobile terminal of the method for adjustment screen color temp of the invention.
Shown in Figure 4, the embodiment of the present invention also provides a kind of mobile terminal, including screen.The mobile terminal is also wrapped
Acquisition module 41, determining module 42 and adjusting module 43 are included, details are as follows.
Wherein, the acquisition module 41, for obtaining angle change value of the user relative to the viewing visual angle of screen.
The determining module 42, for the corresponding relation according to default angle change value and colour temperature changing value, it is determined that with
The angle change is worth corresponding target colour temperature changing value.
The adjusting module 43, for according to the target colour temperature changing value, adjusting the colour temperature of the screen.
Shown in Figure 5 in the embodiment of the present invention, the acquisition module 41 includes detection sub-module 411, judging submodule
412 and acquisition submodule 413, details are as follows.
Wherein, the detection sub-module 411, for by front camera, sight of the detection user relative to the screen
See visual angle.
Whether the judging submodule 412, the viewing visual angle for judging to be detected in Preset Time changes.
The acquisition submodule 413, when the viewing visual angle for being detected in Preset Time changes, obtains user
Relative to the angle change value of the viewing visual angle of the screen.
Further, shown in Figure 5, the acquisition module 41 also includes detection sub-module 410.
The detection sub-module 410, for by the front camera and gravity sensor, user to be relative to institute for detection
State the direction of screen.
And the detection sub-module 411 is specifically for when user is detected positioned at the front of the screen, by described
Front camera, viewing visual angle of the detection user relative to the screen.
Specifically, shown in Figure 5, it is single that the detection sub-module 411 also includes that the first determining unit 4111, first is recognized
First 4112, second determining unit 4113 and the first computing unit 4114.
Wherein, first determining unit 4111, for by the front camera, determining user to the screen
First distance.
First recognition unit 4112, in the described first distance more than or equal to the first predetermined threshold value and less than the
During two predetermined threshold values, the first area in the image captured by the identification front camera shared by the first object.
Second determining unit 4113, for determine with described first apart from the default face of corresponding first object
Product.
Shown first computing unit 4114, for the preset area according to first object and first area, meter
Calculate viewing visual angle of the user relative to the screen.
Further, the detection sub-module 411 also includes the second recognition unit 4115, the 3rd determining unit 4116 and the
Two computing units 4117.
Wherein, second recognition unit 4115, for presetting threshold more than or equal to described second in the described first distance
Value and during less than or equal to three predetermined threshold values, recognizes in the image captured by the front camera the shared by the second object
Two areas.
3rd determining unit 4116, for determine with described first apart from the default face of corresponding second object
Product.
Second computing unit 4117, for preset area and the second area according to second object, meter
Calculate viewing visual angle of the user relative to the screen.
And first determining unit 4111 includes identification subelement and determination subelement.
Wherein, the identification subelement, for recognizing in the image captured by the front camera between user's eyes
Spacing.
The determination subelement, for according to the corresponding relation between default eyes distance value and screen distance value, really
First distance of the fixed user corresponding with the spacing between the user's eyes for recognizing to the screen.
Shown in Figure 6 in the embodiment of the present invention, the detection sub-module 411 includes the 4th determining unit the 4118, the 3rd
Recognition unit 4119, the 5th determining unit 41101 and the 3rd computing unit 41102.
Wherein, the 4th determining unit 4118, for by the front camera, determining user to the screen
Second distance.
3rd recognition unit 4119, for more than the 4th predetermined threshold value and default less than the 5th in the second distance
During threshold value, the mobile terminal area in the eyes of user in the image captured by the front camera is recognized.
5th determining unit 41101, for determining default mobile terminal area corresponding with the second distance.
3rd computing unit 41102, for according to the default mobile terminal area and the movement for recognizing
Terminal area, calculates viewing visual angle of the user relative to the screen.
The mobile terminal of the embodiment of the present invention, by obtaining angle change value of the user relative to the viewing visual angle of screen,
According to default angle change value and the corresponding relation of colour temperature changing value, it is determined that target colour temperature corresponding with angle change value
Changing value, according to the target colour temperature changing value, adjusts the colour temperature of the screen, can be by the sight to user relative to screen
The automatic detection at visual angle is seen, the colour temperature of real-time adjustment screen, so as to the angle of squint colour cast to screen is compensated, is not increasing screen
On the basis of curtain cost and thickness, angle of squint colour cast is effectively solved the problems, such as, it is ensured that the uniformity of display, optimize use
The display effect of screen is watched at family.
Shown in Figure 7, the embodiment of the present invention also provides a kind of mobile terminal 700, including at least one processor
701st, memory 702, at least one network interface 704 and user interface 703.Each component in mobile terminal 700 is by total
Linear system system 705 is coupled.It is understood that bus system 705 is used to realize the connection communication between these components.Bus system
705 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But for clear explanation
For the sake of, various buses are all designated as bus system 705 in the figure 7.
Wherein, user interface 703 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..The display is specially screen.
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 702 of system and method described herein be intended to including but not limited to these and it is any its
It is adapted to the memory of type.
In some embodiments, memory 702 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 7021 and application program 7022.
Wherein, operating system 7021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for
Realize various basic businesses and process hardware based task.Application program 7022, comprising various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 7022.
In embodiments of the present invention, by the program for calling memory 702 to store or instruction, specifically, can be application
The program stored in program 7022 or instruction, processor 701 are used to obtain angle change of the user relative to the viewing visual angle of screen
Change value, according to default angle change value and the corresponding relation of colour temperature changing value, it is determined that with the angle change corresponding mesh of value
Mark colour temperature changing value, according to the target colour temperature changing value, adjusts the colour temperature of the screen.
The method that the embodiments of the present invention are disclosed can apply in processor 701, or be realized by processor 701.
Processor 701 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 701 or software form.Above-mentioned treatment
Device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 702, processor 701 reads the information in memory 702, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realized for software, can be realized by performing the module (such as process, function etc.) of function described herein herein
Described technology.Software code is storable in memory and by computing device.Memory can within a processor or
Realize processor outside.
Alternatively, processor 701 is additionally operable to:By front camera, detection user regards relative to the viewing of the screen
Angle, judges whether the viewing visual angle detected in Preset Time changes, the viewing visual angle hair detected in Preset Time
During changing, angle change value of the user relative to the viewing visual angle of the screen is obtained.
Alternatively, processor 701 is additionally operable to:By the front camera and gravity sensor, detection user relative to
The direction of the screen, when user is detected positioned at the front of the screen, by the front camera, detects user's phase
For the viewing visual angle of the screen.
Alternatively, processor 701 is additionally operable to:By the front camera, determine user to the screen first away from
From in the described first distance more than or equal to the first predetermined threshold value and during less than the second predetermined threshold value, recognizing the preposition shooting
The first area in image captured by head shared by the first object, it is determined that with described first apart from corresponding first object
Preset area, preset area and first area according to first object calculate sight of the user relative to the screen
See visual angle.
Alternatively, processor 701 is additionally operable to:It is more than or equal to second predetermined threshold value in the described first distance and is less than
Or during equal to three predetermined threshold values, the second area in the image captured by the identification front camera shared by the second object,
It is determined that with described first apart from corresponding second object preset area, preset area and institute according to second object
Second area is stated, viewing visual angle of the user relative to the screen is calculated.
Alternatively, processor 701 is additionally operable to:Recognize in the image captured by the front camera between user's eyes
Spacing, according to the corresponding relation between default eyes distance value and screen distance value, it is determined that double with the user for recognizing
Eye between the corresponding user of spacing to the screen the first distance.
Alternatively, processor 701 is additionally operable to:By the front camera, determine user to the screen second away from
From in the second distance more than the 4th predetermined threshold value and during less than five predetermined threshold values, recognizing that the front camera is clapped
The mobile terminal area in eyes of user in the image taken the photograph, it is determined that default mobile terminal corresponding with the second distance
Area, according to the default mobile terminal area and the mobile terminal area for recognizing, calculates user relative to the screen
The viewing visual angle of curtain.
Mobile terminal 700 can realize each process of mobile terminal realization in previous embodiment, to avoid repeating, here
Repeat no more.
The mobile terminal 700 of the embodiment of the present invention, by obtaining angle change of the user relative to the viewing visual angle of screen
Value, according to default angle change value and the corresponding relation of colour temperature changing value, it is determined that with the angle change corresponding target of value
Colour temperature changing value, according to the target colour temperature changing value, adjusts the colour temperature of the screen, can by user relative to screen
Viewing visual angle automatic detection, real-time adjustment screen color temp, so as to be compensated to the angle of squint colour cast of screen, do not increasing
On the basis of screen cost and thickness, angle of squint colour cast is effectively solved the problems, such as, it is ensured that the uniformity of display, optimize
User watches the display effect of screen.
Fig. 8 is the structural representation of the mobile terminal of another embodiment of the invention.Specifically, the mobile terminal in Fig. 8
800 can be mobile phone, panel computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 800 in Fig. 8 includes radio frequency (Radio Frequency, RF) circuit 810, memory 820, input
Unit 830, display unit 840, processor 860, voicefrequency circuit 870, Wi-Fi (Wireless Fidelity) module 880 and electricity
Source 890.
Wherein, input block 830 can be used to receive the numeral or character information of user input, and produce and mobile terminal
800 user is set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 830 can
With including contact panel 831.Contact panel 831, also referred to as touch-screen, can collect user thereon or neighbouring touch operation
(such as user uses the operations of any suitable object or annex on contact panel 831 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment means.Optionally, contact panel 831 may include touch detecting apparatus and touch controller
Two parts.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
Give the processor 860 again, and the order sent of receiving processor 860 and can be performed.Furthermore, it is possible to using resistance-type,
The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 831.Except contact panel 831, input block
830 can also include other input equipments 832, and other input equipments 832 can include but is not limited to physical keyboard, function key
One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 840 can be used for display by the information of user input or be supplied to information and the movement of user
The various menu interfaces of terminal 800.Display unit 840 may include display panel 841, optionally, can use LCD or organic hairs
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 841.
It should be noted that contact panel 831 can cover display panel 841, touch display screen is formed, when touch display screen inspection
Measure thereon or after neighbouring touch operation, processor 860 is sent to determine the type of touch event, with preprocessor
860 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 860 is the control centre of mobile terminal 800, using various interfaces and connection whole mobile phone
Various pieces, by running or performing software program and/or module of the storage in first memory 821, and call storage
Data in second memory 822, perform the various functions and processing data of mobile terminal 800, so as to mobile terminal 800
Carry out integral monitoring.Optionally, processor 860 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 821 in software program and/or module and/
Or the data in the second memory 822, processor 860 is for obtaining angle change of the user relative to the viewing visual angle of screen
Value, according to default angle change value and the corresponding relation of colour temperature changing value, it is determined that with the angle change corresponding target of value
Colour temperature changing value, according to the target colour temperature changing value, adjusts the colour temperature of the screen.
Alternatively, processor 860 is additionally operable to:By front camera, detection user regards relative to the viewing of the screen
Angle, judges whether the viewing visual angle detected in Preset Time changes, the viewing visual angle hair detected in Preset Time
During changing, angle change value of the user relative to the viewing visual angle of the screen is obtained.
Alternatively, processor 860 is additionally operable to:By the front camera and gravity sensor, detection user relative to
The direction of the screen, when user is detected positioned at the front of the screen, by the front camera, detects user's phase
For the viewing visual angle of the screen.
Alternatively, processor 860 is additionally operable to:By the front camera, determine user to the screen first away from
From in the described first distance more than or equal to the first predetermined threshold value and during less than the second predetermined threshold value, recognizing the preposition shooting
The first area in image captured by head shared by the first object, it is determined that with described first apart from corresponding first object
Preset area, preset area and first area according to first object calculate sight of the user relative to the screen
See visual angle.
Alternatively, processor 860 is additionally operable to:It is more than or equal to second predetermined threshold value in the described first distance and is less than
Or during equal to three predetermined threshold values, the second area in the image captured by the identification front camera shared by the second object,
It is determined that with described first apart from corresponding second object preset area, preset area and institute according to second object
Second area is stated, viewing visual angle of the user relative to the screen is calculated.
Alternatively, processor 860 is additionally operable to:Recognize in the image captured by the front camera between user's eyes
Spacing, according to the corresponding relation between default eyes distance value and screen distance value, it is determined that double with the user for recognizing
Eye between the corresponding user of spacing to the screen the first distance.
Alternatively, processor 860 is additionally operable to:By the front camera, determine user to the screen second away from
From in the second distance more than the 4th predetermined threshold value and during less than five predetermined threshold values, recognizing that the front camera is clapped
The mobile terminal area in eyes of user in the image taken the photograph, it is determined that default mobile terminal corresponding with the second distance
Area, according to the default mobile terminal area and the mobile terminal area for recognizing, calculates user relative to the screen
The viewing visual angle of curtain.
It can be seen that, the mobile terminal 800 of the embodiment of the present invention, by obtaining angle of the user relative to the viewing visual angle of screen
Changing value, according to default angle change value and the corresponding relation of colour temperature changing value, it is determined that corresponding with angle change value
Target colour temperature changing value, according to the target colour temperature changing value, adjusts the colour temperature of the screen so that the viewing of user's bias colour ground
The screen, can be by the automatic detection to user relative to the viewing visual angle of screen, real-time adjustment screen color temp, so that right
The angle of squint colour cast of screen is compensated, and on the basis of screen cost and thickness is not increased, effectively solves angle of squint inclined
The problem of color, it is ensured that the uniformity of display, optimizes the display effect that user watches screen.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application
The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.