WO2014131283A1 - Touch recognition method and device - Google Patents
Touch recognition method and device Download PDFInfo
- Publication number
- WO2014131283A1 WO2014131283A1 PCT/CN2013/084677 CN2013084677W WO2014131283A1 WO 2014131283 A1 WO2014131283 A1 WO 2014131283A1 CN 2013084677 W CN2013084677 W CN 2013084677W WO 2014131283 A1 WO2014131283 A1 WO 2014131283A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- touch point
- touch
- point data
- data
- points
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000001914 filtration Methods 0.000 claims abstract description 28
- 238000012545 processing Methods 0.000 claims description 17
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 abstract description 21
- 239000000126 substance Substances 0.000 abstract description 15
- 230000002452 interceptive effect Effects 0.000 abstract description 9
- 239000003595 mist Substances 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000008859 change Effects 0.000 description 5
- 238000012790 confirmation Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 239000004020 conductor Substances 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000005684 electric field Effects 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- -1 skin Substances 0.000 description 2
- 241001422033 Thestylus Species 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- JEGUKCSWCFPDGT-UHFFFAOYSA-N h2o hydrate Chemical compound O.O JEGUKCSWCFPDGT-UHFFFAOYSA-N 0.000 description 1
- 239000007788 liquid Substances 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/04166—Details of scanning methods, e.g. sampling time, grouping of sub areas or time sharing with display driving
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
- G06F3/0446—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means using a grid-like structure of electrodes in at least two directions, e.g. using row and column electrodes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/041—Indexing scheme relating to G06F3/041 - G06F3/045
- G06F2203/04104—Multi-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 invention relates to a Chinese patent application filed on February 26, 2013, the Chinese Patent Application No. CN 201310060425.7, entitled “Touch Identification Method and Apparatus", the entire contents of which are hereby incorporated by reference. in.
- the present invention relates to the field of touch screen technologies, and in particular, to a touch recognition method and apparatus.
- Capacitive touch screens are plated with narrow electrodes on all four sides of the touch screen to form a low voltage alternating electric field in the conductor.
- a coupling capacitor is formed between the finger and the conductor layer, and the current from the four electrodes flows to the contact, and the current intensity is proportional to the distance from the finger to the electrode, according to the ratio and strength of the current.
- the position of the touch point can be accurately calculated. Therefore, the electrical conductor initiates touch feedback whenever any material, such as skin, metal, liquid, or any other material, reaches a certain contact area. This is likely to cause problems such as insensitivity, drift, and recognition errors when the touch screen is exposed to water, mist, water, and other interfering substances.
- the present invention provides a touch recognition method and apparatus that can accurately recognize a touch point operated by a user when water mist, moisture, or water stain occurs on the surface of the touch screen.
- a touch recognition method comprising:
- performing interference data filtering processing on the touch point data to obtain an effective touch point includes: determining a touch point in which a touch period data changes in a current period compared with a previous period Determining an area and/or a shape of the changed touch point according to the touch point data; an area and/or a shape corresponding to the changed touch point and a preset touch point reference area and/or reference The shapes are compared, and a comparison difference is obtained; the touched point where the comparison difference is smaller than a preset threshold is determined as a valid touch point. .
- the comparison difference is smaller than the pre-
- the determined touch point of the set threshold is determined to be a valid touch point, and includes: determining the touch point of the change that the at least one comparison difference is less than a preset threshold as the effective touch point.
- the method further includes: determining that the touch point is a valid touch point if the number of touched points is determined to be one according to the touch point data.
- a touch recognition apparatus comprising:
- An acquiring unit configured to scan the touch screen according to the set period to obtain touch point data
- a filtering unit configured to: if the number of touched points is determined to be at least two according to the touch point data, perform interference data filtering processing on the touch point data to obtain an effective touch point;
- an execution unit configured to execute a corresponding touch event according to the valid touch point.
- the filtering unit includes: a first determining module, configured to determine a touch point that changes a touch point data in a current period compared to a previous period; and a second determining module, And determining, by the touch point data, an area and/or a shape of the changed touch point; a comparison module, configured to replace an area and/or a shape corresponding to the changed touch point with a preset touch point Compare the reference area and/or the reference shape and obtain a comparison difference; And a determining module, configured to determine, as the effective touch point, the touched point where the comparison difference is less than a preset threshold.
- the third determining module For: determining, by the at least one touch point whose comparison difference is less than a preset threshold, the touch point as a valid touch point.
- the apparatus further includes: a determining unit, And if it is determined that the number of touched points is one according to the touch point data, determining that the touched point is a valid touched point.
- FIG. 1 is a flowchart of a touch recognition method according to Embodiment 1 of the present invention.
- FIG. 2 is a flow chart of performing interference data filtering processing on touch point data according to Embodiment 1 of the present invention
- FIG. 3 is a schematic structural diagram of a touch recognition apparatus according to Embodiment 2 of the present invention
- FIG. 4 is a schematic structural diagram of a filtering unit according to Embodiment 2 of the present invention
- FIG. 5 is a schematic diagram of another structure of a touch recognition device according to Embodiment 2 of the present invention
- FIG. 6 is a schematic structural diagram of a device with a touch screen according to Embodiment 3 of the present invention.
- FIG. 1 is a flowchart of a touch recognition method according to Embodiment 1 of the present invention.
- the subject of the touch recognition method is a device having a touch screen.
- the touch recognition method includes the following steps: Step S110: Scan a touch screen according to a set period to acquire touch point data.
- the acquired touch point data may be one or more groups, and each set of touch point data corresponds to one touch point.
- the touch point data may include: a magnitude of a current emitted by the four electrodes of the touch screen, a ratio of a current magnitude to a distance from the touch point to the electrode, and a data such as a touch point capacitance matrix.
- Step S120 If it is determined that the number of touched points is at least two according to the touch point data, performing interference data filtering processing on the touch point data to obtain an effective touch point.
- the touch point data obtained by the current touch screen can be used to know the number of touch points and touch points on the current touch screen.
- the number of determined touch points may be caused by the multi-touch point operation performed by the user, or may be caused by interference substances (such as water stains, water vapor, mist, etc.) on the surface of the touch screen, so it is impossible to determine this time. Whether the operation is the normal operation of the user. Therefore, if the determined number of touch points is multiple, the acquired touch point data needs to be subjected to interference data filtering processing to obtain an effective touch point, that is, a touch point actually operated by the user.
- Step S121 determining a touch point where the current period is changed compared to the previous period.
- the touch point data acquired in each cycle is temporarily saved in the memory of the device, so that the touch point data is stored to confirm whether the touch point data has changed in the next cycle. If a change occurs, the point at which the touch point data changes may be the touch point operated by the user.
- step S122-step S124 is performed.
- Step S122 Determine an area and/or a shape of the touched point that changes according to the touch point data. It can be understood that the number of touch points that change may be one or more. Step S123, comparing the area and/or shape corresponding to the changed touch point with a preset touch point reference area and/or a reference shape, and obtaining a comparison difference.
- the touch point reference area and/or the reference shape are preset in the device, and the touch point reference area and/or the reference shape may be multiple, such as a finger touch point reference area and/or a reference shape, a nib touch point reference area, and/or Reference shape, etc.
- Step S124 Determine a touch point whose comparison difference is smaller than a preset threshold value as an effective touch point.
- a threshold can be set in advance, as long as the touch point where the comparison difference is smaller than the threshold value is considered to be a valid touch point.
- the changed touch point can be confirmed as a valid touch point. For example, a comparison of the changed touch point area and/or shape to the finger touch point reference area and/or the reference shape is greater than a threshold, and the difference from the tip touch point reference area and/or the reference shape is less than a threshold. Then, the touch point is considered to be an operation performed by the user using the stylus, and therefore, it is confirmed as a valid touch point.
- the touch points generated by the interference substances in the confirmed plurality of touch points can be excluded, thereby acquiring the touch points generated by the actual operation of the user.
- Step S130 executing a corresponding touch event according to the effective touch point.
- the device only performs the touch event corresponding to the effective touch point, and does not perform the touch event corresponding to the touch point caused by the interference substance, which can effectively avoid the problem of identifying the error.
- step S110 the method further includes the following steps: if it is determined that the number of touched points is one according to the touch point data, determining that the touched point is a valid touch point.
- the touch point data is one, and it is considered that there is no interfering substance on the surface of the touch screen, it can be determined that the touch point is a valid touch point, that is, the touch point is a normal operation of the user. Therefore, the touch time corresponding to the effective touch point is directly executed.
- the interference data is filtered on the touch point data, and the accurate touch point actually operated by the user can be obtained, and then executed correctly.
- the touch event corresponding to the touch point effectively avoids problems such as insensitive touch, drift, and recognition errors when the touch screen is exposed to water, mist, water, and the like.
- FIG. 3 is a schematic structural diagram of a touch recognition device according to a second embodiment of the present invention.
- the touch point identification device is placed in a device with a touch screen to implement the touch recognition method provided by the first embodiment of the present invention.
- the touch point identification device includes: an acquisition unit 310, a filtering unit 320, and an execution unit 330.
- the obtaining unit 310 is configured to scan the touch screen to acquire touch point data according to a set period.
- the touch point data acquired by the obtaining unit 310 may be one or more groups, and each set of touch point data corresponds to one touch point.
- the touch point data may include: a magnitude of a current emitted by the four electrodes of the touch screen, a ratio of a current magnitude to a distance from the touch point to the electrode, and a data such as a touch point capacitance matrix.
- the filtering unit 320 is configured to perform interference data filtering processing on the touch point data to obtain an effective touch point if it is determined that the number of touched points is at least two according to the touch point data.
- the filtering unit 320 includes: a first determining module 321, a second determining module 322, a comparing module 323, and a third determining module 324.
- the first determining module 321 is configured to determine a touch point at which the touch point data changes in the current period compared to the previous period.
- the first determining module 321 compares the touch point data of the touch point of the current period with the touch point data of the corresponding position of the previous period, and determines whether the touch point data of the touch point changes, to determine that the touch point data changes. Touch point. It can be understood that the number of touch points that may change may be one or more. If there is no touch point corresponding to the previous period, the first determining module 321 can confirm that the data of the touch point changes. Since the touch point data generated by the interfering substance is different from the touch point data generated when the user normally touches, the touch point generated by the interfering substance can be excluded by the first determining module 321 . However, at this time, it is not completely determined whether the touch point where the touch point data has changed is caused by a user operation, and therefore other modules are required for further confirmation.
- the second determining module 322 is configured to determine an area and/or shape of the changed touch point based on the touch point data.
- the comparison module 323 is configured to compare the area and/or shape corresponding to the changed touch point with a preset touch point reference area and/or reference shape, and obtain a comparison difference.
- the touch point reference area and/or the reference shape are preset in the device, and the touch point reference area and/or the reference shape may be multiple, such as a finger touch point reference area and/or a reference shape, a nib touch point reference area, and/or Reference shape, etc.
- the third confirmation module 324 is configured to determine a touch point whose comparison difference is smaller than a preset threshold value as a valid touch point.
- a threshold can be set in advance, as long as the touch point where the comparison difference is smaller than the threshold value is considered to be a valid touch point.
- the third confirmation module 324 can confirm the changed touch point as the effective touch point.
- the interference data filtering process performed on the touch point data by the filtering unit 320 may exclude the touch points generated by the interference substances in the confirmed plurality of touch points, thereby acquiring the touch points generated by the actual operation of the user.
- the execution unit 330 is configured to execute a corresponding touch event according to the effective touch point.
- the execution unit 330 performs only the touch event corresponding to the effective touch point, and does not perform the touch point corresponding touch event caused by the interference substance, and the problem of the recognition error can be effectively avoided.
- FIG. 5 is another schematic structural diagram of a touch recognition apparatus according to Embodiment 2 of the present invention.
- the touch recognition device further includes a determination unit 340.
- the determining unit 340 is configured to determine that the touch point is a valid touch point if it is determined that the number of touched points is one according to the touch point data.
- the determining unit 340 may directly determine that the touched point is a valid touch point, that is, the touched point is a normal operation of the user. Therefore, the execution unit 330 directly performs the touch time corresponding to the effective touch point.
- the touch recognition device provided in the second embodiment of the present invention, when the touch points determined by the touch point data are multiple, the interference data is filtered on the touch point data, and the accurate touch point actually operated by the user can be obtained, and then executed correctly.
- the touch point corresponds to the touch event, thereby effectively avoiding touch
- the touch is insensitive, drifting, and identifying errors.
- the above-mentioned touch recognition apparatus is used to implement the touch recognition method according to the first embodiment, and the included units are only divided according to functional logic, but are not limited to the above division, as long as the corresponding The functions are only applicable; in addition, the specific names of the functional units are only for the purpose of distinguishing each other, and are not intended to limit the scope of protection of the present invention.
- the above units may be embedded in hardware or in a processor independent of the device having the touch screen, or may be stored in software in a memory of the device having the touch screen, so that the processor calls to execute the above The corresponding operation of the module.
- the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
- FIG. 6 is a schematic structural diagram of a device with a touch screen according to Embodiment 3 of the present invention.
- the touch screen enabled device includes a memory 610 and a processor 620 and a touch screen 630 coupled to the memory 610.
- the device with the touch screen may also include a common component such as an antenna, a baseband processing component, a medium-frequency processing component, and an input/output device.
- the embodiment of the present invention is not limited herein.
- the device file information may be stored in the memory 610, and the processor calls the file information stored in the memory 610 to perform the following operations:
- a corresponding touch event is performed according to the effective touch point.
- performing interference data filtering processing on the touch point data to obtain valid touch points includes:
- the touched point where the comparison difference is smaller than a preset threshold is determined as a valid touch point.
- the touch point whose comparison difference is smaller than a preset threshold is determined as a valid touch point, including :
- the touched point at which the at least one comparison difference is less than a preset threshold is determined as a valid touch point.
- processor 620 is further configured to perform the following operations:
- the touched point is determined to be a valid touched point.
- the interference data is filtered on the touch point data, and the accurate touch point actually operated by the user can be obtained, and then executed.
- the touch event corresponding to the correct touch point effectively avoids problems such as insensitive touch, drift, and recognition errors when the touch screen is exposed to water, mist, water, and other interfering substances.
- RAM random access memory
- ROM read-only memory
- EEPROM electrically programmable ROM
- EEPROM electrically erasable programmable ROM
- a storage device a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
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)
- Position Input By Displaying (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention relates to a touch recognition method and device. The touch recognition method comprises: scanning a touchscreen according to a set cycle so as to acquire touch point data; if it is determined that the number of touch points is at least two according to the touch point data, performing interference data filtering on the touch point data, so as to acquire effective touch points; and executing corresponding touch events according to the effective touch points. When the number of the touch points determined according to the touch point data is multiple, interference data filtering is performed on the touch point data, so that accurate touch points actually operated by a user can be acquired, and the touch events corresponding to correct touch points are executed, thereby effectively preventing the touchscreen from generating problems, such as insensitivity to touch, drift and recognition error, when interfering substances such as water mist, water vapour and water damage appear.
Description
触摸识别方法及装置 本申请要求于 2013 年 02 月 26 日提交中国专利局, 申请号为 CN 201310060425.7、 发明名称为 "触摸识别方法及装置" 的中国专利申请, 其全 部内容通过引用结合在本申请中。 The invention relates to a Chinese patent application filed on February 26, 2013, the Chinese Patent Application No. CN 201310060425.7, entitled "Touch Identification Method and Apparatus", the entire contents of which are hereby incorporated by reference. in.
技术领域 Technical field
本发明涉及触摸屏技术领域, 尤其涉及一种触摸识别方法及装置。 The present invention relates to the field of touch screen technologies, and in particular, to a touch recognition method and apparatus.
背景技术 Background technique
电容式触摸屏在触摸屏四边均镀上狭长的电极,在导电体内形成一个低 电压交流电场。 在触摸屏幕时,由于人体电场,手指与导体层间会形成一个耦 合电容,四边电极发出的电流会流向触点,而电流强弱与手指到电极的距离成 正比,根据电流的比例及强弱可准确算出触摸点的位置。 因此, 不管是皮肤、 金属、 液体以及其它的任何物质只要达到一定接触面积, 导电体都会发起触 摸反馈。 这就容易造成在触摸屏出现水雾、 水汽、 水渍等干扰物质时, 会出 现触摸不灵敏、 漂移、 识别错误等问题。 Capacitive touch screens are plated with narrow electrodes on all four sides of the touch screen to form a low voltage alternating electric field in the conductor. When the screen is touched, due to the electric field of the human body, a coupling capacitor is formed between the finger and the conductor layer, and the current from the four electrodes flows to the contact, and the current intensity is proportional to the distance from the finger to the electrode, according to the ratio and strength of the current. The position of the touch point can be accurately calculated. Therefore, the electrical conductor initiates touch feedback whenever any material, such as skin, metal, liquid, or any other material, reaches a certain contact area. This is likely to cause problems such as insensitivity, drift, and recognition errors when the touch screen is exposed to water, mist, water, and other interfering substances.
因此, 需要在现有技术之上增加触摸屏的防水防雾处理, 以避免在触摸 屏出现水雾、 水汽、 水渍等干扰物质时, 出现触摸不灵敏、 漂移、 识别错误 等问题。 发明内容 Therefore, it is necessary to increase the waterproof and anti-fog treatment of the touch screen on the prior art to avoid problems such as insensitive touch, drift, and recognition errors when the touch screen has interference substances such as water mist, water vapor, and water stain. Summary of the invention
有鉴于此, 本发明提供了一种触摸识别方法及装置, 使得在触摸屏表面 出现水雾、 水汽或水渍时, 也能够准确识别用户操作的触摸点。 In view of the above, the present invention provides a touch recognition method and apparatus that can accurately recognize a touch point operated by a user when water mist, moisture, or water stain occurs on the surface of the touch screen.
在第一方面, 提供一种触摸识别方法, 该方法包括: In a first aspect, a touch recognition method is provided, the method comprising:
按设定的周期扫描触摸屏获取触摸点数据; Scan the touch screen according to the set period to obtain touch point data;
若根据所述触摸点数据确定触摸点的数量为至少两个, 对所述触摸点数 据进行干扰数据滤波处理, 以获取有效触摸点;
根据所述有效触摸点执行对应的触摸事件。 If it is determined that the number of touched points is at least two according to the touch point data, performing interference data filtering processing on the touch point data to obtain an effective touch point; A corresponding touch event is performed according to the effective touch point.
在第一方面的第一种可能的实现方式中, 对所述触摸点数据进行干扰数 据滤波处理, 以获取有效触摸点包括: 确定当前周期与上一个周期相比触摸 点数据发生变化的触摸点; 根据所述触摸点数据确定所述发生变化的触摸点 的面积和 /或形状; 将所述发生变化的触摸点对应的面积和 /或形状与预先设 定的触摸点参考面积和 /或参考形状进行比较, 并获得比较差值; 将所述比较 差值小于预先设定的阀值的所述发生变化的触摸点确定为有效触摸点。。 In a first possible implementation manner of the first aspect, performing interference data filtering processing on the touch point data to obtain an effective touch point includes: determining a touch point in which a touch period data changes in a current period compared with a previous period Determining an area and/or a shape of the changed touch point according to the touch point data; an area and/or a shape corresponding to the changed touch point and a preset touch point reference area and/or reference The shapes are compared, and a comparison difference is obtained; the touched point where the comparison difference is smaller than a preset threshold is determined as a valid touch point. .
结合第一方面的第一种可能的实现方式, 在第二种可能实现的方式中, 当所述预先设定的触摸点参考面积和 /或参考形状为多个, 则将比较差值小于 预先设定的阀值的所述发生变化的触摸点确定为有效触摸点, 包括: 将至少 一个比较差值小于预先设定的阀值的所述发生变化的触摸点确定为有效触摸 点。 With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, when the preset touch point reference area and/or the reference shape are multiple, the comparison difference is smaller than the pre- The determined touch point of the set threshold is determined to be a valid touch point, and includes: determining the touch point of the change that the at least one comparison difference is less than a preset threshold as the effective touch point.
结合第一方面或结合第一方面的第一种可能的实现方式或结合第一方面 的第二种可能的实现方式, 在第三种可能实现的方式中, 在所述按设定的周 期扫描触摸屏获取触摸点数据之后, 所述方法还包括: 若根据所述触摸点数 据确定触摸点的数量为一个, 确定所述触摸点为有效触摸点。 In combination with the first aspect or in combination with the first possible implementation of the first aspect or in combination with the second possible implementation of the first aspect, in a third possible implementation manner, in the set period scan After the touch screen acquires the touch point data, the method further includes: determining that the touch point is a valid touch point if the number of touched points is determined to be one according to the touch point data.
在第二方面, 提供一种触摸识别装置, 所述装置包括: In a second aspect, a touch recognition apparatus is provided, the apparatus comprising:
获取单元, 用于按设定的周期扫描触摸屏获取触摸点数据; An acquiring unit, configured to scan the touch screen according to the set period to obtain touch point data;
滤波单元, 用于若根据所述触摸点数据确定触摸点的数量为至少两个, 对所述触摸点数据进行干扰数据滤波处理, 以获取有效触摸点; a filtering unit, configured to: if the number of touched points is determined to be at least two according to the touch point data, perform interference data filtering processing on the touch point data to obtain an effective touch point;
执行单元, 用于根据所述有效触摸点执行对应的触摸事件。 And an execution unit, configured to execute a corresponding touch event according to the valid touch point.
在第二方面的第一种可能的实现方式中, 所述滤波单元包括: 第一确定 模块, 用于确定当前周期与上一个周期相比触摸点数据发生变化的触摸点; 第二确定模块, 用于根据所述触摸点数据确定所述发生变化的触摸点的面积 和 /或形状; 比较模块, 用于将所述发生变化的触摸点对应的面积和 /或形状 与预先设定的触摸点参考面积和 /或参考形状进行比较, 并获得比较差值; 第
三确定模块, 用于将所述比较差值小于预先设定的阀值的所述发生变化的触 摸点确定为有效触摸点。 In a first possible implementation manner of the second aspect, the filtering unit includes: a first determining module, configured to determine a touch point that changes a touch point data in a current period compared to a previous period; and a second determining module, And determining, by the touch point data, an area and/or a shape of the changed touch point; a comparison module, configured to replace an area and/or a shape corresponding to the changed touch point with a preset touch point Compare the reference area and/or the reference shape and obtain a comparison difference; And a determining module, configured to determine, as the effective touch point, the touched point where the comparison difference is less than a preset threshold.
结合第二方面的第一种可能的实现方式, 在第二种可能实现的方式中, 当所述预先设定的触摸点参考面积和 /或参考形状为多个, 则所述第三确定模 块用于: 将至少一个比较差值小于预先设定的阀值的所述发生变化的触摸点 确定为有效触摸点。 With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, when the preset touch point reference area and/or the reference shape are multiple, the third determining module For: determining, by the at least one touch point whose comparison difference is less than a preset threshold, the touch point as a valid touch point.
结合第二方面或结合第二方面的第一种可能的实现方式或结合第二方面 的第二种可能的实现方式, 在第三种可能实现的方式中, 所述装置还包括: 确定单元, 用于若根据所述触摸点数据确定触摸点的数量为一个, 确定所述 触摸点为有效触摸点。 With reference to the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect, in a third possible implementation manner, the apparatus further includes: a determining unit, And if it is determined that the number of touched points is one according to the touch point data, determining that the touched point is a valid touched point.
利用上述方案, 在通过触摸点数据确定的触摸点为多个时, 可能是由于 触摸屏上存在干扰物质造成的, 因此对触摸点数据进行干扰数据滤波, 可获 取到用户实际操作的准确的触摸点, 执行正确的触摸点对应的触摸事件, 从 而有效避免在触摸屏出现水雾、 水汽、 水渍等干扰物质时出现触摸不灵敏、 漂移、 识别错误等问题。 附图说明 With the above solution, when there are multiple touch points determined by the touch point data, it may be caused by the presence of interfering substances on the touch screen, so the interference data is filtered on the touch point data, and the accurate touch point actually operated by the user can be obtained. The touch event corresponding to the correct touch point is executed, thereby effectively avoiding problems such as insensitive touch, drift, and recognition errors when the touch screen is exposed to water, mist, water, and the like. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明实施例一提供的一种触摸识别方法的流程图; 1 is a flowchart of a touch recognition method according to Embodiment 1 of the present invention;
图 2为本发明实施例一提供的对触摸点数据进行干扰数据滤波处理的流 程图; 2 is a flow chart of performing interference data filtering processing on touch point data according to Embodiment 1 of the present invention;
图 3为本发明实施例二提供的一种触摸识别装置的结构示意图; 图 4为本发明实施例二所提供的滤波单元的结构示意图;
图 5为本发明实施例二提供的一种触摸识别装置的另一种结构示意图; 图 6为本发明实施例三所提供的一种具有触摸屏的设备的结构示意图。 3 is a schematic structural diagram of a touch recognition apparatus according to Embodiment 2 of the present invention; FIG. 4 is a schematic structural diagram of a filtering unit according to Embodiment 2 of the present invention; FIG. 5 is a schematic diagram of another structure of a touch recognition device according to Embodiment 2 of the present invention; FIG. 6 is a schematic structural diagram of a device with a touch screen according to Embodiment 3 of the present invention.
具体实施方式 detailed description
为了使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本 发明作进一步地详细描述, 显然, 所描述的实施例仅仅是本发明一部份实施 例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在 没有做出创造性劳动前提下所获得的所有其它实施例, 都属于本发明保护的 范围。 The present invention will be further described in detail with reference to the accompanying drawings, in which FIG. . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
下面以图 1为例详细说明本发明实施例一提供的一种触摸识别方法,图 1 为本发明实施例一提供的一种触摸识别方法的流程图。 该触摸识别方法的执 行主体为具有触摸屏的设备。 如图 1所示, 该触摸识别方法包括以下步骤: 步骤 S110 , 按设定的周期扫描触摸屏获取触摸点数据。 A touch recognition method according to the first embodiment of the present invention is described in detail with reference to FIG. 1 . FIG. 1 is a flowchart of a touch recognition method according to Embodiment 1 of the present invention. The subject of the touch recognition method is a device having a touch screen. As shown in FIG. 1 , the touch recognition method includes the following steps: Step S110: Scan a touch screen according to a set period to acquire touch point data.
获取的触摸点数据可以为一组或多组,每组触摸点数据对应一个触摸点。 该触摸点数据可以包括:触摸屏四边电极发出的电流大小,电流大小与触 摸点到电极的距离的比例, 触摸点电容矩阵等数据。 The acquired touch point data may be one or more groups, and each set of touch point data corresponds to one touch point. The touch point data may include: a magnitude of a current emitted by the four electrodes of the touch screen, a ratio of a current magnitude to a distance from the touch point to the electrode, and a data such as a touch point capacitance matrix.
步骤 S120 , 若根据触摸点数据确定触摸点的数量为至少两个, 对该触摸 点数据进行干扰数据滤波处理, 以获取有效触摸点。 Step S120: If it is determined that the number of touched points is at least two according to the touch point data, performing interference data filtering processing on the touch point data to obtain an effective touch point.
通过获取的触摸点数据可获知当前触摸屏上的触摸点及触摸点数量。 当 确定的触摸点数量为多个时, 可能是由于用户进行的多触摸点操作导致的 , 也可能是由于触摸屏表面存在干扰物质 (如水渍、 水汽、 雾气等)导致的, 所以无法确定此时的操作是否为用户的正常操作。 因此, 若确定的触摸点为 多个, 需要对获取的触摸点数据进行干扰数据滤波处理, 以获取有效触摸点, 即用户实际操作的触摸点。 The touch point data obtained by the current touch screen can be used to know the number of touch points and touch points on the current touch screen. When the number of determined touch points is multiple, it may be caused by the multi-touch point operation performed by the user, or may be caused by interference substances (such as water stains, water vapor, mist, etc.) on the surface of the touch screen, so it is impossible to determine this time. Whether the operation is the normal operation of the user. Therefore, if the determined number of touch points is multiple, the acquired touch point data needs to be subjected to interference data filtering processing to obtain an effective touch point, that is, a touch point actually operated by the user.
具体的干扰数据滤波处理的过程如图 2所示, 其为本发明实施例一提供 的对触摸点数据进行干扰数据滤波处理的流程图。
步骤 S 121 ,确定当前周期与上个周期相比触摸点数据发生变化的触摸点。 每个周期获取的触摸点数据都会临时保存在设备的存储器中, 以便于在 下个周期时, 利用存储的触摸点数据确认触摸点数据是否发生变化。 如果发 生变化, 则说明触摸点数据发生变化的点可能是用户操作的触摸点。 The process of the specific interference data filtering process is shown in FIG. 2 , which is a flowchart of performing interference data filtering processing on touch point data according to Embodiment 1 of the present invention. Step S121, determining a touch point where the current period is changed compared to the previous period. The touch point data acquired in each cycle is temporarily saved in the memory of the device, so that the touch point data is stored to confirm whether the touch point data has changed in the next cycle. If a change occurs, the point at which the touch point data changes may be the touch point operated by the user.
具体的, 将当前周期的每个触摸点的触摸点数据与上一个周期对应位置 的触摸点数据进行比较, 判断该些触摸点的触摸点数据是否发生变化, 以确 定触摸点数据发生变化的触摸点。 如果上一个周期对应位置不存在触摸点, 则可认为该触摸点的数据发生变化。 由于干扰物质产生的触摸点数据与用户 正常触摸时产生的触摸点数据是不同的, 因此可以通过该步骤将干扰物质产 生的触摸点排除。 但是, 此时并不能完全确定触摸点数据发生变化的触摸点 是否是用户操作产生的, 因此还需要进行进一步确认, 即执行步骤 S 122-步骤 S 124。 Specifically, comparing the touch point data of each touch point of the current period with the touch point data of the corresponding position of the previous period, determining whether the touch point data of the touch points changes, to determine the touch of the touch point data changes. point. If there is no touch point at the corresponding position in the previous cycle, the data of the touch point may be considered to change. Since the touch point data generated by the interfering substance is different from the touch point data generated when the user normally touches, the touch point generated by the interfering substance can be excluded by this step. However, at this time, it is not completely determined whether the touch point where the touch point data has changed is generated by the user operation, and therefore further confirmation is required, that is, step S122-step S124 is performed.
步骤 S 122 , 根据触摸点数据确定该发生变化的触摸点的面积和 /或形状。 可以理解的, 该发生变化的触摸点的数量可以为一个也可以为多个。 步骤 S 123 ,将该发生变化的触摸点对应的面积和 /或形状与预先设定的触 摸点参考面积和 /或参考形状进行比较, 并获得比较差值。 Step S122: Determine an area and/or a shape of the touched point that changes according to the touch point data. It can be understood that the number of touch points that change may be one or more. Step S123, comparing the area and/or shape corresponding to the changed touch point with a preset touch point reference area and/or a reference shape, and obtaining a comparison difference.
设备中预先设定触摸点参考面积和 /或参考形状, 该触摸点参考面积和 / 或参考形状可以为多个, 例如手指触摸点参考面积和 /或参考形状, 笔尖触摸 点参考面积和 /或参考形状等。 The touch point reference area and/or the reference shape are preset in the device, and the touch point reference area and/or the reference shape may be multiple, such as a finger touch point reference area and/or a reference shape, a nib touch point reference area, and/or Reference shape, etc.
步骤 S 124 , 将比较差值小于预先设定的阀值的发生变化的触摸点确定为 有效触摸点。 Step S124: Determine a touch point whose comparison difference is smaller than a preset threshold value as an effective touch point.
发生变化的触摸点对应的面积和 /或形状与预先设定的触摸点参考面积 和 /或参考形状的比较差值越小, 则说明该发生变化的触摸点越接近触摸点参 考面积和 /或参考形状。 因此, 可预先设置一个阀值, 只要比较差值小于阀值 的发生变化的触摸点都认为是有效触摸点。 The smaller the difference between the area and/or shape corresponding to the touched touch point and the preset touch point reference area and/or reference shape, the closer the touch point is to the touch point reference area and/or Reference shape. Therefore, a threshold can be set in advance, as long as the touch point where the comparison difference is smaller than the threshold value is considered to be a valid touch point.
如果预先设定的触摸点参考面积和 /或参考形状为多个时,只要其中一个
比较差值小于阀值, 则可将该发生变化的触摸点确认为有效触摸点。 例如, 发生变化的触摸点面积和 /或形状与手指触摸点参考面积和 /或参考形状的比 较差值大于阀值, 而与笔尖触摸点参考面积和 /或参考形状的比较差值小于阀 值, 则可认为该触摸点是用户利用手写笔进行的操作, 因此, 确认为有效触 摸点。 If the preset touch point reference area and/or reference shape are multiple, only one of them If the comparison difference is less than the threshold, the changed touch point can be confirmed as a valid touch point. For example, a comparison of the changed touch point area and/or shape to the finger touch point reference area and/or the reference shape is greater than a threshold, and the difference from the tip touch point reference area and/or the reference shape is less than a threshold. Then, the touch point is considered to be an operation performed by the user using the stylus, and therefore, it is confirmed as a valid touch point.
通过对所述触摸点数据进行干扰数据滤波处理可以将确认的多个触摸点 中的干扰物质产生的触摸点排除, 从而获取用户实际操作产生的触摸点。 By performing interference data filtering processing on the touch point data, the touch points generated by the interference substances in the confirmed plurality of touch points can be excluded, thereby acquiring the touch points generated by the actual operation of the user.
步骤 S130 , 根据有效触摸点执行对应的触摸事件。 Step S130, executing a corresponding touch event according to the effective touch point.
设备只执行有效触摸点对应的触摸事件, 不会执行由干扰物质造成的触 摸点对应触摸事件, 可有效避免识别错误的问题。 The device only performs the touch event corresponding to the effective touch point, and does not perform the touch event corresponding to the touch point caused by the interference substance, which can effectively avoid the problem of identifying the error.
另外, 在步骤 S110之后, 该方法还包括以下步骤: 若根据触摸点数据确 定触摸点的数量为一个, 确定该触摸点为有效触摸点。 In addition, after step S110, the method further includes the following steps: if it is determined that the number of touched points is one according to the touch point data, determining that the touched point is a valid touch point.
若触摸点数据为一个, 认为该触摸屏表面不存在干扰物质, 则可确定该 触摸点为有效触摸点, 即该触摸点为用户的正常操作。 因此, 直接执行该有 效触摸点对应的触摸时间。 If the touch point data is one, and it is considered that there is no interfering substance on the surface of the touch screen, it can be determined that the touch point is a valid touch point, that is, the touch point is a normal operation of the user. Therefore, the touch time corresponding to the effective touch point is directly executed.
利用本发明实施例一提供的触摸识别方法, 在通过触摸点数据确定的触 摸点为多个时, 对触摸点数据进行干扰数据滤波, 可获取到用户实际操作的 准确的触摸点, 然后执行正确的触摸点对应的触摸事件, 从而有效避免在触 摸屏出现水雾、 水汽、 水渍等干扰物质时出现触摸不灵敏、 漂移、 识别错误 等问题。 With the touch recognition method provided by the first embodiment of the present invention, when the touch points determined by the touch point data are multiple, the interference data is filtered on the touch point data, and the accurate touch point actually operated by the user can be obtained, and then executed correctly. The touch event corresponding to the touch point effectively avoids problems such as insensitive touch, drift, and recognition errors when the touch screen is exposed to water, mist, water, and the like.
下面以图 3为例详细说明本发明实施例二提供的一种触摸识别装置,图 3 为本发明实施例二提供的一种触摸识别装置的结构示意图。 该触摸点识别装 置置于具有触摸屏的设备, 用以实现本发明实施例一提供的触摸识别方法。 如图 3所示, 该触摸点识别装置包括: 获取单元 310, 滤波单元 320, 执行单 元 330。 The following is a detailed description of a touch recognition device according to a second embodiment of the present invention, and FIG. 3 is a schematic structural diagram of a touch recognition device according to a second embodiment of the present invention. The touch point identification device is placed in a device with a touch screen to implement the touch recognition method provided by the first embodiment of the present invention. As shown in FIG. 3, the touch point identification device includes: an acquisition unit 310, a filtering unit 320, and an execution unit 330.
获取单元 310用于按设定的周期扫描触摸屏获取触摸点数据。
获取单元 310获取的触摸点数据可以为一组或多组, 每组触摸点数据对 应一个触摸点。 该触摸点数据可以包括: 触摸屏四边电极发出的电流大小,电 流大小与触摸点到电极的距离的比例, 触摸点电容矩阵等数据。 The obtaining unit 310 is configured to scan the touch screen to acquire touch point data according to a set period. The touch point data acquired by the obtaining unit 310 may be one or more groups, and each set of touch point data corresponds to one touch point. The touch point data may include: a magnitude of a current emitted by the four electrodes of the touch screen, a ratio of a current magnitude to a distance from the touch point to the electrode, and a data such as a touch point capacitance matrix.
滤波单元 320用于若根据触摸点数据确定触摸点的数量为至少两个, 对 该触摸点数据进行干扰数据滤波处理, 以获取有效触摸点。 The filtering unit 320 is configured to perform interference data filtering processing on the touch point data to obtain an effective touch point if it is determined that the number of touched points is at least two according to the touch point data.
如图 4所示, 其为本发明实施例触摸识别装置滤波单元的结构示意图。 滤波单元 320包括: 第一确定模块 321 , 第二确定模块 322 , 比较模块 323 , 第三确定模块 324。 As shown in FIG. 4, it is a schematic structural diagram of a filtering unit of a touch recognition device according to an embodiment of the present invention. The filtering unit 320 includes: a first determining module 321, a second determining module 322, a comparing module 323, and a third determining module 324.
第一确定模块 321用于确定当前周期与上个周期相比触摸点数据发生变 化的触摸点。 The first determining module 321 is configured to determine a touch point at which the touch point data changes in the current period compared to the previous period.
具体的, 第一确定模块 321将当前周期的触摸点的触摸点数据与上一个 周期对应位置的触摸点数据进行比较, 判断该触摸点的触摸点数据是否发生 变化, 以确定触摸点数据发生变化的触摸点。 可以理解的, 该发生变化的触 摸点的数量可以为一个也可以为多个。 如果上一个周期对应位置不存在触摸 点, 则第一确定模块 321 可确认该触摸点的数据发生变化。 由于干扰物质产 生的触摸点数据与用户正常触摸时产生的触摸点数据是不同的, 因此通过第 一确定模块 321 可以将干扰物质产生的触摸点排除。 但是, 此时并不能完全 确定触摸点数据发生变化的触摸点是否是用户操作产生的, 因此还需要其它 模块进行进一步确认。 Specifically, the first determining module 321 compares the touch point data of the touch point of the current period with the touch point data of the corresponding position of the previous period, and determines whether the touch point data of the touch point changes, to determine that the touch point data changes. Touch point. It can be understood that the number of touch points that may change may be one or more. If there is no touch point corresponding to the previous period, the first determining module 321 can confirm that the data of the touch point changes. Since the touch point data generated by the interfering substance is different from the touch point data generated when the user normally touches, the touch point generated by the interfering substance can be excluded by the first determining module 321 . However, at this time, it is not completely determined whether the touch point where the touch point data has changed is caused by a user operation, and therefore other modules are required for further confirmation.
第二确定模块 322用于根据触摸点数据确定该发生变化的触摸点的面积 和 /或形状。 The second determining module 322 is configured to determine an area and/or shape of the changed touch point based on the touch point data.
比较模块 323用于将该发生变化的触摸点对应的面积和 /或形状与预先设 定的触摸点参考面积和 /或参考形状进行比较, 并获得比较差值。 The comparison module 323 is configured to compare the area and/or shape corresponding to the changed touch point with a preset touch point reference area and/or reference shape, and obtain a comparison difference.
装置中预先设定触摸点参考面积和 /或参考形状, 该触摸点参考面积和 / 或参考形状可以为多个, 例如手指触摸点参考面积和 /或参考形状, 笔尖触摸 点参考面积和 /或参考形状等。
第三确认模块 324用于将比较差值小于预先设定的阀值的发生变化的触 摸点确定为有效触摸点。 The touch point reference area and/or the reference shape are preset in the device, and the touch point reference area and/or the reference shape may be multiple, such as a finger touch point reference area and/or a reference shape, a nib touch point reference area, and/or Reference shape, etc. The third confirmation module 324 is configured to determine a touch point whose comparison difference is smaller than a preset threshold value as a valid touch point.
发生变化的触摸点对应的面积和 /或形状与预先设定的触摸点参考面积 和 /或参考形状的比较差值越小, 则说明该发生变化的触摸点越接近触摸点参 考面积和 /或参考形状。 因此, 可预先设置一个阀值, 只要比较差值小于阀值 的发生变化的触摸点都认为是有效触摸点。 The smaller the difference between the area and/or shape corresponding to the touched touch point and the preset touch point reference area and/or reference shape, the closer the touch point is to the touch point reference area and/or Reference shape. Therefore, a threshold can be set in advance, as long as the touch point where the comparison difference is smaller than the threshold value is considered to be a valid touch point.
如果预先设定的触摸点参考面积和 /或参考形状为多个时,只要其中一个 比较差值小于阀值, 则第三确认模块 324便可将该发生变化的触摸点确认为 有效触摸点。 If the preset touch point reference area and/or the reference shape are plural, if the one of the comparison differences is less than the threshold, the third confirmation module 324 can confirm the changed touch point as the effective touch point.
通过滤波单元 320对所述触摸点数据进行干扰数据滤波处理可以将确认 的多个触摸点中的干扰物质产生的触摸点排除, 从而获取用户实际操作产生 的触摸点。 The interference data filtering process performed on the touch point data by the filtering unit 320 may exclude the touch points generated by the interference substances in the confirmed plurality of touch points, thereby acquiring the touch points generated by the actual operation of the user.
执行单元 330用于根据有效触摸点执行对应的触摸事件。 The execution unit 330 is configured to execute a corresponding touch event according to the effective touch point.
执行单元 330只执行有效触摸点对应的触摸事件, 不会执行由干扰物质 造成的触摸点对应触摸事件, 可有效避免识别错误的问题。 The execution unit 330 performs only the touch event corresponding to the effective touch point, and does not perform the touch point corresponding touch event caused by the interference substance, and the problem of the recognition error can be effectively avoided.
另外, 如图 5所示其为本发明实施例二提供的触摸识别装置的另一种结 构示意图。 该触摸识别装置还包括确定单元 340。 In addition, FIG. 5 is another schematic structural diagram of a touch recognition apparatus according to Embodiment 2 of the present invention. The touch recognition device further includes a determination unit 340.
该确定单元 340用于若根据触摸点数据确定触摸点的数量为一个, 确定 该触摸点为有效触摸点。 The determining unit 340 is configured to determine that the touch point is a valid touch point if it is determined that the number of touched points is one according to the touch point data.
若根据触摸点数据确定触摸点数量为一个, 认为该触摸屏表面不存在干 扰物质, 则可直接通过确定单元 340确定该触摸点为有效触摸点, 即该触摸 点为用户的正常操作。 因此, 执行单元 330直接执行该有效触摸点对应的触 摸时间。 If it is determined that the number of touched points is one according to the touch point data, and the interference material is not present on the surface of the touch screen, the determining unit 340 may directly determine that the touched point is a valid touch point, that is, the touched point is a normal operation of the user. Therefore, the execution unit 330 directly performs the touch time corresponding to the effective touch point.
利用本发明实施例二提供的触摸识别装置, 在通过触摸点数据确定的触 摸点为多个时, 对触摸点数据进行干扰数据滤波, 可获取到用户实际操作的 准确的触摸点, 然后执行正确的触摸点对应的触摸事件, 从而有效避免在触
摸屏出现水雾、 水汽、 水渍等干扰物质时出现触摸不灵敏、 漂移、 识别错误 等问题。 With the touch recognition device provided in the second embodiment of the present invention, when the touch points determined by the touch point data are multiple, the interference data is filtered on the touch point data, and the accurate touch point actually operated by the user can be obtained, and then executed correctly. The touch point corresponds to the touch event, thereby effectively avoiding touch When the screen appears to be disturbed by water mist, water vapor, water stains, etc., the touch is insensitive, drifting, and identifying errors.
需要说明的是, 上述触摸识别装置是用来实现实施例一所述的触摸识别 方法, 所包括的各个单元只是按照功能逻辑进行划分的, 但并不局限于上述 的划分, 只要能够实现相应的功能即可; 另外, 各功能单元的具体名称也只 是为了便于相互区分, 并不用于限制本发明的保护范围。 It should be noted that the above-mentioned touch recognition apparatus is used to implement the touch recognition method according to the first embodiment, and the included units are only divided according to functional logic, but are not limited to the above division, as long as the corresponding The functions are only applicable; in addition, the specific names of the functional units are only for the purpose of distinguishing each other, and are not intended to limit the scope of protection of the present invention.
在硬件实现上, 以上各个单元可以以硬件形式内嵌于或独立于具有触摸 屏的设备的处理器中, 也可以以软件形式存储于具有触摸屏的设备的存储器 中, 以便于处理器调用执行以上各个模块对应的操作。 该处理器可以为中央 处理单元(CPU )、 微处理器、 单片机等。 In hardware implementation, the above units may be embedded in hardware or in a processor independent of the device having the touch screen, or may be stored in software in a memory of the device having the touch screen, so that the processor calls to execute the above The corresponding operation of the module. The processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
如 6 图所示, 其为本发明实施例三所提供的一种具有触摸屏的设备的结 构示意图。 该具有触摸屏的设备包括存储器 610以及与存储器 610连接的处 理器 620及触摸屏 630。 当然, 具有触摸屏的设备还可以包括天线、 基带处理 部件、 中射频处理部件、 输入输出装置等通用部件, 本发明实施例在此不再 任何限制。 FIG. 6 is a schematic structural diagram of a device with a touch screen according to Embodiment 3 of the present invention. The touch screen enabled device includes a memory 610 and a processor 620 and a touch screen 630 coupled to the memory 610. Of course, the device with the touch screen may also include a common component such as an antenna, a baseband processing component, a medium-frequency processing component, and an input/output device. The embodiment of the present invention is not limited herein.
其中, 存储器 610中可以存储设备文件信息, 处理器调用存储器 610中 存储的文件信息, 用于执行以下操作: The device file information may be stored in the memory 610, and the processor calls the file information stored in the memory 610 to perform the following operations:
按设定的周期扫描触摸屏获取触摸点数据; Scan the touch screen according to the set period to obtain touch point data;
若根据所述触摸点数据确定触摸点的数量为至少两个, 对所述触摸点数 据进行干扰数据滤波处理, 以获取有效触摸点; If it is determined that the number of touched points is at least two according to the touch point data, performing interference data filtering processing on the touch point data to obtain an effective touch point;
根据所述有效触摸点执行对应的触摸事件。 A corresponding touch event is performed according to the effective touch point.
进一步地, 对所述触摸点数据进行干扰数据滤波处理, 以获取有效触摸 点包括: Further, performing interference data filtering processing on the touch point data to obtain valid touch points includes:
确定当前周期与上一个周期相比触摸点数据发生变化的触摸点; 根据所述触摸点数据确定该发生变化的触摸点的面积和 /或形状; 将该发生变化的触摸点对应的面积和 /或形状与预先设定的触摸点参考
面积和 /或参考形状进行比较, 并获得比较差值; Determining a touch point at which the touch point data changes in the current period compared to the previous period; determining an area and/or a shape of the changed touch point according to the touch point data; an area corresponding to the changed touch point and/ Or shape with a preset touch point reference Comparing the area and/or the reference shape and obtaining a comparison difference;
将所述比较差值小于预先设定的阀值的所述发生变化的触摸点确定为有 效触摸点。 The touched point where the comparison difference is smaller than a preset threshold is determined as a valid touch point.
进一步地, 当所述预先设定的触摸点参考面积和 /或参考形状为多个, 则 将比较差值小于预先设定的阀值的所述发生变化的触摸点确定为有效触摸 点, 包括: Further, when the preset touch point reference area and/or the reference shape are plural, the touch point whose comparison difference is smaller than a preset threshold is determined as a valid touch point, including :
将至少一个比较差值小于预先设定的阀值的所述发生变化的触摸点确定 为有效触摸点。 The touched point at which the at least one comparison difference is less than a preset threshold is determined as a valid touch point.
进一步地, 处理器 620还用于执行以下操作: Further, the processor 620 is further configured to perform the following operations:
若根据所述触摸点数据确定触摸点的数量为一个, 确定所述触摸点为有 效触摸点。 If it is determined that the number of touched points is one according to the touch point data, the touched point is determined to be a valid touched point.
利用本发明实施例三提供的具有触摸屏的设备, 在通过触摸点数据确定 的触摸点为多个时, 对触摸点数据进行干扰数据滤波, 可获取到用户实际操 作的准确的触摸点, 然后执行正确的触摸点对应的触摸事件, 从而有效避免 在触摸屏出现水雾、 水汽、 水渍等干扰物质时出现触摸不灵敏、 漂移、 识别 错误等问题 With the device with the touch screen provided by the third embodiment of the present invention, when the touch points determined by the touch point data are multiple, the interference data is filtered on the touch point data, and the accurate touch point actually operated by the user can be obtained, and then executed. The touch event corresponding to the correct touch point effectively avoids problems such as insensitive touch, drift, and recognition errors when the touch screen is exposed to water, mist, water, and other interfering substances.
专业人员应该还可以进一步意识到, 结合本文中所公开的实施例描述的 各示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来 实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能 一般性地描述了各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来 执行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每 个特定的应用来使用不同方法来实现所描述的功能, 但是这种实现不应认为 超出本发明的范围。 A person skilled in the art should further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、 处理 器执行的软件模块, 或者二者的结合来实施。 软件模块可以置于随机存储器 ( RAM )、 内存、 只读存储器(ROM )、 电可编程 R0M、 电可擦除可编程 R0M、 寄
存器、 硬盘、 可移动磁盘、 CD-R0M、 或技术领域内所公知的任意其它形式的 存储介质中。 The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, A storage device, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
以上所述的具体实施方式, 对本发明的目的、 技术方案和有益效果进行 了进一步详细说明, 所应理解的是, 以上所述仅为本发明的具体实施方式而 已, 并不用于限定本发明的保护范围, 凡在本发明的精神和原则之内, 所做 的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。
The above described embodiments of the present invention are further described in detail, and the embodiments of the present invention are intended to be illustrative only. The scope of the protection, any modifications, equivalents, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.
Claims
1、 一种触摸识别方法, 其特征在于, 所述方法包括: 1. A touch recognition method, characterized in that the method includes:
按设定的周期扫描触摸屏获取触摸点数据; Scan the touch screen to obtain touch point data according to the set period;
若根据所述触摸点数据确定触摸点的数量为至少两个, 对所述触摸点数据 进行干扰数据滤波处理, 以获取有效触摸点; If the number of touch points is determined to be at least two according to the touch point data, perform interference data filtering processing on the touch point data to obtain effective touch points;
根据所述有效触摸点执行对应的触摸事件。 Execute corresponding touch events according to the effective touch points.
2、 根据权利要求 1所述的方法, 其特征在于, 对所述触摸点数据进行干扰 数据滤波处理, 以获取有效触摸点包括: 2. The method according to claim 1, wherein performing interference data filtering processing on the touch point data to obtain effective touch points includes:
确定当前周期与上一个周期相比触摸点数据发生变化的触摸点; Determine the touch points whose touch point data has changed in the current cycle compared with the previous cycle;
根据所述触摸点数据确定所述发生变化的触摸点的面积和 /或形状; 将所述发生变化的触摸点对应的面积和 /或形状与预先设定的触摸点参考 面积和 /或参考形状进行比较, 并获得比较差值; Determine the area and/or shape of the changed touch point according to the touch point data; compare the area and/or shape corresponding to the changed touch point with the preset reference area and/or reference shape of the touch point Compare and obtain the difference;
将所述比较差值小于预先设定的阀值的所述发生变化的触摸点确定为有效 触摸点。 The changed touch point whose comparison difference value is less than a preset threshold is determined as a valid touch point.
3、 根据权利要求 2所述的方法, 其特征在于, 当所述预先设定的触摸点参 考面积和 /或参考形状为多个, 则将比较差值小于预先设定的阀值的所述发生变 化的触摸点确定为有效触摸点, 包括: 3. The method according to claim 2, characterized in that when there are multiple preset touch point reference areas and/or reference shapes, the comparison will be made between the ones whose difference is less than the preset threshold. The changed touch points are determined as valid touch points, including:
将至少一个比较差值小于预先设定的阀值的所述发生变化的触摸点确定为 有效触摸点。 The changed touch point with at least one comparison difference value less than a preset threshold is determined as a valid touch point.
4、 根据权利要求 1-3任一所述的方法, 其特征在于, 在所述按设定的周期 扫描触摸屏获取触摸点数据之后, 所述方法还包括: 4. The method according to any one of claims 1 to 3, characterized in that, after scanning the touch screen to obtain touch point data according to the set period, the method further includes:
若根据所述触摸点数据确定触摸点的数量为一个, 确定所述触摸点为有效 触摸点。 If the number of touch points is determined to be one according to the touch point data, the touch point is determined to be a valid touch point.
5、 一种触摸识别装置, 其特征在于, 所述装置包括: 5. A touch recognition device, characterized in that the device includes:
获取单元, 用于按设定的周期扫描触摸屏获取触摸点数据; The acquisition unit is used to scan the touch screen to acquire touch point data according to a set period;
滤波单元, 用于若根据所述触摸点数据确定触摸点的数量为至少两个, 对
所述触摸点数据进行干扰数据滤波处理, 以获取有效触摸点; a filtering unit, configured to: if the number of touch points is determined to be at least two according to the touch point data, The touch point data is subjected to interference data filtering processing to obtain effective touch points;
执行单元, 用于根据所述有效触摸点执行对应的触摸事件。 An execution unit, configured to execute corresponding touch events according to the effective touch points.
6、 根据权利要求 5所述的装置, 其特征在于, 所述滤波单元包括: 第一确定模块, 用于确定当前周期与上一个周期相比触摸点数据发生变化 的触摸点; 6. The device according to claim 5, characterized in that the filtering unit includes: a first determination module, used to determine the touch point where the touch point data changes in the current period compared with the previous period;
第二确定模块, 用于根据所述触摸点数据确定所述发生变化的触摸点的面 积和 /或形^ ; a second determination module, configured to determine the area and/or shape of the changed touch point according to the touch point data;
比较模块,用于将所述发生变化的触摸点对应的面积和 /或形状与预先设定 的触摸点参考面积和 /或参考形状进行比较, 并获得比较差值; A comparison module for comparing the area and/or shape corresponding to the changed touch point with a preset touch point reference area and/or reference shape, and obtaining a comparison difference;
第三确定模块, 用于将所述比较差值小于预先设定的阀值的所述发生变化 的触摸点确定为有效触摸点。 A third determination module, configured to determine the changed touch point where the comparison difference is less than a preset threshold as a valid touch point.
7、 根据权利要求 6所述的装置, 其特征在于, 当所述预先设定的触摸点参 考面积和 /或参考形状为多个, 则所述第三确定模块用于: 7. The device according to claim 6, wherein when there are multiple preset touch point reference areas and/or reference shapes, the third determination module is used to:
将至少一个比较差值小于预先设定的阀值的所述发生变化的触摸点确定为 有效触摸点。 The changed touch point with at least one comparison difference value less than a preset threshold is determined as a valid touch point.
8、 根据权利要求 5-7任一所述的装置, 其特征在于, 所述装置还包括: 确定单元, 用于若根据所述触摸点数据确定触摸点的数量为一个, 确定所 述触摸点为有效触摸点。
8. The device according to any one of claims 5 to 7, characterized in that, the device further includes: a determining unit, configured to determine the touch point if the number of touch points is determined to be one according to the touch point data. is a valid touch point.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310060425.7 | 2013-02-26 | ||
CN201310060425.7A CN103105975B (en) | 2013-02-26 | 2013-02-26 | Touch identification method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014131283A1 true WO2014131283A1 (en) | 2014-09-04 |
Family
ID=48313886
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/084677 WO2014131283A1 (en) | 2013-02-26 | 2013-09-30 | Touch recognition method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103105975B (en) |
WO (1) | WO2014131283A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026300A (en) * | 2019-11-19 | 2020-04-17 | 维沃移动通信有限公司 | Screen display method and electronic equipment |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103105975B (en) * | 2013-02-26 | 2016-11-23 | 华为终端有限公司 | Touch identification method and device |
WO2015135123A1 (en) * | 2014-03-11 | 2015-09-17 | Qualcomm Incorporated | System and method for correcting the position of a touch input |
CN105607844A (en) * | 2015-09-30 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Touch screen control method, touch screen control device and terminal |
CN106569644A (en) * | 2015-10-10 | 2017-04-19 | 深圳欧菲光科技股份有限公司 | Touch sensing device and touch sensing method |
CN105786281A (en) * | 2016-02-25 | 2016-07-20 | 上海斐讯数据通信技术有限公司 | Method and device achieving electromagnetic interference resistance of capacitive screen |
CN107436700B (en) | 2016-05-26 | 2020-04-14 | 华为终端有限公司 | Data processing method and device |
CN106201073B (en) * | 2016-06-28 | 2019-08-20 | 维沃移动通信有限公司 | A kind of signal processing method and mobile terminal of capacitance touch screen |
CN107608545A (en) * | 2016-07-12 | 2018-01-19 | 中兴通讯股份有限公司 | Processing method and processing device, the terminal of touch event |
CN106649812A (en) * | 2016-12-29 | 2017-05-10 | 努比亚技术有限公司 | Method and device for acquiring data information |
CN108021246A (en) * | 2017-10-12 | 2018-05-11 | 上海优熠电子科技有限公司 | Touch pad blackboard eraser prevents method for deleting by mistake |
CN108021291A (en) * | 2017-10-12 | 2018-05-11 | 上海优熠电子科技有限公司 | Touch point reliability composite identification method |
TWI672624B (en) * | 2018-07-02 | 2019-09-21 | 宏碁股份有限公司 | Touch panel with built-in defogging function |
CN110703933A (en) * | 2018-07-10 | 2020-01-17 | 宏碁股份有限公司 | Touch panel with built-in defogging function |
CN109189321B (en) * | 2018-09-30 | 2022-07-26 | 联想(北京)有限公司 | Electronic equipment information processing method, device, system and medium |
CN109271069B (en) * | 2018-10-29 | 2021-06-29 | 深圳市德明利技术股份有限公司 | Secondary area searching method based on capacitive touch, touch device and mobile terminal |
CN110196387B (en) * | 2019-06-04 | 2021-09-03 | 苏州蓝石新动力有限公司 | Damp-proof key identification method and device, electronic equipment and readable storage medium |
CN111338516B (en) * | 2020-02-26 | 2022-05-10 | 业成科技(成都)有限公司 | Finger touch detection method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101105733A (en) * | 2007-05-16 | 2008-01-16 | 广东威创日新电子有限公司 | Multiple point touch localization method |
CN102455811A (en) * | 2010-10-30 | 2012-05-16 | 比亚迪股份有限公司 | Method and device for detecting touch device |
CN103105975A (en) * | 2013-02-26 | 2013-05-15 | 华为终端有限公司 | Touch identification method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090278816A1 (en) * | 2008-05-06 | 2009-11-12 | Next Holdings Limited | Systems and Methods For Resolving Multitouch Scenarios Using Software Filters |
CN101976334B (en) * | 2010-10-26 | 2014-02-19 | 广东威创视讯科技股份有限公司 | Anti-interference touch identification method and device |
-
2013
- 2013-02-26 CN CN201310060425.7A patent/CN103105975B/en active Active
- 2013-09-30 WO PCT/CN2013/084677 patent/WO2014131283A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101105733A (en) * | 2007-05-16 | 2008-01-16 | 广东威创日新电子有限公司 | Multiple point touch localization method |
CN102455811A (en) * | 2010-10-30 | 2012-05-16 | 比亚迪股份有限公司 | Method and device for detecting touch device |
CN103105975A (en) * | 2013-02-26 | 2013-05-15 | 华为终端有限公司 | Touch identification method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026300A (en) * | 2019-11-19 | 2020-04-17 | 维沃移动通信有限公司 | Screen display method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103105975B (en) | 2016-11-23 |
CN103105975A (en) | 2013-05-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2014131283A1 (en) | Touch recognition method and device | |
CN104007932B (en) | A kind of touch point recognition methods and device | |
US20110012855A1 (en) | Method and device for palm rejection | |
EP2980679B1 (en) | Mis-touch recognition method and device | |
US9514311B2 (en) | System and method for unlocking screen | |
JP5520336B2 (en) | Device for detecting edge grip of touch panel and method for detecting edge grip of touch panel | |
US9569045B2 (en) | Stylus tilt and orientation estimation from touch sensor panel images | |
RU2014153895A (en) | METHOD AND DEVICE FOR CONTROL OF TOUCH INPUT | |
CN105528130B (en) | Control method and device and electronic equipment | |
JP6284838B2 (en) | Touch input device | |
TW201342167A (en) | Sensing method and apparatus to improve noise interference of capacitive type touch control device | |
TWI526952B (en) | Touch capacitive device and object identifying method of the capacitive touch device | |
WO2016145873A1 (en) | Accidental operation identification method and device | |
TW201510828A (en) | Method of recognizing touch | |
JP6245641B2 (en) | Touchpad input device and touchpad control program | |
TW201419064A (en) | Foreign object detection method of a touch panel | |
TWI526906B (en) | Signal processing method | |
US20190138144A1 (en) | Touch device and touch signal processing method thereof | |
US20140218336A1 (en) | Capacitive touch screen and information processing method therefor | |
JP6221527B2 (en) | Electronic equipment and coordinate input program | |
CN104375724B (en) | Mobile terminal and touch operation method thereof | |
TWI716213B (en) | Touch detection method, touch device and information processing device | |
CN103389877B (en) | Finger tilt identification method and system based on touch screen and mobile terminal | |
CN105278714B (en) | Electronic equipment and touch control operation recognition methods | |
TWI514212B (en) | Touch panel capable of detecting a stylus and a method of using the same |
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: 13876696 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: 13876696 Country of ref document: EP Kind code of ref document: A1 |