Summary of the invention
Embodiment of the invention technical problem to be solved is, a kind of method and terminal of regulating terminal screen brightness is provided, and can realize that terminal is according to the automatic adjusting screen brightness of the state of human eye.
In order to solve the problems of the technologies described above, embodiment of the invention first aspect provides a kind of method of regulating terminal screen brightness, and described method comprises:
Obtain the reference image information that comprises eyes of user;
Identification obtains pupil image information and the iris image information of eyes of user in the described reference image information that comprises eyes of user;
Pupil image information and the iris image information of the eyes of user that described identification is obtained compare;
According to described comparative result, brightness is regulated to terminal screen.
In the possible implementation of the first of first aspect, the pupil image information of the described eyes of user that described identification is obtained and iris image information compare and comprise:
Calculate the ratio of the comparative parameter of the comparative parameter of pupil image information of described eyes of user and described iris image information;
Described according to described comparative result, brightness is regulated and is comprised to terminal screen:
According to the described ratio that calculates described terminal screen brightness is regulated.
In conjunction with the possible implementation of the first of first aspect, in the possible implementation of the second, described described terminal screen brightness the adjusting according to the described ratio that calculates comprises:
If the described ratio that calculates is less, then the described object brightness that brightness is regulated to terminal screen is higher.
In conjunction with the possible implementation of the first of first aspect, in the third possible implementation, described comparative parameter comprises: diameter, radius or area.
In conjunction with first arbitrary implementation to the third possible implementation of first aspect or first aspect, in the 4th kind of possible implementation, described method also comprises:
Can't be in the described reference image information that comprises eyes of user identification obtain the pupil image information of eyes of user or iris image information and the described brightness that comprises the reference image information of eyes of user and satisfy when pre-conditioned, according to the brightness of the described reference image information that comprises eyes of user satisfy pre-conditioned, brightness is regulated to terminal screen.
In conjunction with the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, described according to the described satisfied condition of brightness that comprises the reference image information of eyes of user, brightness is regulated and is comprised to terminal screen:
If describedly comprise that the brightness of the reference image information of eyes of user is higher than the first predetermined threshold value, then transfers to the first goal-selling brightness with described terminal screen brightness;
If describedly comprise that the brightness of the reference image information of eyes of user is lower than the second predetermined threshold value, then described terminal screen brightness is transferred to the second goal-selling brightness, wherein said the second predetermined threshold value is lower than the first predetermined threshold value, and the second goal-selling brightness is lower than the first goal-selling brightness.
In conjunction with the arbitrary implementation in first to the 5th kind of possible implementation of first aspect or first aspect, in the 6th kind of possible implementation, described identification obtains eyes of user in the described reference image information that comprises eyes of user pupil image information and iris image information comprise:
In described reference image information, confirm the iris image information of described eyes of user according to default contrast picture.
In conjunction with the 6th kind of possible implementation of first aspect, in the 7th kind of possible implementation, the default contrast picture of described basis confirms that in described reference image information the iris image information of described eyes of user comprises:
In described reference image information, confirm the iris image information of described eyes of user according to the iris color of eyes of user in the described default contrast picture.
In conjunction with the arbitrary implementation in first to the 7th kind of possible implementation of first aspect or first aspect, in the 8th kind of possible implementation, described identification obtains eyes of user in the described reference image information that comprises eyes of user pupil image information and iris image information comprise:
Obtain the iris image information of described eyes of user according to the rgb value identification of each pixel in the described reference image information that comprises eyes of user.
In conjunction with the arbitrary implementation in first to the 7th kind of possible implementation of first aspect or first aspect, in the 9th kind of possible implementation, described identification obtains eyes of user in the described reference image information that comprises eyes of user pupil image information and iris image information also comprise:
Obtain the pupil image information of described eyes of user according to the rgb value identification of each pixel in the described iris image information.
In conjunction with first aspect or first aspect the first to the 9th in arbitrary implementation in the possible implementation, described according to described comparative result in the tenth kind of possible implementation, brightness is regulated and is comprised to terminal screen:
At default pupil image information and the comparative result of iris image information and the corresponding relation between the terminal screen brightness value, obtain terminal screen brightness value corresponding to described comparative result according to described comparative result;
With the terminal screen brightness regulation to terminal screen brightness value corresponding to described comparative result that get access to and described.
Correspondingly, embodiment of the invention second aspect also provides a kind of terminal of automatic adjusting screen brightness, and described terminal comprises:
Eye image acquisition of information module is used for obtaining the reference image information that comprises eyes of user;
Identification module is used for comprising that described the reference image information identification of eyes of user obtains pupil image information and the iris image information of eyes of user;
Comparison module, pupil image information and the iris image information of the eyes of user that described identification is obtained compare;
The brightness regulation module is used for the comparative result according to described comparison module, and brightness is regulated to terminal screen.
In the possible implementation of the first of second aspect, described comparison module specifically is used for: the ratio that calculates the comparative parameter of the comparative parameter of pupil image information of described eyes of user and described iris image information;
Described brightness regulation module specifically is used for: according to the described ratio that calculates described terminal screen brightness is regulated.
In conjunction with the possible implementation of the first of second aspect, in the possible implementation of the second, described brightness regulation module is regulated described terminal screen brightness according to the described ratio that calculates and is comprised:
If the described ratio that calculates is less, then the described object brightness that brightness is regulated to terminal screen is higher.
In conjunction with the possible implementation of the first of second aspect, in the third possible implementation, described comparative parameter comprises: diameter, radius or area.
In conjunction with second aspect or second aspect the first to the 3rd in arbitrary implementation in the possible implementation, in the 4th kind of possible implementation of second aspect, described terminal also comprises:
Brightness really is worth module, being used for can't obtaining the pupil image information of eyes of user or iris image information and the described brightness that comprises the reference image information of eyes of user in the described reference image information identification that comprises eyes of user at described identification module satisfies when pre-conditioned, according to the brightness of the described reference image information that comprises eyes of user satisfy pre-conditioned, brightness is regulated to terminal screen
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation, described brightness really is worth module and comprises:
The first true value cell is if comprise that for described the brightness of the reference image information of eyes of user is higher than the first predetermined threshold value, then transfers to the first goal-selling brightness with described terminal screen brightness;
The second true value cell, if comprise that for described the brightness of the reference image information of eyes of user is lower than the second predetermined threshold value, then described terminal screen brightness is transferred to the second goal-selling brightness, wherein said the second predetermined threshold value is lower than the first predetermined threshold value, and the second goal-selling brightness is lower than the first goal-selling brightness.
In conjunction with second aspect or second aspect the first to the 5th in arbitrary implementation in the possible implementation, in the 6th kind of possible implementation of second aspect, described identification module comprises:
The picture comparing unit is used for according to the iris image information of default contrast picture at the described eyes of user of described reference image information affirmation.
The 6th kind of possible implementation in conjunction with second aspect, in the 7th kind of possible implementation, described picture comparing unit specifically is used for: the iris image information of confirming described eyes of user according to the iris color of described default contrast picture eyes of user in described reference image information.
In conjunction with second aspect or second aspect the first to the 7th in arbitrary implementation in the possible implementation, in the 8th kind of possible implementation of second aspect, described identification module comprises:
The color recognition unit is used for obtaining according to the rgb value identification of each pixel of the described reference image information that comprises eyes of user the iris image information of described eyes of user.
In conjunction with second aspect or second aspect the first to the 8th in arbitrary implementation in the possible implementation, in the 9th kind of possible implementation, described identification module also comprises:
The pupil recognition unit is used for obtaining according to the rgb value identification of each pixel of described iris image information the pupil image information of described eyes of user.
In conjunction with second aspect and second aspect the first to the 9th in arbitrary implementation in the possible implementation, in the tenth kind of possible implementation, described brightness regulation module comprises:
Mapping luminance acquisition unit is used for according to described comparative result obtaining terminal screen brightness value corresponding to described comparative result at default pupil image information and the comparative result of iris image information and the corresponding relation between the terminal screen brightness value;
Brightness adjusting unit is used for the terminal screen brightness value corresponding with described comparative result that terminal screen brightness regulation to described mapping luminance acquisition unit is got access to.
The embodiment of the invention is by obtaining the reference image information of eyes of user, comparative result according to pupil in the reference image information and iris is regulated the brightness of terminal screen, can realize that terminal according to the automatic adjusting screen brightness of the state of human eye, guarantees to meet user's requirement.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 is a kind of schematic flow sheet of regulating the method for terminal screen brightness in the embodiment of the invention, the present invention can realize at all kinds of display screen and the filming apparatus of having, on the terminal such as camera, the method flow in the present embodiment can comprise as shown in the figure:
S101 obtains the reference image information that comprises eyes of user.
In the specific implementation, terminal can be opened the function of automatic adjusting screen brightness of terminal or program (in optional embodiment according to the instruction of user input, also can be the instruction without user's input, open function or the program of automatic adjusting screen brightness such as acquiescence behind the starting up of terminal), after opening this function or program, start the filming apparatus of terminal, obtain the reference image information that comprises eyes of user such as internal or external camera, the front-facing camera of portable terminal for example, the external camera of PC etc.; Optionally can also be according to the predefined time interval, the reference image information that collection regularly comprises eyes of user obtains reference image information 1 time every 100 milliseconds when for example opening; Optional also can judge whether according to default condition to stop to obtain or again obtain reference picture, if temporarily stop to obtain reference image information and carry out follow-up brightness regulation step less than 5% such as the image information difference that gets access to for continuous 3 times, the time interval (for example 30 seconds) that arranges according to the user behind the success brightness adjusting is obtained reference image information again, if simultaneously screen because block or the overtime screen that goes out after will stop the collection of reference image information.
Further, although the present embodiment is the filming apparatus that adopts on the terminal, obtain the reference image information that comprises eyes of user such as camera, this does not consist of restriction.Such as on the terminal camera can not being set, but terminal can be obtained the image information that other accessories are taken; Although perhaps be provided with camera on the terminal, terminal also can be obtained image information of other accessories shootings etc.
S102, identification obtains pupil image information and the iris image information of eyes of user in the described reference image information that comprises eyes of user.
In the specific implementation, can carry out preliminary treatment with reference to image information first, for example comprise gray scale, sharpening processing procedure, then in treated image information, identify iris region according to default rule, two following conditions for example: RGB(RED is red in (1) zone, GREEN is green, BLUE is blue, be a kind of color standard of extensive employing, the stack of the component by three kinds of colors of RGB obtains and represents a kind of color) be that 0 continuous pixel is greater than 900; (2) zone approaches circular; If find the zone of satisfying above-mentioned two conditions in the reference image information, then with its candidate region as iris, and then from the center of circle (or regional center) of candidate region, begin outwards to search from horizontal direction and can find a rgb value critical point jumpy (for example being set as the RGB difference greater than 100), then increase by 5 degree on this direction basis or reduce by 5 degree and carry out same searching also and can find similar critical point, if successful search to 3 or the critical point more than 3 in the candidate region, and these critical points are arrived the distance in the center of circle (or regional center) less than predetermined threshold value (for example 3 pixels), so just can determine that this is iris image information by the determined circle of some critical points (or approaching circular) zone.After identifying iris image information, can in iris image information, obtain according to the center of circle search rule center of circle of iris, because the center of circle of iris also is the center of circle of pupil, can search rgb value toward any direction from the iris center of circle increases to the point of proximity more than 50 suddenly from 0, find 3 such critical points just can confirm the extension of pupil, thereby identification obtain pupil image information.
Optionally, can also be according to the position of contrast picture assist location eyes of user in reference image information of pre-save, and then identification obtains pupil image information and iris image information, for example according to the position of shape consumer positioning eyes in reference picture of eyes of user in the contrast picture, and then can also in reference image information, identify according to the color of eyes of user iris and/or pupil in the contrast picture iris image information and/or the pupil image information of eyes of user.Described contrast picture can be one or more iris image information that comprise eyes of user that get access in advance, can manually be chosen at by the user scope of eyes in the contrast picture, terminal is carried out the identification of iris and pupil automatically to the picture of irising out, the iris that identifies and pupil are marked out prompting user with colored line to be confirmed, if identification is correct, terminal can be according to obtaining the holding instruction putting into picture library through the contrast picture of confirming of user input, otherwise picture is dropped, the comparison diagram valut that a plurality of different users of same terminal can be set up respectively oneself corresponding to separately user name or account.
S103, pupil image information and the iris image information of the eyes of user that described identification is obtained compare.
In the specific implementation, can calculate the ratio of the comparative parameter of the comparative parameter of pupil image information of described eyes of user and described iris image information, described comparative parameter can comprise any in diameter, radius or the area.
S104, according to described comparative result, brightness is regulated to terminal screen, for example as the comparative parameter of above-mentioned pupil image information by calculating eyes of user and as described in the ratio of comparative parameter of iris image information, if the described ratio that calculates is less, then the described object brightness that brightness is regulated to terminal screen is higher.
In the specific implementation, the ratio of comparative parameter of the comparative parameter of as directed pupil image information and iris image information and the mapping table between the terminal screen brightness can be set in terminal in advance.
| The ratio A of the comparative parameter of pupil and iris | Screen intensity (0 is the darkest, and 100% is the brightest) |
| A≥0.1 | 0 |
| A<0.1&A≥0.08 | 20% |
| A<0.08&A≥0.06 | 40% |
| A<0.06&A≥0.04 | 60% |
| A<0.04&A≥0.02 | 80% |
| A<0.02 | 100% |
Table 1: the mapping table (example) of the ratio of the comparative parameter of pupil and iris and terminal screen brightness
Specifically can comprise: in above-mentioned mapping table, search corresponding terminal screen brightness value according to described comparative result; With the terminal screen brightness regulation to terminal screen brightness value corresponding to described comparative result that find and described.After terminal obtains described ratio, can from mapping table, get access to screen intensity value corresponding to this ratio, with adjusting screen brightness like this.
Optionally, the pupil image information of the eyes of user that gets access to as S103 is different from the front result who once gets access to the result that iris image information compares, the side regulates the brightness of terminal screen according to the mapping relations shown in the upper table, to realize reducing to a certain extent the data number of processes, reduce system power dissipation.
In other optional embodiment, the corresponding regulative mode of the result that also can adopt other and pupil image information and the iris image information of eyes of user to compare to terminal screen brightness regulate, for example the ratio of the comparative parameter of the comparative parameter of above-mentioned pupil image information by calculating eyes of user and described iris image information is greater than 0.05, then terminal screen brightness is dimmed 5%, otherwise then lighten 5%, can realize goal of the invention of the present invention equally through the process of repeatedly obtaining comparative result and adjusting, namely according to the automatic adjusting screen brightness of the state of human eye, guarantee to meet user's requirement.
Fig. 2 is the schematic flow sheet of regulating the method for terminal screen brightness in another embodiment of the present invention, what the present embodiment was described is the example that causes can't successfully identifying pupil image information and iris image information because of environmental factor in the reference image information that gets access to, and the method flow in the present embodiment can comprise as shown in the figure:
S201 obtains the reference image information that comprises eyes of user.Identical with the S101 among the last embodiment, the present embodiment repeats no more.
S202 confirms that in the described reference image information that comprises eyes of user None-identified obtains pupil image information or the iris image information of eyes of user.
In the specific implementation, cause the reason of None-identified may have multiple, for example night, ambient light more secretly caused reference image information partially dark, or caused too by force reference image information to turn white at outdoor direct sunlight light, or because the shake of user self or terminal causes reference image information to blur etc.
S203, judge the described brightness that comprises the reference image information of eyes of user whether satisfy pre-conditioned, if, then carry out S204, again obtain otherwise can abandon current reference image information, namely re-execute S201.
In the specific implementation, describedly pre-conditionedly can comprise that the brightness of reference image information is higher than the first predetermined threshold value or is lower than the second predetermined threshold value, wherein said the second predetermined threshold value is lower than the first predetermined threshold value, if the brightness of reference image information then can abandon current reference image information between the first predetermined threshold value and the second predetermined threshold value.
S204, according to the described satisfied condition of brightness that comprises the reference image information of eyes of user, brightness is regulated to terminal screen.
Concrete, if describedly comprise that the brightness of the reference image information of eyes of user is higher than the first predetermined threshold value, illustrate that ambient light is darker, described terminal screen brightness can be transferred to the first goal-selling brightness, if describedly comprise that the brightness of the reference image information of eyes of user is lower than the second predetermined threshold value, illustrate that light too can be to transfer to the second goal-selling brightness with described terminal screen brightness, wherein the second goal-selling brightness is lower than the first goal-selling brightness, the first goal-selling brightness can be the maximum brightness of terminal support, and the second goal-selling brightness can be the minimum brightness that terminal is supported.The present embodiment does not limit first, second predetermined threshold value, and those skilled in the art can after understanding the spirit of the embodiment of the invention, determine as required.
Fig. 3 is the idiographic flow schematic diagram to identifying in the reference image information that comprises eyes of user in the embodiment of the invention, comprises as shown in the figure:
S301 obtains the reference image information that comprises eyes of user.
S302 judges whether default contrast picture.In the specific implementation, can judge in the comparison diagram valut of terminal whether the contrast picture is arranged, can also judge further in comparison diagram valut corresponding to the user's that terminal is current account whether the contrast picture is arranged, if then carry out S303, otherwise carry out S304.It is pointed out that and in other optional embodiment, can not carry out S302 and directly carry out S303 or S304 and follow-up S305.
S303 confirms the iris image information of described eyes of user in described reference image information according to default contrast picture.In the specific implementation, can be according to the position of contrast picture assist location eyes of user in reference image information of pre-save, and then identification obtains pupil image information and iris image information, for example according to the position that contrasts shape consumer positioning eyes in reference picture of eyes of user in the picture, and then can also in reference image information, identify according to the color of eyes of user iris in the contrast picture iris image information of eyes of user, as obtain the rgb value of eyes of user iris in the contrast picture, then obtain the iris image information of described eyes of user according to the rgb value identification of each pixel in the described reference image information that comprises eyes of user.
S304 obtains the iris image information of described eyes of user according to the rgb value identification of each pixel in the described reference image information that comprises eyes of user.In the specific implementation, can carry out preliminary treatment with reference to image information first, for example comprise gray scale, sharpening processing procedure, then identify iris region according to default rule in treated image information, for example two following conditions: RGB is that 0 continuous pixel is greater than 900 in (1) zone; (2) zone approaches circular; If find the zone of satisfying above-mentioned two conditions in the reference image information, then with its candidate region as iris, and then from the center of circle (or regional center) of candidate region, begin outwards to search from horizontal direction and can find a rgb value critical point jumpy (for example being set as the RGB difference greater than 100), then increase by 5 degree on this direction basis or reduce by 5 degree and carry out same searching also and can find similar critical point, if successful search to 3 or the critical point more than 3 in the candidate region, and these critical points are arrived the distance in the center of circle (or regional center) less than predetermined threshold value (for example 3 pixels), so just can determine that this is iris image information by the determined circle of some critical points (or approaching circular) zone.
S305 identifies the pupil image information that obtains described eyes of user according to the rgb value of each pixel in the described iris image information.In the specific implementation, after identifying iris image information, can in iris image information, obtain according to the center of circle search rule center of circle of iris, because the center of circle of iris also is the center of circle of pupil, can search rgb value toward any direction from the iris center of circle increases to the point of proximity more than 50 suddenly from 0, find 3 such critical points just can confirm the extension of pupil, thereby identification obtain pupil image information.Described center of circle search rule is for example shown in Fig. 8, in iris image information, draw two mutual uneven straight line L1 and L2 of passing through, the circular boundary that straight line must pass iris for twice is passed through in requirement, line segment between two intersection points of every circular boundary that passes through straight line and iris is made perpendicular bisector L3 and L4, and the intersection point of two perpendicular bisectors is exactly the center of circle of iris.In other optional embodiment, also can in reference image information, confirm according to the color of the pupil of eyes of user in the contrast picture iris image information of described eyes of user.
Fig. 4 is the structural representation of the terminal of a kind of automatic adjusting screen brightness in the embodiment of the invention, and the terminal in the embodiment of the invention can be all kinds of terminals that have display screen and camera, can comprise at least as shown in the figure:
Eye image acquisition ofinformation module 410 is used for obtaining the reference image information that comprises eyes of user.
In the specific implementation, terminal can be opened the function of automatic adjusting screen brightness of terminal or program (in optional embodiment according to the instruction of user input, also can be the instruction without user's input, open function or the program of automatic adjusting screen brightness such as acquiescence behind the starting up of terminal), after opening this function or program, eye image acquisition of information module 410 starts the filming apparatus of terminal, obtain the reference image information that comprises eyes of user such as internal or external camera, the front-facing camera of portable terminal for example, the external camera of PC etc.; Optional eye image acquisition of information module 410 can also be according to the predefined time interval, and the reference image information that collection regularly comprises eyes of user obtains reference image information 1 time every 100 milliseconds when for example opening; Optional also can judge whether according to default condition to stop to obtain or again obtain reference picture, if if such as the image information difference that gets access to for continuous 3 times less than 5% then temporarily stop to obtain reference image information and trigger other modules and carry out follow-up brightness regulation, eye image acquisition of information module 410 can also be obtained reference image information again according to the time interval (for example 30 seconds) that the user arranges behind the success brightness adjusting, if simultaneously screen because block or the overtime screen that goes out after eye image acquisition of information module 410 will stop the collection of reference image information.Further, although the present embodiment is the filming apparatus that adopts on the terminal, obtain the reference image information that comprises eyes of user such as camera, this does not consist of restriction.Such as on the terminal camera can not being set, but terminal can be obtained the image information that other accessories are taken; Although perhaps be provided with camera on the terminal, terminal also can be obtained image information of other accessories shootings etc.
Identification module 420, be used for comprising that described the reference image information identification of eyes of user obtains pupil image information and the iris image information of eyes of user, when successfully identifying pupil image information and the iris image information that obtains eyes of user, then triggercomparison module 430 andbrightness regulation module 440 and carry out corresponding brightness regulation, if confirm in reference image information, to identify pupil image information and the iris image information of eyes of user, then triggerbrightness judge module 450 and brightness and really be worth module and carry out follow-up processing, the identification module in thepresent embodiment 420 may further include as shown in Figure 5:
Picture comparing unit 421 is used for according to the iris image information of default contrast picture at the described eyes of user of described reference image information affirmation.Described contrast picture can be one or more iris image information that comprise eyes of user that get access in advance, can manually be chosen at by the user scope of eyes in the contrast picture, terminal is carried out the identification of iris and pupil automatically to the picture of irising out, the iris that identifies and pupil are marked out prompting user with colored line to be confirmed, if identification is correct, terminal can be according to obtaining the holding instruction putting into picture library through the contrast picture of confirming of user input, otherwise picture is dropped, the comparison diagram valut that a plurality of different users of same terminal can be set up respectively oneself corresponding to separately user name or account.Picture comparing unit 421 specifically can identify according to the color of the iris of eyes of user in the described default contrast picture and/or pupil iris image information and/or the pupil image information of eyes of user in reference image information, as obtain the rgb value of eyes of user iris in the contrast picture, then obtain the iris image information of described eyes of user according to the rgb value identification of each pixel in the described reference image information that comprises eyes of user.
Color recognition unit 422 is used for obtaining according to the rgb value identification of each pixel of the described reference image information that comprises eyes of user the iris image information of described eyes of user.In the specific implementation, color recognition unit 422 can carry out preliminary treatment with reference to image information first, for example comprise gray scale, sharpening processing procedure, then identify iris region according to default rule in treated image information, for example two following conditions: RGB is that 0 continuous pixel is greater than 900 in (1) zone; (2) zone approaches circular; If find the zone of satisfying above-mentioned two conditions in the reference image information, then color recognition unit 422 is with its candidate region as iris, and then from the center of circle (or regional center) of candidate region, begin outwards to search from horizontal direction and can find a rgb value critical point jumpy (for example being set as the RGB difference greater than 100), then increase by 5 degree on this direction basis or reduce by 5 degree and carry out same searching also and can find similar critical point, if successful search to 3 or the critical point more than 3 in the candidate region, and these critical points are arrived the distance in the center of circle (or regional center) less than predetermined threshold value (for example 3 pixels), so just can determine that this is iris image information by the determined circle of some critical points (or approaching circular) zone.It is to be noted, in optional embodiment, automatically the identification module 420 of the terminal of adjusting screen brightness can only comprise one of them in picture comparing unit 421 and the color recognition unit 422, also can comprise simultaneously above-mentioned two modules, the iris image information of according to circumstances using one of them to identify eyes of user in reference image information is enabled in the time of also can be by both and is realized recognition result is mutually confirmed or revises.
Pupil recognition unit 423 is used for obtaining according to the rgb value identification of each pixel of described iris image information the pupil image information of described eyes of user.In the specific implementation, afterpicture comparing unit 421 orcolor recognition unit 422 identify iris image information,pupil recognition unit 423 can obtain according to the center of circle search rule center of circle of iris in iris image information, because the center of circle of iris also is the center of circle of pupil, can search rgb value toward any direction from the iris center of circle increases to the point of proximity more than 50 suddenly from 0, find 3 such critical pointpupil recognition units 423 just can confirm the extension of pupil, thereby identification obtain pupil image information.
Comparison module 430, pupil image information and the iris image information of the eyes of user that described identification is obtained compare.In the specific implementation,comparison module 430 can calculate the ratio of the comparative parameter of the comparative parameter of pupil image information of described eyes of user and described iris image information, and described comparative parameter can comprise any in diameter, radius or the area.
Brightness regulation module 440 is used for the comparative result according to describedcomparison module 430, and brightness is regulated to terminal screen.The ratio of the comparative parameter of the comparative parameter of thecomparison module 430 pupil image information by calculating eyes of user and described iris image information for example, if the described ratio that calculates is less, then thebrightness regulation module 440 described object brightnesses that brightness is regulated to terminal screen are higher.Optionally, thebrightness regulation module 440 in the embodiment of the invention can further comprise as shown in Figure 7:
Mappingluminance acquisition unit 441 is used for searching corresponding terminal screen brightness value in default pupil image information and the comparative result of iris image information with the mapping table between the terminal screen brightness value according to described comparative result.In the specific implementation, can be in advance at the ratio of the comparative parameter of the comparative parameter that the pupil image information shown in preamble table 1 is set in the terminal and iris image information and the mapping table between the terminal screen brightness, get access to behind time comparative result atcomparison module 430, in above-mentioned mapping table, search corresponding terminal screen brightness value by mappingluminance acquisition unit 441.
Brightness adjusting unit 442 is used for the terminal screen brightness value corresponding with described comparative result that terminal screen brightness regulation to described mapping luminance acquisition unit is got access to.In the specific implementation, the corresponding terminal screen brightness value that the result is different from the front comparative result that once gets access to or mappingluminance acquisition unit 441 gets access to that the pupil image information that can work as the eyes of user thatcomparison module 430 gets access to and iris image information compare and front once get access to not simultaneously, brightness adjusting unit 442 sides regulate the brightness of terminal screen according to the mapping relations shown in the table 1, to realize reducing to a certain extent the data number of processes, reduce system power dissipation.
In other optional embodiment, the corresponding regulative mode of the result thatbrightness regulation module 440 also can adopt other and pupil image information and the iris image information of eyes of user to compare to terminal screen brightness regulate, for example the ratio of the comparative parameter of the comparative parameter of above-mentioned pupil image information by calculating eyes of user and described iris image information is greater than 0.05, then terminal screen brightness is dimmed 5%, otherwise then lighten 5%, can realize goal of the invention of the present invention equally through the process of repeatedly obtaining comparative result and adjusting, namely according to the automatic adjusting screen brightness of the state of human eye, guarantee to meet user's requirement.
Brightness really isworth module 450, being used for can't obtaining the pupil image information of eyes of user or iris image information and the described brightness that comprises the reference image information of eyes of user in the described reference image information identification that comprises eyes of user at describedidentification module 420 satisfies when pre-conditioned, according to the brightness of the described reference image information that comprises eyes of user satisfy pre-conditioned, brightness is regulated to terminal screen.Optionally as shown in Figure 6, the brightness in the embodiment of the invention really isworth module 450 and may further includebrightness judging unit 451, the firsttrue value cell 452 and the secondtrue value cell 453, wherein:
Brightness judging unit 451 is used for can't judging when the described reference image information that comprises eyes of user is identified the pupil image information that obtains eyes of user and iris image information when described identification module 420 describedly comprising whether the brightness of the reference image information of eyes of user is satisfied pre-conditioned.In the specific implementation, cause the reason of None-identified may have multiple, for example night, ambient light more secretly caused reference image information partially dark, or caused too by force reference image information to turn white at outdoor direct sunlight light, or because the shake of user self or terminal causes reference image information to blur etc.When described identification module can't be in the described reference image information that comprises eyes of user identification when obtaining the pupil image information of eyes of user and iris image information, brightness judging unit 451 can be judged and describedly comprises whether the brightness of the reference image information of eyes of user is satisfied pre-conditioned, if, then trigger the first true value cell 452 or the second true value cell 453 and carry out corresponding brightness regulation, again obtain reference image information otherwise can abandon current reference image information triggering eye image acquisition of information module 410.Describedly pre-conditionedly can comprise that the brightness of reference image information is higher than the first predetermined threshold value or is lower than the second predetermined threshold value, wherein said the second predetermined threshold value is lower than the first predetermined threshold value, if the brightness of reference image information is between the first predetermined threshold value and the second predetermined threshold value, brightness judge module 451 can abandon current reference image information.In optional embodiment, brightness really is worth the module 450 optional brightness judge modules 451 that do not comprise, but that the brightness of reference image information is satisfied in the brightness judged result that provides according to external module is pre-conditioned, and brightness is regulated to terminal screen.The present embodiment does not limit first, second predetermined threshold value, and those skilled in the art can after understanding the spirit of the embodiment of the invention, determine as required.
If the firsttrue value cell 452 comprises that for described the brightness of the reference image information of eyes of user is higher than the first predetermined threshold value, then transfers to the first goal-selling brightness with described terminal screen brightness.Concrete, if describedly comprise that the brightness of the reference image information of eyes of user is higher than the first predetermined threshold value, illustrate that ambient light is darker, the firsttrue value cell 452 can transfer to the first goal-selling brightness with described terminal screen brightness, and the first goal-selling brightness can be the maximum brightness of terminal support.
If the secondtrue value cell 453 comprises that for described the brightness of the reference image information of eyes of user is lower than the second predetermined threshold value, then described terminal screen brightness is transferred to the second goal-selling brightness, wherein said the second predetermined threshold value is lower than the first predetermined threshold value, and the second goal-selling brightness is lower than the first goal-selling brightness.Concrete, describedly comprise that the brightness of the reference image information of eyes of user is lower than the second predetermined threshold value, illustrate that light is too sufficient, the secondtrue value cell 453 can transfer to the second goal-selling brightness with described terminal screen brightness, wherein the second goal-selling brightness is lower than the first goal-selling brightness, and the second goal-selling brightness can be the minimum brightness of terminal support.
Fig. 9 shows the another kind of structural representation that is used for the terminal of adjustable screen brightness.Terminal in the present embodiment can comprise:processor 901,memory 902,filming apparatus 905 and communication interface 903.Memory 902 is used for programcode stored.Processor 901 is used for the program code of executestore 902 storages, comprises carrying out following operation:
Obtain the reference image information that comprises eyes of user by filmingapparatus 905; Identification obtains pupil image information and the iris image information of eyes of user in the described reference image information that comprises eyes of user; Pupil image information and the iris image information of the eyes of user that described identification is obtained compare; According to described comparative result, brightness is regulated to terminal screen.
Further, the pupil image information of the described eyes of user that described identification is obtained and iris image information compare and comprise:
Calculate the ratio of the comparative parameter of the comparative parameter of pupil image information of described eyes of user and described iris image information;
Described according to described comparative result, brightness is regulated and is comprised to terminal screen:
According to the described ratio that calculates described terminal screen brightness is regulated.
Further, described described terminal screen brightness the adjusting according to the described ratio that calculates comprises:
If the described ratio that calculates is less, then the described object brightness that brightness is regulated to terminal screen is higher.
Further, described comparative parameter comprises: diameter, radius or area.
Further, describedprocessor 901 also is used for carrying out following operation:
Can't be in the described reference image information that comprises eyes of user identification obtain the pupil image information of eyes of user or iris image information and the described brightness that comprises the reference image information of eyes of user and satisfy when pre-conditioned, according to the brightness of the described reference image information that comprises eyes of user satisfy pre-conditioned, brightness is regulated to terminal screen.
Further, described according to the described satisfied condition of brightness that comprises the reference image information of eyes of user, brightness is regulated and is comprised to terminal screen:
If describedly comprise that the brightness of the reference image information of eyes of user is higher than the first predetermined threshold value, then transfers to the first goal-selling brightness with described terminal screen brightness;
If describedly comprise that the brightness of the reference image information of eyes of user is lower than the second predetermined threshold value, then described terminal screen brightness is transferred to the second goal-selling brightness, wherein said the second predetermined threshold value is lower than the first predetermined threshold value, and the second goal-selling brightness is lower than the first goal-selling brightness.
Further, described identification obtains eyes of user in the described reference image information that comprises eyes of user pupil image information and iris image information comprise:
In described reference image information, confirm the iris image information of described eyes of user according to default contrast picture.
Further, the default contrast picture of described basis confirms that in described reference image information the iris image information of described eyes of user comprises:
In described reference image information, confirm the iris image information of described eyes of user according to the iris color of eyes of user in the described default contrast picture.
Further, described identification obtains eyes of user in the described reference image information that comprises eyes of user pupil image information and iris image information comprise:
Obtain the iris image information of described eyes of user according to the rgb value identification of each pixel in the described reference image information that comprises eyes of user.
Further, described identification obtains eyes of user in the described reference image information that comprises eyes of user pupil image information and iris image information also comprise:
Obtain the pupil image information of described eyes of user according to the rgb value identification of each pixel in the described iris image information.
Further, described according to described comparative result, brightness is regulated and is comprised to terminal screen:
Pupil image information and the comparative result of iris image information and the corresponding relation between the terminal screen brightness value according to default obtain terminal screen brightness value corresponding to described comparative result;
With the terminal screen brightness regulation to terminal screen brightness value corresponding to described comparative result that get access to and described.
Communication interface 903 is used for and external device communication, as carrying out wired or wireless exchanges data with other user terminals or communicating by letter.Wherein,processor 901 is processed the message thatcommunication interface 903 receives according to the program code in thememory 902, and mutual bycommunication interface 903 andexternal equipment.Processor 901 can be central processing unit (central processing unit, CPU), application-specific integrated circuit (ASIC) (application-specific integrated circuit, ASIC) etc.Wherein, the business control device in the present embodiment can comprise bus 904.Can connect and communication bybus 904 betweenprocessor 901,memory 902,filming apparatus 905 and the communication interface 903.Wherein,memory 902 can comprise: random access memory (random access memory, RAM), and read-only memory (read-only memory, ROM), disks etc. have the entity of memory function.
The embodiment of the invention is by obtaining the reference image information of eyes of user, comparative result according to pupil in the reference image information and iris is regulated the brightness of terminal screen, can realize that terminal according to the automatic adjusting screen brightness of the state of human eye, guarantees to meet user's requirement.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, to come the relevant hardware of instruction to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process such as the embodiment of above-mentioned each side method when carrying out.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 preferred embodiment of the present invention only, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.