WO2019148956A1 - 一种触控识别方法、装置和系统 - Google Patents

一种触控识别方法、装置和系统 Download PDF

Info

Publication number
WO2019148956A1
WO2019148956A1 PCT/CN2018/118537 CN2018118537W WO2019148956A1 WO 2019148956 A1 WO2019148956 A1 WO 2019148956A1 CN 2018118537 W CN2018118537 W CN 2018118537W WO 2019148956 A1 WO2019148956 A1 WO 2019148956A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
touched
continuous
identifier
condition
Prior art date
Application number
PCT/CN2018/118537
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 US15/733,374 priority Critical patent/US11537238B2/en
Publication of WO2019148956A1 publication Critical patent/WO2019148956A1/zh

Links

Images

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/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
    • G06F3/04186Touch location disambiguation
    • 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
    • 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
    • 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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

Definitions

  • the invention relates to a touch recognition method, device and system.
  • Touch has become a standard human-computer interaction method, and is widely used in technical fields such as smart terminals. For example, users can easily and quickly control various operations on the terminal through the touch screen.
  • the terminal is controlled by the touch method, when the operation is clicked, double-clicked, long-pressed, or reversed, the terminal recognition error often occurs.
  • the algorithm that traditionally touches the sensor and interacts with the user usually uses real-time reading of the sensor data, and the delay waits for the type of the touch operation. If the user touches the boundary of the two touch positions, the value collected by the touch sensor will be two. Jumping between touch locations leads to false positives and affects the user experience.
  • One aspect of the present invention provides a touch recognition method, including:
  • the touch information includes the touched touch position identifier, the touch time, and the touch operation identifier, and the touch operation identifier includes a long press identifier
  • the touch operation identifier includes a long press identifier
  • obtaining a continuous touch condition of the first touch position according to the touch information corresponding to the first touch position where the continuous touch situation includes: the second touch position adjacent to the first touch position is continued a first continuous touch condition of the touch, or a touch time of the first touch position is greater than a second continuous touch condition of the preset first touch time, or when the first touch position is touched, no touch position on the touched surface is continuously touched And a third continuous touch condition; updating the corresponding touch operation identifier according to the continuous touch condition of the first touch position to identify the touch operation, and performing a touch response of the corresponding touch operation according to the updated touch operation identifier.
  • a touch recognition device including: a first acquisition module, configured to acquire touch information corresponding to a first touch position when a touch operation is touched by a first touch position on a touched surface,
  • the touch information includes a touched touch location identifier, a touch time, and a touch operation identifier
  • the touch operation identifier includes a long press identifier, a click identifier, a double click identifier, and a slide identifier
  • a second acquiring module configured to acquire a continuous touch situation of the first touch location according to the touch information corresponding to the first touch location, where the continuous touch situation includes: the first touch location adjacent to the first touch location is continuously touched by the first a continuous touch condition, or a touch time of the first touch position is greater than a second continuous touch condition of the preset first touch time, or a third continuous touch on the touched surface after the first touch position is touched Touch situation
  • the identification module is configured to update the corresponding touch operation identifier according to the continuous touch condition of the first touch location to identify the touch operation, and perform a touch response of the corresponding touch operation according to the updated touch operation identifier.
  • a touch control system includes: one or more storage units for storing executable instructions; and one or more processing units for executing executable instructions to implement the above touch recognition methods.
  • Still another aspect of the present invention provides a computer readable storage medium storing an executable command, the executable instructions being executed by a processor to implement the touch recognition method.
  • the invention obtains a continuous touch situation of the first touch position based on the change of the touch position on the touched surface and the change of the touch time, and updates the corresponding touch operation identifier by using the continuous touch condition of the first touch position, and identifies by using the touch operation
  • the correspondence of the value to the touch operation identifies a touch operation on the touched surface.
  • the present invention is capable of recognizing a touch operation including an interference operation in a touch process due to a boundary of touching an adjacent touch position, a sliding touch between adjacent touch positions, and the like, for example, a long press operation including a slide operation, sliding
  • the operation or long press operation includes a click, double click operation, and the forward sliding operation includes a touch operation such as a reverse sliding operation.
  • the present invention is directed to similar problems, can effectively avoid the influence of interference operations, accurately recognize various touch operations of the user on the touched surface, and enhance the user experience.
  • FIG. 1 is a flowchart of a touch recognition method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a pad distribution of a touch screen according to an embodiment of the present invention.
  • FIG. 3 is a state machine conversion diagram according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a touch recognition apparatus according to an embodiment of the present invention.
  • different touch positions may have different position responses, so that the touched position or touch distance may be reflected to reflect the direction of the touch operation. Therefore, under the touched surface, it is possible to respond to touch actions of different positions by setting the touch response device at different positions.
  • the touch operation including the interference operation caused by the touch to the boundary of the adjacent touch position, the sliding touch between the adjacent touch positions, and the like causes the touch operation to be misidentified, for example, may occur.
  • Misidentification Case 1 the user expects the long press operation, but due to the accidental sliding during the long press, for example, the user desires to perform long press operation by long pressing the first touch position of the touched surface, but long press There is a case where the first touch position is slid to the second touch position, thereby causing a problem that the long press operation and the slide operation coexist;
  • Misidentification Case 2 The user expects the sliding operation, but since the physical interval between two adjacent touch positions is large, the sensor does not sense the touch between adjacent touch positions, and “no touch” occurs during the sliding process. The position is touched, that is, an empty contact that cannot be ignored during the sliding process, thereby causing a problem that the sliding operation coexists with the click or double-click operation;
  • an aspect of the present invention provides a touch recognition method.
  • FIG. 1 is a flowchart of a touch recognition method according to an embodiment of the present invention. As shown in FIG. 1 , the method in this embodiment includes:
  • the touch location identifier in this embodiment is used to identify the location of the touched surface
  • the touch time is used to identify the time when the touch operation touches each location on the touched surface
  • the touch operation identifier is used to identify the type of the touch operation, such as a touch.
  • the operation identifier includes a long-pressing identifier, a click-on-label, a double-clicking identifier, a sliding identifier, and the like.
  • the touch operation identifier corresponding to the first touch location obtained in this embodiment is an initial value of each touch operation identifier, and the embodiment is based on the touch operation identifier. The value identifies the touch operation.
  • the touched surface may be a touch screen, and is mainly applied to mobile terminal-like electronic products such as headphones, portable speakers, etc., and the position of the touched surface may be defined according to the sensor of the touched surface, and the touched position may be utilized.
  • the ID uniquely identifies the corresponding location.
  • the touched surface includes a plurality of touch positions. In the following description of the present invention, each touch position is recorded as a pad, and a plurality of pads are distributed on the touch screen in a set manner. Correspondingly, the touch position identifier may be a label of the pad. . According to the manner shown in FIG.
  • a plurality of pads are distributed on the touch screen in a ring manner, and the order of pad1, pad2, pad3, ..., pad8 can be set to be positive, that is, when the touch position of the touch operation is in the order (pad)
  • the touch from the small to large can be regarded as a forward touch, and conversely, when the touch position of the touch operation is reversed in the order of the reverse (the pad mark is from large to small), the touch can be regarded as a reverse touch.
  • the touched pad is read from the touch sensor module by an interactive means such as an i2c bus to acquire the touched location information.
  • the continuous touch situation of the first touch location includes:
  • a first continuous touch situation a case where the second touch position adjacent to the first touch position is continuously touched; referring to the above-described embodiments regarding forward and reverse directions, the touch position adjacent in this embodiment may be understood as a positive direction Adjacent or opposite adjacent.
  • the touch time of the first touch location is greater than the preset first touch time.
  • the preset first touch time is 30 ms
  • the continuous touch time of the first touch position on the touched surface is greater than 30 ms.
  • the third continuous touch situation when the first touch position is touched, there is no other touch position on the touched surface being continuously touched.
  • the third continuous touch situation in this embodiment includes: after the first touch position is touched, the preset touch time is not continuously touched on the touch surface by the second touch time, and after the first touch position is touched, A case where the second touch position adjacent to the first touch position on the touched surface is touched in the second touch time is preset.
  • all the touch operation identifiers are acquired in step S110, and the touch operation identifier acquired at this time is an initial value, and the corresponding touch operation identifier is updated according to the continuous touch condition of the first touch position, such as the continuous touch situation at the first touch position.
  • the long press identifier is updated by updating the initial value of the long press mark to the first value, and the touch operation is recognized as a long press operation according to the updated long press mark to perform a long press operation. Touch response.
  • the embodiment obtains a continuous touch situation of the first touch position based on the change of the touch position on the touched surface and the change of the touch time, and updates the corresponding touch operation identifier by using the continuous touch condition of the first touch position, and uses the touch operation identifier
  • the correspondence between the value of the touch and the touch operation identifies a touch operation on the touched surface.
  • the present invention is capable of recognizing a touch operation including an interference operation in a touch process due to a boundary of touching an adjacent touch position, a sliding touch between adjacent touch positions, and the like, for example, a long press operation including a slide operation, sliding
  • the operation or long press operation includes a click, double click operation, and the forward sliding operation includes a touch operation such as a reverse sliding operation.
  • the present invention is directed to similar problems, can effectively avoid the influence of interference operations, accurately recognize various touch operations of the user on the touched surface, and enhance the user experience.
  • each touch position of the embodiment can respond to a touch operation such as clicking, double-clicking, long-pressing, sliding, etc., it is not necessary to specify a certain position for a specific type of touch operation, and therefore, the method of the embodiment can also be applied to invisible. Touch operation in the state.
  • the sliding identifier includes a forward sliding indicator and a reverse sliding indicator.
  • the first continuous touch situation in this embodiment includes: a second touch that is positively adjacent to the first touch position. A case where the position is continuously touched and a case where the second touch position adjacent to the first touch position is continuously touched.
  • the forward sliding operation and the reverse sliding operation are relative touch operations, and the present embodiment defines forward adjacent and reverse adjacent based on the position definition manner of the touched surface.
  • pad2 is positively adjacent to pad1 with respect to pad1, and if the touch operation is to slide to the pad2 position by the pad1 position on the touched surface, the forward sliding identification is updated at this time;
  • pad1 is opposite to pad2, and if the touch operation is to slide to the pad1 position by the pad2 position on the touched surface, the reverse slide flag is updated at this time.
  • the forward sliding logo can be updated on the touched surface when the touch pad is swiped rightward on the touched surface (or the touchpad is swiped up) Update the reverse slide indicator when you slide the touch pad left (or slide the touch pad down).
  • the continuous touch condition of the first touch position is the first continuous touch condition
  • the first continuous touch condition is that the second touch position that is adjacent to the first touch position is continuously touched as an example.
  • the first continuous touch condition is a method of recognizing a touch operation when the second touch position that is opposite to the first touch position is continuously touched, and the first continuous touch condition is positively adjacent to the first touch position
  • the second touch position is the same when the touch is continuously touched.
  • the forward slip flag is updated from the initial value to the first value. Assuming the initial value is 0, the first value is 1 and the second value is 2.
  • the embodiment After obtaining the touch information corresponding to the second touch position, the embodiment acquires the continuous touch situation of the second touch position according to the touch information corresponding to the second touch position, and updates the corresponding touch operation identifier according to the continuous touch condition of the second touch position.
  • the continuous touch situation of the second touch location includes four cases, namely: 1) a case where the third touch position that is positively adjacent to the second touch position is continuously touched, and 2) is opposite to the second touch position. a case where the adjacent fourth touch position is continuously touched, 3) a case where the sum of the touch time of the second touch position and the touch time of the first touch position is greater than a preset first touch time, 4) the second touch position is After the touch, there is no case where the touched position on the touched surface is continuously touched.
  • the method for updating the touch operation identifier corresponding to the continuous touch condition of each second touch position is as follows:
  • the forward slip flag is updated again, such as updating the forward slip flag from the first value to the second value, that is, sliding forward
  • the value of the tag is updated from 1 to 2.
  • the second value of the forward sliding indicator corresponds to the forward sliding operation.
  • the touch operation is recognized as a forward sliding operation, and the touch response of the forward sliding operation is performed according to the positive sliding identification.
  • the update forward slide flag is 1, and when pad2 is continuously touched, pad3 is continuously touched.
  • the update forward slide flag is 2, and the touch operation is recognized as a forward slide operation.
  • the continuous touch condition at the first touch position is that the second touch position that is adjacent to the first touch position is continuously touched, and the third touch position that is adjacent to the second touch position is continuously touched. , that is, when the touch operation is slid from the first touch position to the second touch position on the touched surface, and then slides to the third touch position, the embodiment recognizes that the touch operation is a forward sliding operation, instead of the first touch operation When the touch position is swiped to the second touch position, the touch operation is recognized as a forward slide operation.
  • the touch operation corresponds to the first touch position
  • the touch is an erroneous operation
  • the operation corresponding to the second touch position is the user's intended operation, such as when the user intends to operate as a long press, click, or the like
  • the recognition method to the slide operation can avoid erroneously recognizing a touch operation such as a long press or a click as a forward slide operation.
  • the touch position of the touched surface shown in FIG. 2 as an example, if the first touch position is pad1, when the pad2 is continuously touched, the update forward slide flag is 1, and when the pad2 is continuously touched, the pad1 is continuously touched.
  • the reverse sliding flag is updated to 1, the continuous touch condition of the pad 1 is acquired, and the touch operation identifier is updated according to the continuous touch condition of the pad 1.
  • the continuous touch situation of the fourth touch location includes: a case where the fifth touch position that is positively adjacent to the fourth touch position is continuously touched, or a sixth touch position that is adjacent to the fourth touch position is continuously touched a case where the sum of the touch time of the fourth touch position and the touch time of the first touch position and the second touch position is greater than a preset first touch time, or after the fourth touch position is touched, the touched surface is not The situation when other touch locations are continuously touched.
  • the long press mark when the sum of the touch time of the second touch position and the touch time of the first touch position is greater than the preset first touch time, updating the long press mark, for example, updating the value of the long press mark from the initial value to the first value .
  • the first value of the long press mark corresponds to the long press operation, and the long touch operation is performed according to the updated long press mark, and the touch response of the long press operation is performed according to the long press mark.
  • the first touch position is pad1
  • the update forward slide flag is 1
  • the pad2 is continuously touched
  • the pad1 is continuously touched.
  • the update long press flag is 1, and the recognition touch operation is a long press operation.
  • the touch operation is swiped from the first touch position to the second touch position on the touched surface.
  • the embodiment recognizes that the touch operation is a long press operation instead of recognizing the touch operation as a positive direction. Slide operation.
  • the embodiment recognizes that the touch operation is a long press operation, and It is not recognized that the touch operation is a malfunction.
  • the updated touch operation identifier is a click mark and a double click mark, and the touch condition on the touched surface in the preset second touch time is acquired.
  • the update clicks the ID as the first value, and updates the double-click ID as the initial value; if you click the ID as the first value, the update clicks the ID as the initial value, and updates the double-click ID as the first A value.
  • the touch operation is recognized as a click operation or a double click operation according to the updated click mark and double-click mark, if the updated click mark is the first Value, double-click the logo as the initial value, identify the touch operation as the click operation, and vice versa, if the updated click identifier is the initial value, double-click the logo as the first value, identify the touch operation as the double-click operation, and click the logo and double-click the logo. Touch response with the corresponding click or double click operation.
  • the operation identifier is the same as the above-mentioned description.
  • the continuous touch situation of the third touch location is the same as the continuous touch state of the second touch location described in the foregoing, and the details are not described herein again.
  • the touch position of the touched surface shown in FIG. 2 as an example, if the first touch position is pad1, when the pad2 is continuously touched, the update forward slide flag is 1, and when pad2 is continuously touched, there is no pad (including pad2). ) is touched, at this time, the click mark and the double-click mark are updated, and when the touched surface is still not touched when the touched surface is over the preset second touch time, for example, more than 10 ms, at this time, the touch is recognized according to the click mark and the double-click mark.
  • the operation is a click operation or a double-click operation; when the preset second touch time is not exceeded, for example, pad3 or pad1 of the touched surface is touched at intervals of 8 ms, at this time, the continuous touch condition of pad3 or pad1 is obtained, according to pad3 or pad1
  • the corresponding touch operation identifier is updated by the continuous touch condition.
  • the interval is preset after the second touch time. If there is no other touch position on the touched surface after being touched for 10ms, it is touched.
  • the preset second touch time represents the non-contact time, which can be understood as the longest interval time of each touch, and beyond this interval time, it is considered that no touched position of the touched surface is touched, and one touch operation ends.
  • the second touch is preset after the second touch position on the touched surface is touched.
  • the preset third touch time is less than the preset second touch time.
  • the third touch position on the touched surface that is adjacent to or adjacent to the second touch position is touched.
  • the touch operation is touched by the second touch position of the touched surface, leaving the touched surface for a period of time (also can be understood as an interval touch time of the second touch position and the third touch position, the interval touch time is less than the preset second Touch time), and then touch at the third touch position of the touched surface.
  • the continuous touch condition at the first touch position is that the second touch position that is adjacent to the first touch position is continuously touched, and after the second touch position is continuously touched, the empty contact occurs, according to the time of the empty contact.
  • the touch operation is a click or double click operation. For example, when the time of the null contact is short, and after the empty contact, the third touch position on the touched surface that is positively adjacent to the second touch position is touched, the empty contact that occurs is an erroneous operation, and the touch operation at this time is recognized. For a positive sliding operation.
  • the embodiment updates the touch operation identifier by the following method:
  • updating the long press mark for example, updating the long press mark from the initial value to the first value; and identifying the touch operation according to the updated long press mark as a long press operation
  • the touch response of the long press operation according to the long press mark is greater than the preset first touch time
  • the present embodiment updates the touch operation identifier by the following method:
  • the update click mark and the double click mark are updated according to the updated click.
  • the logo and the double-click logo identify the touch response as a click operation or a double-click operation, and click or double-click the touch response of the click operation or double-click operation. If the click identifier is the initial value, the update clicks the identifier as the first value, and updates the double-click identifier as the initial value; if the click identifier is the first value, the update clicks the identifier as the initial value, and updates the double-click identifier as the first value.
  • the click mark is the first value
  • the double-click mark is the initial value
  • the touch operation is recognized as the click operation
  • the double-click mark is the first value
  • the click mark and the double click mark are updated. And acquiring a continuous touch condition of the second touch position, updating the corresponding touch operation identifier according to the continuous touch condition of the second touch position, and updating the corresponding touch operation identifier according to the continuous touch condition of the second touch position, as described above Description, no longer repeat here.
  • the embodiment of the present invention updates various types of touch operation identifiers according to the touch information between the touched touch positions, the touch time, the touch interval time and the like by detecting the continuous action of the user on the touched surface, according to the update.
  • the subsequent touch operation identification recognizes the touch operation, and can accurately recognize the long-press operation with the slide operation, the slide operation or the long-press operation with the click, the double-click operation, the forward slide operation with the reverse slide operation, and the like, and the touch with the wrong touch operating.
  • the embodiment of the present invention can use the state machine to record the state change process of the touch position, and identify the touch operation according to the state change process of the touch position.
  • the pad distribution mode in FIG. 2 is taken as an example to illustrate the state change process of the pad.
  • FIG. 3 is a state machine conversion diagram according to an embodiment of the present invention. As shown in FIG. 3, the state machine of this embodiment involves twelve parameters, wherein there are ten variables and two constants. In Figure 3,
  • Variable last the identifier of the pad that was last touched
  • variable old the identifier of the pad touched the previous time; exemplarily, the initial values of last and old are both 0, which can take values between 1 and 8, corresponding to the pad in FIG. 2, respectively.
  • variable single—click the identifier to identify the occurrence of the click event
  • variable long—long presses the identifier to identify the occurrence of a long press event; for example, the initial value of single, double, and long is 0, and the first value is 1.
  • Variable slide_forward positive sliding indicator indicating a clockwise slide
  • variable slide_backward—reverse slide indicator indicating counterclockwise sliding; exemplarily, the initial values of slide_forward and slide_backward are 0, indicating no sliding operation, the first value is 1, indicating that it may be a sliding operation, and the second value is 2, indicating Make sure there is a sliding operation;
  • Variable touch_duration Touch time to record the time when the pad is continuously touched
  • variable untouc_duration interval time, recording the untouched time from the end of a pad touch to the start of the next pad touch;
  • Variable state The status value that identifies the current state.
  • Constant LL presets the first touch time, and the touch time exceeds this value to determine a long press operation
  • Constant ML Presets the second touch time, the longest interval between each touch, beyond which the pad is touched, and determines that the operation ends.
  • the pad is touched or not is currently read from the touch sensor module at a set time interval, such as 5 ms, by polling, thereby updating the state of the state machine.
  • the preset first touch time LL and the preset second touch time ML of the embodiment are both larger than the above-mentioned time interval for polling.
  • the variable touch_duration continues to increase, and the values of other variables are the same as the previous state.
  • the pad touched at this time is pad1
  • the subsequent state change process is described based on the assumption that last+1 and last-1 of FIG. 3 refer to the next pad clockwise and counterclockwise, respectively.
  • the identification method can effectively avoid the large physical interval between the pads, or the touch break caused by the poor quality of the touch sensor module, and avoid the misjudgment caused by the situation that no pad is touched.
  • the processing of the sliding operation is not performed immediately, but the value of the slide_forward flag is set to 1, and the pad with the next pad identifier of last+1 is detected to be touched.
  • the value of the slide_forward flag is set to 2, and it is determined that the forward sliding operation is performed.
  • another aspect of the present invention provides a touch recognition device.
  • FIG. 4 is a schematic structural diagram of a touch recognition apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus of this embodiment includes:
  • the first obtaining module 41 is configured to acquire touch information corresponding to the first touch position when the touch operation is touched by the first touch position on the touched surface, where the touch information includes the touched touch position identifier, the touch time, and the touch operation identifier.
  • the touch operation identifier includes a long press identifier, a click logo, a double click logo, and a slide logo;
  • the second obtaining module 42 is configured to acquire a continuous touch situation of the first touch location according to the touch information corresponding to the first touch location, where the continuous touch situation includes: the second touch location adjacent to the first touch location is continuously touched a continuous touch condition, or a touch time of the first touch position is greater than a second continuous touch condition of the preset first touch time, or a third touched position on the touched surface is not continuously touched when the first touch position is touched Continuous touch situation;
  • the identification module 43 is configured to update the corresponding touch operation identifier according to the continuous touch condition of the first touch location to identify the touch operation, and perform a touch response of the corresponding touch operation according to the updated touch operation identifier.
  • the sliding indicator includes a forward sliding indicator and a reverse sliding indicator
  • the first continuous touch condition includes a case where the second touch position that is adjacent to the first touch position is continuously touched.
  • the first obtaining module 41 is further configured to: when the second touch position that is positively adjacent to the first touch position is continuously touched, update the forward sliding identifier, and acquire a touch operation to touch the second touch position on the touched surface
  • the touch information corresponding to the second touch position of the second touch module is further configured to acquire a continuous touch condition of the second touch position according to the touch information corresponding to the second touch position, where the continuous touch situation of the second touch position includes: a case where the second touch position is continuously touched by the adjacent third touch position, or a case where the fourth touch position reversely adjacent to the second touch position is continuously touched, or the touch time of the second touch position and the second touch position a case where the sum of touch times of one touch position is greater than a preset first touch time, or a case where no touch position is continuously touched on the touched surface after the second touch position is touched; the recognition module 43 includes an update module for The corresponding touch operation identifier is updated according to the continuous touch condition of the second touch position.
  • an updating module configured to: when the third touch position that is positively adjacent to the second touch position is continuously touched, update the forward sliding identifier; the identifying module 43 identifies that the touch operation is positive according to the updated forward sliding identifier The sliding operation, the positive sliding indicator identifies the touch response of the forward sliding operation.
  • the update module is further configured to: when the fourth touch position that is opposite to the second touch position is continuously touched, update the reverse slide identifier, and the first acquisition module 41 further acquires the fourth touch operation on the touched surface The touch information corresponding to the fourth touch position when the touch position is touched; the second acquisition module 42 further acquires the continuous touch condition of the fourth touch position according to the touch information corresponding to the fourth touch position; and the update module continues according to the fourth touch position
  • the touch condition updates the corresponding touch operation identifier.
  • the update module is further configured to: when the sum of the touch time of the second touch location and the touch time of the first touch location is greater than the preset first touch time, update the long press identifier; the identifying module 43 identifies the touch according to the updated long press logo
  • the operation is a long press operation, and the touch response of the long press operation is performed according to the long press mark.
  • the update module is further configured to update the click mark and the double-click mark when the touched surface is continuously touched when the touched surface is touched, and the first obtaining module 41 further acquires the touched second touch time.
  • a touch condition on the surface the recognition module 43 recognizes the touch operation as a click operation or a double-click operation according to the updated click mark and the double-click mark when the touched surface is touched by the touched position on the touch surface during the preset second touch time And performing, according to the click mark and the double-click mark, a touch response of the corresponding click operation or the double click operation;
  • the second obtaining module 42 is the third adjacent to the second touch position on the touch surface in the preset second touch time
  • the continuous touch condition of the third touch position is acquired when the touch position is touched, and the update module updates the corresponding touch operation identifier according to the continuous touch condition of the third touch position.
  • the identification module 43 is further configured to: when the continuous touch condition is the second continuous touch situation, update the long press identifier; and according to the updated long press mark, identify the touch operation as a long press operation, according to the long press Identifies the touch response for a long press.
  • the identification module 43 is further configured to: when the first touch position is touched, when the touched surface is continuously touched by the touched surface, the click mark and the double click mark are updated, and the touch condition on the touched surface in the preset second touch time is acquired.
  • the touch operation is identified as a click operation or a double click operation according to the updated click mark and the double click mark, according to the click mark and Double-clicking the touch response to perform a corresponding click operation or a double-click operation;
  • the second acquisition module 42 acquires The continuous touch condition of the two touch positions, the recognition module 43 updates the corresponding touch operation identification according to the continuous touch condition of the second touch position.
  • Yet another aspect of the present invention also provides a touch recognition system.
  • the touch recognition system includes one or more storage units for storing executable instructions, and one or more processing units for executing executable instructions to implement the touch recognition method described above.
  • the invention also provides a computer readable storage medium.
  • the computer readable storage medium stores executable instructions that, when executed by the processor, implement the touch recognition method described above.
  • the computer readable storage medium of the embodiments of the present invention may be, for example, any medium capable of containing, storing, transmitting, transmitting or transmitting instructions.
  • a computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium.
  • Specific examples of the computer readable storage medium include: a magnetic storage device such as a magnetic tape or a hard disk (HDD); an optical storage device such as a compact disk (CD-ROM); a memory such as a random access memory (RAM) or a flash memory; and/or Wired/wireless communication link.
  • the readable storage medium can include a computer program, which can include code or computer executable instructions that, when executed by a processor, cause the processor to perform, for example, the method flow described above and any variations thereof.
  • the computer program can be configured to have, for example, computer program code comprising a computer program module.
  • the code in a computer program can include one or more program modules. It should be noted that the division manner and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations. When these program module combinations are executed by the processor, the processor may execute, for example, The method flow described above and any variations thereof.
  • the embodiment of the present invention obtains a continuous touch situation of the first touch position based on the change of the touch position on the touched surface and the change of the touch time, and updates the corresponding touch operation identifier by using the continuous touch condition of the first touch position, and uses the touch operation.
  • the correspondence between the identified value and the touch operation identifies a touch operation on the touched surface.
  • the present invention is capable of recognizing a touch operation including an interference operation in a touch process due to a boundary of touching an adjacent touch position, a sliding touch between adjacent touch positions, and the like, for example, a long press operation including a slide operation, sliding
  • the operation or long press operation includes a click, double click operation, and the forward sliding operation includes a touch operation such as a reverse sliding operation.
  • the present invention is directed to similar problems, can effectively avoid the influence of interference operations, accurately recognize various touch operations of the user on the touched surface, and enhance the user experience.
  • the words “first” and “second” are used to distinguish the same items or similar items whose functions and functions are substantially the same. Personnel can understand that the words “first” and “second” do not limit the quantity and order of execution.

Abstract

本发明公开了一种触控识别方法、装置和系统。所述方法包括:获取触摸操作在被触摸表面上的第一触摸位置进行触摸时的第一触摸位置对应的触摸信息;根据第一触摸位置对应的触摸信息,获取所述第一触摸位置的持续触摸情况;根据第一触摸位置的持续触摸情况更新相应的触摸操作标识,以识别所述触摸操作,并根据更新后的触摸操作标识进行相应触摸操作的触控响应。本发明能够对触摸操作中包括干扰操作,如长按操作包含滑动操作、滑动操作或长按操作包含单击、双击操作、正向滑动操作包含反向滑动操作等触摸操作进行识别,规避干扰操作的影响,准确识别用户在被触摸表面上的各种操作,增强用户体验。

Description

一种触控识别方法、装置和系统 技术领域
本发明涉及一种触控识别方法、装置和系统。
背景技术
触摸已成为一种标准的人机交互方式,被广泛应用于智能终端等技术领域,例如,用户通过触摸屏可以轻松快捷的对终端进行各种操作控制。目前,使用触摸方式控制终端的情况,在单击、双击、长按、正反向滑动等操作时,常会出现终端识别错误的情况。例如,传统上触摸传感器与用户交互的算法通常采用实时读取传感器数据,延时等待触摸操作类型的判断方法,若用户触摸到两个触摸位置的边界,触摸传感器采集到的数值会在两个触摸位置之间跳变,导致误判,影响用户体验。
发明内容
本发明的一个方面提供了一种触控识别方法,包括:
获取触摸操作在被触摸表面上的第一触摸位置进行触摸时的第一触摸位置对应的触摸信息,触摸信息包括被触摸的触摸位置标识、触摸时间和触摸操作标识,触摸操作标识包括长按标识、单击标识、双击标识、滑动标识;根据第一触摸位置对应的触摸信息,获取第一触摸位置的持续触摸情况,持续触摸情况包括:与第一触摸位置相邻的第二触摸位置被持续触摸的第一持续触摸情况,或第一触摸位置的触摸时间大于预设第一触摸时间的第二持续触摸情况,或当第一触摸位置被触摸后,被触摸表面上没有触摸位置被持续触摸的第三持续触摸情况;根据第一触摸位置的持续触摸情况更新相应的触摸操作标识,以识别触摸操作,并根据更新后的触摸操作标识进行相应触摸操作的触控响应。
本发明的另一个方面提供了一种触控识别装置,包括:第一获取模块,用于获取触摸操作在被触摸表面上的第一触摸位置进行触摸时的第一触摸位置对应的触摸信息,触摸信息包括被触摸的触摸位置标识、触摸时间和触摸操作标识,触摸操作标识包括长按标识、单击标识、双击标识、滑动标识;
第二获取模块,用于根据第一触摸位置对应的触摸信息,获取第一触摸位置的持续触摸情况,持续触摸情况包括:与第一触摸位置相邻的第二触摸位置被持续触摸的第一持续触摸情况,或第一触摸位置的触摸时间大于预设第一触摸时间的第二持续触摸情况,或当第一触摸位置被触摸后,被触摸表面上没有触摸位置被持续触摸的第三持续触摸情况;
识别模块,用于根据第一触摸位置的持续触摸情况更新相应的触摸操作标识,以识别触摸操作,并根据更新后的触摸操作标识进行相应触摸操作的触控响应。
本发明的再一个方面提供了一种触摸控制系统,包括:一个或多个存储单元,用于存储可执行指令;一个或多个处理单元,用于执行可执行指令,实现上文的触控识别方法。
本发明的又一个方面提供一种计算机可读存储介质,存储有可执行令,可执行指令被处理器执行时以实现上述触控识别方法。
本发明基于被触摸表面上触摸位置的变化和触摸时间的变化,获得第一触摸位置的持续触摸情况,利用第一触摸位置的持续触摸情况对相应的触摸操作标识进行更新,利用触摸操作标识的数值与触摸操作的对应关系识别被触摸表面上的触摸操作。
本发明能够对由于触摸到相邻触摸位置的边界、相邻触摸位置之间的来回滑动触摸等因素引起的触摸过程中包括干扰操作的触摸操作进行识别,例如,长按操作包含滑动操作,滑动操作或长按操作包含单击、双击操作,正向滑动操作包含反向滑动操作等触摸操作。本发明针对类似问题,可以有效规避干扰操作的影响,准确识别用户在被触摸表面上的各种触摸操作,增强用户体验。
附图说明
图1为本发明实施例提供的触控识别方法的流程图;
图2为本发明实施例提供的触摸屏的pad分布情况示意图;
图3为本发明实施例提供的状态机转换图;
图4为本发明实施例提供的触控识别装置结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式 作进一步地详细描述。
在实际的电子设备中,不同的触摸位置可以有不同的位置响应,从而可以反映触摸的位置或触摸距离,以反映触摸操作的方向。因此,在被触摸表面之下,可以通过在不同位置处设置触摸响应装置对不同位置的触摸动作进行响应。然而,由于触摸到相邻触摸位置的边界、相邻触摸位置之间的来回滑动触摸等因素引起的触摸过程中包括干扰操作的触摸操作,造成触摸操作的识别往往出现误识别现象,例如可能出现以下误识别情况:
误识别情况一,用户期望的本是长按操作,但由于长按过程中意外出现滑动,例如用户期望的是通过长按被触摸表面的第一触摸位置进行长按操作,但长按过程中出现由第一触摸位置滑动到第二触摸位置的情况,从而导致长按操作和滑动操作并存的问题;
误识别情况二,用户期望的本是滑动操作,但由于两个相邻触摸位置之间物理间隔较大,传感器感应不到处于相邻触摸位置之间的触摸,滑动过程中会出现“没有触摸位置被触摸”,即滑动过程中出现无法忽视的空接触,从而导致滑动操作与单击或双击操作并存的问题;
误识别情况三,用户期望的本是正向滑动操作,但由于先接触的触摸位置不方便顺时针滑动,用户会先逆时针滑动到方便的位置后再执行正向滑动操作,从而导致存在正向滑动操作和反向滑动操作并存的问题。
针对上述问题,本发明的一方面提供了一种触摸识别方法。
图1为本发明实施例提供的触控识别方法的流程图,如图1所示,本实施例的方法包括:
S110,获取触摸操作在被触摸表面上的第一触摸位置进行触摸时的第一触摸位置对应的触摸信息,触摸信息包括被触摸的触摸位置标识、触摸时间和触摸操作标识。
本实施例中的触摸位置标识用于标识被触摸表面的位置,触摸时间用于标识触摸操作在被触摸表面上每个位置进行触摸的时间,触摸操作标识用于标识触摸操作的类型,例如触摸操作标识包括长按标识、单击标识、双击标识、滑动标识等,本实施例获取的第一触摸位置对应的触摸操作标识为各个触摸操作标识的初始值,本实施例根据触摸操作标识的取值识别触摸操作。
在本发明的一些实施例中,被触摸表面可以为触摸屏,主要应用于头戴耳机、便携 音箱等移动终端类电子产品,可以根据被触摸表面的传感器定义被触摸表面的位置,并利用触摸位置标识唯一标识相应位置。被触摸表面包括多个触摸位置,在本发明的以下描述中,每个触摸位置记为一个pad,多个pad按照设定的方式分布在触摸屏上,相应的,触摸位置标识可以为pad的标号。如按照图2所示的方式,多个pad呈环形方式分布在触摸屏上,可以设定pad1、pad2、pad3,……pad8的顺序为正向,即当触摸操作的触摸位置按照该顺序(pad标识由小到大)进行触摸可视为正向触摸,相反,当触摸操作的触摸位置按照该顺序的反向(pad标识由大到小)进行触摸可视为反向触摸。利用i2c总线等交互手段从触摸传感器模组中读取被触摸的pad的标号来获取被触摸的位置信息。
S120,根据第一触摸位置对应的触摸信息,获取第一触摸位置的持续触摸情况。
其中,第一触摸位置的持续触摸情况包括:
第一持续触摸情况,与第一触摸位置相邻的第二触摸位置被持续触摸的情况;参照上述关于正向和反向的实施例,本实施例中的触摸位置相邻可以理解为正向相邻或反向相邻。
第二持续触摸情况,第一触摸位置的触摸时间大于预设第一触摸时间的情况。例如预设第一触摸时间为30ms,被触摸表面上第一触摸位置的持续触摸时间大于30ms。
第三持续触摸情况,当第一触摸位置被触摸后,被触摸表面上没有其他触摸位置被持续触摸的情况。
其中,第一触摸位置被触摸后,被触摸表面上没有其他触摸位置被持续触摸可以理解为:第一触摸位置被触摸后,触摸操作离开被触摸表面一定时间后,又在被触摸表面的与第一触摸位置相邻的第二触摸位置进行触摸;或者,第一触摸位置被触摸后,触摸操作离开被触摸表面一定时间后,被触摸表面上没有其他触摸位置被触摸。即本实施例中第三持续触摸情况包括:第一触摸位置被触摸后,预设第二触摸时间内被触摸表面上没有其他触摸位置被持续触摸的情况,和第一触摸位置被触摸后,预设第二触摸时间内被触摸表面上与第一触摸位置相邻的第二触摸位置被触摸的情况。
实际应用中,若第一触摸位置被触摸后,被触摸表面上与第一触摸位置不相邻的其他位置被触摸,此时识别触摸操作为误操作,本实施例不响应该触摸操作的触控响应。
S130,根据第一触摸位置的持续触摸情况更新相应的触摸操作标识,以识别触摸操 作,并根据更新后的触摸操作标识进行相应触摸操作的触控响应。
本实施例在步骤S110中获取全部触摸操作标识,此时获取的触摸操作标识为初始值,根据第一触摸位置的持续触摸情况更新相应的触摸操作标识,如在第一触摸位置的持续触摸情况为第二持续触摸情况时,通过将长按标识的初始值更新为第一数值来更新长按标识,根据更新后的长按标识即可识别触摸操作为长按操作,以进行长按操作的触控响应。
本实施例基于被触摸表面上触摸位置的变化和触摸时间的变化,获得第一触摸位置的持续触摸情况,利用第一触摸位置的持续触摸情况对相应的触摸操作标识进行更新,利用触摸操作标识的数值与触摸操作的对应关系识别被触摸表面上的触摸操作。
本发明能够对由于触摸到相邻触摸位置的边界、相邻触摸位置之间的来回滑动触摸等因素引起的触摸过程中包括干扰操作的触摸操作进行识别,例如,长按操作包含滑动操作,滑动操作或长按操作包含单击、双击操作,正向滑动操作包含反向滑动操作等触摸操作。本发明针对类似问题,可以有效规避干扰操作的影响,准确识别用户在被触摸表面上的各种触摸操作,增强用户体验。
由于本实施例的每个触摸位置都可以响应单击、双击、长按、滑动等触摸操作,无需指定某个位置进行特定类型的触摸操作,因此,本实施例的方法还可以适用于不可视状态下的触摸操作。
在本发明的一些实施例中,滑动标识包括正向滑动标识和反向滑动标识,此时,本实施例中的第一持续触摸情况包括:与第一触摸位置正向相邻的第二触摸位置被持续触摸的情况和与第一触摸位置反向相邻的第二触摸位置被持续触摸的情况。其中,正向滑动操作和反向滑动操作为相对的触摸操作,本实施例基于被触摸表面的位置定义方式规定正向相邻和反向相邻。
例如,针对图2所示的pad分布方式,相对于pad1,pad2与pad1正向相邻,若触摸操作为由在被触摸表面上的pad1位置滑动到pad2位置,此时更新正向滑动标识;反之,相对于pad2,pad1与pad2反向相邻,若触摸操作为由在被触摸表面上的pad2位置滑动到pad1位置,此时更新反向滑动标识。当pad呈现其他形式的分布方式时,如呈现行(或列)分布时,可以在被触摸表面上右向滑动触摸pad(或向上滑动触摸pad)时更新正向滑动标识,在被触摸表面上左向滑动触摸pad(或向下滑动触摸pad)时更 新反向滑动标识。
当第一触摸位置的持续触摸情况为第一持续触摸情况时,下面以第一持续触摸情况为与第一触摸位置正向相邻的第二触摸位置被持续触摸的情况为例说明识别触摸操作的方法。显然,第一持续触摸情况为与第一触摸位置反向相邻的第二触摸位置被持续触摸的情况时识别触摸操作的方法,与第一持续触摸情况为与第一触摸位置正向相邻的第二触摸位置被持续触摸的情况时相同。
在与第一触摸位置正向相邻的第二触摸位置被持续触摸时,更新正向滑动标识,并获取触摸操作在被触摸表面上的第二触摸位置进行触摸时的第二触摸位置对应的触摸信息。此时将正向滑动标识由初始值更新为第一数值,假设初始值为0,则第一数值为1,第二数值为2。
在获得第二触摸位置对应的触摸信息后,本实施例根据第二触摸位置对应的触摸信息获取第二触摸位置的持续触摸情况,根据第二触摸位置的持续触摸情况更新相应的触摸操作标识。
其中,第二触摸位置的持续触摸情况包括四种情况,分别为:1)在与第二触摸位置正向相邻的第三触摸位置被持续触摸的情况,2)在与第二触摸位置反向相邻的第四触摸位置被持续触摸的情况,3)第二触摸位置的触摸时间与第一触摸位置的触摸时间的和大于预设第一触摸时间的情况,4)第二触摸位置被触摸后,被触摸表面上没有触摸位置被持续触摸的情况。
每种第二触摸位置的持续触摸情况对应的触摸操作标识的更新方法如下:
1)当在与第二触摸位置正向相邻的第三触摸位置被持续触摸时,再次更新正向滑动标识,如将正向滑动标识由第一数值更新为第二数值,即将正向滑动标识的数值由1更新为2。例如正向滑动标识的第二数值对应于正向滑动操作,此时根据更新后的正向滑动标识识别触摸操作为正向滑动操作,根据正向滑动标识进行正向滑动操作的触控响应。
以图2所示的被触摸表面的触摸位置为例,若第一触摸位置为pad1,pad2被持续触摸时,更新正向滑动标识为1,当pad2被持续触摸后,pad3又被持续触摸时,更新正向滑动标识为2,此时识别触摸操作为正向滑动操作。
本实施例是在第一触摸位置的持续触摸情况为与第一触摸位置正向相邻的第二触 摸位置被持续触摸,与第二触摸位置正向相邻的第三触摸位置被持续触摸时,即触摸操作在被触摸表面上由第一触摸位置滑动到第二触摸位置,再滑动到第三触摸位置时,本实施例识别触摸操作为正向滑动操作,而不是在触摸操作由第一触摸位置滑动到第二触摸位置时即刻就识别触摸操作为正向滑动操作。当触摸操作对应于第一触摸位置的触摸为误操作,而对应于第二触摸位置的操作为用户意图操作,如当用户意图操作为长按、单击等触摸操作时,本实施例的正向滑动操作的识别方法能够避免错误地将长按、单击等触摸操作识别为正向滑动操作。
2)当在与第二触摸位置反向相邻的第四触摸位置被持续触摸时,更新反向滑动标识,如将反向滑动标识由初始值更新为第一数值,即将反向滑动标识的取值由0更新为1,更新反向滑动标识的同时,获取触摸操作在被触摸表面上的第四触摸位置进行触摸时的第四触摸位置对应的触摸信息,根据第四触摸位置对应的触摸信息,获取第四触摸位置的持续触摸情况,以根据第四触摸位置的持续触摸情况更新相应的触摸操作标识。
以图2所示的被触摸表面的触摸位置为例,若第一触摸位置为pad1,在pad2被持续触摸时,更新正向滑动标识为1,当pad2被持续触摸后,pad1又被持续触摸时,更新反向滑动标识为1,此时获取pad1的持续触摸情况,根据pad1的持续触摸情况更新触摸操作标识。
其中,第四触摸位置的持续触摸情况包括:与第四触摸位置正向相邻的第五触摸位置被持续触摸的情况,或与第四触摸位置反向相邻的第六触摸位置被持续触摸的情况,或第四触摸位置的触摸时间与第一触摸位置、第二触摸位置的触摸时间的和大于预设第一触摸时间的情况,或第四触摸位置被触摸后,被触摸表面上没有其他触摸位置被持续触摸时的情况。
根据第四触摸位置的持续触摸情况更新相应的触摸操作标识的过程可以参见本实施例根据第二触摸位置的持续触摸情况更新相应的触摸操作标识的过程,本实施例在此不再赘述。
3)当第二触摸位置的触摸时间与第一触摸位置的触摸时间的和大于预设第一触摸时间时,更新长按标识,如将长按标识的取值由初始值更新为第一数值。本实施例中长按标识的第一数值对应于长按操作,根据更新后的长按标识识别触摸操作为长按操作,根据长按标识进行长按操作的触控响应。
以图2所示的被触摸表面的触摸位置为例,若第一触摸位置为pad1,在pad2被持续触摸时,更新正向滑动标识为1,当pad2被持续触摸的时间与pad1被持续触摸的时间的和大于预设第一时间时,如大于30ms时,更新长按标识为1,此时识别触摸操作为长按操作。
本实施例是在第一触摸位置的持续触摸情况为与第一触摸位置相邻的第二触摸位置被持续触摸时,即触摸操作在被触摸表面上由第一触摸位置滑动到第二触摸位置时,此时若第一触摸位置的触摸时间与第二触摸位置的触摸时间的和大于预设第一触摸时间,本实施例识别触摸操作为长按操作,而不是将触摸操作识别为正向滑动操作。即在实际应用中,若在被触摸表面上存在相邻位置的来回滑动时,若滑动时间大于预设第一触摸时间,如大于30ms时,本实施例识别该触摸操作为长按操作,而不是识别该触摸操作为误操作。
4)当第二触摸位置被触摸后,被触摸表面没有触摸位置被持续触摸时,更新触摸操作标识为单击标识和双击标识,并获取预设第二触摸时间内被触摸表面上的触摸情况。例如,若单击标识为初始值,更新单击标识为第一数值,并更新双击标识为初始值;若单击标识为第一数值,更新单击标识为初始值,并更新双击标识为第一数值。
在预设第二触摸时间内被触摸表面上没有触摸位置被触摸时,根据更新后的单击标识和双击标识识别触摸操作为单击操作或双击操作,若更新后的单击标识为第一数值,双击标识为初始值,识别触摸操作为单击操作,反之,若更新后的单击标识为初始值,双击标识为第一数值,识别触摸操作为双击操作,根据单击标识和双击标识进行相应单击操作或双击操作的触控响应。
在预设第二触摸时间内被触摸表面上与第二触摸位置相邻的第三触摸位置被触摸时获取第三触摸位置的持续触摸情况,根据第三触摸位置的持续触摸情况更新相应的触摸操作标识;其中,单击标识和双击标识的更新方法参见上文描述,第三触摸位置的持续触摸情况与前文描述的第二触摸位置的持续触摸情况相同,本实施例在此不再赘述。
以图2所示的被触摸表面的触摸位置为例,若第一触摸位置为pad1,在pad2被持续触摸时,更新正向滑动标识为1,当pad2被持续触摸后,没有pad(包括pad2)被触摸,此时更新单击标识和双击标识,并在超过预设第二触摸时间,如超过10ms时,被触摸表面仍然没有pad被触摸时,此时根据单击标识和双击标识识别触摸操作为单击操 作或双击操作;在未超过预设第二触摸时间,如在间隔8ms时被触摸表面的pad3或pad1被触摸,此时获取pad3或pad1的持续触摸情况,根据pad3或pad1的持续触摸情况更新相应的触摸操作标识。
本实施例中,当预设第二触摸时间内被触摸表面上没有其他触摸位置被持续触摸时可以理解为:被触摸表面上的第二触摸位置被触摸后,间隔预设第二触摸时间后,如间隔10ms后,被触摸表面上没有其他触摸位置被触摸时。预设第二触摸时间表示非接触时间,可以理解为每两次触摸的最长间隔时间,超过此间隔时间则认为被触摸表面没有触摸位置被触摸,一次触摸操作结束。
当预设第二触摸时间内被触摸表面上与第二触摸位置相邻的第三触摸位置被触摸时可以理解为:被触摸表面上的第二触摸位置被触摸后,间隔预设第三触摸时间后,预设第三触摸时间小于预设第二触摸时间,如间隔8ms后,被触摸表面上与第二触摸位置正向相邻或反向相邻的第三触摸位置被触摸,此时,触摸操作在被触摸表面的第二触摸位置进行触摸后,离开被触摸表面一段时间(也可以理解为第二触摸位置和第三触摸位置的间隔触摸时间,该间隔触摸时间小于预设第二触摸时间),再在被触摸表面的第三触摸位置进行触摸。
本实施例是在第一触摸位置的持续触摸情况为与第一触摸位置正向相邻的第二触摸位置被持续触摸,第二触摸位置被持续触摸后,出现空接触,根据空接触的时间识别触摸操作是否为单击或双击操作。如当空接触的时间较短时,且空接触后,被触摸表面上与第二触摸位置正向相邻的第三触摸位置被触摸时,出现的空接触为误操作,识别此时的触摸操作为正向滑动操作。本实施例通过识别空接触的时间能够识别该空接触为单击、双击操作的操作间隔或者为长按、滑动操作过程中的误操作,从而在长按、滑动操作中出现空接触时准确识别触摸操作。
当第一触摸位置的持续触摸情况为第二持续触摸情况时,本实施例通过下述方法更新触摸操作标识:
当第一触摸位置的触摸时间大于预设第一触摸时间时,更新长按标识,如将长按标识由初始值更新为第一数值;根据更新后的长按标识识别触摸操作为长按操作,根据长按标识进行长按操作的触控响应。
当第一触摸位置的持续触摸情况为第三持续触摸情况时,本实施例通过下述方法更 新触摸操作标识:
当第三持续触摸情况为在第一触摸位置被触摸后,预设第二触摸时间内被触摸表面上没有其他触摸位置被持续触摸时,更新单击标识和双击标识,根据更新后的单击标识和双击标识识别触摸操作为单击操作或双击操作,根据单击标识和双击标识进行单击操作或双击操作的触控响应。若单击标识为初始值,更新单击标识为第一数值,并更新双击标识为初始值;若单击标识为第一数值,更新单击标识为初始值,并更新双击标识为第一数值;在单击标识为第一数值,双击标识为初始值时识别触摸操作为单击操作,在单击标识为初始值,双击标识为第一数值时识别触摸操作为双击操作。
当第三持续触摸情况为在第一触摸位置被触摸后,预设第二触摸时间内被触摸表面上与第一触摸位置相邻的第二触摸位置被触摸时,更新单击标识和双击标识,并获取第二触摸位置的持续触摸情况,根据第二触摸位置的持续触摸情况更新相应的触摸操作标识,此时根据第二触摸位置的持续触摸情况更新相应的触摸操作标识,可参见上文描述,在此不再赘述。
本发明实施例通过检测用户在被触摸表面上的持续动作,根据被触摸的触摸位置之间的位置关系、触摸时间、触摸间隔时间等触摸信息对各种类型的触摸操作标识进行更新,根据更新后的触摸操作标识识别触摸操作,能够准确识别存在滑动操作的长按操作、存在单击、双击操作的滑动操作或长按操作、存在反向滑动操作的正向滑动操作等存在误触摸的触摸操作。
为详细说明本发明实施例对被触摸表面上的触摸操作的识别方法,本发明实施例可以利用状态机记录触摸位置的状态变化过程,根据触摸位置的状态变化过程识别触摸操作。为便于描述,下面以图2中的pad分布方式为例说明pad的状态变化过程。
图3为本发明实施例提供的状态机转换图,如图3所示,本实施例的状态机涉及十二个参量,其中有十个变量,两个常量。图3中,
变量last—上一次触摸的pad的标识;
变量old—前一次触摸的pad的标识;示例性地,last和old的初始值均为0,可以在1~8之间取值,分别对应于图2中的pad。
变量single—单击标识,标识单击事件的发生;
变量double—双击标识,标识双击事件的发生;
变量long—长按标识,标识长按事件的发生;示例性地,single、double、long的初始值为0,第一数值为1;
变量slide_forward—正向滑动标识,指示顺时针滑动;
变量slide_backward—反向滑动标识,指示逆时针滑动;示例性地,slide_forward和slide_backward的初始值为0,表示无滑动操作,第一数值为1,表示可能是滑动操作,第二数值为2,表示确定有滑动操作;
变量touch_duration—触摸时间,记录pad被持续触摸的时间;
变量untouc_duration—间隔时间,记录从某pad触摸结束后到下一pad触摸开始时的未触摸时间;
变量state—状态值,标识当前状态。
常量LL—预设第一触摸时间,触摸时间超过此值确定为长按操作;
常量ML—预设第二触摸时间,每两次触摸的最长间隔时间,超过此值未有pad被触摸,确定一次操作结束。
本实施例通过轮询的方式以设定的时间间隔,如5ms从触摸传感器模组读取当前是否有pad被触摸,进而更新状态机的状态。本实施例的预设第一触摸时间LL和预设第二触摸时间ML都大于上述用于轮询的时间间隔。
参考图3,在没有pad被触摸时,状态机一直处于state=0的状态;在有pad被触摸时,状态机进入state=1的状态,此时会更新变量last为当前被触摸的pad标识,变量touch_duration持续增加,其他变量的值同上一状态。为便于描述,假设此时被触摸的pad为pad1,后续的状态变化过程基于该假设进行描述,其中图3的last+1和last-1分别指顺时针和逆时针的下一个pad。
在进入state=1的状态后,继续按照上述的时间间隔,如间隔5ms时,从触摸传感器模组读取当前是否有pad被触摸,如图3所述,从state=1可以进入state=0,state=2,state=3,state=4和state=6。
由state=1进入state=0为:当从触摸传感器模组读取与pad1位置不相邻的其他pad,如在pad1被触摸后,pad3被触摸,此时进入state=0,确定该触摸为误触摸,不响应触摸操作。
由state=1进入state=4为:当从触摸传感器模组读取到在pad1被触摸后,没有其他 pad被持续触摸时,进入state=4,此时按照前文所述的方法更新变量single和double,并将变量touch_duration初始化,变量untouc_duration持续增加,在untouc_duration大于ML时,由state=4进入state=5,此时state=5的各变量同上一状态,在single=1,slide_forward!=2,slide_backward!=2时执行单击操作,在double=1,slide_forward!=2,slide_backward!=2时执行双击操作,单击或双击操作执行完毕后返回state=0,将全部变量初始化。
在untouc_duration不大于ML时,从触摸传感器模组读取是有其他pad被触摸,若在pad1顺时针方向的pad2被持续触摸时,进入state=2,此时变量old=last,last=last+1,即old=pad1,last=pad2,按照前文所述的方法更新变量slide_forward,即在更新后的slide_forward=2时执行正向滑动操作,正向滑动操作执行完毕后返回state=0,将全部变量初始化;在更新后的slide_forward=1时,继续从触摸传感器模组读取是否有其他pad被触摸,如果pad2的顺时针位置的pad3被持续触摸则更新slide_forward=2并执行正向滑动操作,如果没有其他pad被触摸则进入state=4,如果pad2的逆时针位置的pad1被持续被触摸则进入state=3,如果pad2被持续触摸且变量touch_duration大于LL则进入state=6,如果与pad2不相邻位置的其他pad被触摸则进入state=0。若在pad1逆时针方向的pad8被持续触摸时,进入state=3此时变量old=last,last=last+1,即old=pad1,last=pad8,按照前文所述的方法更新变量slide_backward,其中在更新后的slide_backward=2时执行反向滑动操作,反向滑动操作执行完毕后返回state=0,将全部变量初始化;在更新后的slide_backward=1时,继续从触摸传感器模组读取是否有其他pad被触摸,如果pad8的逆时针位置的pad7被持续被触摸则更新slide_forward=2并执行反向滑动操作,如果没有其他pad被触摸则进入state=4,如果pad8的顺时针位置的pad1被持续触摸则进入state=2,如果pad8被持续触摸且变量touch_duration大于LL则进入state=6,如果与pad8不相邻位置的其他pad被触摸则进入state=0。
在从state=0跳变到state=1后,若检测到没有pad被触摸,状态机从state=1到state=4后,变量untouc_duration开始累加,在untouc_duration值未达到ML之前,有last+1的pad被触摸,状态机会从state=4跳转到state=2,再根据slide_forward或slide_backward标识来决定是否执行滑动操作。本发明实施例通过该识别方法可以有效规避pad间的物理间隔较大,或触摸传感器模组品质不佳引起的滑动时出现的断触,避 免出现无pad被触摸的情况带来的误判。
由state=1进入state=6为:当从触摸传感器模组读取pad1被持续触摸,在变量touch_duration大于LL时,进入state=6,此时更新变量long=1,执行长按操作,长按操作执行完毕后返回state=0,将全部变量初始化。
由state=1进入state=2为:当从触摸传感器模组读取到在pad1被触摸后,pad1顺时针位置的pad2被持续触摸,进入state=2,此时变量old=last,last=last+1,即old=pad1,last=pad2,按照前文所述的方法更新变量slide_forward,在更新后的slide_forward=2时执行正向滑动操作,正向滑动操作执行完毕后返回state=0,将全部变量初始化;在更新后的slide_forward=1时,继续从触摸传感器模组读取是否有其他pad被持续触摸,如果pad2的顺时针位置的pad3被持续触摸则更新slide_forward=2并执行正向滑动操作,如果没有其他pad被持续触摸则进入state=4,如果pad2的逆时针位置的pad1被持续触摸则进入state=3,如果pad2被持续触摸且变量touch_duration大于LL则进入state=6,如果与pad2不相邻位置的其他pad被触摸则进入state=0。
本实施例在state=1跳变到state=2时不立刻进行滑动操作的处理,而是将slide_forward标识的取值置1,待检测到下一pad标识为last+1的pad被触摸时将slide_forward标识的取值置2,此时才确定是正向滑动操作,本实施例结合state=2到state=3、state=4和state=6之间状态切换有效避免了触摸到两个pad之间,从触摸传感器读取的结果在两个pad之间跳变被误识别为滑动的情形。
在从state=1跳变到state=2后,若没有检测到顺时针滑动操作,而是检测到标识为last的pad被一直触摸或者在last+1和last之间来回跳变(即在state=2和state=3之间跳变),此时变量touch_duration会一直累加,当touch_duration值大于LL时,状态机跳转到state=6,识别触摸操作为长按操作,此长按操作的识别方法避免了因触摸到两个pad之间区域引起的从触摸传感器读取的结果在两个pad间跳变而不能触发长按的问题。
由state=1进入state=3为:当从触摸传感器模组读取到在pad1被触摸后,pad1逆时针位置的pad8被持续触摸,进入state=3,此时变量old=last,last=last-1,即old=pad1,last=pad8,按照前文所述的方法更新变量slide_backward,在更新后的slide_backward=2时执行反向滑动操作,反向滑动操作执行完毕后返回state=0,将全部变量初始化;在更 新后的slide_backward=1时,继续从触摸传感器模组读取是否有其他pad被持续触摸,如果pad8逆时针位置的pad7被持续触摸则更新slide_backward=2并执行反向滑动操作,如果没有其他pad被持续触摸则进入state=4,如果pad8顺时针位置的pad1被持续触摸则进入state=2,如果pad8被持续触摸且变量touch_duration大于LL则进入state=6,如果与pad8不相邻位置的其他pad被触摸则进入state=0。
与本发明实施例提供的触控识别方法相对应的,根据本发明实施例,本发明的另一方面还提供了一种触控识别装置。
图4为本发明实施例提供的触控识别装置结构示意图,如图4所示,本实施例的装置包括:
第一获取模块41,用于获取触摸操作在被触摸表面上的第一触摸位置进行触摸时的第一触摸位置对应的触摸信息,触摸信息包括被触摸的触摸位置标识、触摸时间和触摸操作标识,触摸操作标识包括长按标识、单击标识、双击标识、滑动标识;
第二获取模块42,用于根据第一触摸位置对应的触摸信息,获取第一触摸位置的持续触摸情况,持续触摸情况包括:与第一触摸位置相邻的第二触摸位置被持续触摸的第一持续触摸情况,或第一触摸位置的触摸时间大于预设第一触摸时间的第二持续触摸情况,或当第一触摸位置被触摸后,被触摸表面上没有触摸位置被持续触摸的第三持续触摸情况;
识别模块43,用于根据第一触摸位置的持续触摸情况更新相应的触摸操作标识,以识别触摸操作,并根据更新后的触摸操作标识进行相应触摸操作的触控响应。根据本发明的一个实施例,滑动标识包括正向滑动标识和反向滑动标识,第一持续触摸情况包括与第一触摸位置正向相邻的第二触摸位置被持续触摸的情况。
第一获取模块41还用于在与第一触摸位置正向相邻的第二触摸位置被持续触摸时,更新正向滑动标识,并获取触摸操作在被触摸表面上的第二触摸位置进行触摸时的第二触摸位置对应的触摸信息;第二获取模块42还用于根据第二触摸位置对应的触摸信息,获取第二触摸位置的持续触摸情况,第二触摸位置的持续触摸情况包括:与第二触摸位置正向相邻的第三触摸位置被持续触摸的情况,或与第二触摸位置反向相邻的第四触摸位置被持续触摸的情况,或第二触摸位置的触摸时间与第一触摸位置的触摸时间的和大于预设第一触摸时间的情况,或第二触摸位置被触摸后,被触摸表面上没有触摸位置被 持续触摸时的情况;识别模块43包括更新模块,用于根据第二触摸位置的持续触摸情况更新相应的触摸操作标识。
更新模块,用于当在与第二触摸位置正向相邻的第三触摸位置被持续触摸时,再次更新正向滑动标识;识别模块43根据更新后的正向滑动标识识别触摸操作为正向滑动操作,正向滑动标识进行正向滑动操作的触控响应。
更新模块,还用于当在与第二触摸位置反向相邻的第四触摸位置被持续触摸时,更新反向滑动标识,第一获取模块41还获取触摸操作在被触摸表面上的第四触摸位置进行触摸时的第四触摸位置对应的触摸信息;第二获取模块42还根据第四触摸位置对应的触摸信息,获取第四触摸位置的持续触摸情况;更新模块根据第四触摸位置的持续触摸情况更新相应的触摸操作标识。
更新模块,还用于当第二触摸位置的触摸时间与第一触摸位置的触摸时间的和大于预设第一触摸时间时,更新长按标识;识别模块43根据更新后的长按标识识别触摸操作为长按操作,根据长按标识进行长按操作的触控响应。
更新模块,还用于当第二触摸位置被触摸后,被触摸表面没有触摸位置被持续触摸时,更新单击标识和双击标识,第一获取模块41还获取预设第二触摸时间内被触摸表面上的触摸情况;识别模块43在预设第二触摸时间内被触摸表面上没有触摸位置被触摸时,根据更新后的单击标识和双击标识识别所述触摸操作为单击操作或双击操作,根据所述单击标识和双击标识进行相应单击操作或双击操作的触控响应;第二获取模块42在预设第二触摸时间内被触摸表面上与第二触摸位置相邻的第三触摸位置被触摸时获取第三触摸位置的持续触摸情况,更新模块根据第三触摸位置的持续触摸情况更新相应的触摸操作标识。
根据本发明的另一实施例,识别模块43还用于当持续触摸情况为第二持续触摸情况时,更新长按标识;根据更新后的长按标识识别触摸操作为长按操作,根据长按标识进行长按操作的触控响应。
识别模块43还用于当第一触摸位置被触摸后,被触摸表面没有触摸位置被持续触摸时,更新单击标识和双击标识,并获取预设第二触摸时间内被触摸表面上的触摸情况;在预设第二触摸时间内被触摸表面上没有触摸位置被触摸时,根据更新后的单击标识和双击标识识别所述触摸操作为单击操作或双击操作,根据所述单击标识和双击标识进行 相应单击操作或双击操作的触控响应;在预设第二触摸时间内被触摸表面上与第一触摸位置相邻的第二触摸位置被触摸时,第二获取模块42获取第二触摸位置的持续触摸情况,识别模块43根据第二触摸位置的持续触摸情况更新相应的触摸操作标识。
本发明装置实施例的各单元的具体工作方式可以参见本发明的方法实施例,在此不再赘述。
本发明的再一方面还提供了一种触控识别系统。
该触控识别系统包括一个或多个存储单元,用于存储可执行指令;一个或多个处理单元,用于执行可执行指令,实现前文描述的触控识别方法。
本发明还提供了一种计算机可读存储介质。该计算机可读存储介质,存储有可执行指令,可执行指令被处理器执行时能够实现前文描述的触控识别方法。
需要说明的是,本发明实施例的计算机可读存储介质,例如可以是能够包含、存储、传送、传播或传输指令的任意介质。例如,计算机可读存储介质可以包括但不限于电、磁、光、电磁、红外或半导体系统、装置、器件或传播介质。计算机可读存储介质的具体示例包括:磁存储装置,如磁带或硬盘(HDD);光存储装置,如光盘(CD-ROM);存储器,如随机存取存储器(RAM)或闪存;和/或有线/无线通信链路。
可读存储介质可以包括计算机程序,该计算机程序可以包括代码或者计算机可执行指令,其在由处理器执行时使得处理器执行例如前文所描述的方法流程及其任何变形。
计算机程序可被配置为具有例如包括计算机程序模块的计算机程序代码。例如,在示例实施例中,计算机程序中的代码可以包括一个或多个程序模块。应当注意,模块的划分方式和个数并不是固定的,本领域技术人员可以根据实际情况使用合适的程序模块或程序模块组合,当这些程序模块组合被处理器执行时,使得处理器可以执行例如上文所描述的方法流程及其任何变形。
本发明实施例基于被触摸表面上触摸位置的变化和触摸时间的变化,获得第一触摸位置的持续触摸情况,利用第一触摸位置的持续触摸情况对相应的触摸操作标识进行更新,利用触摸操作标识的数值与触摸操作的对应关系识别被触摸表面上的触摸操作。
本发明能够对由于触摸到相邻触摸位置的边界、相邻触摸位置之间的来回滑动触摸等因素引起的触摸过程中包括干扰操作的触摸操作进行识别,例如,长按操作包含滑动操作,滑动操作或长按操作包含单击、双击操作,正向滑动操作包含反向滑动操作等触 摸操作。本发明针对类似问题,可以有效规避干扰操作的影响,准确识别用户在被触摸表面上的各种触摸操作,增强用户体验。
为了便于清楚描述本发明实施例的技术方案,在发明的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。
以上所述,仅为本发明的具体实施方式,在本发明的上述教导下,本领域技术人员可以在上述实施例的基础上进行其他的改进或变形。本领域技术人员应该明白,上述的具体描述只是更好的解释本发明的目的,本发明的保护范围应以权利要求的保护范围为准。

Claims (15)

  1. 一种触控识别方法,其特征在于,所述方法包括:
    获取触摸操作在被触摸表面上的第一触摸位置进行触摸时的第一触摸位置对应的触摸信息,所述触摸信息包括被触摸的触摸位置标识、触摸时间和触摸操作标识,所述触摸操作标识包括长按标识、单击标识、双击标识、滑动标识;
    根据所述第一触摸位置对应的触摸信息,获取所述第一触摸位置的持续触摸情况,所述持续触摸情况包括:与第一触摸位置相邻的第二触摸位置被持续触摸的第一持续触摸情况,或第一触摸位置的触摸时间大于预设第一触摸时间的第二持续触摸情况,或当第一触摸位置被触摸后,被触摸表面上没有触摸位置被持续触摸的第三持续触摸情况;
    根据所述第一触摸位置的持续触摸情况更新相应的触摸操作标识,以识别所述触摸操作,并根据更新后的触摸操作标识进行相应触摸操作的触控响应。
  2. 根据权利要求1所述的方法,其特征在于,所述滑动标识包括正向滑动标识和反向滑动标识,所述第一持续触摸情况包括与第一触摸位置正向相邻的第二触摸位置被持续触摸的情况,所述根据所述第一触摸位置的持续触摸情况更新相应的触摸操作标识包括:
    在与第一触摸位置正向相邻的第二触摸位置被持续触摸时,更新正向滑动标识,并获取触摸操作在被触摸表面上的第二触摸位置进行触摸时的第二触摸位置对应的触摸信息;
    根据所述第二触摸位置对应的触摸信息,获取第二触摸位置的持续触摸情况,所述第二触摸位置的持续触摸情况包括:与第二触摸位置正向相邻的第三触摸位置被持续触摸的情况,或与第二触摸位置反向相邻的第四触摸位置被持续触摸的情况,或第二触摸位置的触摸时间与第一触摸位置的触摸时间的和大于预设第一触摸时间的情况,或第二触摸位置被触摸后,被触摸表面上没有触摸位置被持续触摸时的情况;
    根据所述第二触摸位置的持续触摸情况更新相应的触摸操作标识。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述第二触摸位置的持续触摸情况更新相应的触摸操作标识,包括:
    当在与第二触摸位置正向相邻的第三触摸位置被持续触摸时,再次更新正向滑动标识;
    根据更新后的正向滑动标识识别所述触摸操作为正向滑动操作。
  4. 根据权利要求2所述的方法,其特征在于,所述根据所述第二触摸位置的持续触摸情况更新相应的触摸操作标识,包括:
    当在与第二触摸位置反向相邻的第四触摸位置被持续触摸时,更新反向滑动标识,并获取触摸操作在被触摸表面上的第四触摸位置进行触摸时的第四触摸位置对应的触摸信息;
    根据所述第四触摸位置对应的触摸信息,获取第四触摸位置的持续触摸情况;
    根据所述第四触摸位置的持续触摸情况更新相应的触摸操作标识。
  5. 根据权利要求2所述的方法,其特征在于,所述根据所述第二触摸位置的持续触摸情况更新相应的触摸操作标识,包括:
    当第二触摸位置的触摸时间与第一触摸位置的触摸时间的和大于预设第一触摸时间时,更新触摸操作标识为长按标识;
    根据更新后的长按标识识别所述触摸操作为长按操作。
  6. 根据权利要求2所述的方法,其特征在于,所述根据所述第二触摸位置的持续触摸情况更新相应的触摸操作标识,包括:
    当第二触摸位置被触摸后,被触摸表面没有触摸位置被持续触摸时,更新触摸操作标识为单击标识和双击标识,并获取预设第二触摸时间内被触摸表面上的触摸情况;
    在预设第二触摸时间内被触摸表面上没有触摸位置被触摸时,根据更新后的单击标识和双击标识识别所述触摸操作为单击操作或双击操作;
    在预设第二触摸时间内被触摸表面上与第二触摸位置相邻的第三触摸位置被触摸时获取第三触摸位置的持续触摸情况,根据所述第三触摸位置的持续触摸情况更新相应的触摸操作标识。
  7. 根据权利要求1所述的方法,其特征在于,所述根据所述第一触摸位置的持续触摸情况更新相应的触摸操作标识,包括:
    当所述第一触摸位置的持续触摸情况为第二持续触摸情况时,更新触摸操作标识为长按标识;
    根据更新后的长按标识识别所述触摸操作为长按操作。
  8. 根据权利要求1所述的方法,其特征在于,所述根据所述第一触摸位置的持续触摸情况更新相应的触摸操作标识,包括:
    当所述第一触摸位置的持续触摸情况为第三持续触摸情况时,更新触摸操作标识为单击标识和双击标识,并获取预设第二触摸时间内被触摸表面上的触摸情况;
    在预设第二触摸时间内被触摸表面上没有触摸位置被触摸时,根据更新后的单击标识和双击标识识别所述触摸操作为单击操作或双击操作;
    在预设第二触摸时间内被触摸表面上与第一触摸位置相邻的第二触摸位置被触摸时获取第二触摸位置的持续触摸情况,根据所述第二触摸位置的持续触摸情况更新相应的触摸操作标识。
  9. 一种触控识别装置,其特征在于,所述装置包括:
    第一获取模块,用于获取触摸操作在被触摸表面上的第一触摸位置进行触摸时的第一触摸位置对应的触摸信息,所述触摸信息包括被触摸的触摸位置标识、触摸时间和触摸操作标识,所述触摸操作标识包括长按标识、单击标识、双击标识、滑动标识;
    第二获取模块,用于根据所述第一触摸位置对应的触摸信息,获取所述第一触摸位置的持续触摸情况,所述持续触摸情况包括:与第一触摸位置相邻的第二触摸位置被持续触摸的第一持续触摸情况,或第一触摸位置的触摸时间大于预设第一触摸时间的第二持续触摸情况,或当第一触摸位置被触摸后,被触摸表面上没有触摸位置被持续触摸的第三持续触摸情况;
    识别模块,用于根据所述第一触摸位置的持续触摸情况更新相应的触摸操作标识,以识别所述触摸操作,并根据更新后的触摸操作标识进行相应触摸操作的触控响应。
  10. 根据权利要求9所述的装置,其特征在于,所述滑动标识包括正向滑动 标识和反向滑动标识,所述第一持续触摸情况包括与第一触摸位置正向相邻的第二触摸位置被持续触摸的情况,
    所述第一获取模块,还用于在与第一触摸位置正向相邻的第二触摸位置被持续触摸时,更新正向滑动标识,并获取触摸操作在被触摸表面上的第二触摸位置进行触摸时的第二触摸位置对应的触摸信息;
    所述第二获取模块,还用于根据所述第二触摸位置对应的触摸信息,获取第二触摸位置的持续触摸情况,所述第二触摸位置的持续触摸情况包括:与第二触摸位置正向相邻的第三触摸位置被持续触摸的情况,或与第二触摸位置反向相邻的第四触摸位置被持续触摸的情况,或第二触摸位置的触摸时间与第一触摸位置的触摸时间的和大于预设第一触摸时间的情况,或第二触摸位置被触摸后,被触摸表面上没有触摸位置被持续触摸时的情况;
    所述识别模块包括更新模块,所述更新模块用于根据所述第二触摸位置的持续触摸情况更新相应的触摸操作标识。
  11. 根据权利要求10所述的装置,其特征在于,所述更新模块具体用于,
    当在与第二触摸位置正向相邻的第三触摸位置被持续触摸时,再次更新正向滑动标识,根据更新后的正向滑动标识识别所述触摸操作为正向滑动操作;
    或者,
    当在与第二触摸位置反向相邻的第四触摸位置被持续触摸时,更新反向滑动标识,并获取触摸操作在被触摸表面上的第四触摸位置进行触摸时的第四触摸位置对应的触摸信息;根据所述第四触摸位置对应的触摸信息,获取第四触摸位置的持续触摸情况,根据所述第四触摸位置的持续触摸情况更新相应的触摸操作标识;
    或者,
    当第二触摸位置的触摸时间与第一触摸位置的触摸时间的和大于预设第一触摸时间时,更新触摸操作标识为长按标识,根据更新后的长按标识识别所述触摸操作为长按操作;
    或者,
    当第二触摸位置被触摸后,被触摸表面没有触摸位置被持续触摸时,更新触 摸操作标识为单击标识和双击标识,并获取预设第二触摸时间内被触摸表面上的触摸情况;在预设第二触摸时间内被触摸表面上没有触摸位置被触摸时,根据更新后的单击标识和双击标识识别所述触摸操作为单击操作或双击操作;在预设第二触摸时间内被触摸表面上与第二触摸位置相邻的第三触摸位置被触摸时获取第三触摸位置的持续触摸情况,根据所述第三触摸位置的持续触摸情况更新相应的触摸操作标识。
  12. 根据权利要求9所述的装置,其特征在于,所述识别模块,还用于当所述第一触摸位置的持续触摸情况为第二持续触摸情况时,更新触摸操作标识为长按标识,根据更新后的长按标识识别所述触摸操作为长按操作。
  13. 根据权利要求9所述的装置,其特征在于,所述识别模块,还用于当所述第一触摸位置的持续触摸情况为第三持续触摸情况时,更新触摸操作标识为单击标识和双击标识,并获取预设第二触摸时间内被触摸表面上的触摸情况;在预设第二触摸时间内被触摸表面上没有触摸位置被触摸时,根据更新后的单击标识和双击标识识别所述触摸操作为单击操作或双击操作;在预设第二触摸时间内被触摸表面上与第一触摸位置相邻的第二触摸位置被触摸时获取第二触摸位置的持续触摸情况,根据所述第二触摸位置的持续触摸情况更新相应的触摸操作标识。
  14. 一种触控识别系统,其特征在于,所述系统包括:
    一个或多个存储单元,用于存储可执行指令;
    一个或多个处理单元,用于执行所述可执行指令,实现如权利要求1-8任一项所述的触控识别方法。
  15. 一种计算机可读存储介质,其特征在于,存储有可执行指令,可执行指令被处理器执行时能够实现如权利要求1-8任一项所述的触控识别方法。
PCT/CN2018/118537 2018-01-31 2018-11-30 一种触控识别方法、装置和系统 WO2019148956A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/733,374 US11537238B2 (en) 2018-01-31 2018-11-30 Touch control identification method, device and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810098353.8 2018-01-31
CN201810098353.8A CN108399042B (zh) 2018-01-31 2018-01-31 一种触控识别方法、装置和系统

Publications (1)

Publication Number Publication Date
WO2019148956A1 true WO2019148956A1 (zh) 2019-08-08

Family

ID=63095391

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/118537 WO2019148956A1 (zh) 2018-01-31 2018-11-30 一种触控识别方法、装置和系统

Country Status (3)

Country Link
US (1) US11537238B2 (zh)
CN (1) CN108399042B (zh)
WO (1) WO2019148956A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399042B (zh) * 2018-01-31 2020-09-01 歌尔科技有限公司 一种触控识别方法、装置和系统
KR102086578B1 (ko) * 2019-04-09 2020-05-29 김효준 명령 메뉴 출력 방법
CN112104915B (zh) * 2020-09-14 2022-08-26 腾讯科技(深圳)有限公司 一种视频数据处理方法、装置及存储介质
JP2023055433A (ja) * 2021-10-06 2023-04-18 シャープディスプレイテクノロジー株式会社 インセルタッチパネル装置及びインセルタッチパネルの制御方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117166A (zh) * 2009-12-31 2011-07-06 联想(北京)有限公司 电子设备及其实现预设操作指令的方法及一种手机
CN103620542A (zh) * 2013-01-22 2014-03-05 华为终端有限公司 基于触摸屏的物理按键模拟方法及装置
CN108399042A (zh) * 2018-01-31 2018-08-14 歌尔科技有限公司 一种触控识别方法、装置和系统

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999038149A1 (en) * 1998-01-26 1999-07-29 Wayne Westerman Method and apparatus for integrating manual input
US11275405B2 (en) * 2005-03-04 2022-03-15 Apple Inc. Multi-functional hand-held device
US8111243B2 (en) * 2006-03-30 2012-02-07 Cypress Semiconductor Corporation Apparatus and method for recognizing a tap gesture on a touch sensing device
US8169421B2 (en) * 2006-06-19 2012-05-01 Cypress Semiconductor Corporation Apparatus and method for detecting a touch-sensor pad gesture
US7924271B2 (en) * 2007-01-05 2011-04-12 Apple Inc. Detecting gestures on multi-event sensitive devices
US7932896B2 (en) * 2007-06-13 2011-04-26 Apple Inc. Techniques for reducing jitter for taps
WO2011032521A1 (zh) * 2009-09-21 2011-03-24 北京联想软件有限公司 电子设备及其实现预设操作指令的方法、手机和程序
CN102402369B (zh) * 2010-09-13 2017-11-24 联想(北京)有限公司 电子设备及其操作提示标识移动方法
TW201214211A (en) * 2010-09-16 2012-04-01 Novatek Microelectronics Corp Touch pattern detecting method and touch pattern detector using the same
CN102736757A (zh) * 2011-03-31 2012-10-17 比亚迪股份有限公司 触控识别方法及触控识别装置
US9261972B2 (en) * 2011-04-21 2016-02-16 Inpris Innovative Products Ltd Ergonomic motion detection for receiving character input to electronic devices
JP2013191113A (ja) * 2012-03-15 2013-09-26 Sony Corp 表示制御装置、表示制御方法およびプログラム
CN103870201A (zh) * 2012-12-18 2014-06-18 联想(北京)有限公司 一种虚拟键盘显示方法和设备
CN103513882B (zh) * 2013-05-31 2016-12-28 展讯通信(上海)有限公司 一种触控设备的控制方法、装置及触控设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117166A (zh) * 2009-12-31 2011-07-06 联想(北京)有限公司 电子设备及其实现预设操作指令的方法及一种手机
CN103620542A (zh) * 2013-01-22 2014-03-05 华为终端有限公司 基于触摸屏的物理按键模拟方法及装置
CN108399042A (zh) * 2018-01-31 2018-08-14 歌尔科技有限公司 一种触控识别方法、装置和系统

Also Published As

Publication number Publication date
US11537238B2 (en) 2022-12-27
CN108399042A (zh) 2018-08-14
US20200341613A1 (en) 2020-10-29
CN108399042B (zh) 2020-09-01

Similar Documents

Publication Publication Date Title
WO2019148956A1 (zh) 一种触控识别方法、装置和系统
CN110058782B (zh) 基于交互式电子白板的触摸操作方法及其系统
CN102789332B (zh) 于触控面板上识别手掌区域方法及其更新方法
EP3483706A1 (en) Method and device for preventing mistouch on touch screen, mobile terminal, and storage medium
CN104571852B (zh) 图标的移动方法及装置
WO2018107903A1 (zh) 移动终端的触摸屏控制方法、装置、移动终端及存储介质
WO2015131675A1 (zh) 滑动断线补偿方法、电子设备和计算机存储介质
CN109753179B (zh) 用户操作指令的处理方法及手写阅读设备
CN106681636B (zh) 一种防误触的方法、装置及移动终端
CN102004576A (zh) 信息处理装置、信息处理方法以及程序
US20110037705A1 (en) Touch-sensitive user interface
CN105407211A (zh) 一种基于触摸按键的手势识别系统及方法
CN105763181A (zh) 不使用基线的接触的电容性感测
CN103529976A (zh) 手势识别系统中的干扰消除
CN105867822B (zh) 一种信息处理方法及电子设备
CN107967108A (zh) 防手势操作的误触控方法及装置
WO2016082251A1 (zh) 触摸信号处理方法及设备
CN103488429A (zh) 一种屏幕解锁方法和装置
WO2019149123A1 (zh) 控制执行方法、装置、存储介质及电子装置
CN106775393B (zh) 终端的触摸操作控制方法和装置
CN111273809B (zh) 数据获取方法、装置、电子设备及存储介质
CN105528153A (zh) 截屏方法、截屏装置及电子装置
CN109710111B (zh) 一种防误触方法及电子设备
CN110737341B (zh) 变更接触物件的识别种类的方法
CN111459346B (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: 18903068

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18903068

Country of ref document: EP

Kind code of ref document: A1