Anti-mis-touch method and device, touch display device and storage medium

By calculating the size of the touched object and judging the passage of light using infrared light, the problem of accidental insect touches on high-precision infrared touchscreens has been solved, achieving more accurate anti-accidental touch processing and improving the user experience of the device.

CN115421611BActive Publication Date: 2026-06-05SHENZHEN KTC COMMERCIAL DISPLAY TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN KTC COMMERCIAL DISPLAY TECHNOLOGY CO LTD
Filing Date
2022-08-29
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing methods for preventing accidental touches are insufficient to accurately identify insect touches on high-precision infrared touchscreens, leading to frequent accidental touches and impacting the teaching experience.

Method used

The infrared lamp emits infrared light to calculate the size of the touched object, determines whether the contrast value of the target part is within a preset threshold, and determines whether the infrared light passes through the touched object. If so, it is determined that the object was touched by mistake and the input command is invalidated.

Benefits of technology

It improves the accuracy of accidental touch recognition, reduces misoperation caused by insect touch, and enhances the user experience of touch display devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115421611B_ABST
    Figure CN115421611B_ABST
Patent Text Reader

Abstract

The application relates to a mistaken touch prevention method and device, a touch display device and a storage medium, wherein the method comprises the following steps: if a touch object touches a touch screen, determining whether the touch display device is in a mistaken touch prevention mode; if the touch display device is in the mistaken touch prevention mode, emitting infrared light through an infrared lamp to calculate the size of the touch object and obtain a target part contrast value of the touch object; determining whether the target part contrast value is within a preset threshold value; if the target part contrast value is within the preset threshold value, determining whether the infrared light passes through the touch object; if the infrared light passes through the touch object, determining that the touch object is a mistaken touch object, and invalidating the instruction input by the touch object to the touch screen. The application realizes the judgment of the touch object through multiple judgment bases, and is beneficial to improving the recognition accuracy of mistaken touch prevention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display device technology, and in particular to a method, apparatus, touch display device and storage medium for preventing accidental touches. Background Technology

[0002] As people continuously improve their writing experience and touch accuracy, high-precision infrared frames are gradually replacing low-precision touch frames. High-precision touch frames can typically recognize opaque objects larger than 1 mm, while low-precision touch frames can typically recognize opaque objects larger than 6 mm. With large screens equipped with high-precision infrared touch frames increasingly entering classrooms to assist teachers and students in completing lessons, there are more and more instances where classrooms in some areas have many insects. When one or more insects land on a large screen with a high-precision infrared touch frame, it can cause accidental touches. These accidental touches can interfere with the teacher's normal operation, such as preventing them from clicking to select or opening files, severely impacting the teacher's teaching experience.

[0003] Current methods for preventing accidental touches struggle to accurately distinguish between insects and human touches when targeting high-precision infrared touchscreens, especially when multiple insects are touching the screen. Therefore, a method to improve the accuracy of accidental touch detection is urgently needed. Summary of the Invention

[0004] The purpose of this application is to provide a method, device, touch display device, and storage medium for preventing accidental touches, so as to improve the recognition accuracy of accidental touch prevention.

[0005] To address the aforementioned technical problems, this application provides a method for preventing accidental touches, applied in a touch display device, wherein the touch display device includes an infrared lamp and a touch screen, and the method includes:

[0006] If a touch object is detected touching the touch screen, it is determined whether the touch display device is in anti-accidental touch mode;

[0007] If the touch display device is in the anti-accidental touch mode, infrared light is emitted by the infrared lamp to calculate the size of the touched object and obtain the target part comparison value of the touched object, wherein the target part comparison value includes the target part length and the target part width;

[0008] Determine whether the comparison value of the target part is within a preset threshold. If the comparison value of the target part is within the preset threshold, determine whether the infrared light passes through the touched object.

[0009] If the infrared light passes through the touched object, the touched object is determined to be a false touch, and the instructions input to the touch screen by the touched object are invalidated.

[0010] To address the aforementioned technical problems, this application provides another method for preventing accidental touches, applied in a touch display device. The touch display device includes an infrared lamp and a touchscreen, and the device includes:

[0011] A touch object detection module is used to determine whether the touch display device is in anti-mistouch mode if a touch object is detected touching the touch screen.

[0012] The touch object size calculation module is used to calculate the size of the touch object by emitting infrared light through the infrared lamp if the touch display device is in the anti-accidental touch mode, and to obtain the target part comparison value of the touch object, wherein the target part comparison value includes the target part length and the target part width;

[0013] The target part comparison value judgment module is used to determine whether the target part comparison value is within a preset threshold. If the target part comparison value is within the preset threshold, it is then determined whether the infrared light passes through the touched object.

[0014] The accidental touch object confirmation module is used to determine that the touch object is an accidental touch object if infrared light passes through the touch object, and to invalidate the instructions input to the touch screen by the touch object.

[0015] To solve the above-mentioned technical problems, one technical solution adopted by the present invention is to provide a touch display device, including an infrared lamp, a touch screen, one or more processors; and a memory for storing one or more programs, so that the one or more processors implement the anti-accidental touch method described above.

[0016] To solve the above-mentioned technical problems, one technical solution adopted by the present invention is: a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the anti-accidental touch method of any of the above-mentioned methods.

[0017] This invention provides a method, apparatus, touch display device, and storage medium for preventing accidental touches. The method includes: if a touch object is detected touching the touchscreen, determining whether the touch display device is in an anti-accidental touch mode; if the touch display device is in an anti-accidental touch mode, emitting infrared light through an infrared lamp to calculate the size of the touch object, obtaining a target portion comparison value, wherein the target portion comparison value includes the target portion length and the target portion width; determining whether the target portion comparison value is within a preset threshold; if the target portion comparison value is within the preset threshold, determining whether infrared light passes through the touch object; if infrared light passes through the touch object, determining that the touch object is an accidental touch object, and invalidating any commands input to the touchscreen by the touch object. This invention, when detecting a touch object touching the touchscreen, first checks whether the current touch display device is in an anti-accidental touch mode. If so, it simultaneously determines whether the touch object is an accidental touch object based on both the size of the touch object and whether infrared light passes through it. This achieves judgment of the touch object through multiple criteria, thereby improving the accuracy of accidental touch identification. Attached Figure Description

[0018] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart of an implementation of the anti-accidental touch method provided in the embodiments of this application;

[0020] Figure 2 This is a schematic diagram of infrared light illuminating a touch object according to an embodiment of this application;

[0021] Figure 3 This is a flowchart illustrating an implementation of a sub-process in the anti-accidental touch method provided in this application embodiment;

[0022] Figure 4 This is another implementation flowchart of a sub-process in the anti-accidental touch method provided in the embodiments of this application;

[0023] Figure 5 This is another implementation flowchart of a sub-process in the anti-accidental touch method provided in the embodiments of this application;

[0024] Figure 6 This is another implementation flowchart of a sub-process in the anti-accidental touch method provided in the embodiments of this application;

[0025] Figure 7 This is a schematic diagram of the anti-accidental touch device provided in the embodiments of this application;

[0026] Figure 8 This is a schematic diagram of a touch display device provided in an embodiment of this application. Detailed Implementation

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.

[0028] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0029] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0030] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.

[0031] It should be noted that the anti-accidental touch method provided in the embodiments of this application is generally executed by a touch display device.

[0032] The touch display device in this application embodiment is a high-precision infrared touch device, which includes infrared lamps and a touch screen. The infrared lamps include infrared emitting lamps and infrared receiving lamps.

[0033] Please see Figures 1 to 2 , Figure 1 One specific implementation of the method for preventing accidental touches is shown. Figure 2 A schematic diagram of infrared light illuminating a touch object according to an embodiment of this application is shown.

[0034] It should be noted that if substantially the same result is obtained, the method of this invention is not based on... Figure 1 Limited to the order of the processes shown, this method includes the following steps:

[0035] S1: If a touch object is detected touching the touch screen, determine whether the touch display device is in anti-accidental touch mode.

[0036] Specifically, when the touch display device is turned on, it can detect the presence of a touch object when it touches the touchscreen. This touch object could be a pen, a human finger, or an insect. If the touch object is a pen or a human finger, it can be understood as a normal touch operation. If it is an insect (such as a fly or mosquito), it may be touching the touchscreen. If the touchscreen command is executed, it could lead to a false touch, affecting the use of the touch display device. Therefore, it is necessary to determine whether a false touch has occurred. In this embodiment, the touch display device has a normal mode and a false touch prevention mode. The normal mode does not detect touch objects, while the false touch prevention mode does determine whether a false touch has occurred, i.e., whether an insect has touched the touchscreen. In one specific embodiment, the host computer sends a command to the touch display device to switch the infrared touch frame from normal mode to false touch prevention mode, or vice versa.

[0037] S2: If the touch display device is in anti-accidental touch mode, infrared light is emitted by the infrared lamp to calculate the size of the touched object and obtain the target part comparison value of the touched object. The target part comparison value includes the length and width of the target part.

[0038] Specifically, if it is determined that the touch display device is in anti-accidental touch mode, infrared light is emitted by infrared lamps to calculate the size of the touched object and obtain the target portion contrast value of the touched object. Specifically, infrared light is emitted by the infrared emitting lamps, and when the infrared light shines on the touched object, it creates a shadow, preventing the infrared receiving lamps from receiving that portion of the infrared light. This allows the calculation of the target portion contrast value, which includes both the length and width of the target portion.

[0039] Please see Figure 3 , Figure 3 One specific implementation of step S2 is shown, which includes:

[0040] S21: If the touch display device is in anti-accidental touch mode, infrared light is emitted from the left and right and up and down directions by infrared lamps to obtain the shadow part of the touch object that blocks the infrared light.

[0041] S22: Obtain the occlusion shadow portion at a preset height from the touchscreen and use it as the target portion of the touch object.

[0042] S23: Calculate the length and width of the target portion to obtain the target portion comparison value of the touched object.

[0043] Specifically, infrared lights are deployed on the top, bottom, left, and right edges of the touchscreen. These lights emit infrared light from the left-right and top-bottom directions. When this infrared light illuminates a touch object, it creates a shadow, preventing the infrared receiver from receiving this portion of the infrared light. This allows the user to identify the shadow portion of the touch object blocking the infrared light. Since touch objects vary in height, this embodiment uses the shadow portion at a preset height from the touchscreen as the target portion of the touch object. For example, a height of 10 millimeters from the touchscreen is used as the preset height, and the shadow portion within this preset height is considered the target portion to be determined.

[0044] Furthermore, this application provides a specific embodiment of step S23, including:

[0045] Calculate the length of the longest part of the shadow portion illuminated by infrared light from the left and right directions to obtain the length of the target portion;

[0046] The width of the target portion is obtained by calculating the width of the widest part of the shadow area illuminated by infrared light from the top and bottom directions;

[0047] The length and width of the target portion are used as the comparison values ​​of the target portion.

[0048] Specifically, two occlusion shadows can be obtained by irradiating with infrared light from the left and right directions and by irradiating with infrared light from the top and bottom directions. Since the occlusion shadows produced by irradiating insects are often irregular shapes, the length of the longest part of the occlusion shadow irradiated by infrared light from the left and right directions is calculated as the length of the object being touched, thus obtaining the length of the target part. The width of the widest part of the occlusion shadow irradiated by infrared light from the top and bottom directions is calculated as the width of the object being touched, thus obtaining the width of the target part.

[0049] S3: Determine whether the comparison value of the target part is within the preset threshold. If the comparison value of the target part is within the preset threshold, determine whether infrared light passes through the touched object.

[0050] Specifically, since the size of the shadows left by human fingers, pens, and insects after being illuminated by infrared light varies, this embodiment of the application determines whether the comparison value of the target portion is within a preset threshold, and first preliminarily determines whether the touched object is a mistakenly touched object. If the comparison value of the target portion is within the preset threshold, the touched object may be a mistakenly touched object, and further judgment is performed through subsequent steps; if the comparison value of the target portion is within the preset threshold, the touched object is determined not to be a mistakenly touched object, and the subsequent judgment steps are stopped.

[0051] Please see Figure 4 , Figure 4One specific implementation of step S3 is shown, which includes:

[0052] S31: Determine whether the length of the target portion is within the first preset threshold, and obtain the first determination result.

[0053] S32: Determine whether the width of the target portion is within the second preset threshold, and obtain the second determination result.

[0054] S33: If the first judgment result is within the first preset threshold and the second judgment result is within the second preset threshold, then determine whether infrared light passes through the touched object.

[0055] Specifically, the preset thresholds include a first preset threshold and a second preset threshold. Since the angle at which a touched object rests on the touchscreen varies, this embodiment of the application determines whether the length of the target portion is within the first preset threshold to obtain a first determination result, and whether the width of the target portion is within the second preset threshold to obtain a second determination result. This allows for the determination of whether the length and width of the touched object are within the thresholds, thus preliminarily determining whether the touched object is a mistakenly touched object.

[0056] It should be noted that the first preset threshold and the second preset threshold can be set to the same threshold or different thresholds. In one specific embodiment, both the first preset threshold and the second preset threshold are 4 mm to 8 mm.

[0057] Please see Figure 5 , Figure 5 One specific implementation of step S33 is shown, which includes:

[0058] S331: If the first judgment result is within the first preset threshold and the second judgment result is within the second preset threshold, then obtain the shadow occlusion part of the touched object by the infrared light emitted by the infrared lamp.

[0059] S332: Determine whether there is a gap between the part of the shadowed area and the part that contacts the touch screen.

[0060] S333: If there is a gap between the part of the shadowed area and the part that contacts the touch screen, it is determined that infrared light passes through the touched object.

[0061] S334: If there is no gap between the part of the shadowed area and the part in contact with the touch screen, it is determined that no infrared light passes through the touched object.

[0062] Specifically, the above steps have already made a preliminary judgment based on the size of the touched object. In order to improve the accuracy of the anti-accidental touch recognition, this application embodiment further determines whether the touched object is an accidental touch object by judging whether there is a gap in the touched object.

[0063] In the application embodiments, if the object being touched is a human finger or a writing pen, the human finger and writing pen can block the infrared light illuminating them, leaving no gaps; please refer to Figure 2 If the object being touched is an insect, such as a fly, and the fly's limbs land on the touchscreen, when infrared light shines on it, the fly's body and limbs can block some of the light, leaving gaps between its limbs. Light will then pass through these gaps, creating a gap between the shadowed area and the touchscreen. Therefore, if there is a gap between the shadowed area and the touchscreen, it is determined that infrared light has passed through the touched object; if there is no gap, it is determined that no infrared light has passed through the touched object.

[0064] S4: If infrared light passes through the touched object, the touched object is determined to be an accidental touch, and the instructions input to the touch screen by the touched object are invalidated.

[0065] Please see Figure 6 , Figure 6 One specific implementation of step S4 is shown, which includes:

[0066] S41: If infrared light passes through the touched object, the touched object is determined to be an accidentally touched object.

[0067] S42: Obtain the coordinates of the touched object on the touch screen to get the target coordinates.

[0068] S43: Obtain the instruction input at the target coordinates, treat it as the instruction input by the touch object to the touch screen, and invalidate the input instruction.

[0069] Specifically, if infrared light passes through the touch object, the touch object is determined to be an accidental touch. In this case, the touch object lands on the touchscreen, generating an input command to the touch display device. Therefore, this input command needs to be invalidated to prevent accidental touches from causing input commands and thus preventing the user from using the touch display device normally. This embodiment first obtains the coordinates of the touch object on the touchscreen to obtain the target coordinates, then obtains the command input at the target coordinates as the command input by the touch object to the touchscreen, and invalidates the input command to prevent accidental touches.

[0070] Furthermore, based on preset thresholds, sensitivity levels are constructed, and different sensitivity levels are used as different sensitivity levels in the anti-mistouch mode.

[0071] Specifically, this embodiment adjusts the sensitivity of object recognition by adding sensitivity adjustment. The sensitivity levels can be constructed based on preset thresholds, serving as different sensitivity levels in the anti-accidental touch mode.

[0072] In this embodiment, if a touch object is detected touching the touchscreen, it is determined whether the touch display device is in anti-mistouch mode. If the touch display device is in anti-mistouch mode, infrared light is emitted by an infrared lamp to calculate the size of the touch object, obtaining a target portion comparison value, where the target portion comparison value includes the target portion length and the target portion width. It is then determined whether the target portion comparison value is within a preset threshold. If the target portion comparison value is not within the preset threshold, it is determined whether infrared light passes through the touch object. If infrared light passes through the touch object, the touch object is determined to be a mis-touch object, and the command input to the touchscreen by the touch object is invalidated. In this embodiment of the invention, when a touch object is detected touching the touchscreen, it first checks whether the current touch display device is in anti-mistouch mode. If so, it simultaneously determines whether the touch object is a mis-touch object based on the size of the touch object and whether infrared light passes through the touch object. This achieves the judgment of the touch object through multiple judgment criteria, thereby improving the recognition accuracy of anti-mistouch.

[0073] Please refer to Figure 7 As a response to the above Figure 1 To implement the method shown, this application provides an embodiment of an anti-accidental touch device, which is similar to... Figure 1 Corresponding to the method embodiments shown, the device can be specifically configured in various touch display devices.

[0074] like Figure 7 As shown, the anti-accidental touch device of this embodiment includes an infrared lamp and a touch screen. The anti-accidental touch device includes: a touch object detection module 51, a touch object size calculation module 52, a target part comparison value judgment module 53, and an accidental touch object confirmation module 54, wherein:

[0075] The touch object detection module 51 is used to determine whether the touch display device is in the anti-accidental touch mode if a touch object is detected touching the touch screen.

[0076] The touch object size calculation module 52 is used to calculate the size of the touch object by emitting infrared light through infrared lamps if the touch display device is in the anti-accidental touch mode, and obtain the target part comparison value of the touch object. The target part comparison value includes the length and width of the target part.

[0077] The target part comparison value judgment module 53 is used to determine whether the target part comparison value is within a preset threshold. If the target part comparison value is within the preset threshold, it is determined whether infrared light passes through the touched object.

[0078] The accidental touch object confirmation module 54 is used to determine that the touch object is an accidental touch object if infrared light passes through it, and to invalidate the instructions input to the touch screen by the touch object.

[0079] Furthermore, the touch object size calculation module 52 includes:

[0080] The unit for obtaining the shadow portion of the touch display device is used to obtain the shadow portion of the touch object that is blocked by the infrared light by emitting infrared light from the left and right directions and the up and down directions when the touch display device is in the anti-accidental touch mode.

[0081] The target part acquisition unit is used to acquire the occlusion shadow part at a preset height from the touch screen, as the target part of the touch object;

[0082] The contrast value calculation unit is used to calculate the length and width of the target part in order to obtain the contrast value of the target part of the touched object.

[0083] Furthermore, the target portion includes a shadowed area illuminated by infrared light from the left and right directions and a shadowed area illuminated by infrared light from the top and bottom directions. The contrast value calculation unit includes:

[0084] The target portion length calculation subunit is used to calculate the length of the longest part of the shadow portion illuminated by infrared light from the left and right directions, and obtain the target portion length;

[0085] The target portion width calculation subunit is used to calculate the width of the widest part of the shadow portion illuminated by infrared light from the vertical direction, thus obtaining the target portion width;

[0086] The target portion comparison value generation sub-unit is used to take the target portion length and target portion width as the target portion comparison value.

[0087] Furthermore, the preset threshold includes a first preset threshold and a second preset threshold, and the target part comparison value judgment module 53 includes:

[0088] The first judgment result generation unit is used to determine whether the length of the target part is within the first preset threshold and obtain the first judgment result.

[0089] The second judgment result generation unit is used to determine whether the width of the target part is within the second preset threshold and obtain the second judgment result.

[0090] The result judgment unit is used to determine whether infrared light passes through the touched object if the first judgment result is within the first preset threshold and the second judgment result is within the second preset threshold.

[0091] Furthermore, the result judgment unit includes:

[0092] The shadow acquisition subunit is used to acquire the shadow occlusion part of the touch object by the infrared light emitted by the infrared lamp if the first judgment result is within the first preset threshold and the second judgment result is within the second preset threshold.

[0093] The gap detection subunit is used to determine whether there is a gap in the part of the shadowed area that contacts the touch screen;

[0094] The first case generation subunit is used to determine that infrared light passes through the touch object if there is a gap in the part of the shadowed area that is in contact with the touch screen.

[0095] The second case generation subunit is used to determine that no infrared light passes through the touch object if there is no gap between the shadowed part and the part in contact with the touch screen.

[0096] Furthermore, the accidental object confirmation module 54 includes:

[0097] The accidental touch object detection unit is used to determine that the touched object is an accidental touch object if infrared light passes through it.

[0098] The target coordinate acquisition unit is used to acquire the coordinates of the touched object on the touch screen and obtain the target coordinates.

[0099] The instruction invalidation unit is used to acquire the instruction input at the target coordinates, treat it as an instruction input by the touch object to the touch screen, and invalidate the input instruction.

[0100] Furthermore, the anti-accidental touch device also includes:

[0101] The sensitivity level setting module is used to construct sensitivity levels based on preset thresholds, and to use different sensitivity levels as different sensitivity levels in the anti-mistouch mode.

[0102] To address the aforementioned technical problems, this application also provides a touch display device. Please refer to the following for details. Figure 8 , Figure 8 This is a basic structural block diagram of the touch display device in this embodiment.

[0103] In this embodiment, the touch display device 6 is a high-precision infrared touch device, which includes an infrared lamp, a touch screen, a memory, and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-mentioned anti-accidental touch method.

[0104] It should be noted that the figure only shows a touch display device 6 with three components: memory 61, processor 62, and network interface 63. However, it should be understood that it is not required to implement all the components shown; more or fewer components can be implemented instead. For example, the touch display device 6 may also include infrared lights and a touch screen. Those skilled in the art will understand that the touch display device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0105] The memory 61 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 61 may be an internal storage unit of the touch display device 6, such as the hard disk or memory of the touch display device 6. In other embodiments, the memory 61 may also be an external storage device of the touch display device 6, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the touch display device 6. Of course, the memory 61 may also include both the internal storage unit and the external storage device of the touch display device 6. In this embodiment, the memory 61 is typically used to store the operating system and various application software installed on the touch display device 6, such as program code for anti-accidental touch methods. In addition, memory 61 can also be used to temporarily store various types of data that have been output or will be output.

[0106] In some embodiments, processor 62 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. This processor 62 is typically used to control the overall operation of the touch display device 6. In this embodiment, processor 62 is used to run program code stored in memory 61 or process data, for example, to run the program code for the above-described anti-mistouch method to implement various embodiments of the anti-mistouch method.

[0107] The network interface 63 may include a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the touch display device 6 and other touch display devices.

[0108] This application also provides another embodiment, namely, a computer-readable storage medium storing a computer program that can be executed by at least one processor to cause the at least one processor to perform the steps of the above-described method for preventing accidental touches.

[0109] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.

[0110] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.

Claims

1. A method for preventing accidental touches, applied in a touch display device, characterized in that, The touch display device includes an infrared lamp and a touch screen, and the method includes: If a touch object is detected touching the touch screen, it is determined whether the touch display device is in anti-accidental touch mode; If the touch display device is in the anti-accidental touch mode, infrared light is emitted by the infrared lamp to calculate the size of the touched object and obtain the target part comparison value of the touched object, wherein the target part comparison value includes the target part length and the target part width; Determine whether the comparison value of the target part is within a preset threshold. If the comparison value of the target part is within the preset threshold, determine whether the infrared light passes through the touched object. If the infrared light passes through the touched object, the touched object is determined to be a false touch object, and the command input to the touch screen by the touched object is invalidated; The preset threshold includes a first preset threshold and a second preset threshold. The step of determining whether the comparison value of the target portion is within the preset threshold, and if the comparison value of the target portion is within the preset threshold, then determining whether infrared light passes through the touched object, includes: Determine whether the length of the target portion is within the first preset threshold to obtain a first determination result; Determine whether the width of the target portion is within the second preset threshold to obtain a second determination result; If the first judgment result is within the first preset threshold and the second judgment result is within the second preset threshold, then the shadow occlusion portion of the touched object by the infrared light emitted by the infrared lamp is obtained; Determine whether there is a gap between the part of the shadow occlusion and the part in contact with the touch screen; If there is a gap between the shadowed portion and the portion in contact with the touchscreen, it is determined that infrared light has passed through the touch object; If there is no gap between the shadowed portion and the contact portion of the touchscreen, it is determined that no infrared light passes through the touch object.

2. The method for preventing accidental touches according to claim 1, characterized in that, If the touch display device is in the anti-accidental touch mode, infrared light is emitted by the infrared lamp to calculate the size of the touched object and obtain a target portion comparison value of the touched object, including: If the touch display device is in the anti-accidental touch mode, the infrared light is emitted from the left and right directions and the up and down directions by the infrared lamp to obtain the shadow portion of the touch object blocking the infrared light; The occlusion shadow portion at a preset height from the touchscreen is obtained as the target portion of the touch object; Calculate the length and width of the target portion to obtain a target portion comparison value of the touched object.

3. The method for preventing accidental touches according to claim 2, characterized in that, The target portion includes a shadow portion illuminated by infrared light from the left and right directions and a shadow portion illuminated by infrared light from the top and bottom directions. The calculation of the length and width of the target portion to obtain a target portion contrast value of the touched object includes: The length of the target portion is obtained by calculating the length of the longest part of the shadow portion illuminated by infrared light from the left and right directions; The width of the target portion is obtained by calculating the width of the widest part of the shadow portion illuminated by infrared light from the vertical direction; The length and width of the target portion are used as the comparison values ​​of the target portion.

4. The method for preventing accidental touches according to claim 1, characterized in that, If the infrared light passes through the touched object, the touched object is determined to be a false touch, and the command input to the touchscreen by the touched object is invalidated, including: If the infrared light passes through the touched object, the touched object is determined to be an object that was accidentally touched. Obtain the coordinates of the touched object on the touchscreen to obtain the target coordinates; The instruction input at the target coordinates is obtained as the instruction input by the touch object to the touch screen, and the input instruction is invalidated.

5. The method for preventing accidental touch according to any one of claims 1 to 4, characterized in that, The method further includes: Based on the preset threshold, a sensitivity level is constructed, and different sensitivity levels are used as different sensitivity levels in the anti-mistouch mode.

6. A device for preventing accidental touches, applied in a touch display device, characterized in that, The touch display device includes an infrared lamp and a touch screen, and the device includes: A touch object detection module is used to determine whether the touch display device is in anti-mistouch mode if a touch object is detected touching the touch screen. The touch object size calculation module is used to calculate the size of the touch object by emitting infrared light through the infrared lamp if the touch display device is in the anti-accidental touch mode, and to obtain the target part comparison value of the touch object, wherein the target part comparison value includes the target part length and the target part width; The target part comparison value judgment module is used to determine whether the target part comparison value is within a preset threshold. If the target part comparison value is within the preset threshold, it is then determined whether the infrared light passes through the touched object. The accidental touch object confirmation module is used to determine that the touch object is an accidental touch object if the infrared light passes through the touch object, and to invalidate the instructions input to the touch screen by the touch object. The preset threshold includes a first preset threshold and a second preset threshold, and the target portion comparison value judgment module includes: The first judgment result generation unit is used to determine whether the length of the target part is within the first preset threshold and obtain the first judgment result. The second judgment result generation unit is used to determine whether the width of the target portion is within the second preset threshold, and to obtain the second judgment result. The shadow acquisition subunit is used to acquire the shadow occlusion portion of the touch object by the infrared light emitted by the infrared lamp if the first judgment result is within the first preset threshold and the second judgment result is within the second preset threshold. The gap detection subunit is used to determine whether there is a gap between the part of the shadow occlusion and the part of the touch screen in contact; The first case generation subunit is used to determine that infrared light passes through the touch object if there is a gap in the part of the shadow occlusion that is in contact with the touch screen. The second case generation subunit is used to determine that no infrared light passes through the touch object if there is no gap between the shadow occlusion portion and the contact portion of the touch screen.

7. A touch display device, characterized in that, It includes an infrared lamp, a touch screen, a memory, and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the anti-accidental touch method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the anti-accidental touch method as described in any one of claims 1 to 5.