A detection method, a touch control device, and a storage medium
By combining the method of position detection and elastic wave detection modules, feature information is extracted and compared to accurately identify touch pen types, which solves the problem of difficulty in detecting different touch pens on whiteboards in the existing technology and improves the writing experience.
Patent Information
- Application Number
- CN202110485787.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-04-30
AI Technical Summary
Existing conference and educational whiteboards have difficulty accurately detecting different touch pen types, resulting in a poor writing experience.
Using a method that combines the position detection module and the elastic wave detection module, through infrared detection and elastic wave signal analysis, position detection information and elastic wave signal information are obtained, features are extracted and compared with the pre-stored feature library to determine the type of the touch object.
It improves the accuracy of touch pen type judgment, reduces possible errors in single signal judgment, and enhances the writing experience.
Smart Images

Figure CN113126835B
Abstract
Description
Technical Field
[0001] The present invention relates to touch technology, and more particularly to a detection method, a touch device, and a computer-readable storage medium. Background Art
[0002] In the common conference whiteboards and educational whiteboards on the market, in order to improve the writing experience, multiple touch pens are usually provided, and different writing handwriting is provided for different touch pens, such as writing handwriting of different colors. Therefore, it is necessary to provide a method for detecting a touch pen. Summary of the invention
[0003] The embodiments of the present application provide a detection method, a touch control device, and a computer-readable storage medium, which can detect different touch objects.
[0004] The embodiment of the present application provides a detection method, which is applied to a touch control device including a position detection module, an elastic wave detection module and a touch panel, wherein the position detection module is configured to perform infrared detection on an area where the touch panel is located, and the elastic wave detection module is configured to detect an elastic wave signal of the touch panel. The detection method includes:
[0005] Acquire first detection information of the position detection module, and acquire second detection information of the elastic wave detection module;
[0006] The type of the touch object is determined according to the first detection information and the second detection information.
[0007] In an exemplary embodiment, determining the type of the touch object according to the first detection information and the second detection information includes:
[0008] Feature extraction is performed according to the first detection information and the second detection information, and the extracted features are compared with a pre-stored feature library to determine the type of the touch object.
[0009] In an exemplary embodiment, before acquiring the first detection information of the position detection module, the method includes: determining whether a touch object touches the touch panel.
[0010] In an exemplary embodiment, the determining whether a touch object touches the touch panel includes:
[0011] A first elastic wave signal of the elastic wave detection module is acquired, and the first elastic wave signal is preprocessed. When the preprocessing result meets a preset condition, it is determined that there is a touch object touching the touch panel.
[0012] In an exemplary embodiment, before obtaining the first elastic wave signal of the elastic wave detection module, it also includes: receiving a contact event reported by the position detection module, and recording the current moment as the first moment; the first elastic wave signal at least includes the elastic wave signal within a first preset time period starting from the first moment.
[0013] In an exemplary embodiment, the preprocessing result includes: first positioning information, and at least one of the following: a relationship between touch force, amplitude, and ringing rate;
[0014] The first detection information is generated in the following manner: determining an infrared judgment threshold according to at least one of the touch force and the relationship between the amplitude and the ringing rate, performing an infrared scan at the position corresponding to the first positioning information, and determining the first detection information according to the scanning information and the infrared judgment threshold.
[0015] In an exemplary embodiment, the second detection information includes: a second elastic wave signal, the second elastic wave signal at least including an elastic wave signal within a second preset period starting from the first moment, the second preset period being greater than the first preset period;
[0016] The preprocessing result includes: first positioning information;
[0017] The determining the type of the touch object according to the first detection information and the second detection information comprises:
[0018] Extracting features according to the first positioning information and the second detection information in the preprocessing result, comparing the extracted features with a pre-stored feature library, and outputting a feature type or a touch object type;
[0019] The feature type is modified according to the first detection information, and the type of the touch object is determined according to the modified feature type; or the type of the touch object is modified according to the first detection information.
[0020] In an exemplary embodiment, before extracting features according to the first detection information and the second detection information, or correcting the feature type or the touch object type according to the first detection information, it also includes: confirming that the touch object is the only touch object on the touch panel.
[0021] In an exemplary embodiment, the confirming that the touch object is the only touch object on the touch panel includes:
[0022] There is only a current touching object on the touch panel, or the intensity of elastic wave signals generated by other touching objects except the current touching object is less than a preset threshold.
[0023] In an exemplary embodiment, determining the type of the touch object according to the first detection information and the second detection information includes:
[0024] When the touch object is not the only touch object on the touch panel, characteristics of other touch objects are determined according to types of other touch objects except the current touch object, and characteristics are extracted according to the first detection information and the second detection information. After removing characteristics of other touch objects from the extracted characteristics, the characteristics are compared with a pre-stored feature library to determine the type of the touch object.
[0025] In an exemplary embodiment, the touch object is not the only touch object on the touch panel comprises: the strength of elastic wave signals of other touch objects other than the current touch object is greater than or equal to a preset threshold.
[0026] In an exemplary embodiment, the first detection information includes at least one of the following: a touch position, a cross-sectional area of a touch object, the number of touch objects, and a touch identifier corresponding to the touch object.
[0027] An embodiment of the present disclosure provides a touch control device, including a memory and a processor, wherein the memory stores a program, and when the program is read and executed by the processor, the above-mentioned detection method is implemented.
[0028] An embodiment of the present disclosure provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the above-mentioned detection method.
[0029] The embodiment of the present application includes a detection method, which is applied to a touch device including a position detection module, an elastic wave detection module and a touch panel, wherein the position detection module is configured to perform infrared detection on the area where the touch panel is located, and the elastic wave detection module is configured to detect the elastic wave signal of the touch panel, and the detection method includes: obtaining first detection information of the position detection module, obtaining second detection information of the elastic wave detection module; and determining the type of the touch object according to the first detection information and the second detection information. The detection method provided in this embodiment uses the detection information of the position detection module and the detection information of the elastic wave detection module to determine the type of the touch object, thereby reducing the error that may be caused by using a single signal for judgment and improving the accuracy of the judgment.
[0030] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0032] Figure 1 A flow chart of a detection method provided in an embodiment of the present disclosure;
[0033] Figure 2a A flow chart of the first part of a detection method provided for an exemplary embodiment;
[0034] Figure 2b A flow chart of the second part of the detection method provided for an exemplary embodiment;
[0035] Figure 3 A schematic diagram of an infrared detection optical path provided by an exemplary embodiment;
[0036] Figure 4 A schematic diagram of feature removal provided for an exemplary embodiment;
[0037] Figure 5 A feature modification schematic diagram provided for an exemplary embodiment;
[0038] Figure 6 A schematic diagram of a touch control device provided in an embodiment of the present disclosure;
[0039] Figure 7 Schematic diagram of a computer-readable storage medium provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0040] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is apparent to those of ordinary skill in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.
[0041] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.
[0042] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.
[0043] When touch objects of different materials come into contact with the touch panel, the elastic wave signals and infrared signals generated are different. Therefore, the type of the touch object can be detected by the elastic wave signals and infrared signals. A feature library can be established in advance. The feature library can include features and feature types. A feature type can include multiple features. The feature type corresponds to the touch object type. Different feature types may correspond to the same touch object type, or the feature library can include features and touch object types. Features are extracted from the first detection information obtained from the infrared detection signal and the second detection information obtained from the elastic wave signal, and compared with the feature library to determine the type of the touch object. After obtaining the type of the touch object, different writing handwriting can be set for different types of touch objects, such as writing handwriting of different colors, or writing handwriting of different line types, etc., so as to enhance the user's writing experience.
[0044] The embodiment of the present disclosure provides a touch control device, including a position detection module, an elastic wave detection module and a touch panel. The position detection module may include a transmitting end and a receiving end, the transmitting end sends an infrared detection signal, the receiving end receives the infrared detection signal, and forms an infrared detection optical path. The area covered by the infrared detection optical path is called the detection area. When the touch object enters the detection area, the touch point (touch position) of the touch object can be detected, and the cross-sectional area of the touch object can be detected. The touch object can be any object, such as a matching stylus, or a pencil, or a finger, etc. The elastic wave detection module may include a plurality of elastic wave sensors, and the elastic wave sensors can detect the elastic wave signals generated by the touch panel being hit. The elastic wave sensor may be a piezoelectric ceramic sensor, a piezoelectric film sensor, a piezoelectric crystal sensor, or other sensors with a piezoelectric effect. The touch panel may be a panel with a display function, or a panel without a display function.
[0045] Figure 1 A flow chart of a detection method provided by an embodiment of the present disclosure. Figure 1 As shown, the detection method provided by the embodiment of the present disclosure is applied to a touch control device including a position detection module, an elastic wave detection module and a touch panel, wherein the position detection module is configured to perform infrared scanning on the area where the touch panel is located, and the elastic wave detection module is configured to detect the elastic wave signal of the touch panel, and the detection method includes:
[0046] Step 101, obtaining first detection information of the position detection module and obtaining second detection information of the elastic wave detection module;
[0047] Step 102: Determine the type of the touch object according to the first detection information and the second detection information.
[0048] The detection method provided in this embodiment uses the first detection information of the position detection module and the second detection information of the elastic wave detection module to determine the type of the touch object, thereby reducing the error that may be caused by using a single signal for determination and improving the accuracy of the determination.
[0049] In an exemplary embodiment, before obtaining the first detection information of the position detection module, the step may include: determining whether a touch object touches the touch panel. Whether a touch object touches the touch panel may be detected by the position detection module, or by the elastic wave detection module, or by a combination of the two.
[0050] In an exemplary embodiment, an elastic wave detection module may be used to detect whether a touch object is touching the touch panel, and the presence of a touch object touching the touch panel includes: acquiring a first elastic wave signal from the elastic wave detection module; preprocessing the first elastic wave signal, and when the preprocessing result meets a preset condition, determining that a touch object is touching the touch panel.
[0051] For example, the preprocessing result may include: at least one of the touch force E0 and the relationship between the amplitude and the ringing rate E1; the preprocessing result satisfying the preset condition may be:
[0052] The touch force E0 is greater than the preset trigger force E, or,
[0053] The relationship E1 between the amplitude and the ringing rate satisfies a preset relationship interval, or,
[0054] The touch force E0 is greater than the preset trigger force E, and the relationship E1 between the amplitude and the ringing rate satisfies the preset relationship interval.
[0055] The above preset conditions are only examples and may be other conditions, which are not limited in the embodiments of the present disclosure.
[0056] In an exemplary embodiment, before obtaining the first elastic wave signal of the elastic wave detection module, it includes: receiving a contact event reported by the position detection module, recording the current moment as the first moment; the first elastic wave signal at least includes an elastic wave signal within a first preset time period starting from the first moment. That is, it can be combined with the position detection module to determine whether there is a touch object touching the touch panel, and after receiving the contact event, it can be determined whether there is a touch object touching the touch panel. However, the embodiments of the present disclosure are not limited to this, and the judgment can be made directly based on the signal of the elastic wave detection module.
[0057] In an exemplary embodiment, the preprocessing result may further include: first positioning information;
[0058] The first detection information can be generated in the following manner: determining an infrared judgment threshold according to at least one of the relationship between the touch force, amplitude and ringing rate, performing an infrared scan at the position corresponding to the first positioning information, and determining the first detection information according to the scanning information and the infrared judgment threshold.
[0059] In an exemplary embodiment, the first detection information may include at least one of the following: a touch position, a cross-sectional area of a touch object, a number of touch objects, and a touch ID corresponding to the touch object. The touch ID may include one or more touch IDs of the touch object. The touch ID may be an ID assigned to the touch object by the position detection module.
[0060] In an exemplary embodiment, the number of touch objects may not be carried, and the number of touch objects may be determined based on the number of touch IDs; or, when there is only one touch object, the number of touch objects may not be carried, and when there are multiple touch objects, the number of touch objects may be carried.
[0061] In an exemplary embodiment, the first detection information may include a touch order. For example, the touch order may be implicitly indicated by the arrangement order of the touch IDs, or the touch ID may implicitly indicate the touch order, for example, the larger the touch ID value, the later the touch order, or the information indicating the touch order may be added, for example, indicating that each touch ID is the first touch object, the second touch object, etc., or only the current touch object (i.e., the touch object that last touched the touch panel) may be indicated. If there is currently no touch object on the touch panel, and the user uses a touch pen (referred to as the first touch pen) to start touching, the first touch pen is the first touch object; if the first touch pen keeps touching, the user (which may be the same user or another user) uses another touch pen (referred to as the second touch pen) to start touching the touch panel, then the second touch pen is the second touch object. It is similar when there are more touch objects, and will not be repeated.
[0062] In an exemplary embodiment, determining the type of the touch object according to the first detection information and the second detection information includes:
[0063] Feature extraction is performed according to the first detection information and the second detection information, and the extracted features are compared with a pre-stored feature library to determine the type of the touch object.
[0064] In an exemplary embodiment, the feature library may contain frequency feature point information of elastic wave signals generated by clicking on a touch panel with different materials; for example, it may include: frequency feature point ratio information of the same material under different force states, frequency feature point ratio information of the same material under different positions, frequency feature point ratio information of the same material under different angles, frequency feature point ratio information of different areas, etc. When extracting features, the elastic wave signal in the time domain may be converted into a frequency domain signal, and then the feature information may be extracted. The feature information contained in the above feature library is only an example, and other feature information may be contained.
[0065] For example, frequency feature points and proportion information are extracted based on the second detection information, and position information and area information are obtained based on the first detection information. The proportion information of the frequency feature points is adjusted using the position information and area information to obtain updated frequency feature points and proportion information. The type of touch object is determined by comparing the updated frequency feature points and proportion information with the feature library; or, the feature type is determined based on the updated frequency feature points and proportion information, and then the type of touch object corresponding to the feature type is determined.
[0066] In an exemplary embodiment, the second detection information may include: a second elastic wave signal, the second elastic wave signal at least including an elastic wave signal within a second preset period starting from the first moment, the second preset period being greater than the first preset period;
[0067] The preprocessing result includes: first positioning information;
[0068] The determining the type of the touch object according to the first detection information and the second detection information comprises:
[0069] Extracting features according to the first positioning information and the second detection information in the preprocessing result, comparing the extracted features with a pre-stored feature library, and outputting feature types;
[0070] The feature type is modified according to the first detection information, and the type of the touch object is determined according to the modified feature type.
[0071] In this embodiment, the second detection information is obtained first, and features can be extracted based on the second detection information, compared with the feature library, to obtain feature type information or touch object type information, and then the first detection information is obtained and then corrected. In an exemplary embodiment, when the first detection information is not obtained later, the touch object type information determined based on the second detection information can be directly output.
[0072] In an exemplary embodiment, before extracting features according to the first detection information and the second detection information, or correcting the feature type according to the first detection information, it also includes: confirming that the touch object is the only touch object on the touch panel. That is, the above implementation scheme for determining the touch object type is for the case where there is only one touch object, or there are multiple touch objects but the elastic wave signal strength of other touch objects is small and can be ignored.
[0073] In an exemplary embodiment, the confirming that the touch object is the only touch object on the touch panel includes:
[0074] There is only the current touch object on the touch panel, or the intensity of the elastic wave signal generated by other touch objects except the current touch object is less than the preset threshold. That is, there is actually only one touch object, or there are multiple touch objects, but the intensity of the elastic wave signal of other touch objects is less than the preset threshold. The current touch object is the touch object that has most recently touched the touch panel. For example, when there is a first touch object touching the touch panel, and the second touch object is used to touch the touch panel, the second touch object is the current touch object. The intensity of the elastic wave signal of other touch objects can be determined based on the elastic wave signal before the current touch object touches the touch panel.
[0075] In an exemplary embodiment, the intensity of the elastic wave signal generated by the other touch objects except the current touch object is less than the preset threshold value means that the intensity of the elastic wave signal generated by all other touch objects except the current touch object is less than the preset threshold value. That is, when the intensity of the mixed elastic wave signal generated by all other touch objects except the current touch object is less than the preset threshold value, the touch object is confirmed to be the only touch object on the touch panel. Alternatively, when there are multiple other touch objects, it can be determined whether the intensity of the elastic wave signal of each touch object is less than the preset threshold value. When the intensity of the elastic wave signal of each other touch object except the current touch object is less than the preset threshold value, the touch object is confirmed to be the only touch object on the touch panel.
[0076] When there are multiple touch objects (the elastic wave signal strength of other touch objects other than the current touch object is too large to be ignored), the touch object type of the current touch object is determined after removing the features of other touch objects. In an exemplary embodiment, determining the type of the touch object according to the first detection information and the second detection information includes:
[0077] When the touch object is not the only touch object on the touch panel, characteristics of other touch objects are determined according to types of other touch objects except the current touch object, and characteristics are extracted according to the first detection information and the second detection information. After removing characteristics of other touch objects from the extracted characteristics, the characteristics are compared with a pre-stored feature library to determine the type of the touch object.
[0078] In an exemplary embodiment, the feature of removing other touch objects may include two cases:
[0079] There is only one other touch object. In this case, the features of the other touch object can be removed. For example, the current touch object is the second touch object, and the other touch object is the first touch object. The first touch object has been detected before the second touch object is detected and the features of the first touch object are known. In this case, the features of the first touch object can be directly removed.
[0080] If there are multiple other touch objects, the features of the other touch objects may be removed respectively, or a joint feature of the other touch objects may be removed when they exist simultaneously. For example, if the current touch object is the third touch object, and the other touch objects are the first touch object and the second touch object, and the first touch object and the second touch object have been detected before the third touch object is detected, and the features of the first touch object and the second touch object are known, the features of the first touch object and the second touch object may be directly removed; or, feature information of the first touch object and the second touch object when they exist simultaneously may be obtained based on the elastic wave signal information before the third touch object is detected and the first detection information, and the feature information may be removed.
[0081] In an exemplary embodiment, the fact that the touch object is not the only touch object on the touch panel includes: the strength of the elastic wave signal of other touch objects other than the current touch object is greater than or equal to a preset threshold. When the strength of the elastic wave signal of other touch objects is less than the preset threshold, the current touch object is considered to be the only touch object on the touch panel. Taking the existence of two touch objects as an example, the current touch object is the second touch object, when the strength of the elastic wave signal of the first touch object is greater than or equal to the preset threshold, the second touch object is not the only touch object on the touch panel; when the strength of the elastic wave signal of the first touch object is less than the preset threshold, the first touch object can be ignored, and the second touch object is the only touch object on the touch panel. Taking the existence of three touch objects as an example, the current touch object is the third touch object, and before the third touch object touches the touch panel, the first touch object and the second touch object have already touched the touch panel. When the intensity of the elastic wave signal jointly generated by the first touch object and the second touch object (that is, the elastic wave signal obtained by mixing the elastic wave signal of the first touch object and the elastic wave signal of the second touch object) is greater than or equal to a preset threshold, or the intensity of at least one of the elastic wave signal of the first touch object and the second elastic wave signal is greater than or equal to the preset threshold, the third touch object is not the only touch object on the touch panel; when the intensity of the elastic wave signal jointly generated by the first touch object and the second touch object is less than the preset threshold, the first touch object and the second touch object can be ignored, and the third touch object is the only touch object on the touch panel.
[0082] In an exemplary embodiment, when there are multiple other touch objects, and only the strength of elastic wave signals of some of the other touch objects is greater than or equal to a preset threshold, the features of the other touch objects may be removed.
[0083] The technical solution of the present application is explained below through a specific example. Figure 2a and Figure 2b FIG. 1 is a flow chart of a detection method provided by an exemplary embodiment. Figure 2a and Figure 2b As shown, the detection method provided in this embodiment includes:
[0084] Step 201, the position detection module detects that the light is blocked, reports a possible contact event a to the elastic wave detection module, and records the current time t1;
[0085] In step 202, when the elastic wave detection module receives a contact event a, it can enter a high-speed mode and start collecting elastic wave signals within a first preset time period after moment t1, as well as possible cached elastic wave signals within a preset time period before moment t1, to obtain a first elastic wave signal. The first elastic wave signal may include elastic wave signals from moment t1 to moment t1' (moment t1' is after moment t1), as well as cached elastic wave signals from moment t1" (moment t1" is before moment t1) to moment t1, or may only include elastic wave signals from moment t1 to moment t1'.
[0086] The first preset time period can be set as needed.
[0087] In an exemplary embodiment, the acquisition mode of the elastic wave detection module may include a low-speed mode (idle state) and a high-speed mode (working state). The elastic wave detection module may enter the high-speed mode after receiving a contact event a, or the elastic wave detection module may enter the high-speed mode in other ways. The present disclosed embodiment is not limited to this.
[0088] Step 203, the elastic wave detection module performs preprocessing according to the first elastic wave signal and outputs a preprocessing result, wherein the preprocessing result may include: a rough positioning L0, and at least one of a touch force E0 and a relationship between an amplitude and a ringing rate E1;
[0089] Step 204, confirming whether the contact event a is valid according to the preprocessing result, when the contact event a is valid, executing step 205, when the contact event a is invalid, returning to step 201;
[0090] For example, when the touch force E0 is greater than the preset trigger force E, the contact event a is determined to be valid, or when the relationship E1 between the amplitude and the ringing rate satisfies a preset relationship interval, the contact event a is determined to be valid.
[0091] Step 205: the elastic wave detection module continues to collect elastic wave signals within the second preset time period starting from time t1, and the collection end time is recorded as t2; the time t2 is after time t1'; a second elastic wave signal is obtained, and the second elastic wave signal may include elastic wave signals from time t1 to time t2;
[0092] The length from time t1 to time t2 is a second preset period, and the second preset period can be set as needed.
[0093] Step 206, the position detection module enters a high-speed scanning mode of the local position L0, and determines an infrared judgment threshold according to the touch force E0 or the relationship between the amplitude and the ringing rate E1;
[0094] like Figure 3As shown, the infrared judgment threshold can be understood as the amount of shading light. The original infrared judgment threshold (threshold a) must detect at least 4 optical paths X1 to X4 and Y1 to Y4 in the X and Y directions. By adding the preprocessing results of the elastic wave detection module for judgment, the infrared judgment threshold (threshold b) can be reduced to 2 optical paths in the X and Y directions to determine the position.
[0095] Infrared position determination is done by switching different infrared photodiodes to emit infrared light in sequence. On a large screen, a full screen scan takes a long time, such as 6ms or longer. However, to ensure the accuracy of the infrared detection, multiple scans are required to determine the exact position, which results in a longer response time. On the other hand, multiple scans are also performed to confirm whether the touch is real, rather than a false touch due to other noise or interfering light.
[0096] After adding the preprocessing results of the elastic wave detection module, the position can be pre-determined. The position detection module can specifically control the infrared photodiode in the rough position L0 area, without scanning the entire screen, thus reducing the scanning time. In addition, the elastic wave detection module can determine whether the touch is real and not caused by an accidental touch. The position detection module can determine the position without waiting until the predetermined light path is completely blocked, thus reducing the signal processing time.
[0097] To sum up the above, combined with the information of the elastic wave detection module, the response time of infrared detection can be greatly improved, providing guarantee for subsequent processing.
[0098] In an exemplary embodiment, the preprocessing result may not include the rough positioning L0, and the position detection module performs detection by itself without referring to the detection information of the elastic wave detection module.
[0099] Step 207: The position detection module reports first detection information to the elastic wave detection module according to the intensity and area of the light occlusion. The first detection information may include at least one of the following: the detected position L, the cross-sectional area S of the touch object, the touch ID, and the number of touch objects. The time of reporting the first detection information is recorded as t3; the position L and the cross-sectional area S of the touch object are the position L and the cross-sectional area S of the current touch object.
[0100] The touch ID may include touch IDs corresponding to one or more touch objects on the touch panel, and the first detection information may also include touch sequence information of the touch objects.
[0101] The cross-sectional area of the touch object may be a cross-sectional area of the touch object on a plane parallel to the scanning direction of the infrared scanning light of the position detection module.
[0102] Step 208, after time t2 arrives, the elastic wave detection module determines whether the first detection information reported by the position detection module is received. When the first detection information reported by the position detection module is received (at this time, time t3 is before time t2), step 209 is executed; when the first detection information reported by the position detection module is not received (at this time, time t3 is after time t2), step 219 is executed;
[0103] Step 209, determining whether the current touch object is the first touch object, if the current touch object is the first touch object, executing step 210, if the current touch object is not the first touch object, executing step 213;
[0104] That is, it is determined whether there are other touch objects on the current touch panel. If not, it is the first touch object. If yes, it is not the first touch object. For example, there is no touch object on the touch panel, and the user uses a touch pen (called the first touch pen) to start touching, then the first touch pen is the first touch object; while the first touch pen keeps writing, another touch pen (called the second touch pen) starts to contact the touch panel, then the second touch pen is not the first touch object. The embodiments of the present application are not limited to two touch objects, and can be more touch objects. Whether the current touch object is the first touch object can be determined based on the information reported by the position detection module.
[0105] Step 210, performing feature extraction according to the position L and the cross-sectional area S of the touch object reported by the position detection module and the second elastic wave signal, extracting feature i, comparing it with a pre-stored feature library, and outputting a feature type;
[0106] Step 211, determining the touch object type P(i) according to the feature type;
[0107] In an exemplary embodiment, the feature type may not be output, and the touch object type may be directly output;
[0108] Step 212, confirm the touch object type P(i) corresponding to the touch ID, and execute step 227;
[0109] Step 213, determining the types of other touch objects except the touch object corresponding to the current touch ID;
[0110] The touch object types of other touch objects have been determined, and therefore, corresponding touch object types can be obtained.
[0111] Step 214, determining features t corresponding to types of other touch objects except the touch object corresponding to the current touch ID;
[0112] When there are multiple other touch objects, the features of the multiple touch objects may be determined respectively, or the joint features of the multiple touch objects when touching may be determined, for example, the joint features when there are the first touch object and the second touch object;
[0113] Step 215, determining whether the strength of the elastic wave signal generated by the touch object other than the touch object corresponding to the current touch ID exceeds a set threshold, if it is greater than or equal to the set threshold, executing step 216, if it is less than the set threshold, executing step 210;
[0114] The threshold value can be set as required.
[0115] For example, the touch object corresponding to the current touch ID is the second touch pen, and the first touch pen also exists on the touch panel. When the intensity of the elastic wave signal generated by the first touch pen is less than the set threshold, the first touch pen can be ignored and it is assumed that there is no other touch object; when the intensity of the elastic wave signal generated by the first touch pen is greater than or equal to the set threshold, the features of the first touch pen are removed after subsequent feature extraction; the intensity of the elastic wave signal of the first touch pen can be obtained by detecting the elastic wave signal before the second touch pen.
[0116] Step 216, input the position L and the cross-sectional area S of the touch object reported by the position detection module, and the second elastic wave signal into the elastic wave detection module for feature extraction, extract feature j, remove feature t from feature j, compare with the feature library, and output the feature type;
[0117] like Figure 4 As shown, the feature j (frequency feature point f and proportion information) detected in real time is subtracted from the existing touch object feature t (frequency feature point and proportion information) to obtain the current touch object feature.
[0118] Step 217, determining the touch object type P(j) according to the feature type;
[0119] Step 218, confirm the touch object type P(j) corresponding to the current touch ID, and execute step 227;
[0120] Step 219, input the rough positioning L0 and the second elastic wave signal into the elastic wave detection module for feature extraction, extract feature k, compare it with the feature library, and output the feature type;
[0121] Step 220, determining whether the first detection information reported by the position detection module is received, when the first detection information reported by the position detection module is received, executing step 221, when the first detection information reported by the position detection module is not received, executing step 223;
[0122] Step 221, determining whether the current touch object is the first touch object. When the current touch object is the first touch object (i.e., only the current touch object exists), executing step 222; when the current touch object is not the first touch object (i.e., there are other touch objects), executing step 224;
[0123] Step 222, correcting the feature type according to the position information L and the cross-sectional area S of the touch object reported by the position detection module, and determining the type of the touch object according to the feature type;
[0124] like Figure 5 As shown, after obtaining the position information L and the cross-sectional area S of the touch object, the proportion coefficients of the feature points of different frequencies in the features obtained in step 219 can be adjusted according to the information pre-stored in the feature library, and the touch object type is updated according to the adjusted frequency feature points and proportion coefficients.
[0125] Step 223, confirm the touch object type P(k) corresponding to the current touch ID, and execute step 227;
[0126] That is, confirm the touch object type of the current touch object;
[0127] Step 224, determining the types of other touch objects except the touch object corresponding to the current touch ID;
[0128] When there is only one other touching object, for example, the current touching object is the second touching object and the other touching object is the first touching object, the type of the first touching object is determined (determined before the second touching object is detected, and can be obtained from the stored information of the detected touching objects);
[0129] When there are multiple other touch objects, the types of the multiple touch objects are determined respectively. For example, if the current touch object is the third touch object and the other touch objects include the first touch object and the second touch object, the type of the first touch object and the type of the second touch object can be determined (determined before the third touch object is detected and can be obtained from the stored information of the detected touch objects);
[0130] Step 225, determining features t corresponding to types of other touch objects except the touch object corresponding to the current touch ID;
[0131] Step 226, determining whether the strength of the elastic wave signal generated by the touch object other than the touch object corresponding to the current touch ID is greater than or equal to a set threshold, if it is greater than or equal to the set threshold, executing step 216, if it is less than the set threshold, executing step 222;
[0132] Step 227: Output the position L, the touch object cross-sectional area S, and the corresponding touch object type P included in all touch IDs.
[0133] In an exemplary embodiment, only all touch IDs and touch object types P may be output.
[0134] In an exemplary embodiment, step 215 may be executed before step 213. In step 209, when the touch object corresponding to the touch ID is not the first touch object, step 215 is executed. In step 215, when the strength of the elastic wave signal generated by the touch objects other than the touch object corresponding to the current touch ID is greater than or equal to a set threshold, step 213 is executed. When the strength of the elastic wave signal generated by the touch objects other than the touch object corresponding to the current touch ID is less than the set threshold, step 210 is executed, thereby avoiding the execution of steps 213 and 214 when the strength of the elastic wave signal generated by the touch objects other than the touch object corresponding to the current touch ID is less than the set threshold.
[0135] In an exemplary embodiment, feature extraction may be performed after the position detection module reports the first detection information, that is, the solution of directly extracting features based on the first detection information is not performed.
[0136] In an exemplary embodiment, in step 219, after the elastic wave detection module outputs the characteristic type, step 220 may be executed after waiting for a preset time; or, after the elastic wave detection module outputs the characteristic type, step 220 may be executed directly.
[0137] In an exemplary embodiment, it may be determined whether the current touch object is the first touch object before step 220, and then it may be determined whether the information reported by the position detection module is received.
[0138] Figure 6 FIG. 1 is a schematic diagram of a touch control device provided by an embodiment of the present disclosure. Figure 6 As shown, the touch control device includes a memory 610 and a processor 620. The memory 610 stores a program, and when the program is read and executed by the processor 620, the above detection method is implemented.
[0139] Figure 7 A schematic diagram of a computer-readable storage medium is provided for an embodiment of the present disclosure. Figure 7 As shown, the computer-readable storage medium 70 stores one or more programs 710, and the one or more programs 710 can be executed by one or more processors to implement the above-mentioned detection method.
[0140] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
Claims
1. A detection method, applied to a touch control device comprising a position detection module, an elastic wave detection module and a touch panel, wherein the position detection module is configured to perform infrared detection on an area where the touch panel is located, and the elastic wave detection module is configured to detect an elastic wave signal of the touch panel. It is characterized in that The detection method comprises: Acquire a first elastic wave signal of the elastic wave detection module, and preprocess the first elastic wave signal, wherein the preprocessing result includes: first positioning information; Acquire first detection information of the position detection module, and acquire second detection information of the elastic wave detection module; wherein the second detection information includes: a second elastic wave signal; Determining the type of the touch object according to the first detection information and the second detection information, including: extracting features according to the first positioning information and the second detection information in the preprocessing result, comparing the extracted features with a pre-stored feature library, and outputting a feature type or a touch object type; When it is confirmed that the touch object is the only touch object on the touch panel: modifying the feature type according to the first detection information, and determining the type of the touch object according to the modified feature type; or modifying the type of the touch object according to the first detection information; When the touch object is not the only touch object on the touch panel: determining features of other touch objects according to types of other touch objects except the current touch object, performing feature extraction according to the first detection information and the second detection information, removing features of other touch objects from the extracted features, and comparing the features with a pre-stored feature library to determine the type of the touch object; wherein the current touch object is the touch object that last touched the touch panel.
2. The detection method according to claim 1, It is characterized in that Before obtaining the first detection information of the position detection module, it includes: determining whether there is a touch object touching the touch panel.
3. The detection method according to claim 2, It is characterized in that The determining whether a touch object touches the touch panel comprises: When the preprocessing result meets a preset condition, it is determined that there is a touch object touching the touch panel.
4. The detection method according to claim 3, It is characterized in that Before obtaining the first elastic wave signal of the elastic wave detection module, it also includes: receiving a contact event reported by the position detection module, and recording the current moment as the first moment; the first elastic wave signal at least includes the elastic wave signal within a first preset time period starting from the first moment.
5. The detection method according to claim 3, It is characterized in that The preprocessing result also includes at least one of the following: the relationship between the touch force, amplitude and ringing rate; The first detection information is generated in the following manner: determining an infrared judgment threshold according to at least one of the touch force and the relationship between the amplitude and the ringing rate, performing an infrared scan at the position corresponding to the first positioning information, and determining the first detection information according to the scanning information and the infrared judgment threshold.
6. The detection method according to claim 4, It is characterized in that The second elastic wave signal at least includes an elastic wave signal within a second preset time period starting from the first moment, and the second preset time period is greater than the first preset time period.
7. The detection method according to claim 1, It is characterized in that The confirming that the touch object is the only touch object on the touch panel comprises: There is only a current touching object on the touch panel, or the intensity of elastic wave signals generated by other touching objects except the current touching object is less than a preset threshold.
8. The detection method according to claim 1, It is characterized in that The touching object is not the only touching object on the touch panel comprises: the strength of elastic wave signals of other touching objects other than the current touching object is greater than or equal to a preset threshold.
9. The detection method according to any one of claims 1 to 6 and 8, It is characterized in that The first detection information includes at least one of the following: a touch position, a cross-sectional area of a touch object, the number of touch objects, and a touch identifier corresponding to the touch object. A larger touch identifier value corresponding to the touch object indicates a later touch order.
10. A touch device, It is characterized in that The method comprises a memory and a processor, wherein the memory stores a program, and when the program is read and executed by the processor, the detection method according to any one of claims 1 to 9 is implemented.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the detection method according to any one of claims 1 to 9.
