False touch prevention method and device, electronic equipment, readable storage medium and program product
By responding to touch events in smart devices and adjusting anti-touch algorithm parameters, users' error touch problems caused by touching the edge of the screen are solved, and the accuracy of the operation experience is improved.
Patent Information
- Application Number
- CN202411996740.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-18
AI Technical Summary
Because the touch screen frame of the smart device is narrow, users are prone to touch the edge of the screen when holding the device, resulting in mistouching and affecting the user's operating experience.
By responding to screen touch events, obtain touch event information, and adjust parameters based on anti-fault touch algorithm to determine the number of false touches. If the target number exceeds the target number, adjust the parameters to reduce false touches.
Improves the accuracy of anti-miss touch, reduces unexpected system responses, and improves user operation experience.
Smart Images

Figure CN119847364A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device, computer-readable storage medium, and computer program product for preventing accidental touches. Background Art
[0002] With the continuous development of science and technology, the touch screens of terminals such as smart phones and personal digital assistants (PADs) are getting larger and larger, and the borders are getting narrower and narrower, in order to improve the user experience when users perform operations such as text message editing and phone calls on the terminals.
[0003] Since the touch screen of the terminal has a narrow frame, the skin at the edge of the touch screen will touch the touch screen when the user holds the terminal. Regardless of whether it is operated with one hand or two hands, it is easy to contact the actual touch screen sensing area, causing a point report. The system response caused by the point report at the edge is unexpected, and a touch instruction that is not intended by the user is generated, that is, a false touch, which causes the user to interrupt operations such as editing text messages and making phone calls on the terminal.
[0004] Traditional methods for preventing accidental touches generally recognize the shape of the finger contact and prevent accidental touches by recognizing a preset shape. However, the traditional methods for preventing accidental touches have the problem of inaccurate prevention of accidental touches. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for preventing accidental touches, which can improve the accuracy of preventing accidental touches.
[0006] In a first aspect, the present application provides a method for preventing accidental touches, comprising:
[0007] In response to a touch event occurring on the screen, acquiring touch event information;
[0008] Determine the number of false touches within a first time period based on a first parameter value of a false touch prevention parameter in a false touch prevention algorithm and the touch event information;
[0009] If the number of false touches exceeds the target number, the first parameter value is adjusted to a second parameter value; the second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number.
[0010] In one embodiment, determining the number of false touches within a first time period based on a first parameter value of a false touch prevention parameter in a false touch prevention algorithm and the touch event information includes:
[0011] Determining whether the touch event corresponding to the touch event information is a false touch event based on a first parameter value of the false touch prevention parameter in the false touch prevention algorithm;
[0012] If the touch event corresponding to the touch event information is an accidental touch event, the number of accidental touches corresponding to the accidental touch event within the first duration is counted.
[0013] In one of the embodiments, determining whether the touch event corresponding to the touch event information is a false touch event based on a first parameter value of a false touch prevention parameter in a false touch prevention algorithm includes:
[0014] Determining a touch position of the touch event information;
[0015] If there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information in the second time duration both indicating a pressed state, then based on the first parameter value of the false touch prevention parameter in the false touch prevention algorithm, determining the interception result of the touch event information in the edge area; the second time duration is less than the first time duration;
[0016] If the interception result indicates that the interception is unsuccessful, it is determined that the touch event corresponding to the touch event information in the edge area is a false touch event.
[0017] In one of the embodiments, if there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information in the second duration both indicating a pressed state, then based on the first parameter value of the false-touch prevention parameter in the false-touch prevention algorithm, determining the interception result of the touch event information in the edge area includes:
[0018] If there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information in the second duration both indicating a pressed state, then acquiring the target part touch information from the touch event information in the edge area;
[0019] Based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm and the target part touch information, an interception result of the touch event information in the edge area is determined.
[0020] In one embodiment, the target part touch information includes at least one of a touch area of the base of the thumb, a touch length of the base of the thumb, a touch peak value of the base of the thumb, and a ratio of the long and short axes of the base of the thumb, and the first parameter value includes at least one of a touch area threshold of the base of the thumb, a touch length threshold of the base of the thumb, a touch peak value threshold of the base of the thumb, and a ratio of the long and short axes of the base of the thumb;
[0021] The determining the interception result of the touch event information in the edge area based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm and the target part touch information includes:
[0022] If the base of the thumb touch area is greater than the base of the thumb touch area threshold, the base of the thumb touch length is greater than the base of the thumb touch length threshold, the base of the thumb touch peak is greater than the base of the thumb touch peak threshold, and / or the base of the thumb long-short axis ratio is greater than the base of the thumb long-short axis ratio threshold, the touch event information in the edge area is intercepted and processed to obtain an interception result;
[0023] If the number of false touches exceeds the target number, adjusting the first parameter value to a second parameter value includes:
[0024] If the number of false touches exceeds the target number, the thumb touch area threshold, the thumb touch length threshold, the thumb touch peak threshold and / or the thumb long-short axis ratio threshold are reduced to obtain a second parameter value.
[0025] In one embodiment, the method further comprises:
[0026] When the target application is started, the step of obtaining touch event information in response to a touch event occurring on the screen is executed.
[0027] In a second aspect, the present application further provides an anti-mistaken touch device, comprising:
[0028] A touch event information acquisition module, used to acquire touch event information in response to a touch event occurring on the screen;
[0029] A false touch number determination module, used to determine the false touch number within a first time period based on a first parameter value of a false touch prevention parameter in a false touch prevention algorithm and the touch event information;
[0030] A parameter adjustment module is used to adjust the first parameter value to a second parameter value if the number of false touches exceeds the target number; the second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number.
[0031] In a third aspect, the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0032] In response to a touch event occurring on the screen, acquiring touch event information;
[0033] Determine the number of false touches within a first time period based on a first parameter value of a false touch prevention parameter in a false touch prevention algorithm and the touch event information;
[0034] If the number of false touches exceeds the target number, the first parameter value is adjusted to a second parameter value; the second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number.
[0035] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0036] In response to a touch event occurring on the screen, acquiring touch event information;
[0037] Determine the number of false touches within a first time period based on a first parameter value of a false touch prevention parameter in a false touch prevention algorithm and the touch event information;
[0038] If the number of false touches exceeds the target number, the first parameter value is adjusted to a second parameter value; the second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number.
[0039] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0040] In response to a touch event occurring on the screen, acquiring touch event information;
[0041] Determine the number of false touches within a first time period based on a first parameter value of a false touch prevention parameter in a false touch prevention algorithm and the touch event information;
[0042] If the number of false touches exceeds the target number, the first parameter value is adjusted to a second parameter value; the second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number.
[0043] The above-mentioned anti-false touch method, device, electronic device, computer-readable storage medium and computer program product obtain touch event information in response to a touch event occurring on the screen, and determine the number of false touches within a first time period based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm and the touch event information. If the number of false touches exceeds the target number, it means that there are too many touch event information of false touch events that have not been intercepted within the first time period, and the first parameter value is adjusted to the second parameter value. The second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number, so that the touch event information of the false touch events can be more accurately intercepted, that is, more accurate false touch prevention can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A schematic diagram of a flow chart of a method for preventing accidental touches in an embodiment;
[0046] Figure 2 is a schematic diagram of a screen in one embodiment;
[0047] Figure 3 is a schematic diagram of the distribution of touch capacitance values of each pixel in a screen in one embodiment;
[0048] Figure 4 A schematic diagram of a flow chart of a method for preventing accidental touches in another embodiment;
[0049] Figure 5 is a structural block diagram of an anti-mistouch device in an embodiment;
[0050] Figure 6 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] In one embodiment, Figure 1 As shown, a method for preventing accidental touch is provided. This embodiment uses the method applied to an electronic device as an example for illustration. The electronic device may be a terminal or a server. It is understandable that the method may also be applied to a system including a terminal and a server, and implemented through the interaction between the terminal and the server. Among them, the terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.
[0053] In this embodiment, the method for preventing accidental touch includes the following steps:
[0054] Step S102, in response to a touch event occurring on the screen, acquiring touch event information.
[0055] The screen may be a capacitive touch screen, and the capacitive touch screen capacitive sensing function of the capacitive touch screen is to use the capacitive sensing principle of the touch screen to determine whether an object touches the touch screen and then report the state of the object, mainly including the contact object and the touch state. The contact object includes objects such as fingers and stylus, and the touch state includes pressing, lifting and moving after pressing. The screen may be a curved screen, a flat screen or a folding screen, etc., but is not limited thereto.
[0056] Capacitive touch screens are mainly composed of a transmitting channel and a receiving channel. The capacitance data collected from the transmitting channel and the receiving channel to the ground is self-capacitance data, and the data collected from the transmitting channel and the receiving channel is mutual capacitance data. The touch state of the touch event is determined by mutual capacitance data, such as the pressed state, the moving state after being pressed, or the lifted state. Self-capacitance data is used to determine other auxiliary functions, such as proximity sensing.
[0057] The touch event information data is reported to the processor of the electronic device through the capacitive sensing function of the touch screen. The touch event information may include touch coordinates and touch status. An XY two-dimensional coordinate system is established on the screen, and the touch coordinates are in the XY two-dimensional coordinate system.
[0058] Touch events include press events, lift events, or move events. Exemplarily, the current application is at the upper layer of the system, and the electronic device is responsible for providing the operating system. The current application is used to monitor, receive, and process touch events (input events) reported from the bottom layer of the operating system. Among them: touch events include press (ACTION_DOWN) events, lift (ACTION_UP) events, or move (ACTION_MOVE) events. Press (ACTION_DOWN) events refer to events in which the contact object is in a pressed state in the first frame, lift (ACTION_UP) events refer to events in which the contact object is in a lifted state, and move (ACTION_MOVE) events refer to events in which the contact object is in a pressed state in the second frame and subsequent consecutive data frames.
[0059] When the contact object is pressed in the first frame, a press event is triggered. Then the second frame data and subsequent consecutive data frames are all in the pressed state (i.e. long press) or moving, which are all move events. Finally, the lift event is triggered when the contact object is lifted.
[0060] Optionally, the touch control system responds to the touch control event occurring on the screen, obtains the touch control event information, and reports the touch control event information to the AP system; obtains the touch control event information through the AP system, and executes the step of determining the number of false touches within the first time period based on the first parameter value of the false touch prevention parameter in the false touch prevention algorithm and the touch control event information. Among them, the AP (Application Processor, referred to as AP) system refers to the application processor, which is one of the core processing units of the mobile phone, mainly responsible for running the operating system, user interface and various applications, processing complex computing tasks, graphics rendering, etc., to support various advanced functions on electronic devices, such as games, video playback, multi-tasking, etc. The touch control event information also includes the touch time, that is, the start time when the touch state is the pressed state. When the touch object contacts the screen (touch screen hardware), the touch control system will calculate the reported touch control event information. Generally, the maximum supported touch control events are 10 by default, that is, the touch control events corresponding to 10 fingers.
[0061] Optionally, the method further includes: when the target application is opened, executing a step of obtaining touch event information in response to a touch event occurring on the screen.
[0062] The target application is an application that needs to be protected from accidental touches. The target application can be set as needed, for example, the target application can be a social application, an office application, or a mailbox application.
[0063] Optionally, if the electronic device opens other applications except the target application, no false touch prevention processing is required. Other applications are, for example, game applications.
[0064] It is understandable that the electronic device learns user behavior through designated target applications to perform anti-mistouch processing in the target applications. While improving the accuracy of anti-mistouch, it can also take into account the anomalies caused by some key applications being mistakenly triggered by user behavior anti-mistouch learning.
[0065] Step S104, determining the number of false touches within a first time period based on a first parameter value of a false touch prevention parameter in a false touch prevention algorithm and touch event information.
[0066] Among them, the anti-false touch algorithm is an intelligent technical means that aims to identify and distinguish between intentional operations and unintentional touches of the user on the screen, so as to avoid the execution of erroneous instructions caused by false touches, and ensure the stable operation of electronic equipment and the accuracy of user operations. The anti-false touch algorithm can use machine learning technology to establish a user's operation mode and habit model by learning a large amount of user operation data. The anti-false touch algorithm analyzes the strength, frequency, sliding trajectory and other characteristics of the user's touch on the screen to distinguish between normal operations and false touches. For example, when a user normally unlocks a mobile phone, there is usually a specific sliding trajectory and speed. The algorithm can determine whether the operation is an intentional behavior of the user by identifying these characteristics.
[0067] The anti-false touch parameter is a relevant parameter in the anti-false touch algorithm. The anti-false touch parameter may include at least one of the touch area, touch length and touch peak value, and may also include the duration of the touch, etc., but is not limited thereto. For example, if the contact area of a finger clicking on the screen normally is usually within a certain range, and the area of a certain touch may be much smaller than this range, it may be a false touch, such as the contact area caused by objects such as sleeves accidentally touching the screen is often small. For another example, the touch peak value when touching the screen normally is generally within a relatively stable range. If the touch peak value is too small and exceeds the normal range, it may be a false touch, such as the touch peak value generated by the electronic device being squeezed in the pocket will be significantly different from the peak value of the finger touching the screen normally. The first parameter value is the value of the anti-false touch parameter. The first duration can be set as needed, such as 1 day, 1 hour, etc.
[0068] Optionally, the electronic device matches the first parameter value of the false touch prevention parameter in the false touch prevention algorithm with the touch event information, determines whether the touch event corresponding to the touch event information is a false touch event, and counts the number of false touches within the first time period.
[0069] Step S106, if the number of false touches exceeds the target number, the first parameter value is adjusted to the second parameter value; the second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number.
[0070] The target number is a threshold value of the number of false touches, which can be set as needed. For example, the target number is 20 times, 30 times, etc. The second parameter value is a value after the false touch prevention parameter is adjusted, and false touch prevention can be performed more accurately based on the second parameter value.
[0071] Optionally, if the number of false touches exceeds the target number, the first parameter value is adjusted to the second parameter value, and false touch prevention processing is performed based on the second parameter value of the false touch prevention parameter in the false touch prevention algorithm.
[0072] Optionally, the electronic device uses the updated second parameter value of the anti-false touch parameter as a new first parameter value, and returns to execute the step of obtaining touch event information in response to a touch event occurring on the screen, so as to dynamically adjust the anti-false touch parameter.
[0073] Optionally, if the number of false touches does not exceed the target number, the first parameter value is not adjusted, and the step of obtaining touch event information in response to the touch event occurring on the screen is continued.
[0074] The above-mentioned method for preventing accidental touches obtains touch event information in response to a touch event occurring on the screen, and determines the number of accidental touches within the first time period based on the first parameter value of the anti-accidental touch parameter in the anti-accidental touch algorithm and the touch event information. If the number of accidental touches exceeds the target number, it means that there are too many touch event information of the accidental touch events that have not been intercepted within the first time period, and the current parameter setting is unreasonable, then the first parameter value is adjusted to the second parameter value, and the second parameter value is used to ensure that the number of accidental touches within the first time period does not exceed the target number, so that the touch event information of the accidental touch events can be intercepted more accurately, that is, more accurate prevention of accidental touches can be achieved. The second parameter value is stricter than the first parameter value, and can enhance the anti-accidental touch effect and reduce the number of accidental touches.
[0075] In one embodiment, based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm and the touch event information, the number of false touches within a first time period is determined, including: based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm, determining whether the touch event corresponding to the touch event information is a false touch event; if the touch event corresponding to the touch event information is a false touch event, then counting the number of false touches corresponding to the false touch event within the first time period.
[0076] Optionally, if the touch event corresponding to the touch event is a false touch event, no response processing is performed on the false touch event, and the number of false touches corresponding to the false touch event within the first time period is counted; if the touch event corresponding to the touch event information is a non-false touch event, a response processing is performed on the non-false touch event.
[0077] Optionally, based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm, determining whether the touch event corresponding to the touch event information is a false touch event includes: determining the touch position of the touch event information; if there is at least one touch position of the touch event information in the edge area of the screen, and there are at least two touch event information in the second time length that both indicate a pressed state, then based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm, determining the interception result of the touch event information in the edge area; the second time length is less than the first time length; if the interception result indicates that the interception is unsuccessful, then determining that the touch event corresponding to the touch event information in the edge area is a false touch event.
[0078] The touch event information includes touch coordinates, based on which the touch position can be determined. Figure 2As shown, taking a mobile phone as an example, the upper left corner of the screen is the coordinate origin (0,0), the horizontal coordinate gradually increases from left to right, and the vertical coordinate gradually increases from top to bottom. The screen size of the mobile phone is (1080, 2400), the X coordinate range of edge area 1 is 0-40, the Y coordinate range is 0-2400, the X coordinate range of edge area 2 is 1040-1080, and the Y coordinate range is 0-2400; if the touch coordinate is (540, 1170), it means that the touch position is in the middle of the screen, if the touch coordinate is (10, 1200), it means that the touch position is in edge area 1, and if the touch coordinate is (1070, 2000), it means that the touch position is in edge area 2.
[0079] The second duration is shorter than the first duration. It is understandable that the second duration is used to determine whether the touch event corresponding to the touch event information is a false touch event, and then respond or not respond based on the determination result. The second duration is usually a shorter duration for quick processing; while the first duration is used to adjust the false touch prevention parameters, which can be set as needed, and the first duration is usually longer than the second duration. The second duration is, for example, 50ms (milliseconds).
[0080] It is understandable that if there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information in the second duration that both indicate a pressed state, it means that the touch event information in the edge area is a false touch, and the touch event information needs to be intercepted. If the interception is successful, it means that the touch event information is suppressed and not reported, and the electronic device will not respond to the false touch event information. If the interception is unsuccessful, the electronic device will respond to the false touch event information, thereby generating a false touch event. If the interception is successful, the number of successful interceptions is counted.
[0081] Exemplarily, when the user touches the middle area of the screen and accidentally touches one of the edge areas, the touch event information required by the user is generated in the middle area of the screen, and at the same time, a touch event information is generated in the edge area, and the touch event information generated in the edge area is generated by an accidental touch. Exemplarily, when the user does not touch the middle area of the screen, but accidentally touches the left and right edge areas while holding the electronic device, then within the second time period, the left and right edge areas respectively generate touch event information, and the touch event information in the edge areas are all generated by accidental touches.
[0082] Optionally, the electronic device counts the touch event information within different pixel gradient ranges in the screen, and determines the area to which the touch position of the touch event information belongs based on the touch event information within the different pixel gradient ranges. For example, different pixel gradient ranges in the horizontal direction of the screen include 0-10, 10-50, 50-100, and 100-150, etc. The electronic device can count the touch event information within each different pixel gradient range. If the pixel range of 0-50 in the horizontal direction is in the edge area of the screen, the touch position of the touch event information within the pixel gradient ranges of 0-10 and 10-50 is determined as the edge area.
[0083] As shown in Table 1, the electronic device can pre-set the first parameter value in each different pixel gradient range. If the pixel range of 0-50 in the horizontal direction is in the edge area of the screen, the first parameter value corresponding to the edge area is 62.
[0084]
[0085] Optionally, if there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information within the second time duration both indicating a pressed state, then based on the first parameter value of the anti-mistouch parameter in the anti-mistouch algorithm, the interception result of the touch event information in the edge area is determined, including: if there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information within the second time duration both indicating a pressed state, then the target part touch information is obtained from the touch event information in the edge area; based on the first parameter value of the anti-mistouch parameter in the anti-mistouch algorithm and the target part touch information, the interception result of the touch event information in the edge area is determined.
[0086] The target part touch information is the touch information generated by the user's target part touching the screen, and can be the touch information of the base of the user's hand or the touch information of a finger.
[0087] The target part touch information includes the touch capacitance value of the target part. Based on the touch capacitance value of the target part, at least one of the touch area, touch length, touch peak value and touch major-minor axis ratio of the target part can be determined.
[0088] The electronic device obtains the touch capacitance value of the touch position, determines the first pixel whose touch capacitance value of the touch position is greater than the first preset capacitance value, and determines the touch area based on each first pixel. The first preset capacitance value can be set as needed. Optionally, the electronic device counts the number of first pixels and uses the number as the touch area.
[0089] The electronic device obtains the touch capacitance value of the touch position, determines the pixel row that is greater than the preset pixel length in the horizontal direction or the vertical direction, and obtains the touch length based on the pixel row. The preset pixel length can be set as needed. Optionally, the electronic device determines the pixel row with the largest length in the horizontal direction or the vertical direction, determines the second pixel in the pixel row that is greater than the second preset capacitance value, and counts the number of the second pixels as the touch length.
[0090] The electronic device obtains the touch capacitance value of the touch position, and determines the maximum value from each touch capacitance value as the touch peak value.
[0091] The electronic device fits the area where each touch capacitance value is located into an ellipse, obtains the major axis length and the minor axis length of the ellipse, and uses the ratio between the major axis length and the minor axis length as the touch major-minor axis ratio.
[0092] Optionally, the target part touch information includes at least one of the base of the thumb touch area, the base of the thumb touch length, the base of the thumb touch peak value and the base of the thumb long-short axis ratio, and the first parameter value includes at least one of the base of the thumb touch area threshold, the base of the thumb touch length threshold, the base of the thumb touch peak threshold and the base of the thumb long-short axis ratio threshold; based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm and the target part touch information, the interception result of the touch event information in the edge area is determined, including: if the base of the thumb touch area is greater than the base of the thumb touch area threshold, the base of the thumb touch length is greater than the base of the thumb touch length threshold, the base of the thumb touch peak value is greater than the base of the thumb touch peak value threshold and / or the base of the thumb long-short axis ratio is greater than the base of the thumb long-short axis ratio threshold, then the touch event information in the edge area is intercepted and processed to obtain the interception result; if the number of false touches exceeds the target number, the first parameter value is adjusted to the second parameter value, including: if the number of false touches exceeds the target number, then the base of the thumb touch area threshold, the base of the thumb touch length threshold, the base of the thumb touch peak threshold and / or the base of the thumb long-short axis ratio threshold are reduced to obtain the second parameter value.
[0093] Among them, the base touch area is the area of the base touch region, the base touch length is the length of the base touch region in the horizontal direction or the vertical direction, the base touch peak is the peak capacitance value in the base touch region, and the base long-short axis ratio is the ratio between the long axis and the short axis in the base touch region. The base touch area threshold, base touch length threshold, base touch peak threshold, and base long-short axis ratio threshold can all be set as needed. The target part touch information can also include the base touch length-width ratio, and the first parameter value includes the base touch length-width ratio threshold.
[0094] If there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information in the second time duration both indicating a pressed state, then at least one of the thumb touch area, thumb touch length, thumb touch peak value and thumb long-short axis ratio is obtained from the touch event information in the edge area, and if the thumb touch area is greater than the thumb touch area threshold, the thumb touch length is greater than the thumb touch length threshold, the thumb touch peak value is greater than the thumb touch peak value threshold and / or the thumb long-short axis ratio is greater than the thumb long-short axis ratio threshold, it indicates that the touch event information in the edge area is caused by an accidental touch by the user, then the touch event information in the edge area is processed. The event information is intercepted and processed to obtain an interception result; if the interception result indicates that the interception is unsuccessful, the touch event corresponding to the touch event information in the edge area is determined to be a false touch event; the number of false touches corresponding to the false touch events within the first time period is counted, and if the number of false touches exceeds the target number, the thumb touch area threshold, the thumb touch length threshold, the thumb touch peak threshold and / or the thumb long-short axis ratio threshold are lowered to obtain a second parameter value, and according to the second parameter value, the false touch event information can be intercepted more easily and accurately, so as to reduce the number of false touches, avoid the electronic device from responding to the false touch event information, and improve the accuracy of preventing false touches.
[0095] like Figure 3 The figure shows the distribution of the touch capacitance value of each pixel in the screen. Figure 3 In the embodiment, if the touch capacitance value of a pixel is greater than a first preset capacitance value such as 100, it is determined to be a first pixel. The number of first pixels is counted to obtain a thumb touch area of 31. The thumb touch area of 31 is greater than the thumb touch area threshold of 30. The thumb touch area threshold of 30 can be reduced to a second parameter value of 20.
[0096] exist Figure 3 In the example, if the number of second pixels greater than the second preset capacitance value 100 in the pixel row with the largest horizontal length is 5, and the number of second pixels greater than the second preset capacitance value 100 in the pixel row with the largest vertical length is 7, then the horizontal thumb touch length 5 is greater than the thumb touch length threshold 4, and the thumb touch length threshold 4 can be reduced to the second parameter value 3, or the vertical thumb touch length 7 is greater than the thumb touch length threshold 6, and the thumb touch length threshold 6 can be reduced to the second parameter value 5. Further, the electronic device determines that the thumb touch length-width ratio is 7 / 5, and if the thumb touch length-width ratio 7 / 5 is greater than the thumb touch length-width ratio threshold 1, the thumb touch length-width ratio threshold 1 can be reduced to obtain the second parameter value 0.5.
[0097] exist Figure 3In the embodiment, the electronic device determines the maximum value from each touch capacitance value as the touch peak value 960. If the touch peak value is greater than the base touch peak value threshold 900, the base touch peak value threshold 900 is reduced to obtain a second parameter value 800.
[0098] exist Figure 3 In the embodiment, the electronic device fits the area where each touch capacitance value is located into an ellipse, obtains the major axis length of the ellipse as 9 and the minor axis length as 7, and takes the ratio of the major axis length to the minor axis length as the touch major-minor axis ratio of 9 / 7. If the touch major-minor axis ratio is greater than the touch major-minor axis ratio threshold of 1, the touch major-minor axis ratio threshold of 1 is reduced to obtain a second parameter value of 0.8.
[0099] In this embodiment, based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm, it is determined whether the touch event corresponding to the touch event information is a false touch event. If the touch event corresponding to the touch event information is a false touch event, the number of false touches corresponding to the false touch event within the first time period is accurately counted.
[0100] Furthermore, the touch position of the touch event information is determined. If there is at least one touch position of the touch event information in the edge area of the screen, and there are at least two touch event information in the second time period that both indicate a pressed state, then based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm, the interception result of the touch event information in the edge area is determined. If the interception result indicates that the interception is unsuccessful, it can be accurately determined that the touch event corresponding to the touch event information in the edge area is a false touch event, and the number of false touches in the first time period can be accurately counted.
[0101] Furthermore, if there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information within the second time period that both indicate a pressed state, then the touch information of the target part is obtained from the touch event information in the edge area, and anti-mistouch processing can be performed on the touch information of the target part to improve the accuracy of the anti-mistouch processing.
[0102] Furthermore, for each touch information and corresponding threshold value at the base of the thumb, interception processing can be performed more accurately, and then the anti-false touch parameters in the anti-false touch algorithm can be adjusted more accurately, thereby improving the accuracy of anti-false touch.
[0103] By counting and obtaining the current user's thumb touch area, thumb touch length, thumb touch peak value and thumb long-short axis ratio of different gradients (pixel ranges), corresponding different anti-mistouch parameters can be set, so as to dynamically fine-tune the anti-mistouch parameters suitable for user behavior based on user behavior.
[0104] like Figure 4As shown, the AP system periodically detects touch events, the AP system obtains the touch event information reported by the touch system, and obtains the moment of the pressing state reported by the touch event, and determines whether the number of false touches exceeds the target number by counting and obtaining the number of false touches that are unsuccessfully intercepted based on the system default anti-false touch parameters of the current user. If the number of false touches does not exceed the target number, the default first parameter value is still retained. If the number of false touches exceeds the target number, the anti-false touch parameters suitable for the user behavior are dynamically fine-tuned by counting and obtaining the current user's thumb touch area, thumb touch length, thumb touch peak value and thumb long-short axis ratio, and the first parameter value of the anti-false touch parameter of the current anti-false touch algorithm is updated to the second parameter value.
[0105] In one embodiment, a method for preventing accidental touch is also provided, which is applied to an electronic device and includes the following steps:
[0106] Step A1, in response to a touch event occurring on the screen, acquiring touch event information.
[0107] Step A2: determining the touch position of the touch event information.
[0108] Step A3: If there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information within the second time length that both indicate a pressed state, then the target part touch information is obtained from the touch event information in the edge area; the second time length is shorter than the first time length, and the target part touch information includes at least one of the base of the thumb touch area, the base of the thumb touch length, the base of the thumb touch peak value, and the base of the thumb long and short axis ratio.
[0109] Step A4, if the thumb touch area is greater than the thumb touch area threshold, the thumb touch length is greater than the thumb touch length threshold, the thumb touch peak is greater than the thumb touch peak threshold and / or the thumb long-short axis ratio is greater than the thumb long-short axis ratio threshold, then the touch event information in the edge area is intercepted and processed to obtain an interception result; at least one of the thumb touch area threshold, the thumb touch length threshold, the thumb touch peak threshold and the thumb long-short axis ratio threshold belongs to the first parameter value.
[0110] Step A5: if the interception result indicates that the interception is unsuccessful, then determining that the touch event corresponding to the touch event information in the edge area is a false touch event.
[0111] Step A6, counting the number of false touches corresponding to the false touch events within the first time period.
[0112] Step A7, if the number of false touches exceeds the target number, the thumb touch area threshold, thumb touch length threshold, thumb touch peak threshold and / or thumb long-short axis ratio threshold are reduced to obtain a second parameter value; the second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number.
[0113] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0114] Based on the same inventive concept, the embodiment of the present application also provides an anti-accidental touch device for implementing the above-mentioned anti-accidental touch method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more anti-accidental touch device embodiments provided below can refer to the limitations of the anti-accidental touch method above, and will not be repeated here.
[0115] In an exemplary embodiment, Figure 5 As shown, a false touch prevention device is provided, including: a touch event information acquisition module 502, a false touch number determination module 504 and a parameter adjustment module 506, wherein:
[0116] The touch event information acquisition module 502 is used to acquire touch event information in response to a touch event occurring on the screen.
[0117] The false touch number determination module 504 is used to determine the false touch number within a first time period based on the first parameter value of the false touch prevention parameter in the false touch prevention algorithm and the touch event information.
[0118] The parameter adjustment module 506 is used to adjust the first parameter value to a second parameter value if the number of false touches exceeds the target number; the second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number.
[0119] The above-mentioned anti-false touch device obtains touch event information in response to a touch event occurring on the screen, and determines the number of false touches within a first time period based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm and the touch event information. If the number of false touches exceeds the target number, it means that there is too much touch event information of the false touch events that have not been intercepted within the first time period, and the first parameter value is adjusted to the second parameter value. The second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number, so that the touch event information of the false touch events can be more accurately intercepted, that is, more accurate false touch prevention can be achieved.
[0120] In one embodiment, the above-mentioned false touch number determination module 504 is also used to determine whether the touch event corresponding to the touch event information is a false touch event based on the first parameter value of the false touch prevention parameter in the false touch prevention algorithm; if the touch event corresponding to the touch event information is a false touch event, then the false touch number corresponding to the false touch event within the first time period is counted.
[0121] In one embodiment, the above-mentioned false touch number determination module 504 is also used to determine the touch position of the touch event information; if there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information within the second time length both indicating a pressed state, then based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm, the interception result of the touch event information in the edge area is determined; the second time length is less than the first time length; if the interception result indicates that the interception is unsuccessful, then it is determined that the touch event corresponding to the touch event information in the edge area is a false touch event.
[0122] In one embodiment, the above-mentioned false touch count determination module 504 is also used to obtain the target part touch information from the touch event information in the edge area if there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information in the second time period that both indicate a pressed state; based on the first parameter value of the false touch prevention parameter in the false touch prevention algorithm and the target part touch information, determine the interception result of the touch event information in the edge area.
[0123] In one embodiment, the target part touch information includes at least one of the base of the thumb touch area, the base of the thumb touch length, the base of the thumb touch peak value and the base of the thumb long-short axis ratio, and the first parameter value includes at least one of the base of the thumb touch area threshold, the base of the thumb touch length threshold, the base of the thumb touch peak value threshold and the base of the thumb long-short axis ratio threshold; the above-mentioned false touch number determination module 504 is also used to intercept and process the touch event information in the edge area to obtain the interception result if the base of the thumb touch area is greater than the base of the thumb touch area threshold, the base of the thumb touch length is greater than the base of the thumb touch length threshold, the base of the thumb touch peak value is greater than the base of the thumb touch peak value threshold and / or the base of the thumb long-short axis ratio is greater than the base of the thumb long-short axis ratio threshold; the above-mentioned parameter adjustment module 506 is also used to reduce the base of the thumb touch area threshold, the base of the thumb touch length threshold, the base of the thumb touch peak value threshold and / or the base of the thumb long-short axis ratio threshold to obtain the second parameter value if the number of false touches exceeds the target number.
[0124] In one embodiment, the touch event information acquisition module 502 is further configured to execute the step of acquiring touch event information in response to a touch event occurring on the screen when the target application is opened.
[0125] Each module in the above-mentioned anti-mistaken touch device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0126] In an exemplary embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a method for preventing accidental touch is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.
[0127] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0128] In one embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0129] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0130] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0131] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0132] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0133] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0134] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for preventing accidental touch, characterized in that: The method comprises: In response to a touch event occurring on the screen, acquiring touch event information; Determine the number of false touches within a first time period based on a first parameter value of a false touch prevention parameter in a false touch prevention algorithm and the touch event information; If the number of false touches exceeds the target number, the first parameter value is adjusted to a second parameter value; the second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number.
2. The method according to claim 1, characterized in that The determining the number of false touches within a first time period based on a first parameter value of a false touch prevention parameter in a false touch prevention algorithm and the touch event information includes: Determining whether the touch event corresponding to the touch event information is a false touch event based on a first parameter value of the false touch prevention parameter in the false touch prevention algorithm; If the touch event corresponding to the touch event information is an accidental touch event, the number of accidental touches corresponding to the accidental touch event within the first duration is counted.
3. The method according to claim 2, characterized in that The determining whether the touch event corresponding to the touch event information is a false touch event based on the first parameter value of the false touch prevention parameter in the false touch prevention algorithm includes: Determining a touch position of the touch event information; If there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information in the second time duration both indicating a pressed state, then based on the first parameter value of the false touch prevention parameter in the false touch prevention algorithm, determining the interception result of the touch event information in the edge area; the second time duration is less than the first time duration; If the interception result indicates that the interception is unsuccessful, it is determined that the touch event corresponding to the touch event information in the edge area is a false touch event.
4. The method according to claim 3, characterized in that If there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information in the second duration both indicating a pressed state, determining the interception result of the touch event information in the edge area based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm, including: If there is at least one touch event information whose touch position is in the edge area of the screen, and there are at least two touch event information in the second duration both indicating a pressed state, then acquiring the target part touch information from the touch event information in the edge area; Based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm and the target part touch information, an interception result of the touch event information in the edge area is determined.
5. The method according to claim 4, characterized in that The target part touch information includes at least one of a touch area of the base of the thumb, a touch length of the base of the thumb, a touch peak value of the base of the thumb, and a ratio of the major axis to the minor axis of the thumb, and the first parameter value includes at least one of a touch area threshold of the base of the thumb, a touch length threshold of the base of the thumb, a touch peak value threshold of the base of the thumb, and a ratio of the major axis to the minor axis of the thumb; The determining the interception result of the touch event information in the edge area based on the first parameter value of the anti-false touch parameter in the anti-false touch algorithm and the target part touch information includes: If the base of the thumb touch area is greater than the base of the thumb touch area threshold, the base of the thumb touch length is greater than the base of the thumb touch length threshold, the base of the thumb touch peak is greater than the base of the thumb touch peak threshold, and / or the base of the thumb long-short axis ratio is greater than the base of the thumb long-short axis ratio threshold, the touch event information in the edge area is intercepted and processed to obtain an interception result; If the number of false touches exceeds the target number, adjusting the first parameter value to a second parameter value includes: If the number of false touches exceeds the target number, the thumb touch area threshold, the thumb touch length threshold, the thumb touch peak threshold and / or the thumb long-short axis ratio threshold are reduced to obtain a second parameter value.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When the target application is started, the step of acquiring touch event information in response to a touch event occurring on the screen is performed.
7. An anti-accidental touch device, characterized in that: The device comprises: A touch event information acquisition module, used to acquire touch event information in response to a touch event occurring on the screen; A false touch number determination module, used to determine the false touch number within a first time period based on a first parameter value of a false touch prevention parameter in a false touch prevention algorithm and the touch event information; A parameter adjustment module is used to adjust the first parameter value to a second parameter value if the number of false touches exceeds the target number; the second parameter value is used to ensure that the number of false touches within the first time period does not exceed the target number.
8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.