The content of the invention
Embodiments of the invention provide a kind of method and terminal of contactless input information, can simplify electric terminal
Input operation.
To reach above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
In a first aspect, embodiments of the invention provide a kind of method of contactless input information, for a kind of terminal, institute
The method of stating includes:
The acceleration of target object is detected, the target object is close but does not contact the terminal;
Judge whether the acceleration of the target object is more than or equal to pre-determined threshold;
If the acceleration of the target object is more than or equal to the pre-determined threshold, event is pressed in execution;
Continue to detect the acceleration of the target object;
Judge whether greatly at fixed time the acceleration of the target object is consistently less than the time of specified threshold;
If the time that the acceleration of the target object is consistently less than the specified threshold is more than the specified time, hold
Row release event;
If the time that the acceleration of the target object is consistently less than the specified threshold is not more than the specified time,
Drag events are performed, and continues to detect the acceleration of the target object and judges that the acceleration of the target object is lasting low
It is whether big at fixed time in the time of the specified threshold, until performing release event.
With reference in a first aspect, in the first possible implementation of first aspect, the target object includes:User
Hand, or the object of user's grip.
With reference to the possible implementation of the first of first aspect or first aspect, in second of possible implementation
In, the acceleration for determining target object includes:By being arranged on camera in the terminal or being arranged in the terminal
Infrared sensor detect the target object, and determine the acceleration of the target object.
With reference to the first or second of possible implementation of first aspect or first aspect, in the third possible reality
In existing mode, the event of pressing is to choose the icon specified, and the drag events are the motion rail according to the target object
Mark drags the icon specified;The release event is end choosing to the icon specified.
With reference to the first or second of possible implementation of first aspect or first aspect, in the 4th kind of possible reality
In existing mode, the event of pressing is to choose the icon specified, and the release event is corresponding to the opening icon specified
Application program.
With reference to the first or second of possible implementation of first aspect or first aspect, in the 5th kind of possible reality
In existing mode, the event of pressing is display highlighting, and the drag events are to be moved according to the movement locus of the target object
The cursor, the release event are the click of the position current to the cursor.
The second aspect of the present invention, there is provided a kind of terminal, including:
Device is detected, for detecting the acceleration of target object;The acceleration of the target object is sent to processor;
Wherein, the target object is close but does not contact the terminal;
The processor, the acceleration of the target object detected for receiving the detection device, and judge institute
Whether the acceleration for stating target object is more than or equal to pre-determined threshold;If the acceleration of the target object is more than or equal to described
Pre-determined threshold, then perform and press event, and continue through the acceleration for the target object that the detection device detects;Sentence
Whether the time that the acceleration of the disconnected target object is consistently less than specified threshold is big at fixed time;If the target object
The time that acceleration is consistently less than the specified threshold is more than the specified time, then performs release event;If the object
The time that the acceleration of body is consistently less than the specified threshold is not more than the specified time, then performs drag events, and continue
Detect the acceleration of the target object and judge that the acceleration of the target object is consistently less than the time of the specified threshold
Whether greatly at fixed time, until performing release event.
With reference to the second aspect of the present invention, in the first possible implementation, the target object includes:User's hand
Portion, or the object of user's grip.
With reference to the possible implementation of the first of the second aspect of the present invention or second aspect, in second of possible reality
In existing mode, the detection device includes:It is arranged on camera or the infrared sensing being arranged in the terminal in the terminal
Device;The detection device is specifically used for:The target object is detected, and determines the acceleration of the target object.
With reference to the first or second of possible implementation of second aspect or second aspect, in the third possible reality
In existing mode, the event of pressing is to choose the icon specified, and the drag events are the motion rail according to the target object
Mark drags the icon specified;The release event is end choosing to the icon specified.
With reference to the first or second of possible implementation of second aspect or second aspect, in the 4th kind of possible reality
In existing mode, the event of pressing is to choose the icon specified, and the release event is corresponding to the opening icon specified
Application program.
With reference to the first or second of possible implementation of second aspect or second aspect, in the 5th kind of possible reality
In existing mode, the event of pressing is display highlighting, and the drag events are to be moved according to the movement locus of the target object
The cursor, the release event are the click of the position current to the cursor.
The method and terminal of contactless input information provided in an embodiment of the present invention, can become the speed of target object
The foundation for the operation that change situation is carried out as judgement user, performed when the acceleration of target object is larger and press event,
Drag events are performed when acceleration is relatively low, and release event is performed when acceleration continues relatively low.Relative to prior art, this hair
Bright embodiment can realize that user need to only change rocking speed and can carrying out contactless operation for hand, avoid existing skill
Gesture conversion is continually carried out in order to be operated in art, so as to extenuate because hand, four limbs caused by prolonged operation
Fatigue, improve the Experience Degree of user.Also, in the practical application of prior art, because different target object has size poor
Different, finger shape difference or the difference caused by finger deformity, by gesture convert judge user input can by with
The influence of the hand difference at family, therefore easily there is error originated from input, the embodiment of the present invention is due to being by the speed change of target object
The foundation for the operation that change situation is carried out as judgement user, it is not necessary to gesture judgement is carried out, therefore will not be by above-mentioned hand
Influence caused by difference, therefore can also improve the accurate of contactless operation relative to prior art, the embodiment of the present invention
Degree.
Embodiment
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 carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained all other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
The embodiment of the present invention can be used for a kind of terminal, also, include the inspection for catching human body in this terminal
Device is surveyed, such as:Body-sensing terminal with camera, camera are used to gather gesture variation track, major beat of user etc.
Human action, and can be handled by the human action that the processor in body-sensing terminal is captured to camera, so as to
Determine the information represented by user action;For another example:Interactive projection terminal can be by infrared sensor according to certain frequency
Rate obtains be rendered as user's body profile in each frame by the body of noctovisor scan user, such as 45Hz, 60Hz etc.
Gray-scale map, and the action situation of change of user can be determined using gray-scale map.
One embodiment of the invention provides a kind of method of contactless input information, as shown in figure 1, including:
101, the acceleration of target object is detected, the target object is close but does not contact the terminal.
Wherein, terminal can be by detecting the change in location situation of units test target object, and further determination mesh
The acceleration of object is marked, such as:Detection device in terminal can detect the change in location situation of target object, and calculate mesh
The speed and acceleration of object are marked, the real time acceleration value of target object is sent to the processor of terminal, and by processor root
Corresponding input operation is performed according to the acceleration change situation of target object.It is understood that if detection device does not possess meter
Calculation ability, the change in location situation of the target object detected can also be sent to processor, by processor according to object
The change in location situation of body, it is determined that the speed change curves of target object within a period of time as shown in Figure 1a, then can root
The situation of change of the acceleration of target object within a period of time is determined according to the gradient of speed change curves.In actual applications,
The detection device such as such as camera, infrared sensor can catch the change in location situation of target object frame by frame with certain frequency,
Therefore the running frequency of detection device is higher, and terminal determines that the precision of the acceleration of target object is higher.
Optionally, the acceleration of target object is specifically as follows user's hand, such as the acceleration of target object, can also
For the object of user's grip, such as pen etc..In the present embodiment, terminal can be by detecting device lock onto target object, and really
Set the goal the acceleration of object, recycles the acceleration of target object to perform other handling processes of the present embodiment, so that
User completes contactless input operation by terminal by target object can, is carried out compared to user using whole hand
Contactless operation, it is possible to reduce the amount of exercise of user, so as to improve comfortableness when carrying out user's input operation, improve user
Experience.
In the present embodiment, can continuously tracks the space coordinates of target object by detecting device after electricity in terminal
Situation of change, and according to the situation of change of the space coordinates of target object on screen mobile cursor.
102, judge whether the acceleration of the target object is more than or equal to pre-determined threshold.
In the present embodiment, pre-determined threshold can be inputted or prestored by user in the terminal, also
Can be that terminal automatically generates.
103, if the acceleration of the target object is more than or equal to the pre-determined threshold, event is pressed in execution.
Wherein, the push that event is used for analog mouse is pressed.Such as:As shown in Figure 1a, at t2 and t3 periods, end
End has obtained the acceleration of target object according to the Slope Analysis of the rate curve of target object, and adding for target object is determined
The absolute value of speed is more than or equal to pre-determined threshold, and terminal can perform the DOWN events clicked on for analog mouse.
If the acceleration of target object is less than the pre-determined threshold, the space that terminal continues continuous tracking target object is sat
Target situation of change, and cursor is moved on screen according to the situation of change of the space coordinates of target object.
104, continue to detect the acceleration of the target object;Judge the target object acceleration be consistently less than it is specified
Whether the time of threshold value is big at fixed time.
Wherein, after event is pressed in execution, will not discharge immediately, when the acceleration of target object is consistently less than specified threshold
Time reach specified time, can just perform release event, otherwise will perform drag events.The specific such as He of following steps 105
106。
105, if the time that the acceleration of the target object is consistently less than the specified threshold be more than the specified time,
Then perform release event.
106, if the time that the acceleration of the target object is consistently less than the specified threshold is not more than described specified
Between, then drag events are performed, and continue to detect the acceleration of the target object and judge that the acceleration of the target object is held
Whether the continuous time less than the specified threshold is big at fixed time, until performing release event.
Specifically, the technical scheme provided according to embodiments of the present invention, can obtain following technology scene, in this skill
Under art scene, terminal is a kind of body-sensing terminal, and the camera in body-sensing terminal is used to catch target object as detection device
Misalignment, wherein can include:
1st, user rocks finger back and forth before camera, and body-sensing terminal obtains the velocity variations of finger as shown in Figure 1 b
Curve.In speed change curves as shown in Figure 1 b, the gradient that dotted line is presented represents the size of pre-determined threshold, if a certain
Moment, such as 11s to carving at the beginning of the 15s periods, the tangent line of speed change curves is more than what dotted line was presented in Fig. 1 b
11s is bigger than the gradient of pre-determined threshold to the tangent line of 15s periods in the gradient, such as Fig. 1 b, then illustrates the acceleration of target object
More than or equal to pre-determined threshold.
2nd, 0 to 9s, the absolute value of the gradient of speed change curves is less than the gradient that dotted line is presented, therefore 0 to 10s
In period, body-sensing terminal only tracks the space coordinates of target object, and the situation of change of the space coordinates according to target object
MOVE events are performed, so as to accordingly move cursor on screen.
3rd, since 10s, the absolute value of the gradient of speed change curves is more than or equal to the gradient that dotted line is presented, body
Feel terminal Predicated execution DOWN events, and the action for clicking on cursor Click according to accordingly being made on screen.
The method of contactless input information provided in an embodiment of the present invention, can be by the velocity variations situation of target object
The foundation of the operation carried out as judgement user, performed when the acceleration of target object is larger and press event, in acceleration
Drag events are performed when relatively low, and release event is performed when acceleration continues relatively low.Relative to prior art, the present invention is implemented
Example can realize that user need to only change rocking speed and can carrying out contactless operation for hand, avoid and be in the prior art
Operated and continually carry out gesture conversion, so as to extenuate because the fatigue of hand, four limbs caused by prolonged operation,
Improve the Experience Degree of user.Also, in the practical application of prior art, because different target object has difference in size, finger
Shape difference or the difference caused by finger deformity, converted by gesture and judge that the input of user can be by the hand of user
The influence of difference, therefore easily there is error originated from input, the embodiment of the present invention is due to being by the velocity variations situation work of target object
The foundation of the operation carried out for judgement user, it is not necessary to carry out gesture judgement, therefore will not be caused by above-mentioned hand difference
Influence, therefore can also improve the degree of accuracy of contactless operation relative to prior art, the embodiment of the present invention.
Further, as shown in Fig. 2 can include in another embodiment of the invention:
201, the acceleration of target object is detected, the target object is close but does not contact the terminal.
Wherein, the position of target object is continuously acquired after electricity by detecting device in terminal.Such as:It is electric in terminal
Afterwards, can be constantly by the situation of change for the three-dimensional coordinate for detecting target object of the device seizure in reconnaissance range.Wherein,
The target object refers to distance the having in the detection device such as camera or sensor of target object and terminal close to terminal
Imitate in detection range.
202, judge whether the acceleration of the target object is more than or equal to pre-determined threshold.If the target object adds
Speed is more than or equal to the pre-determined threshold, then performs step 203;Otherwise, step 204 is performed.
203, event is pressed in execution, and step 205 is continued executing with after event is pressed in execution.
In a kind of optional implementation, the event of pressing is to choose the icon specified, and the drag events are root
The icon specified is dragged according to the movement locus of the target object;The release event is end to the icon specified
Choose.In another optional implementation, the event of pressing is to choose the icon specified, and the release event is to beat
Open application program corresponding to the icon specified.In another optional implementation, the event of pressing is display light
Mark, the drag events are to move the cursor according to the movement locus of the target object, and the release event is to described
The click of the current position of cursor.
204, mobile cursor, and continue executing with step 201.
Wherein, if the acceleration of target object is less than the pre-determined threshold, terminal continues continuous tracking target object
The situation of change of space coordinates, and cursor is moved on screen according to the situation of change of the space coordinates of target object.
205, continue detect target object acceleration, judge target object acceleration be consistently less than specified threshold when
Between whether it is big at fixed time;If the time that the acceleration of target object is consistently less than the specified threshold is more than described specified
Between, then perform step 207;If the time that the acceleration of target object is consistently less than the specified threshold is not more than described specified
Between, then perform step 206.
206, drag events are performed, and continue executing with step 205.
Drag events are used for the drag operation of analog mouse.Such as:Terminal is more than or equal in the acceleration of target object
Pre-determined threshold, can be using DOWN event+MOVE events as drag events after performing DOWN events.
207, perform release event.
Wherein, if the time that the acceleration of the target object is consistently less than the specified threshold is more than described specified
Between, then perform release event.
Such as:
As shown in Figure 2 a, in the beginning of t4 periods, the gradient of the rate curve of target object is gradually gentle, terminal according to
The rate curve of the target object of t4 periods determines that the acceleration of target object is constantly less than specified threshold, and accelerates
Degree has constantly been more than specified time t less than the time of specified thresholdx, then terminal can perform the point of release for analog mouse
Hit the UP events of operation.
Optionally, in the present embodiment, the pre-determined threshold for Predicated execution click event can be equal to holds for judgement
The specified threshold of row release event, both can also be unequal.The concrete numerical value of pre-determined threshold and specified threshold can be by user
Setting, can also be automatically generated, or be stored in when terminal is dispatched from the factory in the storage terminal of terminal by terminal.
Specifically, the technical scheme provided according to embodiments of the present invention, can also obtain following technology scene, at this
Under technology scene, terminal is a kind of interactive projection terminal, and the infrared sensor in interactive projection terminal is as detection device
For catching the misalignment of target object, wherein can include:
1st, user rocks finger back and forth in the reconnaissance range of infrared sensor, and interactive projection terminal is obtained such as Fig. 2 b institutes
The acceleration change curve of the finger shown.Interactive projection terminal judges whether the absolute value of acceleration is more than or equal to pre- gating
Limit.
2nd, 0 to 9s, the absolute value of acceleration is less than pre-determined threshold, therefore in 0 to 9s, interactive projection terminal only with
The space coordinates of track target object, and MOVE events are performed according to the situation of change of the space coordinates of target object, so as to shield
Cursor is accordingly moved on curtain.
3rd, since 10s, the absolute value of acceleration is more than or equal to pre-determined threshold, interactive projection terminal Predicated execution
DOWN events, and the action for clicking on cursor Click according to accordingly being made on screen.
4th, performed DOWN events and MOVE events, the phase on screen are utilized in 10s to 15s, interactive projection terminal
Corresponding dragging cursor, such as:After cursor is moved on an icon, interactive projection terminal performs DOWN events, and utilizes
DOWN events and MOVE events, follow the movement of target object accordingly to drag icon on screen.
Specifically, the technical scheme provided according to embodiments of the present invention, can also obtain following technology scene, at this
Under technology scene, terminal is a kind of there is provided the set top box of infrared camera, and set top box is connected with LCD screen, and can be with
Image is included on LCD screen;Target object can be user's finger;Infrared camera is used to catch as detection device
The misalignment of target object, wherein can include:
1st, user rocks finger back and forth in the reconnaissance range of infrared sensor, and set top box obtains finger as shown in Figure 2 c
Acceleration change curve.Set top box judges whether the absolute value of acceleration is more than or equal to pre-determined threshold.
2nd, 0 to 9s, the absolute value of acceleration is less than pre-determined threshold, therefore in 0 to 9s, set top box only tracks user's hand
The space coordinates of finger, and MOVE events are performed according to the situation of change of the space coordinates of user's finger, so as to relative on screen
Should the mobile cursor in ground.
3rd, it is more than or equal to pre-determined threshold, set top box Predicated execution DOWN events, and root in 10s, the absolute value of acceleration
The action for clicking on cursor Click according to accordingly being made on screen.
4th, performed DOWN events and MOVE events, the corresponding dragging on screen are utilized in 10s to 14s, set top box
Cursor, such as:After cursor is moved on an icon, set top box performs DOWN events, and utilizes DOWN events and MOVE things
Part, the movement of target object is followed accordingly to drag icon on screen.
5th, start in 15s, the absolute value of acceleration has been less than pre-determined threshold, and in 15s to 20s, acceleration it is absolute
Value is less than specified threshold always, wherein, specified threshold can be a value equal with pre-determined threshold, such as:Such as Fig. 2 c1 institutes
Show, the absolute value of specified threshold is 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, the absolute value of specified threshold is less than or greater than the absolute value of pre-determined threshold.Specified time is 3s, then in 16s extremely
The duration that the absolute value of 20s acceleration is less than specified threshold is more than 3s, therefore can be performed in 19s set top boxes for simulating
The UP events of the release clicking operation of mouse, and with respect to the action of display release cursor on LCD screen.
The method of contactless input information provided in an embodiment of the present invention, can be by the velocity variations situation of target object
The foundation of the operation carried out as judgement user, performed when the acceleration of target object is larger and press event, in acceleration
Drag events are performed when relatively low, and release event is performed when acceleration continues relatively low.Relative to prior art, the present invention is implemented
Example can realize that user need to only change rocking speed and can carrying out contactless operation for hand, avoid and be in the prior art
Operated and continually carry out gesture conversion, so as to extenuate because the fatigue of hand, four limbs caused by prolonged operation,
Improve the Experience Degree of user.Also, in the practical application of prior art, because different target object has difference in size, finger
Shape difference or the difference caused by finger deformity, converted by gesture and judge that the input of user can be by the hand of user
The influence of difference, therefore easily there is error originated from input, the embodiment of the present invention is due to being by the velocity variations situation work of target object
The foundation of the operation carried out for judgement user, it is not necessary to carry out gesture judgement, therefore will not be caused by above-mentioned hand difference
Influence, therefore can also improve the degree of accuracy of contactless operation relative to prior art, the embodiment of the present invention.
Further embodiment of this invention also provides a kind of terminal 30 for the method for realizing contactless input information, such as Fig. 3 institutes
Show, including:
Device 31 is detected, for detecting the acceleration of target object;The acceleration of the target object is sent to processing
Device 32;Wherein, the target object is close but does not contact the terminal;
The processor 32, the acceleration of the target object detected for receiving the detection device 31, and sentence
Whether the acceleration of the disconnected target object is more than or equal to pre-determined threshold;If the acceleration of the target object is more than or equal to
The pre-determined threshold, then perform and press event, and continue through the acceleration for the target object that the detection device detects
Degree;Judge whether greatly at fixed time the acceleration of the target object is consistently less than the time of specified threshold;If the target
The time that the acceleration of object is consistently less than the specified threshold is more than the specified time, then performs release event;It is if described
The time that the acceleration of target object is consistently less than the specified threshold is not more than the specified time, then performs drag events,
And continue to detect the acceleration of the target object and judge that the acceleration of the target object is consistently less than the specified threshold
Time it is whether big at fixed time, until performing release event.
Wherein, the target object includes:User's hand, or the object of user's grip.
Further, the detection device 31 includes:It is arranged on camera in the terminal 30 or is arranged on the terminal
Infrared sensor on 30;The detection device 31 is specifically used for:The target object is detected, and determines the target object
Acceleration.
Further, in a kind of optional implementation, the event of pressing is to choose the icon specified, the dragging
Event is to drag the icon specified according to the movement locus of the target object;The release event is end to the finger
Fixed icon is chosen.
Further, in another optional implementation, the event of pressing is to choose the icon specified, described to release
Event is put to open application program corresponding to the icon specified.
Further, in another optional implementation, the event of pressing is display highlighting, the drag events
To move the cursor according to the movement locus of the target object, the release event is the position current to the cursor
Click on.
The terminal 30 of contactless input information provided in an embodiment of the present invention, can be by the velocity variations feelings of target object
The foundation for the operation that condition is carried out as judgement user, performed when the acceleration of target object is larger and press event, accelerated
Drag events are performed when spending relatively low, and release event is performed when acceleration continues relatively low.It is real relative to prior art, the present invention
Applying example can realize that user need to only change rocking speed and can carrying out contactless operation for hand, avoid in the prior art
Continually carry out gesture conversion to be operated, so as to extenuate because hand caused by prolonged operation, four limbs it is tired
Labor, improve the Experience Degree of user.Also, in the practical application of prior art, because different target object has difference in size, hand
Refer to shape difference or the difference caused by finger deformity, converted by gesture and judge that the input of user can be by the hand of user
The influence of portion's difference, therefore easily there is error originated from input, the embodiment of the present invention is due to being by the velocity variations situation of target object
The foundation of the operation carried out as judgement user, it is not necessary to carry out gesture judgement, therefore will not be made by above-mentioned hand difference
Into influence, therefore can also improve the degree of accuracy of contactless operation relative to prior art, the embodiment of the present invention.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for terminal
For applying example, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to embodiment of the method
Part explanation.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, RAM)Deng.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all should
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.