Summary of the invention
The technical problem to be solved in the present invention is, must contact with mobile terminal for prior art above-mentioned could operate mobile terminal in-convenience in use defect, it is provided that a kind of user just can operate mobile terminal, the method and device mutual by infrared lamp gesture and mobile terminal easy to use without contacting with mobile terminal.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of method mutual by infrared lamp gesture and mobile terminal, is provided with and organizes infrared lamp more in described mobile terminal;Described method comprises the steps:
A) numbering of each infrared lamp and the signal strength data of correspondence are gathered;
B) judge successively often to organize whether infrared lamp is blocked, and judge whether the signal intensity of the infrared lamp being blocked meets setting requirement, in this way, perform step C);Otherwise, step A is returned);
C) numbering, signal intensity and the current time of the infrared lamp being currently blocked are recorded, and start timer and initially enter gesture identification state;
D) judge whether have other infrared lamps to be blocked within the setting time, in this way, find the gesture of its correspondence and make described mobile terminal perform corresponding operation;Otherwise, gesture identification is exited.
In the method mutual by infrared lamp gesture and mobile terminal of the present invention, described step D) farther include:
D1) judge whether have other infrared lamps to be blocked within the setting time, in this way, perform step D2);Otherwise, gesture identification is exited;
D2) number of the infrared lamp that described timer is blocked within the described setting time is determined;
D3) find the gesture of correspondence and make described mobile terminal perform corresponding operation.
In the method mutual by infrared lamp gesture and mobile terminal of the present invention, described step D2) farther include:
Whether the number D21) judging the infrared lamp that described timer is blocked within the described setting time is one group;In this way, step D22 is performed);Otherwise, step D24 is performed);
Whether what D22) judgement was blocked is adjacent infrared lamp, in this way, performs step D23);Otherwise, gesture identification is exited;
D23) described timer restarts timing, and judges the most whether also have another set infrared lamp to be blocked, in this way, to perform step D25);Otherwise, find the gesture of its correspondence and make described mobile terminal perform corresponding operation;
Whether the number D24) judging the infrared lamp that described timer is blocked within the described setting time is two groups, in this way, performs step D25);Otherwise, step D26 is performed);
D25) judge whether described two groups of infrared lamps are two groups of adjacent infrared lamps, in this way, find the gesture of its correspondence and make described mobile terminal perform corresponding operation;Otherwise, gesture identification is exited;
Whether the number D26) judging the infrared lamp that described timer is blocked within the described setting time is three groups, in this way, finds the gesture of its correspondence and makes described mobile terminal perform corresponding operation;Otherwise, gesture identification is exited.
In the method mutual by infrared lamp gesture and mobile terminal of the present invention, in described step C) after also include:
D ') judge described in the signal intensity of infrared lamp that is blocked whether change, in this way, find the gesture of correspondence according to its change in signal strength rule, and make described mobile terminal perform corresponding operation;Otherwise, gesture identification is exited.
In the method mutual by infrared lamp gesture and mobile terminal of the present invention, described each group of infrared lamp includes the infrared discharge lamps for launching Infrared and for receiving the infrared receiver lamp being launched the Infrared returned.
The invention still further relates to a kind of device realized above by the mutual method of infrared lamp gesture and mobile terminal, described mobile terminal is provided with and organizes infrared lamp more;Described device includes:
Collecting unit: for gathering the numbering of each infrared lamp and the signal strength data of correspondence;
Judging unit: for judging often to organize whether infrared lamp is blocked successively, and judge whether the signal intensity of the infrared lamp being blocked meets setting requirement;
Record unit: for numbering, signal intensity and the current time of the infrared lamp being currently blocked are recorded, and start timer and initially enter gesture identification state;
Shadowing unit: for judging whether have other infrared lamps to be blocked within the setting time, in this way, finds the gesture of its correspondence and makes described mobile terminal perform corresponding operation;Otherwise, gesture identification is exited.
In the device of the realization of the present invention method mutual above by infrared lamp gesture and mobile terminal, described shadowing unit farther includes:
Shadowing module: for judging whether have other infrared lamps to be blocked within the setting time, and exit gesture identification when not having other infrared lamps to be blocked;
Block number judge module: for determining the number of infrared lamp that described timer is blocked within the described setting time;
Perform module: for finding the gesture of correspondence and making described mobile terminal perform corresponding operation.
In the device of the realization of the present invention method mutual above by infrared lamp gesture and mobile terminal, described in block number judge module and farther include:
First shadowing module: whether be one group for judging the number of infrared lamp that described timer is blocked within the described setting time;
First adjacent shadowing module: for judging whether be blocked is adjacent infrared lamp, and exit gesture identification when non-conterminous;
Timing shadowing module: be used for making described timer restart timing, and judge the most whether also have another set infrared lamp to be blocked, and find the gesture of its correspondence when there not being another set infrared lamp to be blocked and make described mobile terminal perform corresponding operation;
Second shadowing module: whether be two groups for judging the number of infrared lamp that described timer is blocked within the described setting time;
Second adjacent shadowing module: for judging whether described two groups of infrared lamps are two groups of adjacent infrared lamps, in this way, finds the gesture of its correspondence and makes described mobile terminal perform corresponding operation;Otherwise, gesture identification is exited;
3rd shadowing module: whether be three groups for judging the number of infrared lamp that described timer is blocked within the described setting time, in this way, finds the gesture of its correspondence and makes described mobile terminal perform corresponding operation;Otherwise, gesture identification is exited.
In the device of the realization of the present invention method mutual above by infrared lamp gesture and mobile terminal, described device also includes:
Signal judging unit: whether the signal intensity of the infrared lamp being blocked described in judge changes, in this way, finds the gesture of correspondence, and makes described mobile terminal perform corresponding operation according to its change in signal strength rule;Otherwise, gesture identification is exited.
In the device of the realization of the present invention method mutual above by infrared lamp gesture and mobile terminal, described each group of infrared lamp includes the infrared discharge lamps for launching Infrared and for receiving the infrared receiver lamp being launched the Infrared returned.
Implement the method and device mutual by infrared lamp gesture and mobile terminal of the present invention, have the advantages that due to when infrared lamp be blocked and its signal intensity meet setting require time, numbering, signal intensity and the current time of the infrared lamp being currently blocked are recorded, and starts timer and initially enter gesture identification state;If there being other infrared lamps to be blocked within the setting time, then find the gesture of its correspondence and make mobile terminal perform corresponding operation, so only just mobile terminal need to can be operated by gesture, and without contacting with mobile terminal, so its user just can operate mobile terminal, easy to use without contacting with mobile terminal.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
In the method and device embodiment that the present invention is mutual with mobile terminal by infrared lamp gesture, it passes through the flow chart of the infrared lamp gesture method mutual with mobile terminal as shown in Figure 1.Being provided with in mobile terminal and organize infrared lamp more, mobile terminal can be smart mobile phone, panel computer etc..In the present embodiment, what mobile terminal was selected is smart mobile phone.In the present embodiment, in mobile terminal front, (with screen vertical direction) arranges four groups of infrared lamps, it is individually positioned in the upper left corner of screen, the upper right corner, the lower right corner and the lower left corner, ask for an interview Fig. 6, in Fig. 6,1 is first group of infrared lamp, and 2 is second group of infrared lamp, 3 is the 3rd group of infrared lamp, and 4 is the 5th group of infrared lamp.Switch and the infrared signal intensity etc. of infrared lamp are controlled by special chip.Each group of infrared lamp includes infrared discharge lamps and infrared receiver lamp, and wherein, infrared discharge lamps is used for launching Infrared, and infrared receiver lamp is launched, for receiving, the Infrared returned.Infrared discharge lamps launches infrared light vertically upward, when run into block object time, it may occur that reflection, infrared receiver lamp just can receive Infrared.When blocking infrared lamp with hands successively with a definite sequence, corresponding gesture will be produced.The concrete function of various gesture can be pre-defined: such as page turning, unblock etc..Fig. 8 to Figure 14 is the wherein eight kinds of gestures in predefined gesture.
In the present embodiment, the method mutual above by infrared lamp gesture and mobile terminal comprises the steps:
Step S01 gathers numbering and the signal strength data of correspondence of each infrared lamp: in this step, gathering numbering (i.e. infrared lamp ID) and the signal strength data of correspondence of each infrared lamp, signal strength data here refers to each group of infrared lamp mid-infrared and receives the intensity data of the infrared light that lamp receives.
Step S02 judges often to organize whether infrared lamp is blocked successively, and judge whether the signal intensity of the infrared lamp being blocked meets setting and require: in this step, according to the original infrared lamp ID data gathered and signal strength data, judgement is which infrared lamp is blocked, whether its signal intensity meets setting requirement, if it is determined that result be yes, then perform step S03;Otherwise, step S01 is returned.
Numbering, signal intensity and the current time of the infrared lamp being currently blocked are recorded by step S03, and start timer and initially enter gesture identification state: if the judged result of above-mentioned steps S02 is yes, the signal intensity of the infrared lamp being i.e. blocked meets setting requirement, then perform this step.In this step, numbering (infrared lamp ID), signal intensity and the current time of the infrared lamp being currently blocked are recorded, and start timer and initially enter gesture identification state.
Step S04 judges whether have other infrared lamps to be blocked within the setting time: in this step, judge whether have other infrared lamps to be blocked within the setting time, namely judge the most whether have other infrared lamps to be blocked, if it is determined that result be yes, then perform step S06;Otherwise, step S05 is performed.
Step S05 exits gesture identification: if the judged result of above-mentioned steps S04 is no, then perform this step.In this step, exit gesture identification.
Step S06 finds the gesture of its correspondence and makes mobile terminal perform corresponding operation: if the judged result of above-mentioned steps S04 is yes, then perform this step.In this step, the rule blocked according to infrared lamp, finds the gesture of its correspondence and makes mobile terminal perform corresponding operation.So only just mobile terminal need to can be operated by gesture, and without contacting with mobile terminal, so its user just can operate mobile terminal, easy to use without contacting with mobile terminal.
For the present embodiment, above-mentioned steps S04-step S06 also can refine further, and the flow chart after its refinement is as shown in Figure 2.In Fig. 2, above-mentioned steps S04-step S06 farther includes:
Step S41 judges whether have other infrared lamps to be blocked within the setting time: in this step, judge whether have other infrared lamps to be blocked within the setting time, namely starting timing from timer, judge whether have other infrared lamps to be blocked within the setting time, if it is determined that result be yes, then perform step S06;Otherwise, step S05 is performed.
Step S42 determines the number of the infrared lamp that timer is blocked in setting the time: if the judged result of above-mentioned steps S41 is yes, then perform this step.In this step, determine the number of the infrared lamp that timer is blocked within the setting time, namely determine that the infrared lamp that timer was blocked within the setting time has several groups.The group number of the infrared lamp being blocked is different, and if the order difference blocked, the gesture of its correspondence is the most different, and mobile terminal so can be made to perform different operations, such as: receive calls, open address list, open music etc..So increase the convenience used.
For the present embodiment, above-mentioned steps S42 also can refine further, and the flow chart after its refinement is as shown in Figure 3.In Fig. 3, above-mentioned steps S42 farther includes:
Step S421 judges whether the number of the infrared lamp that timer is blocked within the setting time is one group: in this step, it is judged that whether the number of the infrared lamp that timer was blocked within the setting time is one group, if it is determined that result be yes, then perform step S422;Otherwise, step S425 is performed.
Whether what step S422 judged to be blocked is adjacent infrared lamp: if the judged result of above-mentioned steps S421 is yes, then perform this step.In this step, it is judged that whether be blocked is adjacent infrared lamp, if it is determined that result be yes, then perform step S423;Otherwise, step S05 is performed.
Step S423 timer restarts timing, and judges the most whether also have another set infrared lamp to be blocked: if the judged result of above-mentioned steps S422 is yes, then perform this step.In this step, timer restarts timing, and judges the most whether also have another set infrared lamp to be blocked, if it is determined that result be yes, then execution step S424;If it is determined that result be no, i.e. timer expired does not also have other gesture lamps to be blocked, then starting to make a decision is which kind of gesture in Fig. 7 and Fig. 8, and can distinguish further according to the numbering of infrared lamp is the gesture of Fig. 7, or the gesture of Fig. 8, then performs step S06.
Step S424 judges whether above-mentioned two groups of infrared lamps are two groups of adjacent infrared lamps: if the judged result of above-mentioned steps S423 is yes, then perform this step.In this step, it is judged that whether above-mentioned two groups of infrared lamps are two groups of adjacent infrared lamps, if it is determined that result be yes, then perform step S06;Otherwise, step S05 is performed.This step is directed to (not be absolute while here simultaneously, its time point can be misaligned) block the situation of two groups of adjacent infrared lamps, after blocking two groups of adjacent infrared lamps the most simultaneously, if blocking again other two groups of adjacent infrared lamps within the setting time, then starting to make a decision is which kind of gesture in Fig. 9 and Figure 10, then performs step S06.If block within the setting time is not adjacent two group infrared lamps simultaneously, then perform step S05.
Step S425 judges whether the number of the infrared lamp that timer is blocked in setting the time is two groups: if the judged result of above-mentioned steps S421 is no, then perform this step.In this step, it is judged that whether the number of the infrared lamp that timer was blocked within the setting time is two groups, if it is determined that result be yes, then return step S424;Otherwise, step S426 is performed.
Step S426 judges whether the number of the infrared lamp that timer is blocked in setting the time is three groups: if the judged result of above-mentioned steps S425 is no, then perform this step.In this step, it is judged that whether the number of the infrared lamp that timer was blocked within the setting time is three groups, if it is determined that result be yes, then judgement belong to which kind of gesture in Figure 11 and Figure 12.If numbered the 4 of first infrared lamp being blocked, then it would be gesture in Figure 11, would be otherwise the gesture in Figure 12, then perform step S06;Otherwise, step S05 is performed.
Due to along with the change of shelter Yu infrared lamp distance, the signal intensity of infrared lamp also respective change, under the certain situation of the present embodiment, various gestures can also be customized, such as: when blocking object and infrared lamp distant, the signal of infrared lamp is more weak according to signal intensity, black round dot is less as shown in figure 13, when blocking object and infrared lamp close together, the signal of infrared lamp is relatively strong, and black round dot is bigger as shown in figure 14.In addition, the change of infrared lamp signal intensity can also be set as a gesture, this gesture can a corresponding function, such as " open address list ", " receiving calls ", " calling ", the change that the change of infrared lamp signal intensity and infrared lamp are numbered can certainly be set as a gesture, the function that this gesture also can be corresponding.Such as: if using the change of the signal intensity of infrared lamp being blocked to set gesture, then, after execution of step S03, then perform following step:
Judge whether the signal intensity of the infrared lamp being blocked changes, in this way, find the gesture of correspondence according to its change in signal strength rule, and make mobile terminal perform corresponding operation;Otherwise, gesture identification is exited.In the present embodiment, the method to set up of its gesture is varied, and its use is the most flexible.
The present embodiment further relates to a kind of device realized above by the mutual method of infrared lamp gesture and mobile terminal, and its structural representation is as shown in Figure 4.In the present embodiment, being provided with and organize infrared lamp more in mobile terminal, each group of infrared lamp includes infrared discharge lamps and infrared receiver lamp, and wherein, infrared discharge lamps is used for launching Infrared, and infrared receiver lamp is launched, for receiving, the Infrared returned.In Fig. 4, this device includes collecting unit 1, judging unit 2, record unit 3 and shadowing unit 4;Wherein, collecting unit 1 is for gathering the numbering of each infrared lamp and the signal strength data of correspondence;Judging unit 2 is for judging often to organize whether infrared lamp is blocked successively, and judges whether the signal intensity of the infrared lamp being blocked meets setting requirement;Record unit 3 is for recording numbering, signal intensity and the current time of the infrared lamp being currently blocked, and starts timer and initially enter gesture identification state;Shadowing unit 4 is for judging whether have other infrared lamps to be blocked within the setting time, in this way, finds the gesture of its correspondence and makes described mobile terminal perform corresponding operation;Otherwise, gesture identification is exited.So only just mobile terminal need to can be operated by gesture, and without contacting with mobile terminal, so its user just can operate mobile terminal, easy to use without contacting with mobile terminal.
In the present embodiment, shadowing unit 4 farther includes shadowing module 41, blocks number judge module 42 and perform module 43;Wherein, shadowing module 41 is for judging whether have other infrared lamps to be blocked within the setting time, and exits gesture identification when not having other infrared lamps to be blocked;Block the number of the infrared lamp that number judge module 42 was blocked within the setting time for determining timer;Perform module 43 for finding the gesture of correspondence and making mobile terminal perform corresponding operation.
Fig. 5 is the concrete structure schematic diagram blocking number judge module in the present embodiment.In Fig. 5, block number judge module 42 and farther include first shadowing module the 421, first adjacent shadowing module 422, timing shadowing module the 423, second shadowing module the 424, second adjacent shadowing module 425 and the 3rd shadowing module 426;Wherein, whether the number of the infrared lamp that the first shadowing module 421 is blocked within the setting time for judging timer is one group;Whether the first adjacent shadowing module 422 is adjacent infrared lamp for judge to be blocked, and exits gesture identification when non-conterminous;Timing shadowing module 423 is used for making timer restart timing, and judge the most whether also have another set infrared lamp to be blocked, and find the gesture of its correspondence when there not being another set infrared lamp to be blocked and make mobile terminal perform corresponding operation;Whether the number of the infrared lamp that the second shadowing module 424 is blocked within the setting time for judging timer is two groups;Second adjacent shadowing module 425 is for judging whether two groups of infrared lamps are two groups of adjacent infrared lamps, in this way, finds the gesture of its correspondence and makes mobile terminal perform corresponding operation;Otherwise, gesture identification is exited;Whether the number of the infrared lamp that the 3rd shadowing module 426 is blocked within the setting time for judging timer is three groups, in this way, finds the gesture of its correspondence and makes mobile terminal perform corresponding operation;Otherwise, gesture identification is exited.
Under the certain situation of the present embodiment, in order to increase the motility of use, various gestures can also be customized according to signal intensity, so, this device also includes signal judging unit (not shown), and whether signal judging unit changes, in this way for the signal intensity judging the infrared lamp being blocked, find the gesture of correspondence according to its change in signal strength rule, and make mobile terminal perform corresponding operation;Otherwise, gesture identification is exited.
In a word, in the present embodiment, by by four groups of infrared lamp layouts on four angles of mobile terminal, controlled switch and the infrared signal intensity etc. of infrared lamp by special chip.Then these information are converted to concrete data, and find corresponding gesture according to these data, thus control the operation of mobile terminal.This contactless operation mode (i.e. infrared lamp gesture operation) can meet the contactless interaction demand that some are conventional, strengthens Consumer's Experience simultaneously.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.