CN103412698A - Touch screen coordinate debouncing method and system and touch screen terminal - Google Patents
Touch screen coordinate debouncing method and system and touch screen terminal Download PDFInfo
- Publication number
- CN103412698A CN103412698A CN2013103240816A CN201310324081A CN103412698A CN 103412698 A CN103412698 A CN 103412698A CN 2013103240816 A CN2013103240816 A CN 2013103240816A CN 201310324081 A CN201310324081 A CN 201310324081A CN 103412698 A CN103412698 A CN 103412698A
- Authority
- CN
- China
- Prior art keywords
- coordinate
- buffer area
- output
- radius
- write
- 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.)
- Granted
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
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
Abstract
The invention is applicable to the technical field of touch screens and provides a touch screen coordinate debouncing method and system and a touch screen terminal. The method comprises the following steps: establishing a cache region, wherein the cache region is provided with two storage bits, each storage bit is used for storing the coordinate of a touched point, and coordinates written in the cache regions previously are moved out when new original coordinates are written in; taking the last output coordinates as centers, calculating the distances from the coordinates in the cache regions to the centers; judging the number of calculated distances smaller than a preset debouncing radius, and outputting the coordinates of the current touched points according to the judgment result.
Description
Technical field
The invention belongs to the touch screen technology field, relate in particular to a kind of touch panel coordinates de-jittering method, system and touch screen terminal.
Background technology
Capacitive touch screen is applied to above many electronic products more and more, and the basic implementation method of its coordinate is: the capacitance matrix of sampling is set on screen, adopts certain algorithm to calculate the coordinate of touched point.
During multiple point touching, the coordinate calculated may be shaken with the data dithering of capacitance matrix, and the de-jittering method usually adopted is: a distance threshold d is set, and current coordinate and last output coordinate distance are D, when D<=d, current coordinate still adopt before the coordinate of output; And as D > during d, export current coordinate.When this jitter removing method may cause jitter distance near d, beating of coordinate appears, little displacement action weak effect.
Summary of the invention
First technical matters to be solved by this invention is to provide a kind of touch panel coordinates de-jittering method, be intended to realize that the motion track responded for the touch operation of little displacement is more level and smooth, have stablizing effect preferably can respond little displacement action to the coordinate output of stationary state.
The present invention is achieved in that a kind of touch panel coordinates de-jittering method, comprises the steps:
Set up a buffer area; Described buffer area has at least two bank bits, and each bank bit is for storing the coordinate of a touched point, and there have up-to-date original coordinates to write to be fashionable at every turn, and the coordinate write at first in described buffer area shifts out;
The coordinate of last time output of take is the center of circle, calculates the distance that each coordinate in described buffer area arrives the described center of circle;
In each distance that judgement calculates, be less than the number of default debounce radius, and according to judged result, export the coordinate of current touched point.
Second technical matters to be solved by this invention is to provide a kind of touch panel coordinates debounce to move system, comprising:
Cache module, it has at least two bank bits, and each bank bit is for storing the coordinate of a touched point, and there have up-to-date original coordinates to write to be fashionable at every turn, and the coordinate write at first in described buffer area shifts out;
Distance calculation module, be the center of circle for take the coordinate of last time output, calculates the distance that each coordinate in described buffer area arrives the described center of circle;
The coordinate computing module, each distance calculated for judgement is less than the number of default debounce radius, and according to judged result, exports the coordinate of current touched point.
The 3rd technical matters to be solved by this invention is to provide a kind of touch screen terminal, and it comprises that touch panel coordinates debounce as above moves system.
During de-jitter of the present invention, output coordinate is based on the coordinate output of output last time, using and be less than the weight of the quantity of the point of specifying radius as output coordinate last time, to reduce or to eliminate the shake of current output point, and the quantity of point that is greater than radius is as the weight of the up-to-date original coordinates write, guaranteed the real-time of coordinate, so the moving effect of debounce is preferably arranged, the motion track that little displacement touch operation is responded is also more continuously level and smooth.
The accompanying drawing explanation
Fig. 1 is touch panel coordinates de-jittering method realization flow figure provided by the invention;
Fig. 2 A is the original coordinates schematic diagram of jitter distance when critical conditions;
Fig. 2 B is to the design sketch after the traditional jitter removing method of Fig. 2 A employing;
Fig. 2 C is to the design sketch after Fig. 2 A employing jitter removing method provided by the invention;
Fig. 3 A is the original coordinates schematic diagram of the little figure of input;
Fig. 3 B is to the design sketch after the traditional jitter removing method of Fig. 3 A employing;
Fig. 3 C is to the design sketch after Fig. 3 A employing jitter removing method provided by the invention;
Fig. 4 is the structure principle chart of the moving system of touch panel coordinates debounce provided by the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 shows the realization flow of touch panel coordinates de-jittering method provided by the invention, and details are as follows:
In step S11, set up a buffer area.
In the present invention, this buffer area has at least two bank bits, and each bank bit is for storing the coordinate of a touched point, and there have up-to-date original coordinates to write to be fashionable at every turn, and the coordinate write at first in described buffer area shifts out, and specifically can adopt buffer register to realize.For example, suppose this buffer area have n bank bit k0, k1, k2, k3 ...., kn-1, when new coordinate input is arranged at every turn, k0, k1, k2, k3 ...., the former data in kn-1 can be shifted in turn, the coordinate write is at first shifted out, and new coordinate moves into, if Ni is current up-to-date original coordinates, buffer zone shifts forward buf[k]=buf[k+1] (k=0, ..., n-2), last coordinate buf[n-1 of buffer zone]=Ni, the n bit data is arranged in this buffer area so basically always.Can determine according to requirement of real-time the concrete size of buffer area, the output frequency of 100hz of take is example, and while selecting 5 bank bits, effect is comparatively suitable.
In step S302, the coordinate of last time output of take is the center of circle, calculates the distance that each coordinate in described buffer area arrives the described center of circle.
When first coordinate of input while carrying out initialization, just take this first coordinate and be the center of circle, and directly export this original coordinates.
In step S303, in each distance that judgement calculates, be less than the number of default debounce radius, and according to judged result, export the coordinate of current touched point.
In the present invention, the coordinate of current touched point according to last time output coordinate and the up-to-date original coordinates that writes obtain, wherein, using and be less than the weight of the quantity of the point of specifying radius as output coordinate last time, be greater than the quantity of point of radius as the weight of the up-to-date original coordinates write.
Be specially: definition debounce radius is r, and its center of circle P is the coordinate of output last time, can calculate according to following formula the coordinate of current output:
Wherein, Pout is the coordinate of current output, and m is that in buffer area, each coordinate is less than the number of presetting the debounce radius in the distance in the described center of circle, and P is the coordinate of output last time, and n is the storage bit number of buffer area, buf[n-1] be the up-to-date coordinate write in buffer area.
Upgrade simultaneously center of circle P=Pout.As can be known by a formula, work as buf[n-1] with P order apart from all in r, during m=n, Pout=(m*p+0*buf[n-1])/n=p, output coordinate is static, namely current output coordinate and last time output coordinate be same.When only having distance that Ni (buf[n-1]) and P orders to be greater than r, Pout=(m*p+1*buf[i])/n, Pout has an individual less movement, P=Pout.
Fig. 2 A is the original coordinates of jitter distance when critical conditions, and Fig. 2 B and Fig. 2 C are respectively the design sketchs adopted after the jitter removing method of the present invention of traditional jitter removing method of distance threshold d=15 and debounce radius r=15, can find out that debounce successful of the present invention is more excellent.Fig. 3 A is the original coordinates of the little figure of input, Fig. 3 B and Fig. 3 C are respectively the design sketchs adopted after the jitter removing method of the present invention of traditional jitter removing method of distance threshold d=15 and debounce radius r=15, after can finding out debounce of the present invention, coordinate is more continuous, can respond little displacement touch operation.
Those having ordinary skill in the art will appreciate that, realize that all or part of step in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in the computer read/write memory medium just like ROM/RAM, disk, CD and so on.
Fig. 4 shows the logic theory of the moving system of touch panel coordinates debounce provided by the invention, for convenience of description, only shows the part relevant to the embodiment of the present invention.All or part of module in this system can be the software unit in the processor that is built in touch screen terminal.
With reference to Fig. 4, native system comprises cache module 41, distance calculation module 42, coordinate computing module 43.Wherein, cache module 41 has at least two bank bits, and each bank bit is for storing the coordinate of a touched point, and there have up-to-date original coordinates to write to be fashionable at every turn, the coordinate write at first in described buffer area shifts out, and concrete principle as described above, repeats no more herein.Distance calculation module 42 is the center of circle for take the coordinate of last time output, calculate the distance to the described center of circle of each coordinate in described buffer area, then in each distance that 43 judgements of coordinate computing module calculate, be less than the number of default debounce radius, and according to judged result, export the coordinate of current touched point.
In the present invention, coordinate computing module 43 according to last time output coordinate and the up-to-date original coordinates that writes obtain the coordinate of current touched point, using and be less than the weight of the quantity of the point of specifying radius as output coordinate last time, be greater than the quantity of point of radius as the weight of the up-to-date original coordinates write.Specifically according to following formula, calculate the coordinate of current output:
Wherein, Pout is the coordinate of current output, and m is that in buffer area, each coordinate is less than the number of presetting the debounce radius in the distance in the described center of circle, and P is the coordinate of output last time, and n is the storage bit number of buffer area, buf[n-1] be the up-to-date coordinate write in buffer area.
Touch panel coordinates debounce braking technique provided by the invention, when fast moving, there is no time delay, because m=0 in this case, the coordinate of output is exactly just to have write buffer zone, certain time-delay is arranged while moving at a slow speed, but because touch-screen under state at a slow speed is not high to requirement of real-time, so the present invention fully can practical requirement.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (9)
1. a touch panel coordinates de-jittering method, is characterized in that, comprises the steps:
Set up a buffer area; Described buffer area has at least two bank bits, and each bank bit is for storing the coordinate of a touched point, and there have up-to-date original coordinates to write to be fashionable at every turn, and the coordinate write at first in described buffer area shifts out;
The coordinate of last time output of take is the center of circle, calculates the distance that each coordinate in described buffer area arrives the described center of circle;
In each distance that judgement calculates, be less than the number of default debounce radius, and according to judged result, export the coordinate of current touched point.
2. the method for claim 1, is characterized in that, described buffer area is realized in a buffer register.
3. the method for claim 1, is characterized in that, the step of described coordinate according to the current touched point of judged result output specifically comprises the steps:
The coordinate of current touched point according to last time output coordinate and the up-to-date original coordinates that writes obtain, wherein, using and be less than the weight of the quantity of the point of specifying radius as output coordinate last time, be greater than the quantity of point of radius as the weight of the up-to-date original coordinates write.
4. method as claimed in claim 3, is characterized in that, the step of described coordinate according to the current touched point of judged result output is calculated the coordinate of current output according to following formula:
Wherein, Pout is the coordinate of current output, and m is that in buffer area, each coordinate is less than the number of presetting the debounce radius in the distance in the described center of circle, and P is the coordinate of output last time, and n is the storage bit number of buffer area, buf[n-1] be the up-to-date coordinate write in buffer area.
5. the moving system of touch panel coordinates debounce, is characterized in that, comprising:
Cache module, it has at least two bank bits, and each bank bit is for storing the coordinate of a touched point, and there have up-to-date original coordinates to write to be fashionable at every turn, and the coordinate write at first in described buffer area shifts out;
Distance calculation module, be the center of circle for take the coordinate of last time output, calculates the distance that each coordinate in described buffer area arrives the described center of circle;
The coordinate computing module, each distance calculated for judgement is less than the number of default debounce radius, and according to judged result, exports the coordinate of current touched point.
6. system as claimed in claim 5, is characterized in that, described cache module is a buffer register.
7. system as claimed in claim 5, it is characterized in that, described coordinate computing module according to last time output coordinate and the up-to-date original coordinates that writes obtain the coordinate of current touched point, wherein, using and be less than the weight of the quantity of the point of specifying radius as output coordinate last time, be greater than the quantity of point of radius as the weight of the up-to-date original coordinates write.
8. system as claimed in claim 7, is characterized in that, described coordinate computing module calculates the coordinate of current output according to following formula:
Wherein, Pout is the coordinate of current output, and m is that in buffer area, each coordinate is less than the number of presetting the debounce radius in the distance in the described center of circle, and P is the coordinate of output last time, and n is the storage bit number of buffer area, buf[n-1] be the up-to-date coordinate write in buffer area.
9. a touch screen terminal, is characterized in that, comprises that touch panel coordinates debounce as described as claim 5 to 8 any one moves system.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310324081.6A CN103412698B (en) | 2013-07-30 | 2013-07-30 | Touch panel coordinates de-jittering method, system and touch screen terminal |
PCT/CN2014/076456 WO2015014141A1 (en) | 2013-07-30 | 2014-04-29 | Touchscreen coordinate debouncing method and system, and touchscreen terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310324081.6A CN103412698B (en) | 2013-07-30 | 2013-07-30 | Touch panel coordinates de-jittering method, system and touch screen terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103412698A true CN103412698A (en) | 2013-11-27 |
CN103412698B CN103412698B (en) | 2016-05-11 |
Family
ID=49605714
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310324081.6A Active CN103412698B (en) | 2013-07-30 | 2013-07-30 | Touch panel coordinates de-jittering method, system and touch screen terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103412698B (en) |
WO (1) | WO2015014141A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015014141A1 (en) * | 2013-07-30 | 2015-02-05 | 深圳市汇顶科技股份有限公司 | Touchscreen coordinate debouncing method and system, and touchscreen terminal |
WO2015192490A1 (en) * | 2014-06-17 | 2015-12-23 | 中兴通讯股份有限公司 | Method, device, and terminal for removing jittering on touchscreen |
CN105183341A (en) * | 2015-08-07 | 2015-12-23 | 广州汽车集团股份有限公司 | Handwriting correcting method and system of touch screen |
CN106484181A (en) * | 2016-09-20 | 2017-03-08 | 青岛海信电器股份有限公司 | The touch-responsive method and device of infrared touch panel |
CN108345403A (en) * | 2017-01-23 | 2018-07-31 | 意法半导体亚太私人有限公司 | Multi-threshold motional tolerance for filtering the shake of the coordinate in touch-sensing |
CN111459359A (en) * | 2020-03-31 | 2020-07-28 | 烟台艾睿光电科技有限公司 | Cursor moving method, device and equipment and infrared thermal imaging system |
CN111722708A (en) * | 2020-04-29 | 2020-09-29 | 中国人民解放军战略支援部队信息工程大学 | Eye movement-based multi-dimensional geographic information self-adaptive intelligent interaction method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101639896A (en) * | 2009-05-19 | 2010-02-03 | 上海闻泰电子科技有限公司 | Data filtering and smoothing method applied to touch screen |
CN101859219A (en) * | 2010-06-22 | 2010-10-13 | 北京握奇数据系统有限公司 | Method and device for debouncing of touch spot coordinates of touch screen |
US20120313976A1 (en) * | 2011-06-13 | 2012-12-13 | Nintendo Co., Ltd. | Computer-readable storage medium having display control program stored therein, display control method, display control system, and display control apparatus |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101963862A (en) * | 2010-09-26 | 2011-02-02 | 苏州瀚瑞微电子有限公司 | Coordinate anti-trembling method on touch screen |
CN103412698B (en) * | 2013-07-30 | 2016-05-11 | 深圳市汇顶科技股份有限公司 | Touch panel coordinates de-jittering method, system and touch screen terminal |
-
2013
- 2013-07-30 CN CN201310324081.6A patent/CN103412698B/en active Active
-
2014
- 2014-04-29 WO PCT/CN2014/076456 patent/WO2015014141A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101639896A (en) * | 2009-05-19 | 2010-02-03 | 上海闻泰电子科技有限公司 | Data filtering and smoothing method applied to touch screen |
CN101859219A (en) * | 2010-06-22 | 2010-10-13 | 北京握奇数据系统有限公司 | Method and device for debouncing of touch spot coordinates of touch screen |
US20120313976A1 (en) * | 2011-06-13 | 2012-12-13 | Nintendo Co., Ltd. | Computer-readable storage medium having display control program stored therein, display control method, display control system, and display control apparatus |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015014141A1 (en) * | 2013-07-30 | 2015-02-05 | 深圳市汇顶科技股份有限公司 | Touchscreen coordinate debouncing method and system, and touchscreen terminal |
WO2015192490A1 (en) * | 2014-06-17 | 2015-12-23 | 中兴通讯股份有限公司 | Method, device, and terminal for removing jittering on touchscreen |
CN105183341A (en) * | 2015-08-07 | 2015-12-23 | 广州汽车集团股份有限公司 | Handwriting correcting method and system of touch screen |
CN105183341B (en) * | 2015-08-07 | 2018-12-18 | 广州汽车集团股份有限公司 | The person's handwriting bearing calibration of touch screen and system |
CN106484181A (en) * | 2016-09-20 | 2017-03-08 | 青岛海信电器股份有限公司 | The touch-responsive method and device of infrared touch panel |
CN108345403A (en) * | 2017-01-23 | 2018-07-31 | 意法半导体亚太私人有限公司 | Multi-threshold motional tolerance for filtering the shake of the coordinate in touch-sensing |
CN111459359A (en) * | 2020-03-31 | 2020-07-28 | 烟台艾睿光电科技有限公司 | Cursor moving method, device and equipment and infrared thermal imaging system |
CN111459359B (en) * | 2020-03-31 | 2021-06-11 | 烟台艾睿光电科技有限公司 | Cursor moving method, device and equipment and infrared thermal imaging system |
CN111722708A (en) * | 2020-04-29 | 2020-09-29 | 中国人民解放军战略支援部队信息工程大学 | Eye movement-based multi-dimensional geographic information self-adaptive intelligent interaction method and device |
CN111722708B (en) * | 2020-04-29 | 2021-06-08 | 中国人民解放军战略支援部队信息工程大学 | Eye movement-based multi-dimensional geographic information self-adaptive intelligent interaction method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2015014141A1 (en) | 2015-02-05 |
CN103412698B (en) | 2016-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103412698A (en) | Touch screen coordinate debouncing method and system and touch screen terminal | |
US9753612B2 (en) | Electronic device for managing applications running therein and method for same | |
US10203871B2 (en) | Method for touch input and device therefore | |
US9471957B2 (en) | Method for partitioning, managing and displaying a collaboration space and interactive input system employing same | |
EP3333679B1 (en) | Touch control driving method, touch control driving apparatus and touch control display apparatus | |
US9304656B2 (en) | Systems and method for object selection on presence sensitive devices | |
CN102902407B (en) | A kind of touch-screen output display touches the method and apparatus of person's handwriting | |
CN102609136B (en) | Dynamic correcting method for reference value data, device and touch gesture identification method | |
CN104407933A (en) | Data backup method and device | |
CN104216548B (en) | Touch feedback method and device and electronic equipment | |
CN103257820A (en) | Control method and electronic device | |
CN106293427A (en) | User interface method of adjustment and electronic installation | |
CN104077056B (en) | Translation method and system for page displayed on screen | |
WO2014000577A1 (en) | Adjusting layout size of hyperlink | |
CN103500055B (en) | Positioning method and system of display content of touch screen | |
CN108874200B (en) | The control method and device of writing speed | |
CN104267812A (en) | Information processing method and electronic device | |
CN104299460A (en) | Electronic apparatus for providing function of solid figure learning | |
CN103399662A (en) | Method, system and mobile terminal for reporting coordinate incident of touch screen | |
CN102402392B (en) | Page transmission method and device for touch screen | |
CN105897090B (en) | Stepper motor driver and its processing method for receiving pulse | |
CN103150051B (en) | Touch operation response method, system and touch screen terminal | |
US10156928B2 (en) | Extended user touch input | |
CN103425418A (en) | Touch control method and mobile device | |
US10928994B2 (en) | Processing objects on touch screen devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |