Summary of the invention
The purpose of the embodiment of the present invention is to provide a kind of and moves by eyes method and the device of adjusting the terminal font size, is intended to solve existingly by the far and near terminal font size of adjusting of distance, to the user, bring inconvenient problem.
The embodiment of the present invention is achieved in that a kind ofly moves by eyes the method for adjusting the terminal font size, and described method comprises step:
Catch the eyes action in terminal screen the place ahead;
At least one standard eyes action default in the action of the eyes that capture and terminal is mated;
When the match is successful with a certain standard eyes action when the eyes action that captures,, according to mapping relations and the described standard eyes that the match is successful the action of default eyes action with the font adjusting operation, carry out font adjusting operation corresponding to the described standard eyes that the match is successful action.
Further, described font adjusting operation is specially:
Zoom in or out the font size of terminal according to default adjusting range.
Further, font adjusting operation corresponding to the described execution standard eyes that the match is successful action comprises:
When the eyes action of described seizure was continuous several times, described terminal was carried out the continuous variation of font according to the eyes action of described continuous several times.
Further, font adjusting operation corresponding to the described execution standard eyes that the match is successful action also comprises:
When described eyes action only relates to the subregion of terminal screen, local font adjusting operation is carried out in described subregion.
Further, in the eyes action of carrying out described seizure terminal screen the place ahead, also comprise:
Record the actuation time of described eyes action;
Judge and whether surpass default time threshold described actuation time;
Surpass default time threshold when described actuation time, the eyes that will capture action is mated with interior at least one the default standard eyes action of terminal, otherwise process ends.
The present invention also proposes a kind ofly by eyes, to move the device of adjusting the terminal font size, and described device comprises:
Capture module, be used for catching the eyes action in terminal screen the place ahead;
Matching module, be used for the eyes that will capture action and mate with interior at least one the default standard eyes action of terminal;
The font adjusting module, when the match is successful with a certain standard eyes action for the action of the eyes when capturing,, according to mapping relations and the described standard eyes that the match is successful the action of default eyes action with the font adjusting operation, carry out font adjusting operation corresponding to the described standard eyes that the match is successful action.
Further, described font adjusting operation is specially:
Zoom in or out the font size of terminal according to default adjusting range.
Further, described font adjusting module comprises:
Change unit, be used for when the eyes action of described seizure is continuous several times continuously, and described terminal is carried out the continuous variation of font according to the eyes action of described continuous several times.
Further, described font adjusting module also comprises:
Local adjustment unit, be used for, when described eyes action only relates to the subregion of terminal screen, local font adjusting operation is carried out in described subregion.
Further, described device also comprises:
Logging modle, be used for recording the actuation time that described eyes move;
Judge module, be used for judging whether surpass default time threshold described actuation time; And when described actuation time, surpass default time threshold, change at least one standard eyes action default in eyes action that matching module will capture and terminal over to and mate, otherwise be failure to actuate.
The embodiment of the present invention is adjusted terminal font by daily eyes action, forms a kind of natural man-machine interaction, has improved user's experience.The embodiment of the present invention is supported the continuous action of eyes, and this continuous action can trigger a corresponding coherent font adjusting operation, makes the variation of word size more freely.The embodiment of the present invention both can meet the integral body adjustment of word in addition, also can meet the part adjustment of word, had further promoted user experience.
Embodiment
, in order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Embodiment one
The embodiment of the present invention one proposes a kind ofly by eyes, move the method for adjustment terminal font size.As shown in Figure 1, the method for the embodiment of the present invention one comprises the steps:
The eyes action in step S1, seizure terminal screen the place ahead.The terminal of the embodiment of the present invention one catches the eyes action in screen the place ahead by built-in or external infrared ray sensor or camera, the eyes action at this place mainly the finger eyeball stare action, blink, the action such as open eyes.Terminal can be extracted the screen area that eyeball is paid close attention to from the eyes action that captures.
Step S2, eyes action and the interior default eyes behavior aggregate of terminal that will catch mate; Described eyes behavior aggregate comprises at least one default standard eyes action.Terminal has gathered a series of eyes actions in advance, as the action of standard eyes, and saves as the eyes behavior aggregate.When the function of adjusting font was opened, terminal was mated the eyes action that infrared ray sensor or camera capture with the standard eyes action in above-mentioned eyes behavior aggregate.The mode of coupling has multiple,, as traveling through the eyes behavior aggregate,, when the matching degree of a certain standard eyes action in the action of eyes that terminal captures and eyes behavior aggregate reaches a certain predetermined threshold value when as above in 90%, thinks that the match is successful.The eyes action that terminal captures is calculated and can be utilized existing image acquisition model or algorithm with the matching degree of eyes behavior aggregate Plays eyes action.
Step S3, when the match is successful, according to mapping relations and the described standard eyes action that match of default eyes action with the font adjusting operation, screen font is carried out corresponding font adjusting operation.The font adjusting operation of the embodiment of the present invention one refers to that mainly the adjusting range according to default zooms in or out the font size of terminal.
Terminal has been preset the mapping relations of eyes action with the font adjusting operation, and concrete example is as follows:
It is large that blink triggers variant font;
Open eyes wide and trigger font and diminish;
Eye are opened the another eyes and are closed and trigger local word and amplify.
Be not limited only to above-mentioned example in practical application, and in each font adjusting operation, the large or adjusting range that diminish of variant font can arrange according to practical application.Namely according to a default adjusting range, progressively adjust to corresponding size, as the font size changing value that zooms in or out at every turn, be controlled at 0.5pt, so can make each font change and can not seem too lofty.
, according to above-mentioned mapping relations, find font adjusting operation corresponding to standard eyes action that matches, and carry out.
While capturing a series of continuous eyes action in certain time interval T when terminal, the continuous variation that can trigger font is a series of adjusting operations of triggering terminal to font, and the user can adjust to comfortable size with screen font by the method.Capture the eyes action of a series of connections in time T for terminal, terminal can be to each eyes action repeating step S1 to S3, after eyes action comparison that also can be in step S2, that all are continuous is complete, then continued operation in step S3.
When the adjusting operation that triggers is when local word is amplified, the size of the word in the office zone that the eyeball that terminal only will capture is watched attentively is adjusted, and other regional font of screen does not change.
The embodiment of the present invention one is adjusted terminal font by daily eyes action, forms a kind of natural man-machine interaction, has improved user's experience.And support the continuous action of eyes, this continuous action can trigger a corresponding coherent font adjusting operation, makes the variation of word size more freely.The embodiment of the present invention one both can meet the integral body adjustment of word in addition, also can meet the part adjustment of word, had further promoted user experience.
Embodiment two
The embodiment of the present invention two proposes a kind ofly by eyes, move the method for adjustment terminal font size.As shown in Figure 2, different from the embodiment of the present invention one, the embodiment of the present invention two also comprises in execution step S1:
Step S4: the actuation time of calculating described eyes action;
Step S5: judge whether surpass default time threshold described actuation time, surpass and enter step S2, otherwise process ends.
The embodiment of the present invention two can prevent people's maloperation of causing of action of blinking normally, and when local word is amplified, terminal also can further utilize accurately locate the regional area that eyeball is watched attentively the actuation time of eyes action, improves the accuracy that local word amplifies.
Embodiment three
The embodiment of the present invention three proposes a kind ofly by eyes, move the device of adjustment terminal font size.The device of the embodiment of the present invention three can be terminal itself, can be also the built-in or external device of terminal, and as shown in Figure 3, the device of the embodiment of the present invention three comprises:
Capture module 10, be used for catching the eyes action in terminal screen the place ahead;
Matching module 20, be used for the eyes that will capture action and mate with interior at least one the default standard eyes action of terminal;
Font adjusting module 30, when the match is successful with a certain standard eyes action for the action of the eyes when capturing,, according to mapping relations and the described standard eyes that the match is successful the action of default eyes action with the font adjusting operation, carry out font adjusting operation corresponding to the described standard eyes that the match is successful action.
As shown in Figure 4,font adjusting module 30 comprises:
Change unit 31, be used for when the eyes action of described seizure is continuous several times continuously, and described terminal is carried out the continuous variation of font according to the eyes action of described continuous several times.
Local adjustment unit 32, be used for, when described eyes action only relates to the subregion of terminal screen, local font adjusting operation is carried out in described subregion.
Particularly, the eyes action that the capture module of the embodiment of the present invention 3 10 catches screen the place ahead by the built-in or external infrared ray sensor of terminal or camera, the eyes action at this place mainly the finger eyeball stare action, blink, the action such as openeyes.Capture module 10 can extract the screen area that eyeball is paid close attention to from the eyes action that captures.
The eyes action that matchingmodule 20 will catch is mated with the interior default eyes behavior aggregate of terminal; Described eyes behavior aggregate comprises at least one default standard eyes action.Terminal has gathered a series of eyes actions in advance, as the action of standard eyes, and saves as the eyes behavior aggregate.When the function of adjusting font was opened, matchingmodule 20 mated the eyes action that infrared ray sensor or camera capture with the standard eyes action in above-mentioned eyes behavior aggregate.The mode thatmatching module 20 mates has multiple,, as traveling through the eyes behavior aggregate,, when the matching degree of a certain standard eyes action in the action of eyes that terminal captures and eyes behavior aggregate reaches a certain predetermined threshold value when as above in 90%, thinks that the match is successful.The calculating of matching degree can utilize existing image acquisition model or algorithm.
When the match is successful,font adjusting module 30, according to mapping relations and the described standard eyes action that match of default eyes action with the font adjusting operation, carried out corresponding font adjusting operation to screen font.The font adjusting operation of the embodiment of the present invention three refers to that mainly the adjusting range according to default zooms in or out the font size of terminal.
Terminal has been preset the mapping relations of eyes action with the font adjusting operation, and concrete example is as follows:
It is large that blink triggers variant font;
Open eyes wide and trigger font and diminish;
Eye are opened the another eyes and are closed and trigger local word and amplify.
Be not limited only to above-mentioned example in practical application, and in each font adjusting operation, the large or adjusting range that diminish of variant font can arrange according to practical application.Namely according to a default adjusting range, progressively adjust to corresponding size, as the font size changing value that zooms in or out at every turn, be controlled at 0.5pt, so can make each font change and can not seem too lofty.
According to above-mentioned mapping relations,font adjusting module 30 finds font adjusting operation corresponding to standard eyes action that matches, and carries out this font adjusting operation.
Whencapture module 10 captures a series of continuous eyes action in certain time interval T, can trigger a series of adjusting operations of 31 pairs of fonts of continuous change unit, by the method, screen font is adjusted to comfortable size.
When the adjusting operation that triggers is when local word is amplified, the size of the word in the office zone that 32 eyeballs that will capture of local adjustment unit are watched attentively is adjusted, and other regional font of screen does not change.
The embodiment of the present invention three is adjusted terminal font by daily eyes action, forms a kind of natural man-machine interaction, has improved user's experience.And support the continuous action of eyes, this continuous action can trigger a corresponding coherent font adjusting operation, makes the variation of word size more freely.The embodiment of the present invention three both can meet the integral body adjustment of word in addition, also can meet the part adjustment of word, had further promoted user experience.
Embodiment four
The embodiment of the present invention four proposes a kind ofly by eyes, move the device of adjustment terminal font size.As shown in Figure 5, the embodiment of the present invention three differences, the device of the embodiment of the present invention four also comprises:
Logging modle 40, be used for recording the actuation time that described eyes move;
Judge module 50, be used for judging whether surpass default time threshold described actuation time; And when described actuation time, surpass default time threshold, change at least one standard eyes action default in eyes action that matching module will capture and terminal over to and mate, otherwise be failure to actuate.
The embodiment of the present invention four can prevent people's maloperation of causing of action of blinking normally, and when local word is amplified,capture module 10 also can further utilize accurately locate the regional area that eyeball is watched attentively the actuation time of eyes action, improves the accuracy that local word amplifies.
The foregoing is only preferred embodiment of the present invention,, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.