Infrared touch device touch recognition method, device, storage medium and device
By identifying and comparing the touch point characteristics of the infrared touch device, determining the sleeve area and blocking the touch points in the sleeve area, the problem of accidentally triggering of the infrared touch device due to the sleeve occlusion signal is solved, and the accuracy and stability of the touch recognition of the device are improved.
Patent Information
- Application Number
- CN202410640159.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-10-08
- Filing Date
- 2024-05-22
- Publication Date
- 2025-04-08
AI Technical Summary
When users wear wide sleeves, infrared touch devices are prone to accidentally triggering due to the sleeves blocking infrared signals, resulting in problems such as jumping points and disconnection.
By obtaining the touch point information of the current frame, comparing the characteristics of the touch point with the characteristics of the preset touch point, determining the target touch point, and determining the sleeve area according to the position of the target touch point. The corresponding touch operation is performed based on the touch point outside the sleeve area.
It improves the accuracy of touch recognition of infrared touch devices, reduces the probability of false triggering, and enhances the stability and reliability of the device.
Smart Images

Figure CN119781635A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of infrared touch devices, and in particular to a touch recognition method, device, storage medium and device for infrared touch devices. Background Art
[0002] The infrared touch device includes a plurality of relatively distributed infrared transmitters and infrared receivers. The infrared transmitters are turned on and emit infrared signals in sequence under the control of the controller. The corresponding infrared receivers receive the infrared signals and calculate whether a touch operation occurs based on the changes in the infrared signals received by each infrared receiver.
[0003] When a user touches the infrared touch device, the hem of the user's clothing may easily block the transmission of the infrared signal, causing false triggering of the infrared touch device. Summary of the invention
[0004] The embodiments of the present application provide a touch recognition method, apparatus, storage medium and device for an infrared touch device, which can improve the accuracy of touch recognition of the infrared touch device and reduce false triggering of the infrared touch device.
[0005] In a first aspect, an embodiment of the present application provides a touch recognition method for an infrared touch device, the method comprising the following steps:
[0006] In response to a touch operation on the infrared touch device, acquiring touch point information of a current frame; wherein the touch point information includes positions of a plurality of touch points and features of a plurality of the touch points;
[0007] Comparing the characteristics of each of the touch points with the characteristics of a preset touch point, and determining a target touch point that matches the characteristics of the preset touch point;
[0008] Determine the sleeve area according to the position of the target touch point;
[0009] Based on the touch point outside the sleeve area, a corresponding touch operation is performed.
[0010] In a second aspect, an embodiment of the present application provides a touch recognition device for an infrared touch device, the device comprising:
[0011] A touch point information acquisition module, used to acquire touch point information of a current frame in response to a touch operation on the infrared touch device; wherein the touch point information includes positions of a plurality of touch points and features of a plurality of the touch points;
[0012] A target touch point acquisition module, used to compare the characteristics of each touch point with the characteristics of a preset touch point, and determine a target touch point that matches the characteristics of the preset touch point;
[0013] A sleeve area determination module, used for determining the sleeve area according to the position of the target touch point;
[0014] The touch operation execution module is used to execute a corresponding touch operation based on a touch point outside the sleeve area.
[0015] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the touch recognition method for an infrared touch device as described in any one of the above.
[0016] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor; when the processor executes the computer program, the steps of the touch recognition method of the infrared touch device as described in any one of the above are implemented.
[0017] In an embodiment of the present application, by responding to a touch operation on an infrared touch device, touch point information of the current frame is obtained; the characteristics of each touch point are compared with the characteristics of a preset touch point to determine a target touch point that matches the characteristics of the preset touch point; the sleeve area is determined according to the position of the target touch point; and based on the touch point outside the sleeve area, a corresponding touch operation is performed to improve the accuracy of touch recognition of the infrared touch device and reduce false triggering of the infrared touch device.
[0018] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a schematic diagram of an application scenario of a touch recognition method of an infrared touch device in one embodiment of the present application;
[0020] Figure 2 This is a flow chart of a touch recognition method of an infrared touch device in one embodiment of the present application;
[0021] Figure 3 This is a schematic diagram of a sleeve touch point in one embodiment of the present application;
[0022] Figure 4 This is a flowchart of step S130 in one embodiment of the present application;
[0023] Figure 5 This is a schematic structural diagram of a touch recognition device for an infrared touch device in one embodiment of the present application;
[0024] Figure 6 This is a schematic diagram of the structure of an electronic device in one embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0026] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.
[0027] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0028] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments that match the present application. On the contrary, they are merely examples of devices and methods that match some aspects of the present application as detailed in the attached claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0029] In addition, in the description of this application, unless otherwise specified, "several" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0030] See also Figure 1 , which is a schematic diagram of an application scenario of the touch recognition method of the infrared touch device of the present application, such as Figure 1 As shown, the infrared touch device 100 includes a plurality of relatively distributed infrared transmitters 101 and infrared receivers 102. The infrared transmitters 101 are turned on and emit infrared signals in sequence under the control of the controller. The infrared signals propagate on the surface of the infrared touch device 100, and the corresponding infrared receivers 102 receive the infrared signals.
[0031] When the user touches the surface of the infrared touch device 100 , the infrared signal is blocked, and the infrared touch device determines the position of the touch point of the user according to the change of the infrared signal received by each infrared receiver 102 .
[0032] However, when a user wears clothing with wide sleeves and touches the infrared touch device, especially when the user touches the infrared touch device with the palm of the hand, the user's sleeves can easily block the infrared signal, causing the infrared touch device to mistakenly regard the position blocked by the sleeves as the touch point, resulting in point jumping, line disconnection, etc. on the infrared touch device, causing false triggering of the infrared touch device.
[0033] Therefore, in response to the above problems, Figure 2 As shown, the present application provides a touch recognition method for an infrared touch device, the method comprising the following steps:
[0034] S110: In response to a touch operation on the infrared touch device, acquiring touch point information of a current frame; wherein the touch point information includes positions of a plurality of touch points and features of a plurality of touch points.
[0035] It can be understood that the touch point information of the present application is the infrared touch information generated by blocking the infrared signal of the infrared touch device, including the infrared touch information generated when the touch object directly contacts the infrared touch device, and the infrared touch information generated when the touch object does not contact the infrared touch device but blocks the infrared signal because it is very close to the infrared touch device.
[0036] The features of the touch point may include feature information such as the size, shape, area, amount of light blocked, depth of light blocked, duration of the touch point, or number of touch points.
[0037] S120: Compare the features of the touch point with the features of the preset touch point to determine a target touch point that matches the features of the preset touch point.
[0038] In an optional embodiment, the preset touch point may be a historical target touch point of the infrared touch device, and the characteristics of the preset touch point may be obtained by acquiring historical touch data of the infrared touch device. The historical touch data may be historical frame scan data of the infrared touch device, and the historical touch data may include characteristics of historical touch points of various touch object types.
[0039] In another optional embodiment, the preset touch point may also be a preset target touch point set by the user according to actual needs or experience, and the characteristics of the preset touch point may be stored in the infrared touch device in advance and obtained directly from the infrared touch device.
[0040] In an optional embodiment, the target touch point may refer to a normal writing touch point generated by the user of the current frame touching the infrared touch device through the writing part. It should be understood that the writing part includes touch objects used by the user for normal writing, such as fingers, palms, and writing pens. For example, the touch point generated by the user's palm or fingers touching the infrared touch device, or the touch point generated by the user holding the writing pen to touch the infrared touch device. Of course, the writing touch point of the present application is not limited to the touch point generated by the user's writing, but also includes the normal touch point generated when the user normally touches the infrared touch device, for example, the touch point generated by normal touch operations such as clicking components with fingers, dragging components, etc.
[0041] In another optional embodiment, the target touch point may also be a sleeve touch point generated by the user's sleeve touching the infrared touch device or blocking the infrared emission line of the sleeve touching the infrared touch device in the current frame. It should be understood that the sleeve touch point of the present application is not limited to the touch point generated by the user's sleeve, but also includes the touch point generated by the jewelry worn by the user or other non-normal writing touch objects.
[0042] In the embodiment of the present application, the characteristics of the current touch point are compared with the characteristics of the preset touch point. If the characteristics of the current touch point match those of the preset touch point, the current touch point is determined to be the target touch point. If the characteristics of the current touch point do not match those of the preset touch point, the current touch point is determined to be a non-target touch point.
[0043] S130: Determine the sleeve area according to the position of the target touch point.
[0044] The sleeve area is an area where the sleeve of the user in the current frame touches the infrared touch device or blocks the infrared emission line.
[0045] It is understandable that different types of target touch points have different corresponding positions of the sleeve area and different ways of determining the sleeve area.
[0046] In the embodiment of the present application, the types of target touch points include writing touch points generated by normal contact of the writing part with the infrared touch device, sleeve touch points generated by contact of the sleeve with the infrared touch device, or sleeve touch points generated by blocking the infrared transmission signal of the infrared touch device.
[0047] If the target touch point is a writing touch point, considering that the sleeve area is usually an area with a certain relative position relationship with the target touch point, the sleeve area can be determined according to the position of the target touch point and the relative position relationship. The relative position relationship can be that the sleeve area is an area below the target touch point.
[0048] If the target touch point is a sleeve touch point, the sleeve area can be directly determined according to the position of the target touch point.
[0049] S140: performing a corresponding touch operation based on the touch point outside the sleeve area.
[0050] In an optional embodiment, by shielding the touch points in the sleeve area, corresponding touch operations can be performed based on unshielded touch points that are not in the sleeve area, that is, based on touch points outside the sleeve area.
[0051] It can be understood that when the touch point is located in the sleeve area, it is considered that the touch point is likely to be a touch point generated by the sleeve contacting the infrared touch device, that is, an abnormal touch point. At this time, the touch point can be shielded. At this time, the data of the shielded touch point can be discarded as invalid touch data, and the data of the unshielded touch point, that is, the data of the touch point outside the sleeve area is output as valid touch data, so that the relevant application performs the corresponding touch operation according to the valid touch data, thereby improving the accuracy of touch point recognition of the infrared touch device and reducing the probability of the infrared touch device being accidentally touched.
[0052] In an embodiment of the present application, in response to a touch operation on an infrared touch device, touch point information is obtained, characteristics of the touch point are compared with characteristics of a preset touch point, a touch point that matches the characteristics of the preset touch point is used as a target touch point, and the sleeve area is determined based on the position of the target touch point. Based on the touch point outside the sleeve area, a corresponding touch operation is performed, which can improve the accuracy of touch recognition of the infrared touch device and reduce false triggering of the infrared touch device.
[0053] In an optional embodiment, the type of the target touch point can be a writing touch point or a sleeve touch point. The present application determines the type of the target touch point based on the size, shape, area, number of light blocks, depth of light blocks, duration of the touch point, or number of touch points of the touch point and the preset touch point. The following will describe how to determine the type of the target touch point based on the correspondence of the features of the preset touch point.
[0054] It should be understood that the characteristics of the preset touch points are different depending on the type of the target touch points.
[0055] If the type of the target touch point is a writing touch point, the preset touch point features include a first area, an aspect ratio threshold, a speed range of a writing speed, an occlusion number threshold, an occlusion depth threshold and / or a distance threshold from other touch points.
[0056] Since the writing touch point is usually a touch point generated by a writing pen, the following takes the writing touch point as a touch point generated by a writing pen as an example to illustrate the method of identifying the writing touch point in the present application:
[0057] Feature 1: Usually, the contact area between the writing pen and the infrared touch screen is small, so the area of the touch point corresponding to the writing pen is usually small. In the embodiment of the present application, when the area of the touch point is within the first area range, it means that the touch point is likely to be the touch point of the writing pen. The first area range can be determined according to the size of the pen tip. In the embodiment of the present application, the first area range can be set to 3-50mm 2 , when the area of the touch point is larger than 50mm 2 , that is, the area of the touch point is too large, then the touch point at this time is very likely not the touch point of the writing pen.
[0058] Feature 2: The shape of the touch point corresponding to the writing pen is usually a round shape, while the shape of the touch point on the sleeve is usually a long and narrow polygon. Therefore, the aspect ratio threshold can be used to screen the touch points corresponding to the writing pen. Specifically, if the aspect ratio of the touch point is less than the aspect ratio threshold, it is determined that the touch point is likely to be the touch point corresponding to the writing pen. If the aspect ratio of the touch point is greater than or equal to the aspect ratio threshold, it is determined that the touch point is very likely not the touch point corresponding to the writing pen. In the embodiment of the present application, the aspect ratio threshold can be set to 5:2.
[0059] Feature 3: When a user uses a writing pen to write, the writing speed is usually within a certain speed range. When the movement speed of the touch point is within the speed range, it is considered that the current touch point is very likely to be the touch point corresponding to the writing pen; when the movement speed of the touch point is greater than the speed range, it is considered that the current touch point is very likely not the touch point corresponding to the writing pen; in the embodiment of the present application, the speed range can be 0.2-0.8m / s.
[0060] Feature 4: When a user uses a writing pen to write, the amount of light blocked by the writing pen is usually much smaller than the amount of light blocked by the sleeve. Therefore, in an embodiment of the present application, the type of the touch object of the touch point is determined based on whether the amount of light blocked by the touch point is less than the blocking amount threshold. When the amount of light blocked by the touch point is less than the blocking amount threshold, it is determined that the type of the touch object is likely to be a writing pen; when the amount of light blocked by the touch point is greater than the blocking amount threshold, it is determined that the type of the touch object is very likely not a writing pen.
[0061] Feature 5: When a user writes with a writing pen, the writing pen usually blocks light deeply, while the depth of light blocked by a sleeve is usually shallow. Therefore, in the embodiment of the present application, the type of the touch object can also be determined based on the depth of light blocked by the touch point. Specifically, when the depth of light blocked by the touch point is greater than the blocking depth threshold, it is determined that the type of the touch object is likely to be a writing pen; when the depth of light blocked by the touch point is less than the blocking depth threshold, it is determined that the type of the touch object is very likely not a writing pen. In the embodiment of the present application, the blocking depth threshold can be set to half of the depth of complete blocking.
[0062] Feature 6: Normally, when a user uses a writing pen to write on an infrared touch device, there is usually only one touch point. When other touch points are generated due to other interference, such as the sleeve touch point generated by the sleeve interference in this application, the touch point corresponding to the writing pen usually has a certain position difference from the sleeve touch point. Therefore, in the embodiment of the present application, the distance between the touch point and other touch points can be used as a judgment condition, and whether the touch point is the touch point corresponding to the writing pen is determined by judging whether the distance between the touch point and other touch points is greater than the distance threshold; specifically, when the distance between the touch point and other touch points is greater than the distance threshold, it is determined that the type of the touch object is likely to be a writing pen, and when the distance between the touch point and other touch points is less than the distance threshold, it is determined that the type of the touch object is very likely not a writing pen.
[0063] In the embodiment of the present application, in order to improve the accuracy of identifying the target touch object, when the characteristics of the touch point match any two or more characteristics of the preset touch point, the touch point is determined to be a target touch point and a writing touch point, such as a writing pen.
[0064] It can be understood that in order to further improve the accuracy of recognition, if the area of the touch point is within the first area range, the aspect ratio of the touch point is less than the aspect ratio threshold, the movement speed of the touch point is within the speed range, the amount of light blocked by the touch point is less than the blocking amount threshold, the depth of light blocked by the touch point is greater than the blocking depth threshold, and the distance between the touch point and other touch points is greater than the distance threshold, then the touch point is determined to be a target touch point and a writing touch point.
[0065] It can be understood that the above-mentioned feature values are only illustrative for the example of a writing pen. If the writing touch point is a finger or a palm, the corresponding feature value will be modified accordingly. If it is necessary to identify the finger, palm and writing pen as a writing touch point, the corresponding feature value will be determined by including the values of the fingers, palms and writing pens as much as possible. For example, if the value of the first area for identifying the writing pen is smaller than the value of the first area for identifying the palm, the value of the first area for identifying the palm will be used as the first area value for identifying the writing touch point to identify all types of writing touch points.
[0066] The type of the target touch point is a sleeve touch point, such as Figure 3 As shown, the touch points generated by sleeve occlusion are usually distributed more concentratedly, with a large area and different sizes. Therefore, it is possible to determine whether there are sleeve touch points based on the number, position, distance and area difference between touch points. Correspondingly, the characteristics of the preset touch points include the second area threshold, area difference threshold, distance difference threshold and quantity threshold. The method of identifying sleeve touch points in this application includes:
[0067] Feature 1: The area of the touch point is greater than the second area threshold.
[0068] The second area threshold is used to determine the area of the touch point on the sleeve. When the touch object type of the touch point is a writing pen, the second area threshold can be set to a value that exceeds the first area range corresponding to the writing pen, for example, it can be 50mm 2 Alternatively, in another embodiment, the second area threshold may also be set to 200 cm 2 , when the area of the touch point exceeds 200cm 2 , that is, the area of the current touch point is much larger than the area of the normal touch point. At this time, the touch point can be directly regarded as a sleeve touch point, so as to determine the sleeve area according to the sleeve touch point.
[0069] When the area difference between the two touch points is greater than the area difference threshold, it means that the area difference between the two touch points is large. At this time, it is considered that there is a high possibility that a sleeve touch point exists. The touch point with a larger area can be regarded as a sleeve touch point, or the two touch points can be regarded as sleeve touch points, so as to determine the sleeve area according to the sleeve touch points.
[0070] Feature 2: The number of touch points is at least two and the area difference between the two touch points is greater than the area difference threshold.
[0071] Feature 3: The number of touch points is at least two and the distance difference between at least two touch points is less than the distance difference threshold.
[0072] When the distance difference between two touch points is less than the distance difference threshold, it means that the distance between the two touch points is close, that is, the distribution area of the touch points is relatively concentrated. At this time, it is considered that there is a high possibility that a sleeve touch point exists, and the touch point with a larger area can be regarded as a sleeve touch point. Alternatively, the two touch points can be regarded as sleeve touch points, so that the sleeve area is determined according to the sleeve touch points.
[0073] In the embodiment of the present application, when the feature of the touch point matches any of the above features of the preset touch point, the touch point is determined to be a target touch point and a sleeve touch point.
[0074] It is understandable that in order to further improve the accuracy of recognition, the number of touch points is at least two. When there are more than two touch points, it is determined whether the target touch point is a sleeve touch point based on the distribution and area of the touch points.
[0075] See also Figure 4 In an optional embodiment, if the target touch point is a writing touch point; in step S130, the step of determining the sleeve area according to the position of the target touch point includes:
[0076] S1311: Determine the type of the writing touch object according to the characteristics of the target touch point.
[0077] If the target touch point is a writing touch point, the target touch point may include target touch points of various types of writing touch objects, such as fingers, palms, or writing pens, etc. Different types of writing touch objects have different characteristics of their target touch points.
[0078] When identifying the type of the writing touch object, the touch point may be matched with target touch points of all writing touch object types. When the touch point matches a touch point of a certain writing touch object type, the corresponding writing touch object type is obtained.
[0079] When identifying the type of written touch object, the touch point can also be compared with the target touch point of the preset written touch object type according to user needs. When the touch point matches the characteristics of the target touch point of the preset written touch object type, the touch point is determined to be the target touch object type.
[0080] Optionally, the step of determining the type of the writing touch object according to the characteristics of the target touch point includes:
[0081] If the feature of the target touch point meets the judgment condition of the target writing touch object type, the type of the touch object at the target touch point is determined to be the target writing touch object type.
[0082] The target writing touch object type can be determined according to the actual application scenario of the infrared touch device, for example, it can be a palm, a finger, a writing pen, etc. For different target writing touch object types, the corresponding judgment conditions are different. The judgment conditions can be set according to the characteristics of the target writing touch object type.
[0083] In the embodiment of the present application, the target writing touch object type may be a writing pen, and the judgment conditions for the target touch object type may be set according to the area of the touch point of the writing pen, the aspect ratio, the writing speed, the number of blocked light points, the depth of blocked light points, or the distance from other touch points.
[0084] S1312: Obtain relative position information between the sleeve area and the target touch point according to the type of the writing touch object.
[0085] The relative position information is used to determine the relative position relationship between the sleeve area and the target touch point. The relative position relationship may include information such as the distance and direction between the sleeve area and the target touch point.
[0086] For different types of writing touch objects, the position of the sleeve area is different, and the relative position information is also different. It can be understood that when the writing touch object is a palm, the sleeve area can be located below the palm, that is, the sleeve area is below the target touch point; when the writing touch object is a writing pen, the sleeve area can be located obliquely below or below the pen tip, that is, the sleeve area is located obliquely below or below the target touch point.
[0087] S1313: Determine the sleeve area according to the position and relative position information of the target touch point.
[0088] The sleeve area can be set to a sector shape, a rectangle shape, etc. according to the actual needs of the user, and the size of the sleeve area can be determined according to the distance between the user and the infrared touch screen.
[0089] In the embodiment of the present application, the type of the writing touch object is first determined according to the characteristics of the target touch point, and then the relative position relationship between the sleeve area and the target touch point is determined according to the type of the touch object. Then, the position of the sleeve area is determined according to the position and relative position relationship of the target touch point, so as to perform corresponding touch operations based on touch points that are not in the sleeve area, prevent abnormal touch points caused by sleeves, and improve the accuracy of touch point recognition.
[0090] In another optional embodiment, if the target touch point is a sleeve touch point; in step S130, the step of determining the sleeve area according to the position of the target touch point includes:
[0091] S1321: Obtain the sleeve region according to the position of the target touch point and the sleeve region information.
[0092] The sleeve region information is used to determine the range of the sleeve region where the sleeve touch point is located. The sleeve region information may include information such as the range, direction, and method of outward expansion.
[0093] In an optional embodiment, after the sleeve touch point is identified, an area near the sleeve touch point can be determined as the sleeve area according to the sleeve area information. For example, based on the sleeve touch point, the sleeve area can be expanded outward in a rectangular, circular, elliptical or other expansion manner with the sleeve touch point as the center according to the expansion direction and expansion range contained in the sleeve area information, thereby obtaining the sleeve area.
[0094] Among them, after identifying the sleeve touch points, when the number of sleeve touch points is large, or the area of the sleeve touch points is large, which has a greater impact on the touch recognition accuracy of the infrared touch device, the touch recognition method of the infrared touch device can be adjusted to reduce the recognition of the sleeve touch points and improve the accuracy of touch point recognition.
[0095] In an optional embodiment, the infrared touch device touch recognition method further includes the following steps:
[0096] If the number of touch points on the sleeve exceeds the number threshold, the filter parameters of the infrared touch device for identifying touch points are adjusted;
[0097] Alternatively, if the area of the touch point on the sleeve is greater than the third area threshold, adjusting the filter parameters of the infrared touch device for identifying the touch point;
[0098] Among them, the filtering parameters are used to filter abnormal touch points.
[0099] The third area threshold may be an area threshold of a sleeve touch point pre-set by a user. When the area of a sleeve touch point is greater than the third area threshold, it indicates that the sleeve touch point poses a greater threat to touch recognition of the infrared touch device. In this case, the abnormal touch points may be filtered out by adjusting the filtering parameters of the infrared touch device, thereby improving the touch recognition accuracy of the infrared touch device.
[0100] In an optional embodiment, the filtering parameters may include a pseudo-removal parameter, and the pseudo-removal parameter is used to identify pseudo points of the infrared touch device. The step of adjusting the filtering parameters for the infrared touch device to identify touch points includes:
[0101] Adjusting the anti-false parameters of the infrared touch device so that the infrared touch device can identify false points and filter the false points according to the adjusted anti-false parameters;
[0102] In the embodiment of the present application, when adjusting the anti-pseudo parameter, specifically, the threshold range of the anti-pseudo parameter can be adjusted. When identifying pseudo points, touch points that exceed the threshold range of the anti-pseudo parameter can be regarded as pseudo points. Alternatively, pseudo points can be identified based on the anti-pseudo parameter in combination with the existing anti-pseudo recognition algorithm, and the pseudo points can be filtered out by shielding or eliminating the pseudo points, thereby improving the touch recognition accuracy of the infrared touch device.
[0103] In another optional embodiment, the filtering parameters may include light shielding parameters, and the step of adjusting the filtering parameters for the infrared touch device to identify the touch point includes:
[0104] The shielding light parameters of the sleeve area of the infrared touch device are adjusted so that the infrared touch device can identify abnormal touch points according to the shielding light parameters and filter the abnormal touch points.
[0105] The light blocking parameters may include parameters such as the depth and quantity of the blocked light. When adjusting the light blocking parameters, the threshold range of the light blocking parameters may be adjusted specifically. When identifying abnormal touch points, touch points that exceed the threshold range of the light blocking parameters may be regarded as abnormal touch points, thereby filtering out pseudo points by shielding or eliminating abnormal touch points, thereby improving the touch recognition accuracy of infrared touch devices.
[0106] See also Figure 5 The embodiment of the present application further provides a touch recognition device for an infrared touch device, the device 200 comprising:
[0107] The touch point information acquisition module 210 is used to acquire the touch point information of the current frame in response to the touch operation on the infrared touch device; wherein the touch point information includes the positions of several touch points and the features of several touch points;
[0108] A target touch point acquisition module 220 is used to compare the characteristics of each touch point with the characteristics of a preset touch point, and determine a target touch point that matches the characteristics of the preset touch point;
[0109] A sleeve region determination module 230, for determining a sleeve region according to the position of a target touch point;
[0110] The touch operation execution module 240 is used to execute a corresponding touch operation based on a touch point outside the sleeve area.
[0111] In an optional embodiment, the target touch point acquisition module 220 is used to determine that the touch point is a target touch point and a writing touch point if the touch point information matches any two or more of the following features of a preset touch point:
[0112] The area of the touch point is within the first area range, the aspect ratio of the touch point is less than the aspect ratio threshold, the movement speed of the touch point is within the speed range, the number of blocked light rays of the touch point is less than the blocking number threshold, the depth of the blocked light rays of the touch point is greater than the blocking depth threshold, or the distance between the touch point and other touch points is greater than the distance threshold.
[0113] In another optional embodiment, the target touch point acquisition module 220 is used to determine that the target touch point is the target touch point and is a sleeve touch point if the touch point information matches any of the following features of the preset touch point:
[0114] The area of the touch point is greater than the second area threshold, the number of touch points is at least two and the area difference of two touch points is greater than the area difference threshold, or the number of touch points is at least two and the distance difference of at least two touch points is less than the distance difference threshold.
[0115] In an optional embodiment, the sleeve region determination module 230 includes:
[0116] A touch object type determination unit, used to determine the type of the writing touch object according to the characteristics of the target touch point;
[0117] A relative position information acquisition unit, used to acquire relative position information between the sleeve area and the target touch point according to the type of the writing touch object;
[0118] The first sleeve region determining unit is used to determine the sleeve region according to the position and relative position information of the target touch point.
[0119] In another optional embodiment, the sleeve region determination module 230 includes:
[0120] The second sleeve region determining unit is used to determine the sleeve region according to the position and relative position information of the target touch point.
[0121] In an optional embodiment, the apparatus 200 further includes:
[0122] A first filtering module, used for adjusting filtering parameters of the infrared touch device for identifying touch points when the number of touch points on the sleeve exceeds a number threshold;
[0123] A second filtering module, used for adjusting filtering parameters for the infrared touch device to identify the touch point when the area of the sleeve touch point is greater than a third area threshold;
[0124] Among them, the filtering parameters are used to filter abnormal touch points.
[0125] In an optional embodiment, the first filtering module is used to adjust the filtering parameters of the infrared touch device for identifying touch points, including: adjusting the anti-false parameters of the infrared touch device so that the infrared touch device identifies pseudo points according to the adjusted anti-false parameters and filters the pseudo points; and / or adjusting the light blocking parameters of the sleeve area of the infrared touch device so that the infrared touch device identifies abnormal touch points according to the light blocking parameters and filters the abnormal touch points.
[0126] In an optional embodiment, when the second filtering module adjusts the filtering parameters of the infrared touch device to identify the touch points, it includes: adjusting the false removal parameters of the infrared touch device, so that the infrared touch device identifies the false points according to the adjusted false removal parameters and filters the false points; and / or adjusting the shielding light parameters of the sleeve area of the infrared touch device, so that the infrared touch device identifies the abnormal touch points according to the shielding light parameters, and filters the abnormal touch points
[0127] It should be noted that the infrared touch device touch recognition device provided in the above embodiment only uses the division of the above functional modules as an example when executing the infrared touch device touch recognition method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the infrared touch device touch recognition device provided in the above embodiment and the infrared touch device touch recognition method in the above embodiment belong to the same concept. The implementation process is detailed in the method embodiment and will not be repeated here.
[0128] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above-mentioned touch recognition methods for an infrared touch device are implemented.
[0129] The present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0130] See also Figure 6 , the present application also provides an electronic device 300, including a memory 301, a processor 302, and a computer program stored in the memory 301 and executable by the processor 302;
[0131] When the processor 302 executes the computer program, the steps of any one of the above-mentioned touch recognition methods for infrared touch devices are implemented.
[0132] The memory 301 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0133] The processor 302 is the control core (Control Unit) of the electronic device 300. It uses various interfaces and lines to connect the various components of the entire electronic device 300, and executes various functions and processes data of the electronic device 300 by running or executing programs or modules stored in the memory 301, and calling data stored in the memory 301. For example, when the processor 302 executes the computer program stored in the memory, it implements all or part of the steps of the touch recognition method of the infrared touch device in the embodiment of the present application; or implements all or part of the functions of the touch recognition device of the infrared touch device. The processor 302 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips.
[0134] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.
Claims
1. A touch recognition method for an infrared touch device, characterized in that: The following steps are involved: In response to a touch operation on the infrared touch device, acquiring touch point information of a current frame; wherein the touch point information includes positions of a plurality of touch points and features of a plurality of the touch points; Comparing the characteristics of each of the touch points with the characteristics of a preset touch point, and determining a target touch point that matches the characteristics of the preset touch point; Determine the sleeve area according to the position of the target touch point; Based on the touch point outside the sleeve area, a corresponding touch operation is performed.
2. The touch recognition method of infrared touch device according to claim 1, characterized in that: If the target touch point is a writing touch point, the step of determining the sleeve area according to the position of the target touch point includes: Determining the type of the writing touch object according to the characteristics of the target touch point; According to the type of the written touch object, relative position information between the sleeve area and the target touch point is obtained; A sleeve area is determined according to the position of the target touch point and the relative position information.
3. The touch recognition method of infrared touch device according to claim 1, characterized in that: If the target touch point is a sleeve touch point, the step of determining the sleeve area according to the position of the target touch point includes: The sleeve region is obtained according to the position of the target touch point and the sleeve region information.
4. The touch recognition method of an infrared touch device according to any one of claims 1 to 3, characterized in that: If the touch point information matches any two or more of the following features of a preset touch point, the touch point is determined to be a target touch point and a writing touch point: The area of the touch point is within a first area range, the aspect ratio of the touch point is less than an aspect ratio threshold, the movement speed of the touch point is within a speed range, the number of blocked light rays of the touch point is less than an blocking number threshold, the depth of the blocked light rays of the touch point is greater than an blocking depth threshold, or the distance between the touch point and other touch points is greater than a distance threshold.
5. The touch recognition method of an infrared touch device according to any one of claims 1 to 3, characterized in that: If the touch point information matches any of the following features of a preset touch point, the touch point is determined to be a target touch point and a sleeve touch point: The area of the touch point is greater than the second area threshold, the number of the touch points is at least two and the area difference of two touch points is greater than the area difference threshold, or the number of the touch points is at least two and the distance difference of at least two touch points is less than the distance difference threshold.
6. The touch recognition method of an infrared touch device according to any one of claims 1 to 3, characterized in that: The following steps are also included: If the target touch point is a sleeve touch point, and the number of the sleeve touch points exceeds a number threshold, adjusting a filter parameter for the infrared touch device to identify the touch point; Alternatively, if the target touch point is a sleeve touch point, and the area of the sleeve touch point is greater than a third area threshold, adjusting a filter parameter for the infrared touch device to identify the touch point; The filtering parameters are used to filter abnormal touch points.
7. The touch recognition method of infrared touch device according to claim 6, characterized in that: The step of adjusting the filtering parameters of the infrared touch device for identifying touch points comprises: Adjusting the anti-false parameter of the infrared touch device so that the infrared touch device identifies the false points according to the adjusted anti-false parameter and performs filtering processing on the false points; and / or, The shielding light parameters of the sleeve area of the infrared touch device are adjusted so that the infrared touch device can identify abnormal touch points according to the shielding light parameters and filter the abnormal touch points.
8. The touch recognition method of an infrared touch device according to any one of claims 1 to 3, characterized in that: The step of performing a corresponding touch operation based on the touch point outside the sleeve area includes: The touch points in the sleeve area are shielded, and corresponding touch operations are performed according to the unshielded touch points outside the sleeve area.
9. A touch recognition device for an infrared touch device, characterized in that: The device comprises: A touch point information acquisition module, used to acquire touch point information of a current frame in response to a touch operation on the infrared touch device; wherein the touch point information includes positions of a plurality of touch points and features of a plurality of the touch points; A target touch point acquisition module, used to compare the characteristics of each touch point with the characteristics of a preset touch point, and determine a target touch point that matches the characteristics of the preset touch point; A sleeve area determination module, used for determining the sleeve area according to the position of the target touch point; The touch operation execution module is used to execute a corresponding touch operation based on a touch point outside the sleeve area.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the touch recognition method of an infrared touch device as described in any one of claims 1 to 8 are implemented.
11. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable by the processor; when the processor executes the computer program, the steps of the touch recognition method of the infrared touch device as described in any one of claims 1 to 8 are implemented.