Embodiment
Below in conjunction with accompanying drawing embodiment of the invention triggering method of touch screen, touching device and handheld device are described in detail.
Should be clear and definite, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtained under the creative work prerequisite.
As shown in Figure 1, the triggering method of touch screen that the embodiment of the invention provides can prevent the false triggering touch-screen preferably, and described method comprises:
S101 compares touching input random figure parameter that produces and the test pattern parameter of storing in advance;
S102 when the comparative result of described random figure parameter and described test pattern parameter is in preset range, accepts described touch input, and carries out corresponding operating according to described touch input;
S103 when the comparative result of described random figure parameter and described test pattern parameter exceeds preset range, locks described touch-screen.
The triggering method of touch screen that the embodiment of the invention provides, owing to can compare with touching the random figure parameter of input generation and the test pattern parameter of storage in advance, and when the comparative result of described random figure parameter and described test pattern parameter exceeds preset range the locking touch-screen, refusal is accepted described touch input, has therefore prevented the false triggering of touch-screen preferably.
Wherein, described parameter comprises the shape and the area size of figure.That is the profile (expression shape) and the area value that, when storage standards graphic parameter in advance, need the storage standards figure.After the user touches input and produces random figure, described random figure is handled profile and area value (this will elaborate follow-up) to obtain described random figure.With regard to shape and area size two aspects described random figure and described test pattern are compared afterwards, and when the corresponding comparative result of the shape of the shape of described random figure and area size and described test pattern and area size is all in preset range, accept described touch input; When in the corresponding comparative result of the shape of the shape of described random figure and area size and described test pattern and area size one exceeds preset range, lock described touch-screen, refusal is accepted described touch input.
Need to prove, at vpg connection, can more described random figure and the registration (or misalignment) of described test pattern, for example described preset range can be set to 20% for misalignment, promptly when the misalignment of described random figure and described test pattern greater than 20% the time, just think that comparative result exceeds preset range, at this moment will lock touch-screen, refusal is accepted described touch input.Aspect the area size, the area of described random figure and the area of described test pattern can be compared, when ratio is not between 80%~120%, can think that comparative result exceeds preset range, at this moment also want lock-screen, refusal is accepted described touch input.Need to prove that the value of preset range described here only is for example, in other embodiments of the invention, also can set other different preset range values.
Just describe the triggering method of touch screen described in the present embodiment below in detail.As shown in Figure 2, described triggering method comprises:
S201 obtains the frontier point of random figure.
After user's touch input produces random figure, obtain the frontier point of random figure, in order to follow-up use.The existing multiple method of obtaining graphic limit point in the prior art, present embodiment can be used for reference use.For example, Fig. 3 (a) triggers the random figure that produces behind the touch-screen for the user points, and can at first carry out discretize to random figure, and random figure is decomposed into each discrete point, and the random figure after the discretize is shown in Fig. 3 (b).Shown in Fig. 3 (c), find to be in outermost discrete point in the random figure then, as the point 1 among Fig. 3 (c), point 2 with put 3 etc., these outermost discrete points are exactly the frontier point of random figure.
S202 connects all or part of described frontier point by straight line or curve, produces the profile of described random figure.
Shown in Fig. 3 (d), can be connected whole frontier points of finding among Fig. 3 (c) to form the profile of described random figure by straight line, the profile of random figure is a polygon described in Fig. 3 (d).In other embodiments of the invention, also can use level and smooth curve to connect whole described frontier points.Perhaps in another other embodiment of the present invention, the described frontier point (and needn't connect whole described frontier points) of coupling part only.
S203, the profile that produces during according to the described frontier point of connection is determined the shape and the area size of described random figure.
Particularly, connecting the polygon that forms behind whole described frontier points by straight line in step S202 is exactly the profile of described random figure, the area size that described polygonal area size is exactly described random figure.Wherein, there has been the method for a lot of calculating graphics area sizes in the prior art, has been not described in detail in this.
S204 sets up the frame of reference, and with the position of the centre of form in the described frame of reference of described test pattern as reference point.
In the present embodiment, shown in Fig. 4 (a), described reference coordinate is rectangular coordinate system (is not limited thereto, also can sets up polar coordinate system), and horizontal ordinate is x, and ordinate is y.And the profile of test pattern described in the present embodiment is circular, is reference point with the position of the center of circle (being the centre of form) in rectangular coordinate system of described test pattern.
S205 carries out the translational coordination conversion to described random figure in the described frame of reference, the centre of form of described random figure is overlapped with described reference point.
Can use method commonly used in the prior art to determine the centre of form of described random figure.Situation after the centre of form of described random figure and the centre of form of described test pattern overlap is shown in Fig. 4 (b).
S206 calculates the misalignment that the centre of form overlaps described random figure in back and described test pattern.When described misalignment is within the preset range, execution in step S207; At described misalignment during greater than preset range, execution in step S209.Particularly, the method for definite described misalignment comprises among the step S206:
S2061 determines that the centre of form overlaps the second area outside the profile that first area outside the profile that the described random figure in back is positioned at described test pattern and described test pattern be positioned at described random figure.
In Fig. 4 (b), first area that described random figure (polygon) is positioned at outside the profile of described test pattern (circle) uses mesh lines to represent, the second area that described test pattern is positioned at outside the profile of described random figure uses hacures to represent.Calculate the area size of first area of the ruling that knits a net and the area size of beating hatched second area respectively.
S2062, with the ratio of described first area and test pattern area, and the ratio of described second area and test pattern area in a bigger shape misalignment as described random figure and described test pattern.
Calculate the ratio of described first area and described test pattern area, and the ratio that calculates described second area and described test pattern area, get wherein the greater as the shape misalignment of described random figure and described test pattern.Can avoid when following extreme case takes place mistake to determine described misalignment like this, as shown in Figure 5, described random figure (polygon, produce when triggering touch-screen by palm or face) area bigger, and cover described test pattern fully, described like this first area is just bigger and exceed preset range, and described second area is 0.In fact at this moment the registration of described random figure and described test pattern is determined described misalignment if still get the smaller among the two then can lead to errors not within preset range.
S207 compares the area size of described random figure and the area size of described test pattern, when ratio is within preset range, and execution in step S208; When ratio exceeds described preset range, execution in step S209.
Wherein, described preset range can be 80%~120%, promptly described random figure can less than described test pattern, also can be greater than described test pattern.And the embodiment of the invention is not limited to make the area size of described random figure directly to compare with the area size of described test pattern.In other embodiments of the invention, also can use the area size of described random figure to compare with the area size of described test pattern with the difference of the area size of described test pattern.
S208 accepts described touch input, and carries out corresponding operating according to described touch input.
S209, locking touch-screen, refusal accept described touch input, in order to avoid the described touch-screen of false triggering.
Here need to be described as follows two problems:
The first, though at first described random figure and described test pattern are compared in the present embodiment, in other embodiments of the invention, also can at first compare described random figure and described test pattern aspect the area size at vpg connection.
The second, though also undeclared in the present embodiment, should be understood that described test pattern parameter not only comprises with the user points corresponding test pattern parameter, also comprises and the corresponding test pattern parameter of felt pen.The process that the corresponding described test pattern parameter of described random figure parameter and felt pen is compared and embodiment illustrated in fig. 2 identical wherein.And, as long as described random figure parameter can with the user point corresponding test pattern parameter and with the corresponding test pattern parameter of felt pen in one be complementary, just can accept described touch input.
And the triggering method of touch screen in the present embodiment not only goes for resistive touch screen, is applicable to capacitive touch screen more.Because with the touch-screen on the mobile phone is example, when the user receives calls, perhaps, touch-screen only can too be pressed close to by user's face, and can not push described touch-screen, but this too press close to for described capacitive touch screen can cause false triggering to it, therefore the triggering method of touch screen in the present embodiment is applied in the described capacitive touch screen and can reaches better effect.
As shown in Figure 6, the embodiment of the invention also provides a kind of touching device, and described touching device comprises:
Comparing unit 601 is used for comparing touching input random figure parameter that produces and the test pattern parameter of storing in advance;
Operating unit 602 is used for comparative result in described random figure parameter and described test pattern parameter in preset range the time, accepts described touch input, and carries out corresponding operating according to described touch input;
Lock cell 603 is used for when the comparative result of described random figure parameter and described test pattern parameter exceeds preset range, the locking touch-screen.
The touching device that the embodiment of the invention provides, owing to can compare with touching the random figure parameter of input generation and the test pattern parameter of storage in advance, and when the comparative result of described random figure parameter and described test pattern parameter exceeds preset range the locking touch-screen, refusal is accepted described touch input, has therefore prevented the false triggering of touch-screen preferably.
Wherein, described parameter comprises the shape and the area size of figure.That is the profile (expression shape) and the area value that, when storage standards graphic parameter in advance, need the storage standards figure.After the user touches input and produces random figure, described random figure is handled profile and area value to obtain described random figure.With regard to shape and area size two aspects described random figure and described test pattern are compared afterwards, and when the corresponding comparative result of the shape of the shape of described random figure and area size and described test pattern and area size is all in preset range, accept described touch input; When in the corresponding comparative result of the shape of the shape of described random figure and area size and described test pattern and area size one exceeds preset range, lock described touch-screen, refusal is accepted described touch input.
Particularly, as shown in Figure 7, for shape and the area size of obtaining described random figure, described touching device also comprises:
Frontier point acquiring unit 604 is used to obtain the frontier point of described random figure;
Random figure profile generation unit 605 is used for connecting all or part of described frontier point by straight line or curve, produces the profile of described random figure;
Parameter determining unit 606, the profile that produces when being used for according to the described frontier point of connection is determined the shape and the area size of described random figure.
After the shape of obtaining described random figure and area size, just can compare described random figure and described test pattern aspect shape and the area size two.
At first when vpg connection compared described random figure and described test pattern, described comparing unit 601 comprised:
Reference point determination module 6011 is used to set up the frame of reference, and with the position of the centre of form in the described frame of reference of described test pattern as reference point;
The centre of form overlaps module 6012, is used in the described frame of reference described random figure being carried out the translational coordination conversion, and the centre of form of described random figure is overlapped with described reference point;
Computing module 6013 is used to calculate the misalignment that the centre of form overlaps described random figure in back and described test pattern.When the misalignment of described random figure and described test pattern exceeds preset range, just directly use the touch-screen of described touching device, to avoid the described touch-screen of false triggering.When the misalignment of described random figure and described test pattern is positioned within the preset range, aspect the area size described random figure and described test pattern are being compared again.
Particularly, for calculating described misalignment, described computing module 6013 comprises:
Do not overlap area and determine submodule 60131, be used for determining that the centre of form overlaps the second area outside the profile that first area outside the profile that the described random figure in back is positioned at described test pattern and described test pattern be positioned at described random figure;
Misalignment is determined submodule 10132, is used for the ratio of described first area and test pattern area, and the bigger shape registration as described random figure and described test pattern of ratio of described second area and test pattern area.
Secondly when aspect the area size described random figure and described test pattern being compared, described comparing unit 601 also comprises:
Area size comparison module 6014 is used to calculate the ratio of the area size of the area size of described random figure and described test pattern.When described ratio exceeded preset range, the touch-screen of described touching device was used in locking, in order to avoid the described touch-screen of false triggering; When described ratio is positioned within the preset range, accepts described touch input, and carry out corresponding operation according to described touch input.
Perhaps, in other embodiments of the invention, described area size comparison module 601 also can be used for calculating the area size of described random figure and the area size of described test pattern difference, with the ratio of the area size of described test pattern.
In addition, the embodiment of the invention also provides a kind of handheld device.Described handheld device comprises aforesaid touching device.Need to prove that the 26S Proteasome Structure and Function of the touching device among the 26S Proteasome Structure and Function of the touching device among the described handheld device embodiment and the described touching device embodiment is identical, does not repeat them here.
For example, handheld device described in the present embodiment can be mobile communication terminal (as mobile phone), media player, digital camera, digital camera, digital album (digital photo frame), personal digital assistant or game machine etc.
In sum, the triggering method of touch screen that the embodiment of the invention provides, touching device and handheld device, owing to can compare with touching the random figure parameter of input generation and the test pattern parameter of storage in advance, and when the comparative result of described random figure parameter and described test pattern parameter exceeds preset range the locking touch-screen, refusal is accepted described touch input, has therefore prevented the false triggering of touch-screen preferably.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, 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 described protection domain of claim.