Summary of the invention
Embodiments of the invention provide a kind of method and terminal of contactless input information, can simplify the input operation of electric terminal.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, embodiments of the invention provide a kind of method of contactless input information, and for a kind of terminal, described method comprises:
Detect the acceleration of target object, described target object near but do not contact described terminal;
Judge whether the acceleration of described target object is more than or equal to pre-determined threshold;
If the acceleration of described target object is more than or equal to described pre-determined threshold, then performs and press event;
Continue the acceleration detecting described target object;
Judge that the acceleration of described target object continues lower than specifying the time of threshold value whether large at fixed time;
If the acceleration of described target object continues to be greater than the described fixed time lower than the time of described appointment threshold value, then perform release event;
If the acceleration of described target object continues to be not more than the described fixed time lower than the time of described appointment threshold value, then perform drag events, and continue the acceleration of the described target object of detection and judge that whether the time that the acceleration of described target object continues lower than described appointment threshold value large at fixed time, until perform release event.
In conjunction with first aspect, in the first possible implementation of first aspect, described target object comprises: user's hand, or the object that user holds.
In conjunction with the first possible implementation of first aspect or first aspect, in the implementation that the second is possible, describedly determine that the acceleration of target object comprises: detect described target object by being arranged on camera or the infrared sensor be arranged in described terminal in described terminal, and determine the acceleration of described target object.
In conjunction with the implementation that the first or the second of first aspect or first aspect are possible, in the implementation that the third is possible, described event of pressing is choose the icon of specifying, and described drag events is drag described icon of specifying according to the movement locus of described target object; Described release event is terminate choosing described icon of specifying.
In conjunction with the implementation that the first or the second of first aspect or first aspect are possible, in the 4th kind of possible implementation, described in press event be choose the icon of specifying, described release event is open application program corresponding to described icon of specifying.
In conjunction with the implementation that the first or the second of first aspect or first aspect are possible, in the 5th kind of possible implementation, described event of pressing is display highlighting, described drag events is move described cursor according to the movement locus of described target object, and described release event is the click to the current position of described cursor.
A second aspect of the present invention, provides a kind of terminal, comprising:
Detection means, for detecting the acceleration of target object; The acceleration of described target object is sent to processor; Wherein, described target object near but do not contact described terminal;
Described processor, for receiving the acceleration of the described target object that described detection means detects, and judges whether the acceleration of described target object is more than or equal to pre-determined threshold; If the acceleration of described target object is more than or equal to described pre-determined threshold, then performs and press event, and continue through the acceleration of the described target object that described detection means detects; Judge that the acceleration of described target object continues lower than specifying the time of threshold value whether large at fixed time; If the acceleration of described target object continues to be greater than the described fixed time lower than the time of described appointment threshold value, then perform release event; If the acceleration of described target object continues to be not more than the described fixed time lower than the time of described appointment threshold value, then perform drag events, and continue the acceleration of the described target object of detection and judge that whether the time that the acceleration of described target object continues lower than described appointment threshold value large at fixed time, until perform release event.
In conjunction with a second aspect of the present invention, in the implementation that the first is possible, described target object comprises: user's hand, or the object that user holds.
In conjunction with the first possible implementation of a second aspect of the present invention or second aspect, in the implementation that the second is possible, described detection means comprises: the infrared sensor being arranged on camera in described terminal or being arranged in described terminal; Described detection means specifically for: detect described target object, and determine the acceleration of described target object.
In conjunction with the implementation that the first or the second of second aspect or second aspect are possible, in the implementation that the third is possible, described event of pressing is choose the icon of specifying, and described drag events is drag described icon of specifying according to the movement locus of described target object; Described release event is terminate choosing described icon of specifying.
In conjunction with the implementation that the first or the second of second aspect or second aspect are possible, in the 4th kind of possible implementation, described in press event be choose the icon of specifying, described release event is open application program corresponding to described icon of specifying.
In conjunction with the implementation that the first or the second of second aspect or second aspect are possible, in the 5th kind of possible implementation, described event of pressing is display highlighting, described drag events is move described cursor according to the movement locus of described target object, and described release event is the click to the current position of described cursor.
The method of the contactless input information that the embodiment of the present invention provides and terminal, can using the velocity variations situation of target object as the foundation judging the operation that user carries out, perform when the acceleration of target object is larger and press event, perform drag events when acceleration is lower, and perform release event when acceleration continues lower.Relative to prior art, the embodiment of the present invention can realize the speed of rocking that user only need change hand can carry out contactless operation, avoid in prior art and carry out gesture conversion continually to carry out operating, thus extenuate because for a long time operate cause hand, four limbs fatigue, raising user Experience Degree.And, in the practical application of prior art, because different target object has difference in size, finger shape difference or because pointing the disabled difference caused, judge that the input of user can be subject to the impact of the hand difference of user by gesture conversion, therefore easily there is error originated from input, the foundation of the embodiment of the present invention owing to being the operation velocity variations situation of target object carried out as judgement user, do not need to carry out gesture judgement, therefore the impact that above-mentioned hand difference causes can not be subject to, therefore relative to prior art, the embodiment of the present invention can also improve the accuracy of contactless operation.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention may be used for a kind of terminal, and, the detection means for catching human body is included in this terminal, such as: the body sense terminal with camera, camera is for gathering the human action such as gesture variation track, major beat of user, and by the processor in body sense terminal, the human action that camera captures can be processed, thus determine the information represented by user action; For another example: interactive projection terminal can by infrared sensor according to the health of certain frequency by noctovisor scan user, such as 45Hz, 60Hz etc., obtain the gray-scale map being rendered as user's body profile in each frame, and gray-scale map can be utilized to determine the action situation of change of user.
One embodiment of the invention provides a kind of method of contactless input information, as shown in Figure 1, comprising:
101, detect the acceleration of target object, described target object near but do not contact described terminal.
Wherein, terminal can detect the change in location situation of target object by detection means, and the acceleration of the object that really sets the goal further, such as: the detection means in terminal can detect the change in location situation of target object, and calculate speed and the acceleration of target object, the real time acceleration value of target object is sent to the processor of terminal, and performs corresponding input operation by processor according to the acceleration change situation of target object.Be understandable that, if detection means does not possess computing power, also the change in location situation of the target object detected can be sent to processor, by the change in location situation of processor according to target object, determine the speed change curves at a period of time internal object object as shown in Figure 1a, then the situation of change of the acceleration at a period of time internal object object can be determined according to the gradient of speed change curves.In actual applications, such as camera, the detection means such as infrared sensor can with the change in location situation of certain frequency captured target object frame by frame, and therefore the running frequency of detection means is higher, and the precision of the acceleration of terminal determination target object is higher.
Optionally, the acceleration of target object is specifically as follows user's hand, the acceleration of such as target object, the object that also can hold for user, such as pen etc.In the present embodiment, terminal can pass through detection means lock onto target object, and determine the acceleration of target object, the acceleration of recycling target object performs other treatment schemees of the present embodiment, thus make user just can complete contactless input operation by terminal by target object, compare user and use whole hand to carry out contactless operation, the amount of exercise of user can be reduced, thus the comfortableness improved when carrying out user's input operation, improve Consumer's Experience.
In the present embodiment, just can by the situation of change of the detection means volume coordinate of tracking target object continuously after terminal powers on, and according to situation of change mobile cursor on screen of the volume coordinate of target object.
102, judge whether the acceleration of described target object is more than or equal to pre-determined threshold.
In the present embodiment, pre-determined threshold can be inputted by user, also can prestore in the terminal, can also be that terminal generates automatically.
103, if the acceleration of described target object is more than or equal to described pre-determined threshold, then performs and press event.
Wherein, the push of event for analog mouse is pressed.Such as: as shown in Figure 1a, in t2 and the t3 time period, terminal obtains the acceleration of target object according to the Slope Analysis of the rate curve of target object, and the absolute value determining the acceleration of target object is more than or equal to pre-determined threshold, terminal can perform the DOWN event clicked for analog mouse.
If the acceleration of target object is less than described pre-determined threshold, then terminal continues the situation of change of the volume coordinate of Continuous Tracking target object, and according to situation of change mobile cursor on screen of the volume coordinate of target object.
104, continue the acceleration detecting described target object; Judge that the acceleration of described target object continues lower than specifying the time of threshold value whether large at fixed time.
Wherein, after event is pressed in execution, can not discharge immediately, when the acceleration of target object continues, lower than specifying the time of threshold value to reach the fixed time, just can perform release event, otherwise will perform drag events.Concrete as following steps 105 and 106.
105, if the acceleration of described target object continues to be greater than the described fixed time lower than the time of described appointment threshold value, then perform release event.
106, if the acceleration of described target object continues to be not more than the described fixed time lower than the time of described appointment threshold value, then perform drag events, and continue the acceleration of the described target object of detection and judge that whether the time that the acceleration of described target object continues lower than described appointment threshold value large at fixed time, until perform release event.
Concrete, according to the technical scheme that the embodiment of the present invention provides, following technology scene can be obtained, under this technology scene, terminal is a kind of body sense terminal, and the camera in body sense terminal is used for the misalignment of captured target object as detection means, wherein can comprise:
1, user rocks finger back and forth before camera, and body sense terminal obtains the speed change curves of finger as shown in Figure 1 b.In speed change curves as shown in Figure 1 b, the gradient that dotted line presents represents the size of pre-determined threshold, if at a time, such as the start time of 11s to 15s time period in Fig. 1 b, the tangent line of speed change curves is greater than the gradient that dotted line presents, in such as Fig. 1 b, the tangent line of 11s to 15s time period is larger than the gradient of pre-determined threshold, then illustrate that the acceleration of target object is more than or equal to pre-determined threshold.
2, at 0 to 9s, the absolute value of the gradient of speed change curves is less than the gradient that dotted line presents, therefore within 0 to the 10s time period, the volume coordinate of a body sense terminal tracking target object, and perform MOVE event according to the situation of change of the volume coordinate of target object, thus move cursor accordingly on screen.
3, from 10s, the absolute value of the gradient of speed change curves is more than or equal to the gradient that dotted line presents, body sense terminal Predicated execution DOWN event, and according to making the action clicking cursor Click on screen accordingly.
The method of the contactless input information that the embodiment of the present invention provides, can using the velocity variations situation of target object as the foundation judging the operation that user carries out, perform when the acceleration of target object is larger and press event, perform drag events when acceleration is lower, and perform release event when acceleration continues lower.Relative to prior art, the embodiment of the present invention can realize the speed of rocking that user only need change hand can carry out contactless operation, avoid in prior art and carry out gesture conversion continually to carry out operating, thus extenuate because for a long time operate cause hand, four limbs fatigue, raising user Experience Degree.And, in the practical application of prior art, because different target object has difference in size, finger shape difference or because pointing the disabled difference caused, judge that the input of user can be subject to the impact of the hand difference of user by gesture conversion, therefore easily there is error originated from input, the foundation of the embodiment of the present invention owing to being the operation velocity variations situation of target object carried out as judgement user, do not need to carry out gesture judgement, therefore the impact that above-mentioned hand difference causes can not be subject to, therefore relative to prior art, the embodiment of the present invention can also improve the accuracy of contactless operation.
Further, as shown in Figure 2, can comprise in another embodiment of the invention:
201, detect the acceleration of target object, described target object near but do not contact described terminal.
Wherein, after terminal powers on, the position of target object is obtained continuously by detection means.Such as: after terminal powers on, the situation of change of the three-dimensional coordinate of the target object in reconnaissance range can be caught constantly by detection means.Wherein, near terminal, described target object refers to that the distance of target object and terminal is in the valid analysing range of camera or sensor detection means.
202, judge whether the acceleration of described target object is more than or equal to pre-determined threshold.If the acceleration of described target object is more than or equal to described pre-determined threshold, then perform step 203; Otherwise, perform step 204.
203, perform and press event, continue to perform step 205 after event is pressed in execution.
In the optional implementation of one, described in press event be choose the icon of specifying, described drag events is drag described icon of specifying according to the movement locus of described target object; Described release event is terminate choosing described icon of specifying.In the optional implementation of another kind, described in press event be choose the icon of specifying, described release event is open application program corresponding to described icon of specifying.In another optional implementation, described in press event be display highlighting, described drag events is move described cursor according to the movement locus of described target object, and described release event is the click to the current position of described cursor.
204, mobile cursor, and continue to perform step 201.
Wherein, if the acceleration of target object is less than described pre-determined threshold, then terminal continues the situation of change of the volume coordinate of Continuous Tracking target object, and according to situation of change mobile cursor on screen of the volume coordinate of target object.
205, continuing the acceleration detecting target object, judging that the acceleration of target object continues lower than specifying the time of threshold value whether large at fixed time; If the acceleration of target object continues to be greater than the described fixed time lower than the time of described appointment threshold value, then perform step 207; If the acceleration of target object continues to be not more than the described fixed time lower than the time of described appointment threshold value, then perform step 206.
206, perform drag events, and continue to perform step 205.
Drag events is used for the drag operation of analog mouse.Such as: terminal is more than or equal to pre-determined threshold at the acceleration of target object, after performing DOWN event, can using DOWN event+MOVE event as drag events.
207, perform release event.
Wherein, if the acceleration of described target object continues to be greater than the described fixed time lower than the time of described appointment threshold value, then release event is performed.
Such as:
As shown in Figure 2 a, in the beginning of t4 time period, the gradient of the rate curve of target object is mild gradually, the acceleration that terminal determines target object according to the rate curve of the target object of t4 time period is less than appointment threshold value constantly, and the time that acceleration is less than appointment threshold value has constantly been greater than fixed time t
x, then terminal can perform the UP event of the release clicking operation for analog mouse.
Optionally, in the present embodiment, the pre-determined threshold for Predicated execution click event can equal the appointment threshold value for Predicated execution release event, and both also can be unequal.The concrete numerical value of pre-determined threshold and appointment threshold value can be set by the user, and also automatically can be generated by terminal, or just be stored in when terminal is dispatched from the factory in the storage terminal of terminal.
Concrete, according to the technical scheme that the embodiment of the present invention provides, following technology scene can also be obtained, under this technology scene, terminal is a kind of interactive projection terminal, infrared sensor in interactive projection terminal is used for the misalignment of captured target object as detection means, wherein can comprise:
1, user rocks finger back and forth in the reconnaissance range of infrared sensor, and interactive projection terminal obtains the acceleration change curve of finger as shown in Figure 2 b.Interactive projection terminal judges whether the absolute value of acceleration is more than or equal to pre-determined threshold.
2, at 0 to 9s, the absolute value of acceleration is less than pre-determined threshold, therefore in 0 to 9s, and the volume coordinate of an interactive projection terminal tracking target object, and perform MOVE event according to the situation of change of the volume coordinate of target object, thus move cursor accordingly on screen.
3, from 10s, the absolute value of acceleration is more than or equal to pre-determined threshold, interactive projection terminal Predicated execution DOWN event, and according to making the action clicking cursor Click on screen accordingly.
4, at 10s to 15s, DOWN event performed by interactive projection terminal utilizes and MOVE event, corresponding dragging cursor on screen, such as: when cursor moves to after on an icon, interactive projection terminal performs DOWN event, and utilizing DOWN event and MOVE event, the movement of following target object drags icon accordingly on screen.
Concrete, according to the technical scheme that the embodiment of the present invention provides, following technology scene can also be obtained, under this technology scene, terminal is a kind of Set Top Box being provided with infrared camera, and Set Top Box is connected with LCD screen, and can be presented in LCD screen by image; Target object can be pointed for user; Infrared camera is used for the misalignment of captured target object as detection means, wherein can comprise:
1, user rocks finger back and forth in the reconnaissance range of infrared sensor, and Set Top Box obtains the acceleration change curve of finger as shown in Figure 2 c.Set Top Box judges whether the absolute value of acceleration is more than or equal to pre-determined threshold.
2, at 0 to 9s, the absolute value of acceleration is less than pre-determined threshold, and therefore in 0 to 9s, Set Top Box only follows the tracks of the volume coordinate of user's finger, and perform MOVE event according to the situation of change of the volume coordinate of user's finger, thus move cursor accordingly on screen.
3, at 10s, the absolute value of acceleration is more than or equal to pre-determined threshold, Set Top Box Predicated execution DOWN event, and according to making the action clicking cursor Click on screen accordingly.
4, at 10s to 14s, DOWN event performed by Set Top Box utilizes and MOVE event, corresponding dragging cursor on screen, such as: when cursor moves to after on an icon, Set Top Box performs DOWN event, and utilizing DOWN event and MOVE event, the movement of following target object drags icon accordingly on screen.
5, start at 15s, the absolute value of acceleration has been less than pre-determined threshold, and at 15s to 20s, the absolute value of acceleration is less than appointment threshold value always, wherein, appointment threshold value can be a value equal with pre-determined threshold, such as: as shown in Fig. 2 c1, specifies the absolute value of threshold value equal with the absolute value of pre-determined threshold; Or one and the unequal value of pre-determined threshold, such as: as shown in Fig. 2 c2, specify the absolute value of threshold value to be less than or greater than the absolute value of pre-determined threshold.Fixed time is 3s, then being less than at the absolute value of 16s to 20s acceleration specifies the duration of threshold value to be greater than 3s, therefore can perform the UP event of the release clicking operation for analog mouse in 19s Set Top Box, and relatively show the action of release cursor in LCD screen.
The method of the contactless input information that the embodiment of the present invention provides, can using the velocity variations situation of target object as the foundation judging the operation that user carries out, perform when the acceleration of target object is larger and press event, perform drag events when acceleration is lower, and perform release event when acceleration continues lower.Relative to prior art, the embodiment of the present invention can realize the speed of rocking that user only need change hand can carry out contactless operation, avoid in prior art and carry out gesture conversion continually to carry out operating, thus extenuate because for a long time operate cause hand, four limbs fatigue, raising user Experience Degree.And, in the practical application of prior art, because different target object has difference in size, finger shape difference or because pointing the disabled difference caused, judge that the input of user can be subject to the impact of the hand difference of user by gesture conversion, therefore easily there is error originated from input, the foundation of the embodiment of the present invention owing to being the operation velocity variations situation of target object carried out as judgement user, do not need to carry out gesture judgement, therefore the impact that above-mentioned hand difference causes can not be subject to, therefore relative to prior art, the embodiment of the present invention can also improve the accuracy of contactless operation.
Further embodiment of this invention also provides a kind of terminal 30 realizing the method for contactless input information, as shown in Figure 3, comprising:
Detection means 31, for detecting the acceleration of target object; The acceleration of described target object is sent to processor 32; Wherein, described target object near but do not contact described terminal;
Described processor 32, for receiving the acceleration of the described target object that described detection means 31 detects, and judges whether the acceleration of described target object is more than or equal to pre-determined threshold; If the acceleration of described target object is more than or equal to described pre-determined threshold, then performs and press event, and continue through the acceleration of the described target object that described detection means detects; Judge that the acceleration of described target object continues lower than specifying the time of threshold value whether large at fixed time; If the acceleration of described target object continues to be greater than the described fixed time lower than the time of described appointment threshold value, then perform release event; If the acceleration of described target object continues to be not more than the described fixed time lower than the time of described appointment threshold value, then perform drag events, and continue the acceleration of the described target object of detection and judge that whether the time that the acceleration of described target object continues lower than described appointment threshold value large at fixed time, until perform release event.
Wherein, described target object comprises: user's hand, or the object that user holds.
Further, described detection means 31 comprises: the infrared sensor being arranged on camera in described terminal 30 or being arranged in described terminal 30; Described detection means 31 specifically for: detect described target object, and determine the acceleration of described target object.
Further, in the optional implementation of one, described in press event be choose the icon of specifying, described drag events is drag described icon of specifying according to the movement locus of described target object; Described release event is terminate choosing described icon of specifying.
Further, in the optional implementation of another kind, described in press event be choose the icon of specifying, described release event is open application program corresponding to described icon of specifying.
Further, in another optional implementation, described in press event be display highlighting, described drag events is move described cursor according to the movement locus of described target object, and described release event is the click to the current position of described cursor.
The terminal 30 of the contactless input information that the embodiment of the present invention provides, can using the velocity variations situation of target object as the foundation judging the operation that user carries out, perform when the acceleration of target object is larger and press event, perform drag events when acceleration is lower, and perform release event when acceleration continues lower.Relative to prior art, the embodiment of the present invention can realize the speed of rocking that user only need change hand can carry out contactless operation, avoid in prior art and carry out gesture conversion continually to carry out operating, thus extenuate because for a long time operate cause hand, four limbs fatigue, raising user Experience Degree.And, in the practical application of prior art, because different target object has difference in size, finger shape difference or because pointing the disabled difference caused, judge that the input of user can be subject to the impact of the hand difference of user by gesture conversion, therefore easily there is error originated from input, the foundation of the embodiment of the present invention owing to being the operation velocity variations situation of target object carried out as judgement user, do not need to carry out gesture judgement, therefore the impact that above-mentioned hand difference causes can not be subject to, therefore relative to prior art, the embodiment of the present invention can also improve the accuracy of contactless operation.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for terminal embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.