Screen touch determination method
By detecting screen touch operations and comparing the semaphore value with the target point threshold, the problem of inaccurate touch recognition of vehicle screen touch is solved, and the recognition accuracy and ability to avoid mist touch is improved.
Patent Information
- Application Number
- CN202510108742.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-02
AI Technical Summary
As the vehicle usage time increases, the touch sensing function of the vehicle screen decreases, resulting in inaccurate screen touch recognition.
By detecting the screen touch operation, the target signal value of the current frame is determined, and the target signal threshold is determined based on the point report result of the previous historical frame, and the signal value and threshold value are compared to the threshold value to judge the effectiveness of the touch operation.
It improves the recognition accuracy of screen touch, avoids false touch and static interference, and ensures the accuracy of point thresholds in different touch scenarios.
Smart Images

Figure CN119916971A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of signal processing, and in particular to a method for determining screen touch. Background Art
[0002] With the rapid development of vehicle technology, vehicles have become an important means of transportation in people's daily lives. When using a vehicle, users often view information or entertain themselves through the in-vehicle screen.
[0003] As the vehicle is used for a longer period of time, the touch perception function of the vehicle screen decreases, which leads to inaccurate screen touch recognition. Summary of the invention
[0004] In view of this, the purpose of the present disclosure is to propose a screen touch determination method, an electronic device and a vehicle, so as to solve the problem that as the vehicle is used for a longer time, the touch perception function of the vehicle screen decreases, which leads to inaccurate screen touch recognition.
[0005] Based on the above purpose, the first aspect of the present disclosure provides a screen touch determination method, the method comprising:
[0006] Detecting a screen touch operation, and determining a first target signal value of a current frame;
[0007] Obtain the historical reporting result of the previous historical frame of the current frame, and determine the target reporting threshold value according to the historical reporting result;
[0008] Comparing the first target signal value with the target reporting threshold to obtain a first comparison result;
[0009] The validity of the screen touch operation is determined according to the comparison result.
[0010] Based on the same inventive concept, the second aspect of the present disclosure proposes a screen touch determination device, comprising:
[0011] A detection module is configured to detect a screen touch operation and determine a first target signal value of a current frame;
[0012] A threshold determination module is configured to obtain a historical reporting result of a previous historical frame of a current frame, and determine a target reporting threshold according to the historical reporting result;
[0013] A comparison module is configured to compare the first target signal value with the target reporting threshold to obtain a first comparison result;
[0014] The touch determination module is configured to determine the validity of the screen touch operation according to the comparison result.
[0015] Based on the same inventive concept, the third aspect of the present disclosure proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the screen touch determination method as described above when executing the computer program.
[0016] Based on the same inventive concept, the fourth aspect of the present disclosure proposes a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the screen touch determination method as described above.
[0017] Based on the same inventive concept, the fifth aspect of the present disclosure provides a vehicle, including the screen touch determination device described in the second aspect or the electronic device described in the third aspect or the storage medium described in the fourth aspect.
[0018] As can be seen from the above, the present disclosure proposes a screen touch determination method, electronic device and vehicle, which detects a screen touch operation and determines the first target signal value of the current frame. The historical reporting result of the previous historical frame of the current frame is obtained, and the target reporting threshold is determined according to the historical reporting result. The corresponding reporting threshold is determined according to the reporting result of the previous historical frame, which is equivalent to determining the corresponding reporting threshold according to the touch signal amount. Different touch signal amounts correspond to different touch scenes. While avoiding false touch or electrostatic interference, the corresponding reporting threshold is selected for different touch scenes. When the validity of the screen touch operation is judged later, the judgment is more accurate. The first target signal value is compared with the target reporting threshold to obtain a first comparison result, and the validity of the screen touch operation is determined according to the first comparison result. By comparing the first target signal value with the target reporting threshold, it is determined whether the screen touch operation is valid, and the situation of screen change caused by false touch is avoided. At the same time, because the target reporting threshold is related to the historical reporting result, it is guaranteed that the reporting threshold corresponding to different touch scenes is more accurate, thereby improving the recognition accuracy of screen touch. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A flowchart of a screen touch determination method according to an embodiment of the present disclosure;
[0021] Figure 2 A flowchart of a screen touch determination method according to another embodiment of the present disclosure;
[0022] Figure 3 is a structural block diagram of a screen touch determination device according to an embodiment of the present disclosure;
[0023] Figure 4 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0025] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0026] With the rapid development of vehicle technology, vehicles have become an important means of transportation in people's daily lives. When using a vehicle, users often view information or entertain themselves through the in-vehicle screen.
[0027] With the development of intelligent cars, various entertainment configurations are gradually being installed in smart cockpits. As one of the more important applications, large-screen in-car entertainment is being adopted by major OEMs.
[0028] At the current stage, all OEMs have adopted a more beautiful and technologically advanced floating design for the central control and co-pilot large screens. However, this design is more susceptible to direct exposure to external ultraviolet rays because there is no brim to block the dashboard, especially in the scorching summer and in export regions such as Europe and the Middle East. The above high ultraviolet illumination and high temperature scenarios have far exceeded the temperature durability and UV ultraviolet test standards required for the design and development of the display polarizer. If the vehicle is exposed to the sun for a long time in such harsh scenarios, it will cause partial failure of the display polarizer, which will lead to partial abnormality of the display touch function, and then cause inaccurate screen touch recognition, resulting in a poor user experience for customers.
[0029] Based on the above description, this embodiment proposes a screen touch determination method, such as Figure 1 As shown, the method includes steps 101 to 104.
[0030] Step 101: Detect a screen touch operation and determine a first target signal value of a current frame.
[0031] During the specific implementation, a screen touch operation is detected, which means that the user's finger touches the display screen. The display screen is a screen inside the vehicle, and the display screen includes at least one of the following: vehicle instrument screen, vehicle central control screen, vehicle air-conditioning screen, co-pilot entertainment screen, co-pilot ceiling screen, rear ceiling screen, rear seat back screen, etc.
[0032] Determine the first target signal value of the current frame, wherein the current frame represents the frame corresponding to when the screen touch operation is detected. In the present application, because the touch scenes include the user clicking the screen, the user continuously pressing the screen, the user drawing or writing on the screen, etc., the corresponding user touch operation can be a single-point touch or a continuous press touch. The detection of the screen touch operation is to scan and detect once at preset time intervals, so a user touch may correspond to multiple preset time intervals. Therefore, the current frame represents the frame corresponding to each time the screen touch operation is detected.
[0033] Exemplarily, the preset time interval in the present application is 8.3 ms, and the duration of a user touch is 1 second, which corresponds to approximately 120 frames.
[0034] In this embodiment, when the user touches the screen, there are signals directly below and around the user's finger, and the signal directly below the finger is the largest, so it is more accurate to use the maximum signal value to detect whether it is a valid touch. Therefore, the first target signal value in this embodiment is the maximum signal value corresponding to the screen touch operation, that is, the signal value corresponding to the area directly below the finger.
[0035] Step 102, obtaining the historical reporting result of the previous historical frame of the current frame, and determining the target reporting threshold value according to the historical reporting result.
[0036] In a specific implementation, a historical point reporting result of a previous historical frame of the current frame is obtained, wherein the historical point reporting result is a point reporting or a point not reporting. Point reporting refers to the process of comparing the change of the capacitance value with a preset threshold value to detect which point is touched.
[0037] Specifically, if the historical point reporting result is a point reporting result, it means that a valid touch operation was detected in the previous historical frame of the current frame. If the historical point reporting result is a point not reporting result, it means that no valid touch operation was detected in the previous historical frame of the current frame. That is, the touch may be invalid or the user did not perform a touch.
[0038] Different historical point reporting results correspond to different point reporting thresholds, and a target point reporting threshold corresponding to the historical point reporting results is determined based on the historical point reporting results.
[0039] Step 103: compare the first target signal value with the target reporting threshold to obtain a first comparison result.
[0040] In a specific implementation, the first target signal value is compared with the target reporting threshold to obtain a first comparison result, wherein the first comparison result includes that the first target signal value is greater than the target reporting threshold, the first target signal value is equal to the target reporting threshold, or the first target signal value is less than the target reporting threshold.
[0041] In this embodiment, the signal value is the difference of rawdata (rawdata when touched-rawdata when not touched), and rawdata is the value converted from the capacitance collected by IC.
[0042] Step 104: Determine the validity of the screen touch operation according to the first comparison result.
[0043] In specific implementation, the first target signal value is compared with the target reporting threshold, and whether the screen touch operation is valid is determined based on the determined first comparison result, and then the reporting result corresponding to the current frame is determined to be a reporting point or no reporting point, thereby improving the recognition accuracy of the screen touch.
[0044] Through the above scheme, the screen touch operation is detected and the first target signal value of the current frame is determined. The historical reporting result of the previous historical frame of the current frame is obtained, and the target reporting threshold is determined according to the historical reporting result. The corresponding reporting threshold is determined according to the reporting result of the previous historical frame, which is equivalent to determining the corresponding reporting threshold according to the touch signal amount. Different touch signal amounts correspond to different touch scenes. While avoiding false touch or electrostatic interference, the corresponding reporting threshold is selected for different touch scenes. When the validity of the screen touch operation is judged later, the judgment is more accurate. The first target signal value is compared with the target reporting threshold to obtain a first comparison result, and the validity of the screen touch operation is determined according to the first comparison result. By comparing the first target signal value with the target reporting threshold, it is determined whether the screen touch operation is valid, and the situation of screen changes caused by false touch is avoided. At the same time, because the target reporting threshold is related to the historical reporting result, it is guaranteed that the reporting threshold corresponding to different touch scenes is more accurate, thereby improving the recognition accuracy of screen touch.
[0045] In some embodiments, step 102 specifically includes:
[0046] Step 1021, in response to the historical point reporting result being no point reporting, determining the target point reporting threshold to be the first point reporting threshold;
[0047] Step 1022: In response to the historical point reporting result being a point reporting result, determining the target point reporting threshold to be a second point reporting threshold, wherein the second point reporting threshold is less than the first point reporting threshold.
[0048] In specific implementation, when the historical reporting result is determined to be no reporting, the target reporting threshold is determined to be the first reporting threshold. When the historical reporting result is determined to be reporting, the target reporting threshold is determined to be the second reporting threshold. In this embodiment, the second reporting threshold is lower than the first reporting threshold.
[0049] Specifically, because the touch scene includes not only single-point touch but also long-press touch scenes such as drawing and writing, such long-press touch scenes are continuous processes, and the signal volume at this time is much lower than that of single-point touch or first-press touch. The historical point reporting result is a point report, indicating that the historical frame has detected a touch, which may be a single-point touch or a long-press touch. In order to avoid the failure of long-press touch, the second point reporting threshold is set to a lower value than the first point reporting threshold to ensure the continuity of touch.
[0050] Through the above solution, the second reporting point threshold is set to be smaller than the first reporting point threshold, thereby avoiding failure of long-press touch control and ensuring the continuity of touch control.
[0051] In some embodiments, step 104 specifically includes:
[0052] Step 1041, in response to the first comparison result being that the first target signal value is less than or equal to the first reporting point threshold, comparing the first target signal value with a third reporting point threshold, wherein the third reporting point threshold is less than the first reporting point threshold;
[0053] Step 1042, determining that the first target signal value is greater than the third reporting threshold, determining the first signal value total value corresponding to the screen touch operation, and determining the validity of the screen touch operation according to the first signal value total value; or,
[0054] Step 1043: determine that the first target signal value is less than or equal to the third reporting threshold, and determine that the screen touch operation is invalid.
[0055] In a specific implementation, the first target signal value is compared with the target reporting threshold to obtain a first comparison result. If the first comparison result is that the first target signal value is less than or equal to the first reporting threshold when no point is reported in the previous historical frame of the current frame, a third reporting threshold is obtained at this time, and the third reporting threshold is a preset signal threshold when the screen is damaged when no point is reported in the previous historical frame of the current frame, and the third reporting threshold is less than the first reporting threshold.
[0056] The first target signal value is compared with the third reporting threshold. If the first target signal value is greater than the third reporting threshold, the first signal total value corresponding to the screen touch operation is determined. The validity of the screen touch operation is determined based on the first signal total value. The first signal total value represents the sum of the signal values corresponding to all touch areas during the screen touch operation.
[0057] If the first target signal value is less than or equal to the third reporting threshold, it means that the signal value corresponding to the detected screen touch operation is too small, and there may be an erroneous touch operation. Therefore, the screen touch operation is determined to be an invalid operation, and the corresponding reporting result is no reporting.
[0058] Through the above scheme, on the basis of determining that the previous historical frame did not report a point, the first target signal value is compared with the third reporting threshold value that is less than the first reporting threshold value, and the effectiveness of the screen touch operation is further judged, so as to avoid the problem of judgment bias caused by the small signal value recognized and the direct judgment of invalid touch due to certain damage to the screen polarizer after long-term use of the vehicle. The judgment is more accurate and the user experience is improved. At the same time, when the first target signal value is less than or equal to the third reporting threshold value, the signal value corresponding to the screen touch operation is too small, and the screen touch operation is determined to be an invalid operation, so as to avoid problems such as the user unconsciously touching the screen and causing the screen display content to change.
[0059] In some embodiments, step 1042 specifically includes:
[0060] Step 10421, determining a total touch area corresponding to the screen touch operation, and summing up the signal value corresponding to each touch area within the total touch area to obtain a first signal value corresponding to the current frame;
[0061] Step 10422: In response to the first signal quantity total value being less than or equal to a first weight threshold, determining that the screen touch operation is invalid; or,
[0062] Step 10423, in response to the first signal quantity total value being greater than the first weight threshold, determine a preset number of target frames after the current frame, obtain the second signal quantity total value corresponding to each target frame, and determine the validity of the screen touch operation based on the second signal quantity total value.
[0063] In specific implementation, when the user touches the screen, there are signals directly below and around the user's finger. Therefore, the total touch area corresponding to the screen touch operation and the signal value corresponding to each touch area in all touch areas within the total touch area are determined, and the signal values corresponding to all touch areas are added together to obtain the first signal total value corresponding to the current frame.
[0064] A first weight threshold is obtained, where the first weight threshold is a preset total signal value during touch control in a scenario where no point is reported in a previous historical frame. The first signal total value is compared with the first weight threshold.
[0065] If the first signal quantity total value is less than or equal to the first weight threshold, it means that the signal quantity value corresponding to the detected screen touch operation is too small, and there may be an erroneous touch operation. Therefore, the screen touch operation is determined to be an invalid operation, and the corresponding reporting result is no reporting.
[0066] If the first signal quantity total value is greater than the first weight threshold, a preset number of target frames after the current frame are determined, the corresponding second signal quantity total value of each target frame is obtained, and the validity of the screen touch operation is determined according to the second signal quantity total value.
[0067] Exemplarily, the preset number is 2. When the total value of the first signal quantity is greater than the first weight threshold, the target frame is determined to be the next frame after the current frame and the second frame after the current frame, and the next frame after the current frame is the first frame after the current frame. The total value of the second signal quantity corresponding to the next frame after the current frame and the total value of the second signal quantity corresponding to the second frame after the current frame are determined respectively. The validity of the screen touch operation is judged based on the two total values of the second signal quantities.
[0068] Through the above scheme, when the maximum value of the signal amount corresponding to the screen touch operation is greater than the third reporting point threshold, the total value of the signal amount corresponding to the screen touch operation is determined, and then it is determined whether it is a valid touch operation, which refines the judgment process and makes the judgment more accurate.
[0069] In some embodiments, step 10423 specifically includes:
[0070] Step A, in response to the total value of all second signal quantities being greater than the first weight threshold, determining that the screen touch operation is valid; or,
[0071] Step B: in response to the second signal quantity total value being less than or equal to the first weight threshold, determining that the screen touch operation is invalid.
[0072] In a specific implementation, after obtaining the corresponding second signal amount total value of each target frame, each second signal amount total value is compared with the first weight threshold value respectively.
[0073] If the total value of all second signal quantities is greater than the first weight threshold, the screen touch operation is determined to be valid. If there is a second signal quantity total value less than or equal to the first weight threshold, the screen touch operation is determined to be invalid.
[0074] Through the above scheme, by comparing the total value of each second signal quantity with the first weight threshold respectively, when it is determined that the total values of the second signal quantities corresponding to all target frames are greater than the first weight threshold, the screen touch operation can be determined as a valid operation, and then the reporting result can be determined to be valid, thereby avoiding the occurrence of erroneous judgments caused by jitter and improving the accuracy of judgment.
[0075] In some embodiments, step 104 specifically includes:
[0076] Step 104A, in response to the first comparison result being that the first target signal value is greater than the first reporting threshold, determining a preset number of target frames after the current frame, and obtaining a second target signal value corresponding to each target frame;
[0077] Step 104B, in response to all the second target signal magnitudes being greater than the first reporting threshold, determining that the screen touch operation is valid; or,
[0078] Step 104C: in response to the second target signal value being less than or equal to the first reporting threshold, determining that the screen touch operation is invalid.
[0079] In a specific implementation, the first target signal value is compared with the target reporting threshold to obtain a first comparison result. If the first comparison result is that the first target signal value is greater than the first reporting threshold, it means that there may be a valid touch in the current frame. To avoid contingency, a preset number of target frames after the current frame are determined, and the second target signal value corresponding to each target frame is obtained.
[0080] Each second signal quantity total value is compared with the first reporting threshold value respectively.
[0081] If the total value of all second signal quantities is greater than the first reporting threshold, the screen touch operation is determined to be valid. If there is a second signal quantity total value less than or equal to the first reporting threshold, the screen touch operation is determined to be invalid.
[0082] Through the above scheme, by comparing the total value of each second signal quantity with the first reporting threshold value respectively, when it is determined that the total values of the second signal quantities corresponding to all target frames are greater than the first reporting threshold value, the screen touch operation can be identified as a valid operation, and then the reporting result can be determined to be valid, thereby avoiding the occurrence of misjudgment caused by jitter, reducing randomness, and improving the accuracy of judgment.
[0083] In some embodiments, step 104 specifically includes:
[0084] Step 104a, in response to the first comparison result being that the first target signal value is greater than the second reporting threshold, determining that the screen touch operation is valid; or,
[0085] Step 104b, in response to the comparison result that the first target signal value is less than or equal to the second reporting threshold, compare the first target signal value with the fourth reporting threshold to obtain a second comparison result, and determine the validity of the screen touch operation based on the second comparison result, wherein the fourth reporting threshold is less than the second reporting threshold.
[0086] In a specific implementation, the first target signal value is compared with the target reporting threshold to obtain a first comparison result. If, in the case of reporting a point in the previous historical frame of the current frame, the first comparison result is that the first target signal value is greater than the second reporting threshold, then it means that the current frame is also touch-enabled, and the screen touch operation is determined to be enabled, and the reporting result is reporting a point.
[0087] If, when the previous historical frame of the current frame reports a point, the first comparison result is that the first target signal value is less than or equal to the second reporting threshold, then the fourth reporting threshold is obtained. The fourth reporting threshold is a signal threshold when the screen is damaged and is preset when the previous historical frame of the current frame reports a point, and the fourth reporting threshold is less than the second reporting threshold.
[0088] The first target signal value is compared with the fourth reporting point threshold to obtain a second comparison result, and then the validity of the screen touch operation is determined according to the second comparison result.
[0089] Through the above scheme, on the basis of determining the reporting point of the previous historical frame, the first target signal value is compared with the fourth reporting point threshold which is smaller than the second reporting point threshold, so as to further judge the effectiveness of the screen touch operation, thereby avoiding the problem of judgment deviation caused by the direct judgment that the touch is invalid due to certain damage to the screen polarizer after long-term use of the vehicle, resulting in a small recognized signal value. The judgment is more accurate, thereby improving the user experience.
[0090] In some embodiments, step 104b specifically includes:
[0091] Step 104b1, in response to the second comparison result being that the first target signal value is greater than the fourth reporting threshold, determining the first signal value total value corresponding to the screen touch operation, and determining the validity of the screen touch operation according to the first signal value total value; or,
[0092] Step 104b2: In response to the second comparison result being that the first target signal value is less than or equal to the fourth reporting threshold, determining that the screen touch operation is invalid.
[0093] In a specific implementation, the first target signal value is compared with the fourth reporting threshold to obtain a second comparison result. If the second comparison result is that the first target signal value is greater than the fourth reporting threshold, the first signal value total value corresponding to the screen touch operation is determined, and the validity of the screen touch operation is determined according to the first signal value total value, wherein the first signal value total value represents the sum of the signal values corresponding to all touch areas during the screen touch operation.
[0094] If the second comparison result is that the first target signal value is less than or equal to the fourth reporting threshold, it means that the signal value corresponding to the detected screen touch operation is too small, and there may be an erroneous touch operation. Therefore, the screen touch operation is determined to be an invalid operation, and the corresponding reporting result is no reporting.
[0095] Through the above scheme, when the first target signal value is less than or equal to the fourth reporting threshold, the signal value corresponding to the screen touch operation is too small, and the screen touch operation is determined to be an invalid operation, thereby avoiding problems such as the user accidentally touching the screen and causing changes in the screen display content.
[0096] In some embodiments, step 104b1 specifically includes:
[0097] Step a, determining the total touch area corresponding to the screen touch operation, adding up the signal value corresponding to each touch area within the total touch area to obtain a first signal value corresponding to the current frame;
[0098] Step b, in response to the total signal value being greater than a second weight threshold, determining a preset number of target frames after the current frame, obtaining a second total signal value corresponding to each target frame, and determining the validity of the screen touch operation according to the second total signal value; or
[0099] Step c: in response to the total value of the signal quantity being less than or equal to a second weight threshold, determining that the screen touch operation is invalid.
[0100] In specific implementation, when the user touches the screen, there are signals directly below and around the user's finger. Therefore, the total touch area corresponding to the screen touch operation and the signal value corresponding to each touch area in all touch areas within the total touch area are determined, and the signal values corresponding to all touch areas are added together to obtain the first signal total value corresponding to the current frame.
[0101] A second weight threshold is obtained, where the second weight threshold is a preset total signal value during touch control in a scenario of determining a point reporting point in a previous historical frame. The first signal total value is compared with the second weight threshold.
[0102] If the first signal quantity total value is less than or equal to the second weight threshold, it means that the signal quantity value corresponding to the detected screen touch operation is too small, and there may be an erroneous touch operation. Therefore, the screen touch operation is determined to be an invalid operation, and the corresponding reporting result is no reporting.
[0103] If the first signal quantity total value is greater than the second weight threshold, a preset number of target frames after the current frame are determined, the corresponding second signal quantity total value of each target frame is obtained, and the validity of the screen touch operation is determined according to the second signal quantity total value.
[0104] Exemplarily, the preset number is 3. Then, when the total value of the first signal quantity is greater than the second weight threshold, the target frame is determined to be the next frame after the current frame, the second frame after the current frame, and the third frame after the current frame, and the next frame after the current frame is the first frame after the current frame. The total value of the second signal quantity corresponding to the next frame after the current frame, the total value of the second signal quantity corresponding to the second frame after the current frame, and the total value of the second signal quantity corresponding to the third frame after the current frame are determined respectively. The validity of the screen touch operation is judged based on the three total values of the second signal quantities.
[0105] Through the above scheme, when the maximum value of the signal amount corresponding to the screen touch operation is greater than the fourth reporting point threshold, the total value of the signal amount corresponding to the screen touch operation is determined, and then it is determined whether it is a valid touch operation, which refines the judgment process and makes the judgment more accurate.
[0106] In some embodiments, step b specifically includes:
[0107] Step b01, in response to the total value of all second signal quantities being greater than the second weight threshold, determining that the screen touch operation is valid; or,
[0108] Step b02: In response to the second signal quantity total value being less than or equal to the second weight threshold, determining that the screen touch operation is invalid.
[0109] In a specific implementation, after obtaining the corresponding second signal amount total value of each target frame, each second signal amount total value is compared with the second weight threshold value respectively.
[0110] If the total value of all second signal quantities is greater than the second weight threshold, the screen touch operation is determined to be valid. If there is a second signal quantity total value less than or equal to the second weight threshold, the screen touch operation is determined to be invalid.
[0111] Through the above scheme, by comparing the total value of each second signal quantity with the second weight threshold respectively, when it is determined that the total values of the second signal quantities corresponding to all target frames are greater than the second weight threshold, the screen touch operation can be determined as a valid operation, and then the reporting result can be determined to be valid, thereby avoiding the occurrence of erroneous judgments caused by jitter and improving the accuracy of judgment.
[0112] Based on the same inventive concept, another embodiment of the present disclosure provides a method for determining screen touch, such as Figure 2 As shown, the method specifically includes:
[0113] Step 201: Detect a screen touch operation and determine a first target signal value of the current frame.
[0114] Step 202, enter EMS testing, namely EMS pattern check.
[0115] Step 203, determine whether the previous historical frame of the current frame reports a point. If yes, jump to step 204. If no, jump to step 210.
[0116] Step 204 , determining whether the first target signal value is greater than the second reporting threshold B1 , if not, jump to step 205 , if yes, jump to step 217 .
[0117] Step 205 , determining whether the first target signal value is greater than the fourth reporting threshold b1 , if not, jump to step 218 , if yes, jump to step 206 .
[0118] Step 206: determine the total touch area corresponding to the screen touch operation.
[0119] Step 207 , summing up the signal value corresponding to each touch region within the total touch area to obtain a first signal value total corresponding to the current frame.
[0120] Step 208 , determining whether the total value of the first signal quantity is greater than the second weight threshold w2 , if so, jumping to step 209 , if not, jumping to step 218 .
[0121] Step 209 , determining whether the total second signal values corresponding to a preset number of target frames after the current frame are all greater than the second weight threshold w2 . If yes, jump to step 217 , otherwise jump to step 218 .
[0122] Step 210 , determining whether the first target signal value is greater than the first reporting threshold value A1 , if not, jump to step 211 , if yes, jump to step 216 .
[0123] Step 211 , determining whether the first target signal value is greater than the third reporting threshold a1 , if not, jump to step 218 , if yes, jump to step 212 .
[0124] Step 212: determine the total touch area corresponding to the screen touch operation.
[0125] Step 213 , summing up the signal value corresponding to each touch region within the total touch area to obtain a first signal value total corresponding to the current frame.
[0126] Step 214 , determining whether the total value of the first signal quantity is greater than the first weight threshold w1 , if so, jump to step 215 , if not, jump to step 218 .
[0127] Step 215 , determining whether the total second signal values corresponding to a preset number of target frames after the current frame are all greater than the first weight threshold w1 . If yes, jump to step 217 , otherwise jump to step 218 .
[0128] Step 216, determine whether the second target signal values corresponding to the preset number of target frames after the current frame are all greater than the first reporting threshold A1. If yes, jump to step 217, otherwise jump to step 218.
[0129] Step 217, report the point.
[0130] Step 218, no point is reported.
[0131] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0132] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0133] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a screen touch determination device.
[0134] refer to Figure 3 , Figure 3 The screen touch determination device of the embodiment includes:
[0135] The detection module 301 is configured to detect a screen touch operation and determine a first target signal value of a current frame;
[0136] The threshold determination module 302 is configured to obtain the historical reporting result of the previous historical frame of the current frame, and determine the target reporting threshold according to the historical reporting result;
[0137] A comparison module 303 is configured to compare the first target signal value with the target reporting threshold to obtain a first comparison result;
[0138] The touch determination module 304 is configured to determine the validity of the screen touch operation according to the comparison result.
[0139] In some embodiments, the threshold determination module 302 is specifically configured to:
[0140] In response to the historical point reporting result being no point reported, determining the target point reporting threshold to be the first point reporting threshold;
[0141] In response to the historical point reporting result being a point reporting result, determining the target point reporting threshold to be a second point reporting threshold, wherein the second point reporting threshold is smaller than the first point reporting threshold.
[0142] In some embodiments, the touch determination module 304 specifically includes:
[0143] A comparison unit, configured to compare the first target signal value with a third reporting point threshold in response to the first comparison result being that the first target signal value is less than or equal to the first reporting point threshold, wherein the third reporting point threshold is less than the first reporting point threshold;
[0144] A first signal quantity total value determining unit is configured to determine the first target signal quantity value is greater than a third reporting threshold, determine the first signal quantity total value corresponding to the screen touch operation, and determine the validity of the screen touch operation according to the first signal quantity total value; or
[0145] The invalidity determination unit is configured to determine that the first target signal value is less than or equal to a third reporting point threshold, and determine that the screen touch operation is invalid.
[0146] In some embodiments, the first signal total value determining unit is specifically configured to:
[0147] Determine a total touch area corresponding to the screen touch operation, and sum the signal value corresponding to each touch area within the total touch area to obtain a first signal value corresponding to the current frame;
[0148] In response to the total value of the first signal quantity being less than or equal to a first weight threshold, determining that the screen touch operation is invalid; or,
[0149] In response to the first signal quantity total value being greater than a first weight threshold, a preset number of target frames after the current frame are determined, a second signal quantity total value corresponding to each target frame is obtained, and the validity of the screen touch operation is determined according to the second signal quantity total value.
[0150] In some embodiments, the first signal amount total value determining unit is further configured to:
[0151] In response to the total value of all the second signal quantities being greater than the first weight threshold, determining that the screen touch operation is valid; or,
[0152] In response to the second signal quantity total value being less than or equal to the first weight threshold, it is determined that the screen touch operation is invalid.
[0153] In some embodiments, the touch determination module 304 is specifically configured to:
[0154] In response to the first comparison result being that the first target signal value is greater than the first reporting threshold, determining a preset number of target frames after the current frame, and obtaining a second target signal value corresponding to each target frame;
[0155] In response to all the second target signal magnitudes being greater than the first reporting threshold, determining that the screen touch operation is valid; or,
[0156] In response to the second target signal value being less than or equal to the first reporting threshold, it is determined that the screen touch operation is invalid.
[0157] In some embodiments, the touch determination module 304 specifically includes:
[0158] A judgment unit is configured to determine that the screen touch operation is valid in response to the first comparison result being that the first target signal value is greater than the second reporting threshold; or
[0159] The comparison unit is configured to compare the first target signal value with the fourth reporting point threshold in response to the comparison result being that the first target signal value is less than or equal to the second reporting point threshold, to obtain a second comparison result, and determine the validity of the screen touch operation based on the second comparison result, wherein the fourth reporting point threshold is less than the second reporting point threshold.
[0160] In some embodiments, the comparison unit specifically includes:
[0161] The first signal quantity total value determining subunit is configured to determine the first signal quantity total value corresponding to the screen touch operation in response to the second comparison result being that the first target signal quantity value is greater than the fourth reporting threshold, and determine the validity of the screen touch operation according to the first signal quantity total value; or
[0162] The invalidation subunit is configured to determine that the screen touch operation is invalid in response to the second comparison result being that the first target signal value is less than or equal to the fourth reporting threshold.
[0163] In some embodiments, the first signal amount total value determining subunit is specifically configured as follows:
[0164] Determine a total touch area corresponding to the screen touch operation, and sum the signal value corresponding to each touch area within the total touch area to obtain a first signal value corresponding to the current frame;
[0165] In response to the first signal amount total value being greater than the second weight threshold, determining a preset number of target frames after the current frame, obtaining a second signal amount total value corresponding to each target frame, and determining the validity of the screen touch operation according to the second signal amount total value; or,
[0166] In response to the total value of the first signal quantity being less than or equal to a second weight threshold, it is determined that the screen touch operation is invalid.
[0167] In some embodiments, the first signal amount total value determining subunit is further configured to:
[0168] In response to the total value of all the second signal quantities being greater than the second weight threshold, determining that the screen touch operation is valid; or,
[0169] In response to the second signal quantity total value being less than or equal to the second weight threshold, it is determined that the screen touch operation is invalid.
[0170] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0171] The device of the above embodiment is used to implement the corresponding screen touch determination method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0172] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the screen touch determination method described in any of the above embodiments is implemented.
[0173] Figure 4A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0174] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0175] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0176] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0177] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0178] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0179] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0180] The electronic device of the above-mentioned embodiment is used to implement the corresponding screen touch determination method in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0181] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the screen touch determination method described in any of the above embodiments.
[0182] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented 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, magnetic tape magnetic 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.
[0183] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the screen touch determination method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0184] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a vehicle, including the screen touch determination device in the above-mentioned embodiments, the electronic device in the above-mentioned embodiments, and the computer-readable storage medium in the above-mentioned embodiments, and the vehicle equipment implements the screen touch determination method described in any of the above embodiments.
[0185] The vehicle of the above-mentioned embodiment is used to implement the screen touch determination method described in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0186] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0187] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0188] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0189] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0190] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.
[0191] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0192] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0193] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A method for determining screen touch, characterized in that: include: Detecting a screen touch operation, and determining a first target signal value of a current frame; Obtain the historical reporting result of the previous historical frame of the current frame, and determine the target reporting threshold value according to the historical reporting result; Compare the first target signal value with the target reporting threshold to obtain a first comparison result; The validity of the screen touch operation is determined according to the first comparison result.
2. The method according to claim 1, characterized in that Determining the target reporting point threshold according to the historical reporting point results includes: In response to the historical point reporting result being no point reported, determining the target point reporting threshold to be the first point reporting threshold; In response to the historical point reporting result being a point reporting result, determining the target point reporting threshold to be a second point reporting threshold, wherein the second point reporting threshold is smaller than the first point reporting threshold.
3. The method according to claim 2, characterized in that The determining the validity of the screen touch operation according to the first comparison result includes: In response to the first comparison result being that the first target signal magnitude is less than or equal to the first reporting point threshold, comparing the first target signal magnitude with a third reporting point threshold, wherein the third reporting point threshold is less than the first reporting point threshold; Determine that the first target signal value is greater than the third reporting threshold, determine the first signal total value corresponding to the screen touch operation, and determine the validity of the screen touch operation according to the first signal total value; or, It is determined that the first target signal value is less than or equal to the third reporting point threshold, and the screen touch operation is determined to be invalid.
4. The method according to claim 3, characterized in that The determining a first signal quantity total value corresponding to the screen touch operation, and determining the validity of the screen touch operation according to the first signal quantity total value, includes: Determine a total touch area corresponding to the screen touch operation, and sum the signal value corresponding to each touch area within the total touch area to obtain a first signal value corresponding to the current frame; In response to the total value of the first signal quantity being less than or equal to a first weight threshold, determining that the screen touch operation is invalid; or, In response to the first signal quantity total value being greater than a first weight threshold, a preset number of target frames after the current frame are determined, a second signal quantity total value corresponding to each target frame is obtained, and the validity of the screen touch operation is determined according to the second signal quantity total value.
5. The method according to claim 4, characterized in that The determining the validity of the screen touch operation according to the second signal amount total value includes: In response to the total value of all the second signal quantities being greater than the first weight threshold, determining that the screen touch operation is valid; or, In response to the second signal quantity total value being less than or equal to the first weight threshold, it is determined that the screen touch operation is invalid.
6. The method according to claim 2, characterized in that The determining the validity of the screen touch operation according to the first comparison result includes: In response to the first comparison result being that the first target signal value is greater than the first reporting threshold, determining a preset number of target frames after the current frame, and obtaining a second target signal value corresponding to each target frame; In response to all the second target signal magnitudes being greater than the first reporting threshold, determining that the screen touch operation is valid; or, In response to the second target signal value being less than or equal to the first reporting threshold, it is determined that the screen touch operation is invalid.
7. The method according to claim 2, characterized in that The determining the validity of the screen touch operation according to the first comparison result includes: In response to the first comparison result being that the first target signal value is greater than the second reporting threshold, determining that the screen touch operation is valid; or, In response to the comparison result that the first target signal value is less than or equal to the second reporting point threshold, the first target signal value is compared with the fourth reporting point threshold to obtain a second comparison result, and the validity of the screen touch operation is determined based on the second comparison result, wherein the fourth reporting point threshold is less than the second reporting point threshold.
8. The method according to claim 7, characterized in that The determining the validity of the screen touch operation according to the second comparison result includes: In response to the second comparison result being that the first target signal value is greater than the fourth reporting threshold, determining a first signal value total value corresponding to the screen touch operation, and determining the validity of the screen touch operation according to the first signal value total value; or In response to the second comparison result being that the first target signal value is less than or equal to the fourth reporting threshold, it is determined that the screen touch operation is invalid.
9. The method according to claim 8, characterized in that The determining a first signal quantity total value corresponding to the screen touch operation, and determining the validity of the screen touch operation according to the first signal quantity total value, includes: Determine a total touch area corresponding to the screen touch operation, and sum the signal value corresponding to each touch area within the total touch area to obtain a first signal value corresponding to the current frame; In response to the first signal amount total value being greater than the second weight threshold, determining a preset number of target frames after the current frame, obtaining a second signal amount total value corresponding to each target frame, and determining the validity of the screen touch operation according to the second signal amount total value; or, In response to the total value of the first signal quantity being less than or equal to a second weight threshold, it is determined that the screen touch operation is invalid.
10. The method according to claim 9, characterized in that The determining the validity of the screen touch operation according to the second target signal value includes: In response to the total value of all second signal quantities being greater than the second weight threshold, determining that the screen touch operation is valid; or, In response to the second signal quantity total value being less than or equal to the second weight threshold, it is determined that the screen touch operation is invalid.