Summary of the invention
The invention provides a kind of method and the device that identify touch control operation instruction on touch-screen, method and apparatus provided by the present invention solves the problem that accurately can not identify multi-point touch operation in prior art.
Identify a method for touch control operation instruction on touch-screen, be applied in the data processing equipment of the touch-screen with multi-point touch function, described method comprises:
Detecting when described touch-screen having N number of touch control operation simultaneously, obtaining at least one parameter value for describing each touch control operation attribute, wherein, described N be more than or equal to 2 integer;
At least one parameter value correspondence of multiple touch control operation in described N number of touch control operation is compared and obtains the first comparative result;
Described first comparative result is compared with corresponding predetermined threshold value, and obtain the second comparative result, judge that described N number of touch control operation is K the touch control operation instruction for operating object multiple in described data processing equipment or M the touch control operation instruction for operating object multiple in described data processing equipment according to the second comparative result, wherein, M is the integer being more than or equal to 2 and being less than or equal to N; K is the integer being less than M.
At least one parameter value correspondence of described N number of touch control operation compared before obtaining the first comparative result, the method also comprises further:
The coordinate information of described touch control operation is obtained from least one parameter value described;
Determine the object in the described data processing equipment corresponding with described N number of touch control operation according to described coordinate information, and judge that described N number of touch control operation is K touch control operation instruction or M touch control operation instruction according to the number of multiple touch control operation effective object.
Determine the object in the described data processing equipment corresponding with described N number of touch control operation according to described coordinate information, and judge that described N number of touch control operation is that K touch control operation instruction or M touch control operation instruction comprise according to the number of multiple touch control operation effective object:
Whether the multiple touch control operations detected in described N number of touch control operation act on an object in data processing equipment, if so, then determine that described multiple touch control operation is a touch control operation instruction for operating a described object; Otherwise, at least one parameter value correspondence of multiple touch control operation in described N number of touch control operation is compared and obtains the first comparative result.
At least one parameter value described is the trace information of touch control operation, then at least one parameter value correspondence of multiple touch control operation in described N number of touch control operation compared and obtain the first comparative result; Described first comparative result is compared with corresponding predetermined threshold value, and obtain the second comparative result, judge that described N number of touch control operation is that K the touch control operation instruction for operating object multiple in described data processing equipment or M the touch control operation instruction for operating object multiple in described data processing equipment comprise according to the second comparative result:
According to described trace information, determine the starting point coordinate of any two touch control operations, and described starting point coordinate is compared the starting point distance determining any two touch control operations;
Described starting point distance and the first threshold preset are compared, if described starting point distance is greater than default first threshold, then determine that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment; Otherwise, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment.
When described two touch control operations are paddling operation, then described two touch control operation instructions are by the touch control operation instruction of a described object to two different directions movements; A described touch control operation instruction is reduce a described object or the touch control operation instruction of amplifieroperation.
At least one parameter value described is the pressure information of each touch control operation in touch control operation, then at least one parameter value correspondence of multiple touch control operation in described N number of touch control operation compared and obtain the first comparative result; Described first comparative result is compared with corresponding predetermined threshold value, and obtain the second comparative result, judge that described N number of touch control operation is that K the touch control operation instruction for operating object multiple in described data processing equipment or M the touch control operation instruction for operating object multiple in described data processing equipment comprise according to the second comparative result:
The pressure information of described any two touch control operations is compared, determines the pressure differential of described any two touch control operations;
Described pressure differential and the Second Threshold preset being compared, if described pressure differential is greater than default Second Threshold, then determining that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment; Otherwise, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment.
At least one parameter value described is the gesture projection information of any two touch control operations in touch control operation, then at least one parameter value correspondence of multiple touch control operation in described N number of touch control operation compared and obtain the first comparative result; Described first comparative result is compared with corresponding predetermined threshold value, and obtain the second comparative result, judge that described N number of touch control operation is that K the touch control operation instruction for operating object multiple in described data processing equipment or M the touch control operation instruction for operating object multiple in described data processing equipment comprise according to the second comparative result:
The gesture projection information of any two touch control operations is compared, and determines the similarity ratio of two gesture projection informations;
Described similarity ratio and the 3rd threshold value preset are compared, if described similarity ratio is greater than the 3rd default threshold value, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment; Otherwise, then determine that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment.
Also provide a kind of device identifying touch control operation instruction on touch-screen according to the said method embodiment of the present invention, this device has the touch-screen of multi-point touch function, comprises
Parameter acquisition module, when described touch-screen having simultaneously N number of touch control operation for detecting, obtains at least one parameter value for describing each touch control operation attribute, wherein, described N be more than or equal to 2 integer;
First comparison module, obtains the first comparative result at least one parameter value correspondence of multiple touch control operation in described N number of touch control operation being compared;
Touch command determination module, for described first comparative result is compared with corresponding predetermined threshold value, and obtain the second comparative result, judge that described N number of touch control operation is K the touch control operation instruction for operating object multiple in described data processing equipment or M the touch control operation instruction for operating object multiple in described data processing equipment according to the second comparative result, wherein, M is the integer being more than or equal to 2 and being less than or equal to N; K is the integer being less than M.
At least one parameter value described is the trace information of touch control operation, then described first comparison module is also for according to described trace information, determine the starting point coordinate of any two touch control operations, and described starting point coordinate is compared the starting point distance determining any two touch control operations;
Described touch command determination module is also for comparing described starting point distance and the first threshold preset, if described starting point distance is greater than default first threshold, then determine that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment; Otherwise, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment.
At least one parameter value described is the pressure information of each touch control operation in touch control operation, and the first comparison module also for being compared by the pressure information of described any two touch control operations, determines the pressure differential of described any two touch control operations;
Then described touch command determination module is also for comparing described pressure differential and the Second Threshold preset, if described pressure differential is greater than default Second Threshold, then determine that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment; Otherwise, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment.
At least one parameter value described is the gesture projection information of any two touch control operations in touch control operation, then the first comparison module is also for comparing the gesture projection information of any two touch control operations, and determines the similarity ratio of two gesture projection informations;
Described touch command determination module is also for comparing described similarity ratio and the 3rd threshold value preset, if described similarity ratio is greater than the 3rd default threshold value, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment; Otherwise, then determine that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment.
Further, this device also comprises:
Effective object judge module, for obtaining the coordinate information of described touch control operation from least one parameter value described; Determine the object in the described data processing equipment corresponding with described N number of touch control operation according to described coordinate information, and judge that described N number of touch control operation is K touch control operation instruction or M touch control operation instruction according to the number of multiple touch control operation effective object.
One or two in technique scheme, at least has following technique effect:
Detect described touch-screen has simultaneously multiple touch control operation time, obtain at least one parameter value for describing each touch control operation attribute; At least one parameter value correspondence of multiple touch control operation in described N number of touch control operation is compared and obtains the first comparative result; Described first comparative result is compared with corresponding predetermined threshold value, and obtain the second comparative result, judge that described N number of touch control operation is K the touch control operation instruction for operating object multiple in described data processing equipment or M the touch control operation instruction for operating object multiple in described data processing equipment according to the second comparative result.Thus realize being judged by simple distance threshold, solve the problem that can not accurately identify when multi-user operates simultaneously.
Embodiment
The embodiment of the present invention provides a kind of method identifying touch control operation instruction on touch-screen, be applied in the data processing equipment of the touch-screen with multi-point touch function, the method comprises: detect when described touch-screen having simultaneously N number of touch control operation, obtain at least one parameter value for describing each touch control operation attribute, wherein, described N be more than or equal to 2 integer; At least one parameter value of described N number of touch control operation is compared with corresponding predetermined threshold value, and judge that described N number of touch control operation is K the touch control operation instruction for operating object multiple in described data processing equipment or M the touch control operation instruction for operating object multiple in described data processing equipment according to comparative result, wherein, M is the integer being more than or equal to 2 and being less than or equal to N; K is the integer being less than M.
As shown in Figure 1, the embodiment of the present invention provides a kind of method identifying touch control operation instruction on touch-screen, the method that the embodiment of the present invention provides is applied in the data processing equipment of the touch-screen with multi-point touch function, is described in detail to the specific embodiment of the present invention below in conjunction with Figure of description:
The multi-point touch touch-screen of giant-screen in the prior art, if multiple user operates the multi-point touch operation that described data processing equipment can accurately not identify multiplex operation or same user simultaneously, the method provided based on the problems referred to above embodiment of the present invention comprises:
Step 101, detecting when described touch-screen having N number of touch control operation simultaneously, obtaining at least one parameter value for describing each touch control operation attribute, wherein, described N be more than or equal to 2 integer;
In embodiments of the present invention, at least one parameter value described is including, but not limited to following parameter: touch point is subject to the projection information that the coordinate information of force information, touch point and changes in coordinates and touch control operation are corresponding.
Step 102, compares at least one parameter value correspondence of described N number of touch control operation and obtains the first comparative result;
In this step, at least one parameter value correspondence compares and refers to: the parameter value that any two touch control operation character are identical compares.Such as: the touch point of touch control operation A1 and A2 is stressed to be compared.
Step 103, described first comparative result is compared with corresponding predetermined threshold value, and obtain the second comparative result, judge that described N number of touch control operation is K the touch control operation instruction for operating object multiple in described data processing equipment or M the touch control operation instruction for operating object multiple in described data processing equipment according to the second comparative result, wherein, M is the integer being more than or equal to 2 and being less than or equal to N; K is the integer being less than M.
Described in concrete applied environment at least one parameter value can be comprise multiple, the specific implementation " being compared with corresponding predetermined threshold value by least one parameter value of each touch control operation in described N number of touch control operation, and judge that described N number of touch control operation is K the touch control operation instruction for operating object multiple in described data processing equipment or M the touch control operation instruction for operating object multiple in described data processing equipment according to comparative result " in the embodiment of the present invention comprises:
(1) if at least one parameter value described is the trace information of touch control operation, then specific implementation can be:
According to described trace information, determine the starting point coordinate of any two touch control operations, and determine the starting point distance of any two touch control operations according to described origin coordinates;
Described starting point distance and the first threshold preset are compared, if described starting point distance is greater than default first threshold, then determine that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment; Otherwise, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment.
If a user uses multi-point touch operation amplify certain operand or reduce process in the application of reality, then the distance of multiple touch point receives the restriction of hand size.So first threshold obtains according to the mean value of the hand size of the multiple user of statistics.
(2) at least one parameter value described is the pressure information of each touch control operation in touch control operation, then specific implementation can be:
According to described pressure information, determine the pressure differential of any two touch control operations;
Described pressure differential and the Second Threshold preset being compared, if described pressure differential is greater than default Second Threshold, then determining that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment; Otherwise, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment.
If when in the application of reality, multiple user processes same target, not identical according to the pressure that the different users such as the use habit of individual use, so the pressure condition suffered by touch control operation band the touch control operation that same user carries out can be determined whether when carrying out touch control operation.
(3) at least one parameter value described is the gesture projection information of any two touch control operations in touch control operation, then specific implementation can be:
Two gesture projection informations are compared, and determines the similarity ratio of two gesture projection informations;
Described similarity ratio and the 3rd threshold value preset are compared, if described similarity ratio is greater than the 3rd default threshold value, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment; Otherwise, then determine that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment.
In embodiments of the present invention, gesture projection information when user operates touch panel device can also be got with crossing infrared equipment etc., when using different fingers to operate a certain object if any same user, the gesture projection information accessed by two touch control operations will be identical.So also can determine whether multiple touch point triggers a touch command according to gesture projection information.
In addition, if because multiple touch control operation is in same object in concrete application, then having larger probability is a touch control operation instruction, also comprises in method of the present invention:
The coordinate information of described touch control operation is obtained from least one parameter value described;
Determine the object in the described data processing equipment corresponding with described N number of touch control operation according to described coordinate information, and judge that described N number of touch control operation is K touch control operation instruction or M touch control operation instruction according to the number of multiple touch control operation effective object.
The concrete mode realizing manipulation instruction identification in said method can be:
An object in data processing equipment whether is acted on according to multiple touch control operations that described coordinate information is determined in described N number of touch control operation, if so, then determine that described multiple touch control operation is a touch control operation instruction for operating a described object; Otherwise, at least one parameter value correspondence of multiple touch control operation in described N number of touch control operation is compared and obtains the first comparative result.
As shown in Figure 2, the embodiment of the present invention also provides a kind of device identifying touch control operation instruction on touch-screen, and this device has the touch-screen of multi-point touch function, comprises parameter acquisition module 201, first comparison module 202 and touch command determination module 203:
Parameter acquiring mould: 201, when described touch-screen having simultaneously N number of touch control operation for detecting, obtains at least one parameter value for describing each touch control operation attribute, wherein, described N be more than or equal to 2 integer;
First comparison module 202, obtains the first comparative result at least one parameter value correspondence of multiple touch control operation in described N number of touch control operation being compared;
Touch command determination module 203, for described first comparative result is compared with corresponding predetermined threshold value, and obtain the second comparative result, judge that described N number of touch control operation is K the touch control operation instruction for operating object multiple in described data processing equipment or M the touch control operation instruction for operating object multiple in described data processing equipment according to the second comparative result, wherein, M is the integer being more than or equal to 2 and being less than or equal to N; K is the integer being less than M.
Described in concrete applied environment at least one parameter value can be comprise multiple, the specific implementation " being compared with corresponding predetermined threshold value by least one parameter value of each touch control operation in described N number of touch control operation, and judge that described N number of touch control operation is K the touch control operation instruction for operating object multiple in described data processing equipment or M the touch control operation instruction for operating object multiple in described data processing equipment according to comparative result " in the embodiment of the present invention comprises:
If a user uses multi-point touch operation amplify certain operand or reduce process in the application of reality, then the distance of multiple touch point receives the restriction of hand size.So first threshold obtains according to the mean value of the hand size of the multiple user of statistics.
(1) at least one parameter value described is the trace information of touch control operation, then
Described first comparison module 202 also for according to described trace information, determines the starting point coordinate of any two touch control operations, and described starting point coordinate is compared the starting point distance determining any two touch control operations;
Described touch command determination module 203 is also for comparing described starting point distance and the first threshold preset, if described starting point distance is greater than default first threshold, then determine that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment; Otherwise, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment.
If when in the application of reality, multiple user processes same target, not identical according to the pressure that the different users such as the use habit of individual use, so the pressure condition suffered by touch control operation band the touch control operation that same user carries out can be determined whether when carrying out touch control operation.
(2) at least one parameter value described is the pressure information of each touch control operation in touch control operation, then:
First comparison module 202 also for being compared by the pressure information of described any two touch control operations, determines the pressure differential of described any two touch control operations;
Described touch command determination module 203 is also for comparing described pressure differential and the Second Threshold preset, if described pressure differential is greater than default Second Threshold, then determine that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment; Otherwise, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment.
In embodiments of the present invention, gesture projection information when user operates touch panel device can also be got with crossing infrared equipment etc., when using different fingers to operate a certain object if any same user, the gesture projection information accessed by two touch control operations will be identical.So also can determine whether multiple touch point triggers a touch command according to gesture projection information.
(3) at least one parameter value described is the gesture projection information of any two touch control operations in touch control operation, then:
First comparison module 202 also for being compared by the gesture projection information of any two touch control operations, and determines the similarity ratio of two gesture projection informations;
Described touch command determination module 203 is also for comparing described similarity ratio and the 3rd threshold value preset, if described similarity ratio is greater than the 3rd default threshold value, determine that described any two touch control operations are touch control operation instructions for operating an object in described data processing equipment; Otherwise, then determine that described any two touch control operations are two touch control operation instructions for operating an object in described data processing equipment.
In addition, if because multiple touch control operation is in same object in concrete application, then having larger probability is a touch control operation instruction, also comprises in apparatus of the present invention:
Effective object judge module 204, for obtaining the coordinate information of described touch control operation from least one parameter value described; Determine the object in the described data processing equipment corresponding with described N number of touch control operation according to described coordinate information, and judge that described N number of touch control operation is K touch control operation instruction or M touch control operation instruction according to the number of multiple touch control operation effective object.
Above-mentioned one or more technical scheme in the embodiment of the present application, at least has following technique effect:
This programme sets the maloperation problem differentiating user by distance threshold, specifically, when computer recognizing is to two or more gesture, first judge whether the starting point of these two gestures is greater than a threshold value, if any being greater than a threshold value, then judgement is the different operating of two users, and if any when judging that the starting point of these two gestures is less than a threshold value, judgement is the operation of a user.By simple threshold decision, solve multi-user and operate the problem that accurately can not identify manipulation instruction simultaneously.
Method of the present invention is not limited to the embodiment described in embodiment, and those skilled in the art's technical scheme according to the present invention draws and other embodiment belongs to technological innovation scope of the present invention equally.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.