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 are not making all other embodiment that obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Triggering method of touch screen as shown in Figure 1, that the embodiment of the invention provides can prevent the false triggering touch-screen preferably, and said 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 said random figure parameter and said test pattern parameter is in preset range, accepts said touch input, and carries out corresponding operating according to said touch input;
S103 when the comparative result of said random figure parameter and said test pattern parameter exceeds preset range, locks said touch-screen.
The triggering method of touch screen that the embodiment of the invention provides; Owing to can the test pattern parameter of the random figure parameter that touch the input generation with storage in advance be compared; And when the comparative result of said random figure parameter and said test pattern parameter exceeds preset range the locking touch-screen; Refusal is accepted said touch input, has therefore prevented the false triggering of touch-screen preferably.
Wherein, said 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 generation random figure, said random figure is handled profile and area value (this will elaborate follow-up) to obtain said random figure.With regard to shape and area size two aspects said random figure and said test pattern are compared afterwards; And when the big or small corresponding comparative result of the shape of the shape of said random figure and area size and said test pattern and area is all in preset range, accept said touch input; When in the corresponding comparative result of the shape of the shape of said random figure and area size and said test pattern and area size one exceeds preset range, lock said touch-screen, the said touch of refusal acceptance is imported.
Need to prove; At vpg connection, can more said random figure and the registration (or misalignment) of said test pattern, for example said preset range can be set to 20% for misalignment; Promptly when the misalignment of said random figure and said 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 said touch input.Aspect the area size; Can the area of said random figure and the area of said test pattern 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 said 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 value ranges.
Just specify the triggering method of touch screen described in the present embodiment below.As shown in Figure 2, said 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, like 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 said frontier point through straight line or curve, produces the profile of said random figure.
Shown in Fig. 3 (d), can be connected whole frontier points of finding among Fig. 3 (c) to form the profile of said random figure through 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 said frontier points.Perhaps in another other embodiment of the present invention, the said frontier point (and needn't connect whole said frontier points) of coupling part only.
S203, the profile that produces during according to the said frontier point of connection confirm the shape and the area size of said random figure.
Particularly, in step S202, connecting the polygon that forms behind whole said frontier points through straight line is exactly the profile of said random figure, the area size that said polygonal area size is exactly said 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 said frame of reference of said test pattern as reference point.
In the present embodiment, shown in Fig. 4 (a), the said frame of reference 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 said test pattern.
S205 carries out the translational coordination conversion to said random figure in the said frame of reference, the centre of form of said random figure is overlapped with said reference point.
Can use method commonly used in the prior art to confirm the centre of form of said random figure.Situation after the centre of form of said random figure and the centre of form of said test pattern overlap is shown in Fig. 4 (b).
S206 calculates the misalignment that the centre of form overlaps said random figure in back and said test pattern.When said misalignment is within the preset range, execution in step S207; At said misalignment during greater than preset range, execution in step S209.Particularly, the method for definite said misalignment comprises among the step S206:
S2061 confirms that the centre of form overlaps the second area outside the profile that first area and said test pattern outside the profile that the said random figure in back is positioned at said test pattern be positioned at said random figure.
In Fig. 4 (b), first area that said random figure (polygon) is positioned at outside the profile of said test pattern (circle) uses mesh lines to represent, the second area that said test pattern is positioned at outside the profile of said random figure uses hacures to represent.Calculate respectively the ruling that knits a net first area area size and to beat the area of hatched second area big or small.
S2062, with the ratio of said first area and test pattern area, and the ratio of said second area and test pattern area in a bigger shape misalignment as said random figure and said test pattern.
Calculate the ratio of said first area and said test pattern area, and the ratio that calculates said second area and said test pattern area, get wherein the greater as the shape misalignment of said random figure and said test pattern.Can avoid when following extreme case takes place mistake to confirm said misalignment like this; As shown in Figure 5; The area of said random figure (polygon produces when triggering touch-screen by palm or face) is bigger, and covers said test pattern fully; Said like this first area is just bigger and exceed preset range, and said second area is 0.In fact at this moment the registration of said random figure and said test pattern is confirmed said misalignment if still get the smaller among the two then can lead to errors not within preset range.
S207 compares the area size of said random figure and the area size of said test pattern, when ratio is within preset range, and execution in step S208; When ratio exceeds said preset range, execution in step S209.
Wherein, said preset range can be 80%~120%, promptly said random figure can less than said test pattern, also can be greater than said test pattern.And the embodiment of the invention is not limited to make the area size of said random figure directly to compare with the area size of said test pattern.In other embodiments of the invention, also can use the area size of said random figure to compare with the area size of said test pattern with the difference of the area size of said test pattern.
S208 accepts said touch input, and carries out corresponding operating according to said touch input.
S209, locking touch-screen, refusal accept said touch input, in order to avoid the said touch-screen of false triggering.
Following two problems need be described here:
The first, though at first said random figure and said test pattern are compared in the present embodiment, in other embodiments of the invention, also can at first compare said random figure and said test pattern aspect the area size at vpg connection.
The second, though also undeclared in the present embodiment, should be understood that said 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 wherein the corresponding said test pattern parameter of said random figure parameter and felt pen is compared and embodiment illustrated in fig. 2 identical.And, as long as said 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 said 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 said touch-screen, but this too press close to for said capacitive touch screen, can cause false triggering to it, therefore the triggering method of touch screen in the present embodiment is applied in the said 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 said 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 said random figure parameter and said test pattern parameter in preset range the time, accepts said touch input, and carries out corresponding operating according to said touch input;
Lock cell 603 is used for when the comparative result of said random figure parameter and said test pattern parameter exceeds preset range, the locking touch-screen.
The touching device that the embodiment of the invention provides; Owing to can the test pattern parameter of the random figure parameter that touch the input generation with storage in advance be compared; And when the comparative result of said random figure parameter and said test pattern parameter exceeds preset range the locking touch-screen; Refusal is accepted said touch input, has therefore prevented the false triggering of touch-screen preferably.
Wherein, said 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 generation random figure, said random figure is handled profile and area value to obtain said random figure.With regard to shape and area size two aspects said random figure and said test pattern are compared afterwards; And when the big or small corresponding comparative result of the shape of the shape of said random figure and area size and said test pattern and area is all in preset range, accept said touch input; When in the corresponding comparative result of the shape of the shape of said random figure and area size and said test pattern and area size one exceeds preset range, lock said touch-screen, the said touch of refusal acceptance is imported.
Particularly, as shown in Figure 7, for shape and the area size of obtaining said random figure, said touching device also comprises:
Frontier point acquiring unit 604 is used to obtain the frontier point of said random figure;
Random figure profile generation unit 605 is used for connecting all or part of said frontier point through straight line or curve, produces the profile of said random figure;
Parameter is confirmed unit 606, and the profile that produces when being used for according to the said frontier point of connection is confirmed the shape and the area size of said random figure.
After the shape of obtaining said random figure and area size, just can compare said random figure and said test pattern aspect shape and the area size two.
At first when vpg connection compared said random figure and said test pattern, said 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 said frame of reference of said test pattern as reference point;
The centre of form overlaps module 6012, is used in the said frame of reference said random figure being carried out the translational coordination conversion, and the centre of form of said random figure is overlapped with said reference point;
Computing module 6013 is used to calculate the misalignment that the centre of form overlaps said random figure in back and said test pattern.When the misalignment of said random figure and said test pattern exceeds preset range, just directly use the touch-screen of said touching device, to avoid the said touch-screen of false triggering.When the misalignment of said random figure and said test pattern is positioned within the preset range, aspect the area size said random figure and said test pattern are being compared again.
Particularly, for calculating said misalignment, said computing module 6013 comprises:
Do not overlap area and confirm submodule 60131, be used for confirming that the centre of form overlaps the second area outside the profile that first area and said test pattern outside the profile that the said random figure in back is positioned at said test pattern be positioned at said random figure;
Misalignment is confirmed submodule 10132, is used for the ratio of said first area and test pattern area, and the bigger shape registration as said random figure and said test pattern of ratio of said second area and test pattern area.
Secondly when aspect the area size, said random figure and said test pattern being compared, said comparing unit 601 also comprises:
Area size comparison module 6014 is used to calculate the area size of said random figure and the big or small ratio of area of said test pattern.When said ratio exceeded preset range, the touch-screen of said touching device was used in locking, in order to avoid the said touch-screen of false triggering; When said ratio is positioned within the preset range, accepts said touch input, and carry out corresponding operation according to said touch input.
Perhaps, in other embodiments of the invention, the big or small comparison module 601 of said area also can be used for calculating the area size and the difference of the area size of said test pattern, the ratio big or small with the area of said test pattern of said random figure.
In addition, the embodiment of the invention also provides a kind of handheld device.Said 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 said handheld device embodiment and the said touching device embodiment is identical, repeats no more at this.
For example, handheld device described in the present embodiment can be mobile communication terminal (like mobile phone), media player, digital camera, digital camera, DPF, 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 the test pattern parameter of the random figure parameter that touch the input generation with storage in advance be compared; And when the comparative result of said random figure parameter and said test pattern parameter exceeds preset range, locking touch-screen, refusal is accepted said touch input, has therefore prevented the false triggering of touch-screen preferably.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technician who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing 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 described protection domain of claim.