WO2015154362A1 - 触摸屏触点处理方法、装置及终端 - Google Patents

触摸屏触点处理方法、装置及终端 Download PDF

Info

Publication number
WO2015154362A1
WO2015154362A1 PCT/CN2014/084566 CN2014084566W WO2015154362A1 WO 2015154362 A1 WO2015154362 A1 WO 2015154362A1 CN 2014084566 W CN2014084566 W CN 2014084566W WO 2015154362 A1 WO2015154362 A1 WO 2015154362A1
Authority
WO
WIPO (PCT)
Prior art keywords
contact
contact point
distance
touch screen
predetermined threshold
Prior art date
Application number
PCT/CN2014/084566
Other languages
English (en)
French (fr)
Inventor
郝志坚
童向杰
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to KR1020177002879A priority Critical patent/KR20170028957A/ko
Priority to EP14888878.7A priority patent/EP3165999A4/en
Priority to US15/323,659 priority patent/US20170153764A1/en
Publication of WO2015154362A1 publication Critical patent/WO2015154362A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04104Multi-touch detection in digitiser, i.e. details about the simultaneous detection of a plurality of touching locations, e.g. multiple fingers or pen and finger

Definitions

  • the present invention relates to the field of communications, and in particular to a touch screen contact processing method, apparatus and terminal.
  • the touch screen is a kind of transparent medium attached to the surface of the display.
  • touch screens which are: resistive, surface capacitive and inductive capacitive, surface acoustic wave, infrared and the like.
  • capacitive touch screen applications are more widely used, mainly related to communications and consumer electronics, such as: smart phones, mobile phones, multimedia players, PAD and so on.
  • the capacitive touch screen judges the touch point by sensing the change of the capacitance generated by the human touch. It has two sets of signal lines: the drive line and the sense line, the drive line emits a signal, and the sense line detects the change of the capacitance value.
  • the finger and the surface of the touch screen form a coupling capacitor due to the presence of the electric field of the human body.
  • the capacitor is a conductor, and the finger sucks a small current from the contact point, thereby affecting The coupling between the two electrodes near the touch point changes the capacitance between the two electrodes.
  • the electrodes in the direction of the driving line sequentially emit excitation signals, and all the electrodes in the direction of the sensing line receive signals at the same time, so that the capacitance values of all the intersections of the lateral and longitudinal electrodes can be obtained, that is, the two-dimensional plane of the entire touch screen.
  • the size of the capacitor According to the two-dimensional capacitance variation data of the touch screen, the coordinates of each touch point can be calculated. Therefore, even if there are multiple touch points on the screen, the true coordinates of each touch point can be calculated.
  • the embodiment of the invention provides a touch screen contact processing method, device and terminal, so as to at least solve the problem that the touch screen existing in the related art is susceptible to interference, the touch on the touch screen is easy to generate jitter, and there is a jump between the contact and the contact. Affects the effect of the touch, resulting in a poor user experience.
  • a touch screen contact processing method including: detecting a contact on a touch screen; determining that the operation of the touch screen is sliding from the contact one to the contact two, wherein the contact And a distance between the contact point 1 and the contact point exceeds a first predetermined threshold; and one or more contacts 3 located on the sliding path of the contact point to the contact contact 2 are The distance between point three and the contact one is less than the first predetermined threshold.
  • determining that the operation of the touch screen is from sliding of the contact one to the contact two comprises: sequentially determining between one or more contacts after the contact one and the contact one Whether the distance exceeds the first predetermined threshold; when the result of the determination is no, the one or more contacts are sequentially saved until it is determined that the distance from the contact one exceeds the first predetermined width
  • the first contact of the value determines that the first contact is the contact two and determines that the operation of the touch screen is a slip from the contact one to the contact two.
  • the one or more contacts 3 located on the sliding path of the contact point to the contact two are reported: according to the sliding path of the contact one to the contact two, Among the one or more contacts that are saved, the one or more contacts are determined; the determined one or more contacts 3 are sequentially turned up.
  • the method further includes: stopping between the contact after the contact two and the contact A determination as to whether the distance exceeds the first predetermined threshold.
  • the method further comprises: sequentially storing one or more contacts detected after the contact two; Whether the number of saved contacts reaches a predetermined number N; if the determination result is YES, it is determined whether the distance between the last one of the saved N contacts and the first contact is less than a second predetermined threshold And determining that the sliding to the saved Nth contact is stopped if the second predetermined threshold is less than the second predetermined threshold.
  • the method further includes: updating the saved N contacts, among them, First shifting the first contact of the saved N contacts, and then adding a contact that is generated after the Nth contact to form the updated N contacts; repeating the updated evaluation Whether the distance between the Nth contact and the first contact of the N contacts is less than a second predetermined threshold, until it is determined that d is at the second predetermined threshold, determining that the sliding operation is stopped.
  • a touch screen contact processing apparatus comprising: a detecting module configured to detect a contact on a touch screen; and a determining module configured to determine that operation of the touch screen is from the contact one to Sliding of the contact 2, wherein the distance between the contact 2 and the contact 1 exceeds a first predetermined threshold; the reporting module is configured to slide the contact 1 to the contact 2 One or more contacts 3 on the path are carried out, and the distance between the contact three and the contact one is less than the first predetermined threshold.
  • the determining module includes: a determining unit, configured to sequentially determine whether a distance between the one or more contacts after the contact one and the contact one exceeds the first predetermined threshold; a first determining unit, configured to sequentially save the one or more contacts when the result of the determination is negative, until it is determined that the first distance from the contact one exceeds the first predetermined threshold a contact, determining that the first contact is the contact two, and determining that operation of the touch screen is sliding from the contact one to the contact two.
  • the reporting module includes: a second determining unit configured to determine the one or the one or more contacts sequentially saved according to a sliding path of the contact one to the contact two a plurality of contacts three; the reporting unit is configured to report the determined one or more contacts three in sequence.
  • the determining module further comprises: a stopping unit configured to stop determining whether a distance between the contact after the contact two and the contact one exceeds the first predetermined threshold.
  • the apparatus further comprises: a saving module, configured to sequentially store one or more contacts detected after the contact two; the first determining module is configured to determine whether the number of saved contacts reaches a predetermined number a second determining module, configured to determine, when the determination result of the first determining module is YES, whether the distance between the last one of the saved N contacts and the first contact is less than a second predetermined
  • the second determining module is configured to determine that the sliding to the saved Nth contact stops when the second determining module determines that the result is less than the second predetermined threshold.
  • the apparatus further includes: an updating module, configured to update when it is determined that a distance between the last one of the saved N contacts and the first contact is not less than the second predetermined threshold
  • the saved N contacts wherein the first cyclic shift covers the first contact of the saved N contacts, and then adds a contact which is subsequently generated after the Nth contact to form an updated N
  • a repeating module configured to repeatedly determine whether a distance between the Nth contact and the first contact of the updated N contacts is less than a second predetermined threshold until it is determined to be smaller than the second
  • the threshold value is predetermined to determine that the sliding operation has stopped.
  • a terminal comprising the apparatus of any of the above.
  • the contact 1 on the touch screen is detected; the operation on the touch screen is determined to be sliding from the contact 1 to the contact 2, wherein the distance between the contact 2 and the contact 1 exceeds a first predetermined threshold; one or more contacts 3 on the sliding path of the contact one to the contact two are reported, wherein the distance between the contact three and the contact one is less than
  • the first predetermined threshold value can not only effectively filter out the jitter point of the non-actual touch, but also when the contact 2 outside the anti-shake range is detected, the touch on the sliding track between the contact one and the contact two is sequentially reported. At the point, the generated contacts on the non-sliding track are no longer reported, achieving a smooth transition from contact one to contact two, effectively improving the user experience.
  • FIG. 1 is a flow chart of a touch screen contact processing method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of a touch screen contact processing device according to an embodiment of the present invention
  • FIG. 3 is a block diagram of a preferred structure of the determining module 24 in the touch screen contact processing apparatus of the embodiment of the present invention.
  • FIG. 4 is a block diagram showing a preferred structure of the reporting module 26 in the touch screen contact processing apparatus of the embodiment of the present invention.
  • FIG. 5 is a block diagram of a preferred structure of the determination module 24 in the touch screen contact processing apparatus of the embodiment of the present invention.
  • 6 is a block diagram of a preferred structure of a touch screen contact processing apparatus according to an embodiment of the present invention;
  • FIG. 7 is a block diagram of a preferred structure of a touch screen contact processing apparatus according to an embodiment of the present invention;
  • FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention; ;
  • FIG. 9 is a schematic structural diagram of a touch screen terminal device according to a preferred embodiment of the present invention.
  • FIG. 10 is a flow chart of a touch screen anti-shake and smooth transition method according to a preferred embodiment of the present invention.
  • FIG. 1 is a flowchart of a touch screen contact processing method according to an embodiment of the present invention. As shown in Figure 1, the process includes the following steps:
  • Step S102 detecting a contact on the touch screen
  • Step S104 determining that the operation on the touch screen is sliding from the contact one to the second contact, wherein the distance between the contact two and the contact one exceeds a first predetermined threshold
  • Step S106 reporting one or more contacts 3 on the sliding path of the contact one to the contact two, wherein the distance between the contact three and the contact one is less than the first predetermined threshold.
  • the touch screen is subjected to anti-shake processing by an anti-shake algorithm in which the distance between the contacts exceeds a predetermined threshold.
  • the touch on the touch screen is shaken, and the jump between the contact and the contact affects the touch effect, and the above processing is used.
  • the jitter point of the non-actual touch can be effectively filtered out, and when the contact 2 outside the anti-shake range is detected, the contact on the sliding track between the contact 1 and the contact 2 is sequentially reported, and the generated non-sliding track is The contacts are no longer reported, achieving a smooth transition from contact one to contact two, effectively improving the user experience.
  • the operation of the touch screen can be performed by sliding from the contact one to the contact two.
  • the following simple processing manner can be used: Whether the distance between the one or more contacts and the contact one exceeds the first predetermined threshold; when the result of the determination is negative, one or more contacts are sequentially saved, that is, the one or more touches are temporarily determined.
  • the point is the jitter point because the contacts produced on the sliding path between the contact one and the non-jitter point may be caused by a true slip.
  • the jitter points in the first predetermined threshold range are reserved, and the predetermined number of reservations may be M.
  • the foregoing first predetermined threshold may be different according to actual conditions.
  • the actual situation includes the size of the touch screen, the sensitivity of the touch screen, and the like.
  • the following processing may be used: one or more sequentially saved according to the sliding path of the contact one to the contact two
  • One or more contacts 3 are defined in the contacts, that is, the other contacts on the sliding path of the contact one to the non-jitter point are retained; the determined one or more contacts 3 are sequentially up and up.
  • the contact coordinates of the reserved contact point to the non-jitter point sliding path are reported, so that the sliding on the touch screen has a clear smooth transition, which does not appear as a sudden A jump from one point to another.
  • the method further includes: stopping the touch The determination of whether the distance between the contact after the point 2 and the contact one exceeds the first predetermined threshold value, that is, the anti-shake algorithm is turned off, the application of the terminal is reduced, and the power consumption of the terminal is effectively saved.
  • the method further includes how to determine the end of the sliding operation, and the manner of determining may also be various, and a relatively simple implementation manner is provided.
  • one or more contacts detected after the contact two are sequentially stored; determining whether the number of saved contacts reaches a predetermined number N; in the case of the determination result being YES, determining the last of the saved N contacts Whether the distance between one contact and the first contact is less than a second predetermined threshold; in the case of less than the second predetermined threshold, it is determined that the sliding to the saved Nth contact is stopped.
  • the method further includes: updating the saved N contacts, wherein, Shifting covers the first of the saved N contacts, increasing and then generating after the Nth contact a contact, which constitutes the updated N contacts; repeatedly determines whether the distance between the Nth contact and the first contact of the updated N contacts is less than a second predetermined threshold, until it is determined It is determined that the sliding operation is stopped when it is smaller than the second predetermined threshold. After judging that the sliding has stopped, the anti-shake algorithm (i.e., the above-described judging process) is started again, and the effect is turned off when not needed, and is activated when necessary.
  • the anti-shake algorithm i.e., the above-described judging process
  • the embodiment of the present invention further provides a touch screen contact processing device, which is configured to implement the above embodiments and preferred embodiments, and has not been described again.
  • the term "module” can implement a combination of software and/or hardware for a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and conceivable.
  • FIG. 2 is a block diagram showing the structure of a touch screen contact processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes a detecting module 22, a determining module 24, and a reporting module 26. The apparatus will be described below.
  • the detecting module 22 is configured to detect the contact one on the touch screen; the determining module 24 is connected to the detecting module 22, and is configured to determine that the operation of the touch screen is sliding from the contact one to the contact two, wherein the contact two touches The distance between the points exceeds the first predetermined threshold; the reporting module 26 is connected to the determining module 24, and is configured to report one or more contacts 3 located on the sliding path of the contacts 1 to 2, Wherein the distance between the contact three and the contact one is less than the first predetermined threshold.
  • Fig. 3 is a block diagram showing a preferred structure of the determining module 24 in the touch screen contact processing apparatus of the embodiment of the present invention.
  • the determining module 24 includes a determining unit 32 and a first determining unit 34. The determining module 24 will be described below.
  • the determining unit 32 is configured to sequentially determine whether the distance between the one or more contacts after the contact one and the contact one exceeds a first predetermined threshold; the first determining unit 34 is connected to the determining unit 32, and is configured In order to confirm that the result is no, one or more contacts are sequentially saved until it is determined that the first contact with the contact one exceeds the first predetermined threshold, and the first contact is determined to be touched. Point two, and determining that the operation of the touch screen is sliding from contact one to contact two.
  • the upper module 26 includes a second determining unit 42 and an upper unit 44.
  • the reporting module 26 will be described below.
  • the second determining unit 42 is configured to determine one or more contacts 3 from one or more contacts sequentially saved according to the sliding path of the contact one to the contact two; the upper unit 44 is connected to the above
  • the second determining unit 42 is configured to report the determined one or more contacts three in sequence.
  • FIG. 5 is a block diagram showing the preferred structure of the determining module 24 in the touch screen contact processing apparatus of the embodiment of the present invention.
  • the determining module 24 includes, in addition to the unit shown in FIG. 3, a stop unit 52, which will be described below.
  • the stop unit 52 connected to the first determining unit 34 described above, is arranged to stop the determination as to whether the distance between the contact after the contact two and the contact one exceeds the first predetermined threshold.
  • FIG. 6 is a block diagram of a preferred structure of a touch screen contact processing apparatus according to an embodiment of the present invention. As shown in FIG. 6, the device includes a saving module 62, a first determining module 64, a second determining module 66, and a second determining module 68, in addition to all the modules shown in FIG. .
  • the saving module 62 is connected to the reporting module 26, and is configured to sequentially store one or more contacts detected after the contact two; the first determining module 64 is connected to the saving module 62, and is configured to determine the saved contacts. Whether the number of the number reaches the predetermined number N; the second determining module 66 is connected to the first determining module 64, and is configured to determine, among the N contacts that are saved, if the determining result of the first determining module 64 is YES Whether the distance between the last contact and the first contact is less than a second predetermined threshold; the second determining module 68 is connected to the second determining module 66, and is set to be smaller than the judgment result in the second determining module 66. In the case of the second predetermined threshold, it is determined that the slide to the saved Nth contact is stopped.
  • FIG. 7 is a block diagram 2 showing a preferred structure of a touch screen contact processing apparatus according to an embodiment of the present invention. As shown in Fig. 7, the apparatus includes an update module 72 and a repeating module 74 in addition to all the modules included in Fig. 6, and the preferred structure will be described below.
  • the updating module 72 is connected to the second judging module 66, and is configured to update when it is determined that the distance between the last one of the saved N contacts and the first contact is not less than a second predetermined threshold
  • the saved N contacts wherein the first contact of the saved N contacts is deleted, and a contact generated after the Nth contact is added to form the updated N contacts
  • the module 74 is connected to the update module 72 and the second determining module 68, and is configured to repeatedly determine whether the distance between the Nth contact and the first contact of the updated N contacts is less than a second predetermined threshold. It is determined that the sliding operation is stopped until it is judged that it is smaller than the second predetermined threshold.
  • the embodiment of the present invention further provides a terminal, and FIG.
  • FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal 80 includes the touch screen contact processing device 82 of any of the above.
  • the embodiment of the invention provides a method for anti-shake of the touch screen and a smooth transition of the finger from the stationary to the sliding process. To achieve a smooth transition of the anti-shake and sliding process described above, the method is implemented by the following architectures.
  • FIG. 9 is a schematic structural diagram of a touch screen terminal device according to a preferred embodiment of the present invention. As shown in FIG. 9, the terminal device includes a touch screen panel 92, a touch screen control module 94, and a host side processing module 96. The terminal device will be described below.
  • Touch screen panel 92 This panel can sense the conductors such as fingers when it is activated.
  • the touch screen control module 94 is connected to the touch screen panel 92, and the touch screen driver and various corresponding algorithms involved are implemented in the module, configured to control the scanning touch screen panel, convert the scanned analog data into a digital signal, and calculate the coordinates of the touch point. , and notify the host to read the relevant data.
  • the algorithms involved in the present invention can also be implemented in sub-modules.
  • the host processing module 96 is connected to the touch screen control module 94, and is configured to acquire the contact coordinates from the touch screen control module, and further process the data to achieve a certain functional effect.
  • the touch screen anti-shake and smooth transition method generally comprises the following steps: Step S1, start the anti-shake algorithm, set the anti-shake threshold L1, the number of contacts to be saved M, obtain the first contact coordinates and respectively Save as pre-X, pre_y.
  • Step S2 continue to detect the coordinates of the next contact, and calculate the distance d between the point and the origin (pre-X, pre_y). If dl is within the width L1, it indicates that the point may be caused by jitter, temporarily regarded as Invalid point is saved and reported, the origin coordinates (pre_X, pre_y) are reported, and step S2 is repeated.
  • step S3 if the distance between the detected contact and the origin exceeds the threshold L1, it indicates that the point is non-jitter, and the effective point is the process from the finger to the sliding.
  • the saved points that are temporarily considered invalid are excluded, and the points from the origin to the effective point sliding path are reserved, and reported in the order of the actual touch, and the valid touch point is reported after the report is completed. Coordinates, and turn off the anti-shake algorithm.
  • Step S4 continue to detect the next touch point, save the coordinates of the point to buf2, and report the point Coordinates.
  • Step S5 repeating step S4, if the number of coordinates stored in buf2 exceeds N, it is calculated whether the spacing between the remaining Nth contact and the first contact is within the threshold L2, and if not, repeating In step S4, if the user enters the stop from sliding in the threshold L2, the anti-shake algorithm is started, and the process proceeds to step S1.
  • FIG. 10 is a flowchart of a touch screen anti-shake and smooth transition method according to a preferred embodiment of the present invention. As shown in FIG. 10, the method includes the following steps:
  • Step S1002 the anti-shake algorithm is started, and the anti-shake algorithm is started when the finger is still touched for the first time or after sliding.
  • Step S1004 Detecting the coordinates of the first touch point, respectively assigning the X, y values of the coordinates to the global variables pre_X and pre_y, and up to the coordinates of the touch point. (pre—x, pre_y) will be used as the origin coordinate to determine if the subsequent touch point is within the anti-shake range.
  • step S1006 the next touch point is continuously detected, and the distance dl between the point and the origin (pre_X, pre_y) is calculated.
  • step S1008 it is judged whether the two-point distance dl is within the range of the threshold L1. Compare the size of dl and L1. If dl : L1 , the point is within the anti-shake range, otherwise it indicates that the point has exceeded the anti-shake range.
  • Step S1010 If the contact is within the anti-shake range, save the contact coordinates to bufl. If the number of saved in bufl exceeds M, the new value is overwritten from the starting position of bufl and saved.
  • Step S1012 If the point is judged to be within the anti-shake range, it is temporarily determined to be an invalid point, and the retained original contact coordinates (pre_x, pre_y) are reported, and step S1006 is repeated.
  • step S1014 if the point has exceeded the anti-shake range, the points with large jitter in the buffer are filtered out, and the coordinates of the contact point on the sliding path between the original point and the point are retained, and the actual touch is sequentially Reported in order. These points that are theoretically reported should be the points produced by the finger slip in the anti-shake range. Step S1016, after reporting a part of the remaining anti-shake range, reporting the currently detected contact coordinates, that is, the first touch point outside the anti-shake range L1.
  • Step S1018 the anti-shake algorithm is turned off. At this point, the finger has transitioned from a stationary state to a sliding state.
  • Step S1020 Continue to detect the next touch point, save the coordinates of the point to buf2, and report the coordinates of the point. At this time, the finger is in the process of sliding, and the purpose of saving the coordinates is to determine whether the finger is switched from sliding to stationary. Determine whether the number of coordinates saved to buf2 reaches N.
  • Step S1022 If the number of points stored in buf2 reaches N, the distance d2 between the Nth point and the first point in buf2 is calculated. Step S1024, determining whether the distance d2 is within the range of the threshold L2. If d2>L2, it indicates that the finger is still in the sliding state, and step S1020 is repeated. If d2 L2, the finger is switched from the sliding state to the stationary state, and the anti-shake algorithm is restarted.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any particular combination of hardware and software.
  • the touch screen contact processing method, device and terminal provided by the embodiments of the present invention first detect the contact 1 on the touch screen, and then determine the sliding from the contact 1 to the contact 2, if the contact 2 and the contact 1 If the distance exceeds the first predetermined threshold, one or more contacts 3 located on the sliding path of the contact one to the contact two are reported, wherein the distance between the contact three and the contact one is less than the first predetermined width value.
  • the jitter point of the non-actual touch can be effectively filtered, but also a smooth transition from the contact 1 to the contact 2 can be realized, and the user experience is effectively improved.

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

本发明实施例提供了一种触摸屏触点处理方法、装置及终端,该方法包括:检测触摸屏上的触点一;确定对触摸屏的操作为从触点一至触点二的滑动,其中,触点二与触点一之间的距离超过第一预定阈值;将位于触点一到触点二的滑动路径上的一个或多个触点三进行上报,其中,触点三与触点一的距离小于第一预定阈值。本发明的实施例,不仅能够有效地过滤掉非实际触摸的抖动点,而且当检测到防抖范围外的触点二时,依次上报触点一和触点二间滑动轨迹上的触点,产生的非滑动轨迹上的触点不再上报,实现从触点一到触点二的平滑过渡,有效地改善用户体验。

Description

触摸屏触点处理方法、 装置及终端
技术领域
本发明涉及通信领域, 具体而言, 涉及一种触摸屏触点处理方法、 装置 及终端。
背景技术
触摸屏是一种附加在显示器表面的透明介质, 目前主要有几种类型的触 摸屏, 它们分别是: 电阻式、 表面电容式和感应电容式、 表面声波式、 红外 式等等。 其中, 电容式触摸屏应用较为广泛, 主要涉及到通信和电子消费品, 如: 智能手机、 移动电话、 多媒体播放器、 PAD等。 电容式触摸屏是通过感 应人体触摸所产生的电容变化而判断触摸点的, 它具有两组信号线: 驱动线 与感应线, 驱动线发射信号, 感应线侦测电容值的变化。 当手指触摸在金属 层上时, 由于人体电场的存在, 手指和触摸屏表面形成一个耦合电容, 对于 高频电流来说, 电容是导体, 于是手指从接触点吸走一个很小的电流, 影响 了触摸点附近两个电极之间的耦合, 从而改变了这两个电极之间的电容量。 检测互电容大小时, 驱动线方向的电极依次发出激励信号, 感应线方向的所 有电极同时接收信号, 这样可以得到所有横向和纵向电极交汇点的电容值的 变化, 即整个触摸屏的二维平面的电容大小。 根据触摸屏的二维电容变化量 数据, 可以计算出每一个触摸点的坐标。 因此, 屏上即使有多个触摸点, 也 能计算出每个触摸点的真实坐标。
近年来, 随着手持式触摸屏移动通讯终端技术的进步, 使用手持式触摸 屏移动通讯终端的用户日益增加。 根据触摸屏的工作原理, 充电器、 液晶显 示器( Liquid Crystal Display, 简称为 LCD )等对其都会有一定的干扰, 另外, 低端触摸屏本身的抗干扰能力就较差, 从而造成触摸时产生抖动, 严重影响 用户体验。
发明内容 本发明实施例提供了一种触摸屏触点处理方法、 装置及终端, 以至少解 决相关技术中存在的触摸屏易受干扰, 对触摸屏的触摸易产生抖动, 以及触 点与触点之间存在跳跃, 影响触摸的效果, 导致用户体验差的问题。 本发明的一方面, 提供了一种触摸屏触点处理方法, 包括: 检测触摸屏 上的触点一; 确定对触摸屏的操作为从所述触点一至触点二的滑动, 其中, 所述触点二与所述触点一之间的距离超过第一预定阔值; 将位于所述触点一 到所述触点二的滑动路径上的一个或多个触点三进行上 其中, 所述触点 三与所述触点一的距离小于所述第一预定阔值。 优选地, 确定对所述触摸屏的操作为从所述触点一至所述触点二的滑动 包括: 依次判断在所述触点一之后的一个或多个触点与所述触点一之间的距 离是否超过所述第一预定阔值; 在判断的结果为否时, 依次保存所述一个或 多个触点, 直到判断到与所述触点一之间距离超过所述第一预定阔值的第一 个触点, 确定所述第一个触点为所述触点二, 以及确定对触摸屏的操作为从 所述触点一到所述触点二的滑动。 优选地, 将位于所述触点一到所述触点二的滑动路径上的一个或多个触 点三进行上报包括: 依据所述触点一到所述触点二的滑动路径, 从依次保存 的所述一个或多个触点中确定所述一个或多个触点三; 将确定的所述一个或 多个触点三依次进行上才艮。 优选地, 在确定对所述触摸屏的操作为从所述触点一至所述触点二的滑 动之后, 还包括: 停止对所述触点二之后的触点与所述触点一之间的距离是 否超过所述第一预定阔值进行的判断。 优选地, 在确定对所述触摸屏的操作为从所述触点一至所述触点二的滑 动之后, 还包括: 依次保存在所述触点二之后检测到的一个或多个触点; 判 断保存的触点的数量是否达到预定数目 N; 在判断结果为是的情况下, 判断 保存的 N个触点中的最后一个触点与第一个触点间的距离是否小于第二预定 阔值; 在小于所述第二预定阔值的情况下, 确定所述滑动到保存的所述第 N 个触点停止。 优选地, 在判断保存的 N个触点中的最后一个触点与第一个触点间的距 离不小于所述第二预定阔值的情况下, 还包括: 更新保存的 N个触点, 其中, 先顺序移位将保存的 N个触点中的第一个触点覆盖, 然后增加接着在第 N个 触点之后产生的一个触点, 组成更新后的 N个触点; 重复判断更新后的 N个 触点中的第 N个触点与第一个触点间的距离是否小于第二预定阔值, 直到判 断到 d、于所述第二预定阔值, 才确定滑动操作停止。 本发明的另一方面, 提供了一种触摸屏触点处理装置, 包括: 检测模块, 设置为检测到触摸屏上的触点一; 确定模块, 设置为确定对触摸屏的操作为 从所述触点一至触点二的滑动, 其中, 所述触点二与所述触点一之间的距离 超过第一预定阔值; 上报模块, 设置为将位于所述触点一到所述触点二的滑 动路径上的一个或多个触点三进行上 其中, 所述触点三与所述触点一的 距离小于所述第一预定阔值。 优选地, 所述确定模块包括: 判断单元, 设置为依次判断在所述触点一 之后的一个或多个触点与所述触点一之间的距离是否超过所述第一预定阔 值; 第一确定单元, 设置为在判断的结果为否时, 依次保存所述一个或多个 触点, 直到判断到与所述触点一之间距离超过所述第一预定阔值的第一个触 点, 确定所述第一个触点为所述触点二, 以及确定对触摸屏的操作为从所述 触点一到所述触点二的滑动。 优选地, 所述上报模块包括: 第二确定单元, 设置为依据所述触点一到 所述触点二的滑动路径, 从依次保存的所述一个或多个触点中确定所述一个 或多个触点三; 上报单元, 设置为将确定的所述一个或多个触点三依次进行 上报。 优选地, 所述确定模块还包括: 停止单元, 设置为停止对所述触点二之 后的触点与所述触点一之间的距离是否超过所述第一预定阔值进行的判断。 优选地, 该装置还包括: 保存模块, 设置为依次保存在所述触点二之后 检测到的一个或多个触点; 第一判断模块, 设置为判断保存的触点的数量是 否达到预定数目 N; 第二判断模块, 设置为在第一判断模块的判断结果为是 的情况下, 判断保存的 N个触点中的最后一个触点与第一个触点间的距离是 否小于第二预定阔值; 第二确定模块, 设置为在所述第二判断模块的判断结 果为在小于所述第二预定阔值的情况下, 确定所述滑动到保存的所述第 N个 触点停止。 优选地, 该装置还包括: 更新模块, 设置为在判断保存的 N个触点中的 最后一个触点与第一个触点间的距离不小于所述第二预定阔值的情况下, 更 新保存的 N个触点, 其中, 先循环移位将保存的 N个触点中的第一个触点覆 盖, 然后增加接着在第 N个触点之后产生的一个触点, 组成更新后的 N个触 点; 重复模块, 设置为重复判断更新后的 N个触点中的第 N个触点与第一个 触点间的距离是否小于第二预定阔值, 直到判断到小于所述第二预定阔值, 才确定滑动操作停止。 本发明的另一方面, 还提供了一种终端, 包括上述任一项所述的装置。 通过本发明, 釆用检测触摸屏上的触点一; 确定对触摸屏的操作为从所 述触点一至触点二的滑动, 其中, 所述触点二与所述触点一之间的距离超过 第一预定阔值; 将位于所述触点一到所述触点二的滑动路径上的一个或多个 触点三进行上报, 其中, 所述触点三与所述触点一的距离小于所述第一预定 阔值, 不仅能够有效地过滤掉非实际触摸的抖动点, 而且当检测到防抖范围 外的触点二时, 依次上报触点一和触点二间滑动轨迹上的触点, 产生的非滑 动轨迹上的触点不再上报, 实现从触点一到触点二的平滑过渡, 有效地提高 了用户体验。
附图概述
此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中:
图 1是本发明实施例的触摸屏触点处理方法的流程图;
图 2是本发明实施例的触摸屏触点处理装置的结构框图;
图 3是本发明实施例的触摸屏触点处理装置中确定模块 24的优选结构框 图一;
图 4是本发明实施例的触摸屏触点处理装置中上报模块 26的优选结构框 图;
图 5是本发明实施例的触摸屏触点处理装置中确定模块 24的优选结构框 图 6是本发明实施例的触摸屏触点处理装置的优选结构框图一; 图 7是本发明实施例的触摸屏触点处理装置的优选结构框图二; 图 8是本发明实施例的终端的结构示意图;
图 9是本发明优选实施方式的触摸屏终端设备的结构示意图;
图 10是本发明优选实施方式的触摸屏防抖及平滑过渡方法流程图。
本发明的较佳实施方式
下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。
本发明实施例提供了一种触摸屏触点处理方法, 图 1是本发明实施例的 触摸屏触点处理方法的流程图。 如图 1所示, 该流程包括如下步骤:
步骤 S 102 , 检测触摸屏上的触点一;
步骤 S104, 确定对触摸屏的操作为从触点一至触点二的滑动, 其中, 触 点二与触点一之间的距离超过第一预定阔值;
步骤 S106, 将位于触点一到触点二的滑动路径上的一个或多个触点三进 行上报, 其中, 触点三与触点一的距离小于第一预定阔值。
上述步骤, 通过触点之间的距离是否超过预定阔值的防抖算法对触摸屏 进行防抖处理。 考虑到相关技术中类似充电器、 液晶显示等终端应用对触摸 屏触摸的干扰, 使对触摸屏的触摸会产生抖动, 以及触点与触点之间跳跃, 影响触摸的效果, 釆用上述处理, 不仅能够有效地过滤掉非实际触摸的抖动 点, 而且当检测到防抖范围外的触点二时, 依次上报触点一和触点二间滑动 轨迹上的触点, 产生的非滑动轨迹上的触点不再上报, 实现从触点一到触点 二的平滑过渡, 有效地提高了用户体验。
优选地, 确定对触摸屏的操作为从触点一至触点二的滑动时可以釆用多 种处理方式, 例如, 可以釆用以下较为简单的处理方式: 依次判断在触点一 之后的一个或多个触点与触点一之间的距离是否超过第一预定阔值; 在判断 的结果为否时, 依次保存一个或多个触点, 即暂时确定该一个或多个触点为 抖动点, 因为在触点一和非抖动点之间滑动路径上产生的触点可能是真正滑 动产生的。 对这些在第一预定阔值范围内的抖动点进行保留, 保留的预定个 数可以为M。 当超过 M个时, 新的增加, 旧的去除, 直到判断到与触点一之 间距离超过第一预定阔值的第一个触点 (即: 非抖动点) , 确定该第一个触 点为触点二, 以及确定对触摸屏的操作为从触点一到触点二的滑动。 需要说 明的是, 上述第一预定阔值可以根据实际情况的不同而不同, 例如, 该实际 情况包括触摸屏的大小, 以及触摸屏的灵敏度等。
将位于触点一到触点二的滑动路径上的一个或多个触点三进行上报时可 以釆用以下处理: 依据触点一到触点二的滑动路径, 从依次保存的一个或多 个触点中确定一个或多个触点三, 即保留触点一到非抖动点的滑动路径上的 其它触点; 将确定的一个或多个触点三依次进行上 即上 ^艮其坐标。 在该 非抖动点 (即触点二) 坐标上报前, 上报保留的触点一到非抖动点滑动路径 上的触点坐标, 使得在触摸屏上的滑动有一个明显的平滑过渡, 不表现为突 然由一个点到另一个点的跳跃。 为了充分降低终端的功耗, 即在不必要损耗的情况下, 尽量减少终端的 应用, 例如, 可以在确定对触摸屏的操作为从触点一至触点二的滑动之后, 还包括: 停止对触点二之后的触点与触点一之间的距离是否超过第一预定阔 值进行的判断, 即关闭防抖算法, 减少终端的应用, 有效地节省终端的功耗。
另外, 在确定对触摸屏的操作为从触点一至触点二的滑动之后, 还包括 如何确定该滑动操作的结束, 确定的方式也可以有多种, 在此提供一种较为 简单的实现方式, 先依次保存在触点二之后检测到的一个或多个触点; 判断 保存的触点的数量是否达到预定数目 N; 在判断结果为是的情况下, 判断保 存的 N个触点中的最后一个触点与第一个触点间的距离是否小于第二预定阔 值; 在小于第二预定阔值的情况下, 确定滑动到保存的第 N个触点停止。
而在判断保存的 N个触点中的最后一个触点与第一个触点间的距离不小 于第二预定阔值的情况下, 还包括: 更新保存的 N个触点, 其中, 先顺序移 位将保存的 N个触点中的第一个触点覆盖,增加接着在第 N个触点之后产生 的一个触点, 组成更新后的 N个触点; 重复判断更新后的 N个触点中的第 N 个触点与第一个触点间的距离是否小于第二预定阔值, 直到判断到小于第二 预定阔值, 才确定滑动操作停止。在判断滑动停止后,再次启动防抖算法(即 上述的判断处理) , 起到不需要时关闭, 需要时启动的效果。
本发明实施例还提供了一种触摸屏触点处理装置, 该装置设置为实现上 述实施例及优选实施方式, 已经进行过说明的不再赘述。 如以下所使用的, 术语 "模块" 可以实现预定功能的软件和 /或硬件的组合。 尽管以下实施例所 描述的装置较佳地以软件来实现, 但是硬件, 或者软件和硬件的组合的实现 也是可能并被构想的。
图 2是本发明实施例的触摸屏触点处理装置的结构框图, 如图 2所示, 该装置包括检测模块 22、 确定模块 24和上报模块 26, 下面对该装置进行说 明。
检测模块 22, 设置为检测触摸屏上的触点一; 确定模块 24, 连接至上述 检测模块 22,设置为确定对触摸屏的操作为从触点一至触点二的滑动,其中, 触点二与触点一之间的距离超过第一预定阔值; 上报模块 26, 连接至上述确 定模块 24, 设置为将位于触点一到触点二的滑动路径上的一个或多个触点三 进行上报, 其中, 触点三与触点一的距离小于第一预定阔值。
图 3是本发明实施例的触摸屏触点处理装置中确定模块 24的优选结构框 图一。 如图 3所示, 确定模块 24包括判断单元 32、 第一确定单元 34, 下面 对确定模块 24进行说明。
判断单元 32, 设置为依次判断在触点一之后的一个或多个触点与触点一 之间的距离是否超过第一预定阔值; 第一确定单元 34, 连接至上述判断单元 32 , 设置为在判断的结果为否时, 依次保存一个或多个触点, 直到判断到与 触点一之间距离超过第一预定阔值的第一个触点, 确定该第一个触点为触点 二, 以及确定对触摸屏的操作为从触点一到触点二的滑动。
图 4是本发明实施例的触摸屏触点处理装置中上报模块 26的优选结构框 图。 如图 4所示, 上^艮模块 26包括第二确定单元 42和上 ^艮单元 44, 下面对 上报模块 26进行说明。 第二确定单元 42, 设置为依据触点一到触点二的滑动路径, 从依次保存 的一个或多个触点中确定一个或多个触点三; 上 ^艮单元 44, 连接至上述第二 确定单元 42, 设置为将确定的一个或多个触点三依次进行上报。
图 5是本发明实施例的触摸屏触点处理装置中确定模块 24的优选结构框 图二。 如图 5所示, 确定模块 24除包括图 3所示的单元外, 还包括: 停止单 元 52 , 下面对该停止单元 52进行说明。
停止单元 52, 连接至上述第一确定单元 34,设置为停止对触点二之后的 触点与触点一之间的距离是否超过第一预定阔值进行的判断。
图 6是本发明实施例的触摸屏触点处理装置的优选结构框图一。 如图 6 所示, 该装置除包括图 2所示的所有模块外, 还包括保存模块 62、 第一判断 模块 64、 第二判断模块 66和第二确定模块 68 , 下面对该装置进行说明。
保存模块 62, 连接至上述上报模块 26,设置为依次保存在触点二之后检 测到的一个或多个触点; 第一判断模块 64, 连接至上述保存模块 62, 设置为 判断保存的触点的数量是否达到预定数目 N; 第二判断模块 66, 连接至上述 第一判断模块 64, 设置为在该第一判断模块 64的判断结果为是的情况下, 判断保存的 N个触点中的最后一个触点与第一个触点间的距离是否小于第二 预定阔值; 第二确定模块 68, 连接至上述第二判断模块 66, 设置为在第二判 断模块 66的判断结果为在小于第二预定阔值的情况下,确定滑动到保存的第 N个触点停止。
图 7是本发明实施例的触摸屏触点处理装置的优选结构框图二。 如图 7 所示, 该装置除包括图 6所包括所有模块外, 还包括更新模块 72和重复模块 74 , 下面对该优选结构进行说明。
更新模块 72, 连接至上述第二判断模块 66, 设置为在判断保存的 N个 触点中的最后一个触点与第一个触点间的距离不小于第二预定阔值的情况 下, 更新保存的 N个触点, 其中, 将保存的 N个触点中的第一个触点删除, 增加接着在第 N个触点之后产生的一个触点, 组成更新后的 N个触点; 重复 模块 74, 连接至上述更新模块 72和第二确定模块 68, 设置为重复判断更新 后的 N个触点中的第 N个触点与第一个触点间的距离是否小于第二预定阔 值, 直到判断到小于第二预定阔值, 才确定滑动操作停止。 本发明实施例还提供了一种终端, 图 8是本发明实施例的一种终端的结 构示意图。 如图 8所示, 该终端 80 包括上述任一项的触摸屏触点处理装置 82。 针对相关技术中终端设备触摸屏抖动 , 本发明实施例提供了一种触摸屏 防抖及手指从静止到滑动过程中平滑过渡的方法。 为实现上述防抖及滑动过 程的平滑过渡, 该方法通过以下几个架构来实现, 图 9是本发明优选实施方 式的触摸屏终端设备的结构示意图。 如图 9所示, 该终端设备包括触摸屏面 板 92、 触摸屏控制模块 94和主机端处理模块 96, 下面对该终端设备进行说 明。
触摸屏面板 92: 该面板启动后可以对手指等导体产生感应。
触摸屏控制模块 94: 连接至上述触摸屏面板 92, 触摸屏驱动及涉及的各 种相应的算法在模块中实现, 设置为控制扫描触摸屏面板、 将扫描到的模拟 数据转换成数字信号、 计算触摸点的坐标, 并通知主机来读取相关数据。 本 发明涉及的算法也可以在子模块中实现。
主机端处理模块 96: 连接至上述触摸屏控制模块 94,设置为从触摸屏控 制模块获取触点坐标, 并对该数据做进一步的处理, 以实现一定的功能效果。
基于上述模块, 触摸屏防抖及平滑过渡的方法大致包括如下步骤: 步骤 S1 , 启动防抖算法, 设置防抖的阔值 L1 , 需保存的触点个数 M, 获得首个触点坐标并分别保存为 pre— X, pre_y。
步骤 S2 , 继续侦测下一触点坐标, 并计算该点与原点 (pre— X, pre_y ) 的间距 dl , 如果 dl在阔值 L1内, 说明该点有可能是抖动产生的, 暂视为无 效点并保存, 上报原点坐标(pre— X, pre_y ) , 重复步骤 S2。
步骤 S3 ,如果此次侦测到的触点与原点间距超过阔值 L1 ,说明该点是非 抖动产生的, 为有效点, 是手指从静止点击到滑动的过程。 首先将保存的暂 视为无效的点中抖动较大的点排除,将原点至该有效点滑动路径内的点保留, 并按实际触摸的先后顺序上报, 上报完后再上报这个有效的触摸点坐标, 并 关闭防抖算法。 步骤 S4, 继续侦测下一触摸点, 将该点坐标保存到 buf2中, 并上报该点 坐标。
步骤 S5 , 重复步骤 S4, 如果保存在 buf2中的坐标个数超过 N个, 则计 算保留的第 N个触点和第一个触点间的间距是否在阔值 L2内, 如果不在则 继续重复步骤 S4, 如果在阔值 L2 内, 说明用户从滑动进入停止, 则启动防 抖算法, 进入步骤 Sl。
通过上述实施例及优选实施方式, 不仅可以有效实现触摸屏防抖效果, 而且在手指从静止到滑动过程中实现平滑的过渡, 没有跳点的感觉, 很好地 改善了用户体验。
下面结合附图对本发明优选实施方式进行说明。
图 10是根据本发明优选实施方式的触摸屏防抖及平滑过渡方法流程图, 如图 10所示, 该方法包括如下步骤:
步骤 S1002 , 启动防抖算法, 首次触摸或滑动后手指静止时都会启动防 抖算法。
步骤 S1004, 侦测首个触摸点坐标, 分别将该坐标的 X, y值分别赋值给 全局变量 pre— X和 pre_y, 并上 4艮该触摸点坐标。 (pre— x, pre_y)将作为原点坐 标, 用于判断后续触摸点是否在防抖范围内。
步骤 S1006, 继续侦测下一触摸点, 计算该点与原点(pre— X, pre_y ) 间 的距离 dl。
步骤 S1008, 判断两点距离 dl是否在阔值 L1的范围内。 比较 dl和 L1 的大小, 如果 dl : L1 , 说明该点在防抖范围内, 否则说明该点已超过防抖范 围。
步骤 S1010, 如果该触点在防抖范围内, 则保存该触点坐标到 bufl中。 如果 bufl中保存的个数超过 M个, 就从 bufl的起始位置依次让新值覆盖掉 旧值进行保存。
步骤 S1012 , 如果该点被判断在防抖范围内, 则暂时认定为无效点, 上 报保留的原触点坐标(pre_x, pre_y ) , 重复步骤 S1006。
步骤 S1014, 如果该点已超过防抖范围, 则将 bufl中那些抖动较大的点 过滤掉, 将原点至该点间滑动路径上的触点坐标保留, 并按实际触摸的先后 顺序进行上报。理论上上报的这些点应该是在防抖范围内手指滑动产生的点。 步骤 S1016, 当上报完保留的防抖范围内的部分点后, 上报当前侦测到 的触点坐标, 即在防抖范围 L1外的第一个触摸点。
步骤 S1018, 关闭防抖算法。 此时手指已经从静止状态过渡到滑动状态。 步骤 S1020, 继续侦测下一触摸点, 将该点坐标保存到 buf2中, 并上报 该点坐标。 此时手指处于滑动过程中, 保存坐标的目的是用于判断手指是否 由滑动转换为静止状态。 判断保存到 buf2的坐标个数是否达到 N个。
步骤 S1022, 如果 buf2中保存的点的个数达到 N个, 则计算 buf2中第 N 个点与第一个点之间的距离 d2。 步骤 S1024, 判断距离 d2是否在阔值 L2的范围内。 如果 d2>L2, 则说 明手指仍处于滑动状态, 重复步骤 S1020, 如果 d2 L2, 则说明手指从滑动 状态转换到了静止状态, 则重新启动防抖算法。
通过上述实施例及优选实施方式, 不仅可以起到很好的防抖效果, 而且 在用户从手指静止到滑动的过程中可以平滑的过渡, 给用户更流畅的感觉, 提高用户体验。
显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 工业实用性 本发明实施例提供的触摸屏触点处理方法、 装置及终端, 先检测触摸屏 上的触点一, 然后判断从触点一至触点二的滑动, 如果触点二与触点一之间 的距离超过第一预定阔值, 则将位于触点一到触点二的滑动路径上的一个或 多个触点三进行上报, 其中, 触点三与触点一的距离小于第一预定阔值。 本 发明实施例, 不仅能够有效地过滤掉非实际触摸的抖动点, 而且能够实现从 触点一到触点二的平滑过渡, 有效地改善了用户体验。

Claims

权 利 要 求 书
1、 一种触摸屏触点处理方法, 包括: 检测触摸屏上的触点一; 确定对触摸屏的操作为从所述触点一至触点二的滑动,其中,所述触 点二与所述触点一之间的距离大于第一预定阔值; 将位于所述触点一到所述触点二的滑动路径上的一个或多个触点三 进行上 4艮,其中,所述触点三与所述触点一的距离小于等于所述第一预定 阔值。
2、 根据权利要求 1所述的方法, 其中, 确定对所述触摸屏的操作为从所 述触点一至触点二的滑动包括: 依次判断在所述触点一之后的一个或多个触点与所述触点一之间的 距离是否大于所述第一预定阔值; 当判断的结果为否时,保存所述一个或多个触点,直到判断到与所述 触点一之间距离大于所述第一预定阔值的第一个触点 ,确定所述第一个触 点为所述触点二 ,以及确定对触摸屏的操作为从所述触点一到所述触点二 的滑动。
3、 根据权利要求 1或 2所述的方法, 其中, 将位于所述触点一到所述触 点二的滑动路径上的一个或多个触点三进行上报包括: 依据所述触点一到所述触点二的滑动路径,从依次保存的所述一个或 多个触点中确定所述一个或多个触点三; 将确定的所述一个或多个触点三依次进行上 ·¾。
4、 根据权利要求 1或 2所述的方法, 其中, 在确定对所述触摸屏的操作 为从所述触点一至所述触点二的滑动之后, 还包括: 停止对所述触点二之后的触点与所述触点一之间的距离是否大于所 述第一预定阔值进行的判断。
5、 根据权利要求 1所述的方法, 其中, 在确定对所述触摸屏的操作为从 所述触点一至所述触点二的滑动之后, 还包括: 依次保存在所述触点二之后检测到的一个或多个触点; 判断保存的触点的数量是否达到预定数目 N; 当保存的触点的数量达到所述预定数目 N时,判断保存的第 N个触点 与第一个触点间的距离是否小于第二预定阔值; 当保存的第 N个触点与第一个触点间的距离小于等于第二预定阔值 时, 确定所述滑动到保存的第 N个触点停止。
6、 根据权利要求 5所述的方法,其中, 当保存的第 N个触点与第一个触 点间的距离大于所述第二预定阔值时, 还包括: 更新保存的 N个触点,其中,先顺序移位将保存的 N个触点中的第一 个触点覆盖, 然后增加接着在第 N个触点之后产生的一个触点,组成更新 后的 N个触点; 重复判断更新后的 N个触点中的第 N个触点与第一个触点间的距离是 否小于第二预定阔值,直到判断到小于等于所述第二预定阔值时, 才确定 所述滑动操作停止。
7、 一种触摸屏触点处理装置, 包括: 检测模块, 设置为检测触摸屏上的触点一; 确定模块,设置为确定对触摸屏的操作是从所述触点一至触点二的滑 动, 其中, 所述触点二与所述触点一之间的距离超过第一预定阔值; 上报模块,设置为将位于所述触点一到所述触点二的滑动路径上的一 个或多个触点三进行上 其中,所述触点三与所述触点一的距离小于所 述第一预定阔值。
8、 根据权利要求 7所述的装置, 其中, 所述确定模块还包括: 判断单元,设置为依次判断在所述触点一之后的一个或多个触点与所 述触点一之间的距离是否大于所述第一预定阔值; 第一确定单元,设置为当判断单元的判断结果为否时,依次保存所述 一个或多个触点,直到所说判断单元判断到与所述触点一之间距离大于所 述第一预定阔值的第一个触点,确定所述第一个触点为所述触点二, 以及 确定对触摸屏的操作为从所述触点一到所述触点二的滑动。
9、 根据权利要求 7或 8所述的装置, 其中, 所述上报模块包括: 第二确定单元,设置为依据所述触点一到所述触点二的滑动路径,从 依次保存的所述一个或多个触点中确定所述一个或多个触点三; 上报单元, 设置为将确定的所述一个或多个触点三依次进行上报。
10、 根据权利要求 7或 8所述的装置, 其中, 所述确定模块还包括: 停止单元,设置为停止对所述触点二之后的触点与所述触点一之间的 距离是否大于所述第一预定阔值进行的判断。
11、 根据权利要求 7所述的装置, 还包括: 保存模块,设置为依次保存在所述触点二之后检测到的一个或多个触 点; 第一判断模块, 设置为判断保存的触点的数量是否达到预定数目 N; 第二判断模块,设置为在第一判断模块的判断结果为是的情况下,判 断保存的 N 个触点中的最后一个触点与第一个触点间的距离是否小于第 二预定阔值; 第二确定模块,设置为在所述第二判断模块的判断结果为小于等于所 述第二预定阔值的情况下, 确定所述滑动到保存的所述第 N个触点停止。
12、 根据权利要求 11所述的装置, 其中, 还包括: 更新模块,设置为在判断保存的 N个触点中的最后一个触点与第一个 触点间的距离大于所述第二预定阔值的情况下, 更新保存的 N个触点,其 中,先顺序移位将保存的 N个触点中的第一个触点覆盖, 然后增加接着在 第 N个触点之后产生的一个触点, 组成更新后的 N个触点; 重复模块,设置为重复判断更新后的 N个触点中的第 N个触点与第一 个触点间的距离是否小于等于第二预定阔值 ,直到判断到小于等于所述第 二预定阔值, 才确定滑动操作停止。
13、 一种终端, 包括权利要求 7至 12中任一项所述的装置。
PCT/CN2014/084566 2013-09-29 2014-08-15 触摸屏触点处理方法、装置及终端 WO2015154362A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020177002879A KR20170028957A (ko) 2013-09-29 2014-08-15 터치스크린 터치 포인트 처리 방법, 장치 및 단말
EP14888878.7A EP3165999A4 (en) 2014-07-04 2014-08-15 Touch screen contact processing method and device, and terminal
US15/323,659 US20170153764A1 (en) 2014-07-04 2014-08-15 Touch Screen Contact Processing Method and Device, and Terminal

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201310456014 2013-09-29
CN201410318611.0A CN104516578B (zh) 2013-09-29 2014-07-04 触摸屏触点处理方法、装置及终端
CN201410318611.0 2014-07-04

Publications (1)

Publication Number Publication Date
WO2015154362A1 true WO2015154362A1 (zh) 2015-10-15

Family

ID=51730770

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2013/087621 WO2014169654A1 (zh) 2013-09-29 2013-11-21 触摸屏触点处理方法、装置及终端
PCT/CN2014/084566 WO2015154362A1 (zh) 2013-09-29 2014-08-15 触摸屏触点处理方法、装置及终端

Family Applications Before (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/087621 WO2014169654A1 (zh) 2013-09-29 2013-11-21 触摸屏触点处理方法、装置及终端

Country Status (3)

Country Link
KR (1) KR20170028957A (zh)
CN (2) CN104516578B (zh)
WO (2) WO2014169654A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183341B (zh) * 2015-08-07 2018-12-18 广州汽车集团股份有限公司 触摸屏的笔迹校正方法和***
CN106484181A (zh) * 2016-09-20 2017-03-08 青岛海信电器股份有限公司 红外触摸屏的触摸响应方法及装置
CN106547400B (zh) * 2016-10-31 2020-04-10 Oppo广东移动通信有限公司 上报信息的方法、装置及终端
CN108287621B (zh) * 2017-01-10 2021-01-29 南宁富桂精密工业有限公司 触摸屏校准方法及***
US10444899B2 (en) * 2017-01-23 2019-10-15 Stmicroelectronics Asia Pacific Pte Ltd Multiple threshold motion tolerance to filter coordinate jitter in touch sensing
CN109614015B (zh) * 2018-12-27 2022-03-01 北京集创北方科技股份有限公司 触控方法及触控装置
CN113360015A (zh) * 2020-03-06 2021-09-07 北京小米移动软件有限公司 鬼点检测方法及装置、存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859219A (zh) * 2010-06-22 2010-10-13 北京握奇数据***有限公司 触摸屏触点坐标去抖动的方法及装置
CN101963862A (zh) * 2010-09-26 2011-02-02 苏州瀚瑞微电子有限公司 触摸屏上坐标防抖的方法
CN103631441A (zh) * 2013-12-03 2014-03-12 福建联迪商用设备有限公司 电子签字设备上触摸屏防干扰的方法及装置
CN103677416A (zh) * 2013-12-13 2014-03-26 广东欧珀移动通信有限公司 一种滑动过程中防止界面抖动的方法和装置
US8736570B2 (en) * 2009-08-25 2014-05-27 Pixart Imaging Inc. Firmware methods and devices for a mutual capacitance touch sensing device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI411418B (zh) * 2008-08-08 2013-10-11 Hon Hai Prec Ind Co Ltd 在數位相框上實現可控媒體變換的方法
CN101807130B (zh) * 2010-05-17 2012-03-28 友达光电股份有限公司 触控位置修正方法
US20130014057A1 (en) * 2011-07-07 2013-01-10 Thermal Matrix USA, Inc. Composite control for a graphical user interface
CN103279295A (zh) * 2013-05-03 2013-09-04 广东欧珀移动通信有限公司 一种终端桌面图标切换方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8736570B2 (en) * 2009-08-25 2014-05-27 Pixart Imaging Inc. Firmware methods and devices for a mutual capacitance touch sensing device
CN101859219A (zh) * 2010-06-22 2010-10-13 北京握奇数据***有限公司 触摸屏触点坐标去抖动的方法及装置
CN101963862A (zh) * 2010-09-26 2011-02-02 苏州瀚瑞微电子有限公司 触摸屏上坐标防抖的方法
CN103631441A (zh) * 2013-12-03 2014-03-12 福建联迪商用设备有限公司 电子签字设备上触摸屏防干扰的方法及装置
CN103677416A (zh) * 2013-12-13 2014-03-26 广东欧珀移动通信有限公司 一种滑动过程中防止界面抖动的方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3165999A4 *

Also Published As

Publication number Publication date
KR20170028957A (ko) 2017-03-14
CN104516601A (zh) 2015-04-15
CN104516578A (zh) 2015-04-15
WO2014169654A1 (zh) 2014-10-23
CN104516578B (zh) 2019-04-23

Similar Documents

Publication Publication Date Title
WO2015154362A1 (zh) 触摸屏触点处理方法、装置及终端
US11416097B2 (en) Information processing apparatus configured to control an application based on an input mode supported by the application
US9910541B2 (en) Mis-touch recognition method and device
CN104007932B (zh) 一种触摸点识别方法及装置
US20160349985A1 (en) Mobile terminal
CN102023772B (zh) 电容式触摸屏信号处理方法及装置
KR101895883B1 (ko) 터치스크린패널의 터치 감도 개선 방법 및 장치
US10747357B2 (en) Coordinate measuring apparatus for measuring input position of a touch and a coordinate indicating apparatus and driving method thereof
CN103440089B (zh) 一种用户设备的界面调整方法及用户设备
JP2013069270A (ja) デュアルモードタブレットとその信号検出方法及び切換方法
CN107092369A (zh) 有线触控笔、触控电子装置、触控电子***与触控处理方法
CN106126101A (zh) 一种移动终端的操作方法及移动终端
CN102768597B (zh) 一种操作电子设备的方法及装置
CN111078108A (zh) 一种屏幕显示方法、装置、存储介质及移动终端
WO2013174323A2 (zh) 终端控制方法、终端控制装置及终端
EP3165999A1 (en) Touch screen contact processing method and device, and terminal
JP2015522893A (ja) タッチ信号検出回路および方法、ならびにタッチデバイス
WO2018157348A1 (zh) 触控检测误报点的确定方法、电容触控装置及电子装置
JP5639487B2 (ja) 入力装置
CN108027682B (zh) 坐标测量装置及其控制方法
CN106775406A (zh) 一种移动终端触摸屏的防误触控制方法、装置及移动终端
CN105487697B (zh) 一种防止触屏按键失效的方法与装置
US20140362041A1 (en) Touch apparatus and driving method thereof
US10409399B2 (en) Input device and input method
WO2020173469A1 (zh) 触控控制方法、电路***及触控装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14888878

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15323659

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20177002879

Country of ref document: KR

Kind code of ref document: A

REEP Request for entry into the european phase

Ref document number: 2014888878

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014888878

Country of ref document: EP