CN105320316B - Method and device for removing jitter of touch screen and terminal - Google Patents
Method and device for removing jitter of touch screen and terminal Download PDFInfo
- Publication number
- CN105320316B CN105320316B CN201410271171.8A CN201410271171A CN105320316B CN 105320316 B CN105320316 B CN 105320316B CN 201410271171 A CN201410271171 A CN 201410271171A CN 105320316 B CN105320316 B CN 105320316B
- Authority
- CN
- China
- Prior art keywords
- determining
- current
- distance threshold
- length
- contact area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Position Input By Displaying (AREA)
Abstract
The invention provides a method, a device and a terminal for removing jitter of a touch screen, and relates to the technical field of touch screens. The method comprises the following steps: acquiring a current touch point area of a touch screen and current touch point coordinates corresponding to the current touch point area; determining a distance threshold according to the current contact area; and if the distance between the current touch point coordinate and the previous touch point coordinate is smaller than or equal to the distance threshold, determining that the current touch point coordinate shakes, and discarding the current touch point coordinate. According to the scheme of the invention, the anti-shake effect of the touch screen can be improved by utilizing the detected touch graph, so that the touch experience of a user is improved.
Description
Technical Field
The invention relates to the technical field of touch screens, in particular to a method and a device for removing jitter of a touch screen and a terminal.
Background
With the development of the electronic information industry, intelligent terminals gradually become important ways for people to acquire information. At present, intelligent terminals mainly comprise two devices, namely a smart phone and a tablet personal computer, and the two devices have a touch screen with a human-computer interaction function. When a finger touches the touch screen, the touch screen can be shaken. Especially, when a narrow-edge touch screen is operated by holding with one hand, fingers inevitably slide on the edge. The touch screen edge is more prone to jitter.
The jitter problem greatly affects the user experience, and therefore, the jitter phenomenon must be reduced. The existing debouncing method is to judge whether the distance between the current touch spot coordinate and the previous touch spot coordinate is smaller than or equal to a threshold value, so as to judge whether the current touch spot coordinate is shaken, and if the current touch spot coordinate is shaken, the current touch spot coordinate is discarded. However, this approach has two problems:
1. judging whether the jitter occurs or not directly according to the distance between the current contact point coordinate and the previous contact point coordinate, wherein the judgment mode is single, and misjudgment is easy to generate;
2. if the jitter is judged to occur, the current touch point coordinate is discarded, and the method is only suitable for the situation of small jitter.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method, a device and a terminal for removing jitter of a touch screen, which can determine different anti-jitter effects according to the touch range of a user, thereby improving the touch experience of the user.
To solve the above technical problem, an embodiment of the present invention provides a method for removing jitter of a touch screen, including:
acquiring a current touch point area of a touch screen and current touch point coordinates corresponding to the current touch point area;
determining a distance threshold according to the current contact area;
and if the distance between the current touch point coordinate and the previous touch point coordinate is smaller than or equal to the distance threshold, determining that the current touch point coordinate shakes, and discarding the current touch point coordinate.
Wherein the step of determining a distance threshold based on the current contact area comprises:
and determining a distance threshold according to the aspect ratio of the current contact area.
Wherein the step of determining a distance threshold according to the aspect ratio of the current contact region comprises:
determining a length and a width of the current contact region;
if the ratio of the length to the width of the current contact area is smaller than a preset ratio, determining a first distance threshold, otherwise, determining a second distance threshold;
wherein the first distance threshold is less than the second distance threshold.
Wherein the step of determining the length and width of the current contact region comprises:
determining a first length according to the maximum point and the minimum point of the current contact area on the abscissa;
determining a second length according to the maximum point and the minimum point of the current contact area on the ordinate;
and determining the length and the width of the current contact area according to the first length and the second length.
In addition, an embodiment of the present invention further provides a debouncing apparatus for a touch screen, including:
the touch screen comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a current touch point area of the touch screen and a current touch point coordinate corresponding to the current touch point area;
the determining module is used for determining a distance threshold according to the current contact area;
and the processing module is used for determining that the current touch point coordinate shakes and discarding the current touch point coordinate if the distance between the current touch point coordinate and the previous touch point coordinate is smaller than or equal to the distance threshold.
The determining module determines a distance threshold according to the aspect ratio of the current contact area.
Wherein the determining module comprises:
a first determining submodule for determining the length and width of the current contact area;
the second determining submodule is used for determining a first distance threshold value if the ratio of the length to the width of the current contact area is smaller than a preset ratio, and otherwise, determining a second distance threshold value;
wherein the first distance threshold is less than the second distance threshold.
Wherein the first determination submodule includes:
the first determining unit is used for determining a first length according to the maximum point and the minimum point of the current contact area on the abscissa;
the second determining unit is used for determining a second length according to the maximum point and the minimum point of the current contact area on the ordinate;
and the third determining unit is used for determining the length and the width of the current contact area according to the first length and the second length.
In addition, the embodiment of the invention also provides a terminal with a touch screen, which comprises the de-jitter device as claimed in the claim.
The technical scheme of the invention has the following beneficial effects:
according to the scheme of the invention, the distance threshold can be determined according to the touch area (namely the area of the touch screen touched by the finger), so that different debouncing effects can be worked out according to different touch conditions of a user. Particularly, aiming at a scene with large jitter, the scheme of the invention can also eliminate the jitter phenomenon.
Drawings
FIG. 1 is a schematic diagram illustrating steps of a method for debouncing a touch screen according to the present invention;
FIG. 2 is an operational scenario of a touch screen;
FIG. 3 is a step diagram of a method for debouncing a touch screen embodying the present invention;
FIG. 4 is a schematic structural diagram of a debouncing device for a touch screen according to the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1, the present invention provides a method for debouncing a touch screen, including:
and step 13, if the distance between the current touch point coordinate and the previous touch point coordinate is less than or equal to the distance threshold, determining that the current touch point coordinate shakes, and discarding the current touch point coordinate.
As can be known from the above description, the debouncing method of the present invention can determine the distance threshold according to the touch area (i.e. the area where the finger touches the touch screen), so that different debouncing effects can be formulated according to different touch situations of the user. Particularly, aiming at a scene with large jitter, the method can also eliminate the jitter phenomenon.
Fig. 2 shows a common touch scenario, in which a user often needs to touch a far area with a finger when holding a touch screen, so that a large jitter occurs. Since the prior art only uses a preset fixed distance threshold to determine whether the current touch point coordinate shakes, the distance threshold is relatively small, and the shaking phenomenon shown in fig. 2 cannot be removed. To this end, in step 12 of the present invention, a distance threshold is determined based on the aspect ratio of the current contact area. That is, the aspect ratio can determine the condition of the finger touching the screen, and thus determine the magnitude of the reasonable distance threshold.
Specifically, step 12 includes:
step 121, determining the length and width of the current contact area;
step 122, if the ratio of the length to the width of the current contact area is smaller than a preset ratio, determining a first distance threshold, otherwise, determining a second distance threshold;
wherein the first distance threshold is less than the second distance threshold.
Step 121 and step 122 are explained in detail below.
In normal operation, the user's finger should be an isolated point to the touch area of the touch screen, with a relatively small ratio of length to width of the touch area (approaching 1), and a smaller value of the first distance threshold is set because no large jitter is generated. When a user reaches the touch screen by using a finger, the touch point area of the touch screen by the finger is in a long strip shape, the ratio of the length to the width of the touch point area is relatively large, and the difference generates large jitter, so that a second distance threshold with a large value is set, and the jitter judging range is enlarged.
Specifically, in step 121, the step of determining the length and width of the current contact region includes:
step 1211, determining a first length according to a maximum point and a minimum point of the current contact area on the abscissa;
step 1212, determining a second length according to the maximum point and the minimum point of the current contact area on the ordinate;
step 1213, determining the length and width of the current contact area according to the first length and the second length. That is, when the first length is greater than the second length, the first length is used as the length of the current contact region, and the second length is used as the width of the current contact region. And when the first length is smaller than the second length, taking the first length as the width of the current contact area, and taking the second length as the length of the current contact area.
The debouncing method embodying the present invention is described in detail below.
Step S301, the touch screen is electrified and initialized to enter a normal working mode;
step S302, when a new contact coordinate is generated, assigning the contact coordinate value to the previous contact coordinate value and storing the contact coordinate value;
step S303, detecting whether the current contact range is a long strip shape; if yes, go to step S305; otherwise, go to step S304;
step S304, determining a first distance threshold;
step S305, increasing the first distance threshold to obtain a second distance threshold;
step S306, judging whether the distance difference between the current contact coordinate value and the previous contact coordinate value is larger than a first distance threshold or a second distance threshold; if yes, go to step 308; if not, go to step 307;
step S307, reporting the current contact point coordinate, capturing a point reporting event by the application software, and performing subsequent processing;
in step S308, the current touch point coordinates are discarded.
Of course, the debounce method of the present invention may also be used in combination with the existing debounce method, and in the above steps, the existing determined distance threshold is the first distance threshold of the present invention. In step S303, when it is detected that the current contact range is a long strip, step S305 may increase the first distance threshold, so as to obtain the second distance threshold according to the present invention.
In summary, the debouncing method of the present invention utilizes the detected finger touch pattern to improve the anti-shake effect of the touch screen, thereby improving the touch experience of the user.
In addition, an embodiment of the present invention further provides a debouncing apparatus for a touch screen, including:
the touch screen comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a current touch point area of the touch screen and a current touch point coordinate corresponding to the current touch point area;
the determining module is used for determining a distance threshold according to the current contact area;
and the processing module is used for determining that the current touch point coordinate shakes and discarding the current touch point coordinate if the distance between the current touch point coordinate and the previous touch point coordinate is smaller than or equal to the distance threshold.
As can be known from the above description, the debouncing device of the present invention can determine the distance threshold according to the touch area (i.e. the area where the finger touches the touch screen), so that different debouncing effects can be formulated according to different touch situations of the user. Especially for the scene with large jitter, the device of the invention can also eliminate the jitter phenomenon.
Specifically, the determining module determines a distance threshold according to the aspect ratio of the current contact area.
Wherein, on the basis of the above embodiment, the determining module includes:
a first determining submodule for determining the length and width of the current contact area;
the second determining submodule is used for determining a first distance threshold value if the ratio of the length to the width of the current contact area is smaller than a preset ratio, and otherwise, determining a second distance threshold value;
wherein the first distance threshold is less than the second distance threshold.
Specifically, the first determination submodule includes:
the first determining unit is used for determining a first length according to the maximum point and the minimum point of the current contact area on the abscissa;
the second determining unit is used for determining a second length according to the maximum point and the minimum point of the current contact area on the ordinate;
and the third determining unit is used for determining the length and the width of the current contact area according to the first length and the second length.
Obviously, the debouncing device of the present embodiment corresponds to the debouncing method of the present invention, and the technical effects achieved by the method can be achieved by the device as well.
In addition, the embodiment of the invention also provides a terminal which is provided with a touch screen and comprises the debouncing device. The terminal can be a mobile phone, a pad, an automobile central control device and the like, and can improve the anti-shaking effect of the touch screen by using the detected touch graphics, so that the touch experience of a user is improved.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (5)
1. A method for debouncing a touch screen, comprising:
acquiring a current touch point area of a touch screen and current touch point coordinates corresponding to the current touch point area;
determining a distance threshold according to the current contact area;
if the distance between the current touch point coordinate and the previous touch point coordinate is smaller than or equal to the distance threshold, determining that the current touch point coordinate shakes, and discarding the current touch point coordinate;
the step of determining a distance threshold based on the current contact area comprises:
determining a distance threshold according to the length-width ratio of the current contact area;
the step of determining a distance threshold according to the aspect ratio of the current contact region comprises:
determining a length and a width of the current contact region;
if the ratio of the length to the width of the current contact area is smaller than a preset ratio, determining a first distance threshold, otherwise, determining a second distance threshold;
wherein the first distance threshold is less than the second distance threshold.
2. A method of debouncing according to claim 1, wherein the step of determining the length and width of the current contact area comprises:
determining a first length according to the maximum point and the minimum point of the current contact area on the abscissa;
determining a second length according to the maximum point and the minimum point of the current contact area on the ordinate;
and determining the length and the width of the current contact area according to the first length and the second length.
3. A debouncing apparatus for a touch screen, comprising:
the touch screen comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a current touch point area of the touch screen and a current touch point coordinate corresponding to the current touch point area;
the determining module is used for determining a distance threshold according to the current contact area;
the processing module is used for determining that the current touch point coordinate shakes and discarding the current touch point coordinate if the distance between the current touch point coordinate and the previous touch point coordinate is smaller than or equal to the distance threshold;
the determining module determines a distance threshold according to the aspect ratio of the current contact area;
the determining module comprises:
a first determining submodule for determining the length and width of the current contact area;
the second determining submodule is used for determining a first distance threshold value if the ratio of the length to the width of the current contact area is smaller than a preset ratio, and otherwise, determining a second distance threshold value;
wherein the first distance threshold is less than the second distance threshold.
4. A dejittering device as claimed in claim 3, wherein said first determining submodule comprises:
the first determining unit is used for determining a first length according to the maximum point and the minimum point of the current contact area on the abscissa;
the second determining unit is used for determining a second length according to the maximum point and the minimum point of the current contact area on the ordinate;
and the third determining unit is used for determining the length and the width of the current contact area according to the first length and the second length.
5. A terminal having a touch screen, characterized in that it comprises a debouncing device according to any one of claims 3-4.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410271171.8A CN105320316B (en) | 2014-06-17 | 2014-06-17 | Method and device for removing jitter of touch screen and terminal |
PCT/CN2014/086247 WO2015192490A1 (en) | 2014-06-17 | 2014-09-10 | Method, device, and terminal for removing jittering on touchscreen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410271171.8A CN105320316B (en) | 2014-06-17 | 2014-06-17 | Method and device for removing jitter of touch screen and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105320316A CN105320316A (en) | 2016-02-10 |
CN105320316B true CN105320316B (en) | 2020-12-11 |
Family
ID=54934766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410271171.8A Active CN105320316B (en) | 2014-06-17 | 2014-06-17 | Method and device for removing jitter of touch screen and terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105320316B (en) |
WO (1) | WO2015192490A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106484181A (en) * | 2016-09-20 | 2017-03-08 | 青岛海信电器股份有限公司 | The touch-responsive method and device of infrared touch panel |
CN112965653B (en) * | 2019-12-13 | 2022-08-12 | 北京小米移动软件有限公司 | Touch position reporting method and device and electronic equipment |
CN114237419B (en) * | 2021-03-31 | 2023-10-27 | 青岛海信商用显示股份有限公司 | Display device and touch event identification method |
CN113842634B (en) * | 2021-09-27 | 2024-02-27 | 歌尔科技有限公司 | Force feedback control method and device for trigger button, electronic product and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101963862A (en) * | 2010-09-26 | 2011-02-02 | 苏州瀚瑞微电子有限公司 | Coordinate anti-trembling method on touch screen |
CN102331872A (en) * | 2011-05-30 | 2012-01-25 | 广州视睿电子科技有限公司 | Method and device for realizing mouse middle key effect on touch screen |
CN102736769A (en) * | 2011-03-31 | 2012-10-17 | 比亚迪股份有限公司 | Method and device for identifying multi-point zooming operation |
EP2523083A1 (en) * | 2011-05-13 | 2012-11-14 | Harman Becker Automotive Systems GmbH | System and method for operating a touchscreen and a processing unit |
CN103064548A (en) * | 2011-10-24 | 2013-04-24 | 联咏科技股份有限公司 | Gesture judgment method capable of filtering mistouched panel out |
CN103105963A (en) * | 2011-11-11 | 2013-05-15 | 义隆电子股份有限公司 | Touch control device and method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI484380B (en) * | 2009-07-31 | 2015-05-11 | Mstar Semiconductor Inc | Determinative method and device of touch point movement |
US20110074694A1 (en) * | 2009-09-25 | 2011-03-31 | Peter William Rapp | Device and Method for Jitter Reduction on Touch-Sensitive Surfaces and Displays |
KR20110110940A (en) * | 2010-04-02 | 2011-10-10 | 삼성전자주식회사 | Method and apparatus for touch input in portable communication system |
CN101859219B (en) * | 2010-06-22 | 2012-08-22 | 北京握奇数据系统有限公司 | Method and device for debouncing of touch spot coordinates of touch screen |
US8810529B2 (en) * | 2011-02-11 | 2014-08-19 | Blackberry Limited | Electronic device and method of controlling same |
CN103412698B (en) * | 2013-07-30 | 2016-05-11 | 深圳市汇顶科技股份有限公司 | Touch panel coordinates de-jittering method, system and touch screen terminal |
CN103677416B (en) * | 2013-12-13 | 2016-09-07 | 广东欧珀移动通信有限公司 | A kind of sliding process prevents the method and apparatus that interface is shaken |
-
2014
- 2014-06-17 CN CN201410271171.8A patent/CN105320316B/en active Active
- 2014-09-10 WO PCT/CN2014/086247 patent/WO2015192490A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101963862A (en) * | 2010-09-26 | 2011-02-02 | 苏州瀚瑞微电子有限公司 | Coordinate anti-trembling method on touch screen |
CN102736769A (en) * | 2011-03-31 | 2012-10-17 | 比亚迪股份有限公司 | Method and device for identifying multi-point zooming operation |
EP2523083A1 (en) * | 2011-05-13 | 2012-11-14 | Harman Becker Automotive Systems GmbH | System and method for operating a touchscreen and a processing unit |
CN102331872A (en) * | 2011-05-30 | 2012-01-25 | 广州视睿电子科技有限公司 | Method and device for realizing mouse middle key effect on touch screen |
CN103064548A (en) * | 2011-10-24 | 2013-04-24 | 联咏科技股份有限公司 | Gesture judgment method capable of filtering mistouched panel out |
CN103105963A (en) * | 2011-11-11 | 2013-05-15 | 义隆电子股份有限公司 | Touch control device and method |
Also Published As
Publication number | Publication date |
---|---|
WO2015192490A1 (en) | 2015-12-23 |
CN105320316A (en) | 2016-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103135818B (en) | Quick operation response method and electronic equipment | |
JP6466518B2 (en) | System and method for improved processing of touch sensor data | |
JP6543273B2 (en) | Touch point recognition method and apparatus | |
US8970525B1 (en) | Method and system for trackpad input error mitigation | |
CN106598455B (en) | Touch behavior response method and device for handheld touch equipment and corresponding equipment | |
CN103593136A (en) | Touch terminal, and one-hand operation method and device of large-screen touch terminal | |
JP6128363B2 (en) | Data reporting method and apparatus, and terminal device | |
KR20140071282A (en) | Electronic device and method for controlling zooming of displayed object | |
US20100201644A1 (en) | Input processing device | |
CN103488419A (en) | Operating method of communication terminal and communication terminal | |
CN105320316B (en) | Method and device for removing jitter of touch screen and terminal | |
CN107450820B (en) | Interface control method and mobile terminal | |
EP2955619A1 (en) | Mobile terminal and application control method therefor | |
CN108108117B (en) | Screen capturing method and device and terminal | |
TWI510976B (en) | Method of selecting touch input source and electronic device using the same | |
US10656746B2 (en) | Information processing device, information processing method, and program | |
CN103927114A (en) | Display method and electronic equipment | |
CN107577404B (en) | Information processing method and device and electronic equipment | |
JPWO2012111227A1 (en) | Touch-type input device, electronic apparatus, and input method | |
JP5639487B2 (en) | Input device | |
US20150153925A1 (en) | Method for operating gestures and method for calling cursor | |
CN104679312A (en) | Electronic device as well as touch system and touch method of electronic device | |
CN104615342A (en) | Information processing method and electronic equipment | |
TW201528114A (en) | Electronic device and touch system, touch method thereof | |
CN104503573A (en) | Gesture operating method and gesture operating device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |