Screen touch optimization method, device, terminal equipment and storage medium
By receiving and analyzing touch events, it can determine and correct misoperations, solving the problem of touch inaccuracies caused by user misoperations and improving the accuracy of screen touch operations.
Patent Information
- Application Number
- CN202110844833.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-26
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-07-26
AI Technical Summary
Users are prone to misoperations when performing touch operations on the screen, causing the touch to be inconsistent with expectations and reducing the accuracy of touch operations.
By receiving touch events, the touch position is obtained, and it is determined whether it is within the misoperation area. If so, the target interactive control is determined and the corresponding operation is performed to correct the mistouch.
It improves the accuracy of touch operations, reduces the impact of user misoperations, and ensures that touch operations are consistent with expectations.
Smart Images

Figure CN113760123B
Abstract
Description
Technical Field
[0001] The present application relates to the field of interactive technology, and in particular to a method, device, terminal equipment and storage medium for optimizing screen touch. Background Art
[0002] Most of today's electronic devices interact through user touch of the screen. With the development of technology, the touch feedback accuracy of touch screens is getting higher and higher, and there are more and more interactive touch components on the same screen. However, this also leads to an increase in the possibility of user misoperation. Therefore, how to improve the accuracy of touch operations has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiment of the present application discloses a screen touch optimization method, which can accurately correct the user's erroneous touch operation, solve the problem that the user is prone to erroneous operation resulting in the touch being inconsistent with the expectation, and improve the accuracy of the touch operation.
[0004] An embodiment of the present application discloses a method, including: receiving a touch event of a current screen, and obtaining a touch position of the touch event; the screen image of the current screen includes one or more interactive controls; if the touch position is within an erroneous operation area corresponding to the one or more interactive controls, determining a target interactive control corresponding to the touch event according to the touch position; and in response to the touch event, executing an interactive operation corresponding to the target interactive control.
[0005] An embodiment of the present application discloses an optimization device for screen touch, including: a touch event monitoring module, used to receive a touch event of the current screen and obtain the touch position of the touch event; the screen image of the current screen includes one or more interactive controls; a target interactive control determination module, used to determine the target interactive control corresponding to the touch event according to the touch position if the touch position is within the error operation area corresponding to the one or more interactive controls; a touch event response module, used to respond to the touch event and execute the interactive operation corresponding to the target interactive control.
[0006] An embodiment of the present application discloses a terminal device, including: a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements any method disclosed in the embodiment of the present application.
[0007] An embodiment of the present application discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, any method disclosed in the embodiment of the present application is implemented.
[0008] The embodiment of the present application also discloses a computer program product. When the computer program product is run on a terminal device, the terminal device implements any method disclosed in the embodiment of the present application when executing the computer program product.
[0009] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0010] By detecting a touch event that is within the erroneous operation area, the target interactive control corresponding to the touch event is determined based on the touch position of the touch event, so that the interactive operation corresponding to the target interactive control is performed in response to the touch event. That is, by correcting the response operation of the touch event whose touch coordinates are within the erroneous operation area, the user's erroneous touch operation can be accurately corrected, solving the problem that the user is prone to erroneous operation resulting in the touch being inconsistent with the expectation, and improving the accuracy of the touch operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments 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 drawings can be obtained based on these drawings without paying creative work.
[0012] Figure 1 This is an application scenario of the screen touch optimization method provided by an embodiment of the present application;
[0013] Figure 2 is a system structure diagram of a terminal device provided in an embodiment of the present application;
[0014] Figure 3 is a flowchart of an implementation method of a screen touch optimization method provided in an embodiment of the present application;
[0015] Figure 4 is a flowchart for implementing the process of determining the target interactive control corresponding to the touch event according to the touch position in one embodiment of the present application;
[0016] Figure 5 is a schematic diagram of determining a target interactive control using a classification model provided by an embodiment of the present application;
[0017] Figure 6 is a flowchart of an implementation method of a screen touch optimization method provided by another embodiment of the present application;
[0018] Figure 7 is a schematic diagram of a neighboring area provided by an embodiment of the present application;
[0019] Figure 8is a flowchart for implementing the determination of adjacent areas corresponding to each interactive control based on the interactive areas of each interactive control provided by an embodiment of the present application;
[0020] Fig. 9 is a schematic diagram of a neighboring area provided by another embodiment of the present application;
[0021] Fig.10 is a schematic diagram of an erroneous operation area provided by an embodiment of the present application;
[0022] Fig.11 is a flowchart for implementing the method of determining a target interactive control corresponding to the touch position from the at least two interactive controls provided by an embodiment of the present application;
[0023] Fig.12 is a flowchart of an implementation method of a screen touch optimization method provided by another embodiment of the present application;
[0024] Fig.13 is a schematic diagram of the structure of an optimization device provided in one embodiment of the present application;
[0025] Fig.14 It is a structural diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0026] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0027] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0028] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0029] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0030] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0031] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0032] In the embodiment of the present application, the execution subject of the process is a terminal device. The terminal device includes but is not limited to: a computer, a smart phone, a tablet computer and other devices that can execute the screen touch optimization method disclosed in the present application, and the terminal device can receive touch operations from the touch screen to allow the user to perform operation control. Figure 1 The application scenario provided by an embodiment of the present application is shown in FIG. Figure 1 , Figure 1The application scenario in which a user operates a mobile terminal by touching the screen of the mobile terminal is shown. The screen contains multiple interactive controls (only 5 are shown in the figure), among which the gap between control 1 and control 2, and between control 2 and control 3 is smaller than that between other controls, and is a control that is easily misoperated by the user. For example, the user wants to touch control 1, but accidentally touches the area between control 1 and control 2. At this time, the screen touch optimization method provided in the embodiment of the present application can be applied to determine that controls 1, 2, and 3 are interactive controls, and according to the user's touch position, identify the target control that the user originally wanted to touch as control 1 shown in the figure, so that the interactive operation corresponding to control 1 is performed in response to the user's touch. Obtaining the touch position when the user misoperates, and identifying the target control when the user misoperates according to the touch position, can accurately correct the user's misoperation, so that the target control responds to the user's operation, rather than no response, and solves the problem that the user's misoperation causes the response operation that the user expects to fail to occur.
[0033] Figure 2 A system structure diagram of a terminal device provided in an embodiment of the present application is shown, see Figure 2 , the terminal device displays the control layout on the screen, receives the user's touch operation, determines the screen touch position of the touch operation through the processor, compares it with the control layout, determines the control corresponding to the touch operation, and feeds the control back to the application layer to execute the operation corresponding to the control. The above-mentioned execution of the interactive operation corresponding to the control 1 in response to the user's touch can be specifically as follows: before comparing the screen touch position with the control layout, change the screen touch position so that the user touch is associated with the target interactive control on the screen, that is, when comparing the above-mentioned changed screen touch position with the control layout, it is recognized that the changed screen touch position is within the recognition range of a certain interactive control, and the certain interactive control is the above-mentioned target interactive control.
[0034] Figure 3 The following is a flowchart of an implementation of a method for optimizing touch screen control provided by an embodiment of the present application, which is described in detail as follows:
[0035] In S301, a touch event of the current screen is received, and a touch position of the touch event is obtained. In this embodiment, the screen image of the current screen includes one or more interactive controls. The interactive control refers to an interactive control within the screen image. Exemplarily, the one or more interactive controls may include various button icons included in the screen image of the current screen. It should be understood that the one or more interactive controls may refer to all interactive controls or part of the interactive controls included in the screen image; the one or more interactive controls may be pre-set or determined based on historical touch data, such as using frequently touched interactive controls as interactive controls that need to be optimized.
[0036] As an implementation mode, the terminal device may capture the screen image currently displayed on the screen, and identify one or more interactive controls contained in the screen image, specifically, identify one or more interactive controls in the screen image through an image recognition model. In a possible implementation mode, the above-mentioned identification of one or more interactive controls in the screen image through an image recognition model may specifically be: importing the screen image into the image recognition model so that the image recognition model performs edge detection processing on the screen image to obtain edge information of the screen image, and determining the display area corresponding to each interactive control located in the screen image based on the edge information, and all the identified interactive controls may be used as one or more interactive controls determined in this embodiment, or one or more controls may be selected from all interactive controls as one or more interactive controls determined in this embodiment.
[0037] In this embodiment, the touch event refers to an event generated by receiving a user's touch behavior on the current screen; the touch position of the touch event refers to the position of the user's touch behavior on the current screen. The touch position can refer to the touch area of the screen where the user touches, or it can refer to the touch point of the screen where the user touches. Specifically, the touch point can be the center point of the touch area.
[0038] In one possible implementation, the above-mentioned receiving of touch events and obtaining the touch positions of the touch events may specifically be performed by receiving touch operations from the user through the touch elements of the touch screen, generating touch events based on the touch operations, and recording the touch positions corresponding to the touch events. The terminal device receives the touch events and the touch positions to facilitate subsequent operations.
[0039] In S302, if the touch position is within the erroneous operation area corresponding to the one or more interactive controls, the target interactive control corresponding to the touch event is determined according to the touch position.
[0040] In this embodiment, the misoperation area may refer to the peripheral area of the interaction area of the above-mentioned one or more interactive controls, and the misoperation area is used to identify whether the above-mentioned touch event is caused by a user's misoperation. When the touch position is in the misoperation area, the probability that the user wants to trigger the interactive control is relatively high. Therefore, it can be determined that the user's touch operation anywhere in the misoperation area is identified as a misoperation. Under normal circumstances, the user initiates a touch event on the current screen. If the touch position of the touch event is located in the interactive area of an interactive control, that is, the interactive control is in the display area on the screen, the terminal device responds to the user's touch with the interactive control, that is, executes the interactive operation corresponding to the interactive control. In the actual operation process of the user, it may happen that the touch position of the user's touch is outside the interactive area, and the operation of the interactive control corresponding to the interactive area cannot be triggered. Therefore, the screen touch needs to be optimized.
[0041] In one possible implementation, the erroneous operation area can be specifically determined according to the following method: the peripheral areas of the interaction areas of each interactive control are combined to obtain the erroneous operation area. Specifically, the erroneous operation distance corresponding to each interactive control can be preset, and the set of all areas whose distance from the outermost edge of the interaction area of each interactive control is the erroneous operation distance is identified as the erroneous operation area. It should be understood that the erroneous operation distance can be fixed, that is, the erroneous operation distance corresponding to each interactive control is the same, or it can be determined according to the size of the interaction area of each interactive control, that is, if the size of the interaction area is inconsistent, the corresponding erroneous operation distance is also inconsistent.
[0042] It should be understood that the erroneous operation area may be a pre-set area, specifically, may be a peripheral area of an interactive area of a pre-selected control to be optimized, where the control to be optimized is selected from the one or more interactive controls mentioned above.
[0043] In this embodiment, if the touch position is within the error operation area, it means that the touch event is likely caused by the user's error operation, so the touch event needs to be optimized to minimize the impact of the user's error operation. Exemplarily, the touch event is optimized by determining the target interactive control according to the touch position. The target interactive control may refer to the interactive control that the user wants to touch when performing the touch operation, so that the touch event is subsequently responded to with the target interactive control. It should be understood that if the touch position is used to represent a touch point, and the touch point is located in the erroneous operation area, then the touch position is judged to be in the erroneous operation area; if the touch position is used to represent a touch area, then it is judged whether the regional center of the touch area is in the erroneous operation area, or whether the proportion of the overlapping area of the touch area and the erroneous operation area in the touch area is greater than or equal to the preset proportion, so as to further judge whether the touch position is in the erroneous operation area. Specifically, when the regional center of the touch area is in the erroneous operation area, or the proportion of the overlapping area of the touch area and the erroneous operation area in the touch area is greater than or equal to the preset proportion, then the touch position is judged to be in the erroneous operation area.
[0044] like Figure 4 As shown, Figure 4 The flowchart of determining the target interactive control corresponding to the touch event according to the touch position in one embodiment of the present application is shown, that is, S302 may include S3021-S3022, which are described in detail as follows:
[0045] In S3021, the touch coordinates corresponding to the touch position are input into a trained classification model, and the touch position is classified by the trained classification model to obtain a control category corresponding to the touch coordinates;
[0046] In this embodiment, the classification model is trained based on the historical touch data of the one or more interactive controls. The historical touch data of the one or more interactive controls refers to the touch events that trigger the one or more interactive controls and their corresponding touch coordinates, and the one or more interactive controls correspond to each of the above control categories. The above touch coordinates are used to characterize the above touch position. If the above touch position is a touch point, the touch coordinates are the coordinates of the touch point on the current screen; if the above touch position is a touch area, the touch coordinates are the coordinates of the area center of the touch area on the current screen.
[0047] Optionally, a touch event of an interactive control may specifically be an event caused by a user performing a touch operation on an interactive area of the interactive control (the corresponding display area on the screen), that is, the touch position of the touch event is located within the interactive area of the interactive control, that is, the historical touch data may specifically be the historical data left by a user performing a touch operation on the interactive control under normal circumstances.
[0048] As a specific real-time method, the above classification model may include a neural network based on the KNN (K-NearestNeighbor) algorithm. The training process of the classification model may include: building a classification model to be trained based on the KNN (K-NearestNeighbor) algorithm, importing the historical touch data of the above one or more interactive controls into the classification model to be trained as a training data set, and the classification model to be trained can determine the parameters within the model through the historical touch data, and finally train to obtain a KNN classification model, that is, the above classification model. It should be noted that the classification model can also be a classification model based on other algorithms, such as a clustering classification model, a neural network classification model based on deep learning, which is not limited here.
[0049] In this embodiment, the control categories that can be output by the classification model correspond one-to-one to the above-mentioned one or more interactive controls.
[0050] In one possible implementation, the touch coordinates corresponding to the touch position are input into a classification model, and the touch coordinates are classified by the classification model to obtain the control category corresponding to the touch coordinates. Specifically, it can be: the touch coordinates are input into the above-mentioned KNN classification model, and the touch coordinates are classified by the KNN classification model to obtain the control category of the touch coordinates. As a specific implementation method, the KNN classification model selects the K historical touch coordinates closest to the touch coordinates from the above-mentioned historical touch data, and determines the control category of the touch coordinates according to the control categories corresponding to the K historical touch coordinates. Further, the KNN classification model selects the control category with the largest proportion in the above-mentioned K historical touch coordinates as the control category of the touch coordinates. It should be understood that the above-mentioned K is one of the internal parameters of the KNN classification model, and the K can be specifically set according to the data volume of the above-mentioned historical touch data, and can also be obtained through the above-mentioned training process.
[0051] In S3022, the interactive control corresponding to the control category is determined as the target interactive control.
[0052] In this embodiment, as described above, the control category corresponds to the interactive control one by one, and the interactive control corresponding to the control category output by the above classification model is determined as the target interactive control to complete the classification of the touch coordinates and associate the touch coordinates with the target interactive control.
[0053] In this embodiment, by classifying the touch coordinates through a classification model, the target interactive control corresponding to the touch event triggered by the user in the erroneous operation area can be accurately identified, so as to accurately correct the user's erroneous operation subsequently.
[0054] In S303, in response to the touch event, an interactive operation corresponding to the target interactive control is executed.
[0055] Generally speaking, if the touch position of the touch event is within the misoperation area, it means that the user did not correctly touch the interactive area of any interactive control when touching the current screen. The touch event is a misoperation event, and the terminal device does not need to respond to the touch event. However, in this embodiment, the screen touch is optimized, which is mainly reflected in responding to the touch event. Specifically, the target interactive control corresponding to the touch event is determined in the above S302, and when responding to the touch event, the interactive operation corresponding to the target interactive control is performed.
[0056] In a possible implementation, the above-mentioned response to the touch event and executing the interactive operation corresponding to the target interactive control may specifically be: adjusting the touch position corresponding to the touch event to the target touch position, and the target touch position is used to trigger the interactive operation corresponding to the target interactive control; specifically, the target touch position refers to the position within the interactive area of the target interactive control. The above-mentioned adjustment of the touch position to the target touch position, using the adjusted touch position as a reference for responding to the above-mentioned touch event, and responding to the touch event with the target interactive control, enables the terminal device to execute the interactive operation corresponding to the target interactive control when responding to the touch event.
[0057] As a specific implementation method, the specific steps of the terminal device in responding to the touch event can be found in Figure 2 , the terminal device displays the control layout on the screen, receives the user's touch operation, generates a touch event, determines the screen touch position of the touch event through the processor, compares the screen touch position with the control layout, determines the control corresponding to the touch operation, and feeds back the control to the application layer to execute the operation corresponding to the control. The above-mentioned adjustment of the touch position corresponding to the touch event to the target touch position can be specifically done by changing the value of the touch position before comparing the screen touch position (that is, the above-mentioned touch position) with the control layout, so that different results are produced in the subsequent comparison process with the control layout. That is to say, when the terminal device responds to the touch event, it should not perform any operation. Since the touch position corresponding to the touch event is adjusted to the target touch position, the terminal device now performs the interactive operation corresponding to the target interactive control when responding to the touch event.
[0058] In this embodiment, by analyzing the touch events in the erroneous operation area, the target interactive control corresponding to the touch event is determined so that the touch event can be responded to with the target interactive control. This can accurately correct the user's erroneous operation and solve the problem in the prior art that users are prone to erroneous operations, resulting in touch not being consistent with expectations.
[0059] Figure 5 A schematic diagram of determining a target interactive control using a classification model according to an embodiment of the present application is shown. Figure 5 , input the historical touch data of the one or more interactive controls into the classification model to be trained, cluster the historical touch data through the classification model to be trained, determine the category center touch coordinates of the control category corresponding to each of the interactive controls, so as to obtain a trained classification model.
[0060] In this embodiment, the historical touch data includes each interactive control and multiple historical touch coordinates corresponding to each interactive control, that is, the training of the classification model is supervised training, and the historical touch data is input into the classification model to be trained so that the classification model classifies the historical touch data according to the interactive controls, and clusters the multiple historical touch coordinates corresponding to each interactive control to obtain the centroid coordinates of the multiple historical touch coordinates, that is, the category center touch coordinates corresponding to each control category.
[0061] In this embodiment, if the parameters of the classification model obtained by the above training include one or more control categories and their corresponding category center touch coordinates, then the touch coordinates corresponding to the touch position are input into the classification model, and the touch position is classified by the classification model to obtain the control category corresponding to the touch coordinates. For details, please refer to Figure 5 , input the touch coordinates into a classification model, determine the control category corresponding to the category center touch coordinates with the smallest distance from the touch coordinates through the classification model, and output the determined control category.
[0062] It should be understood that the above-mentioned training process of the classification model can be unsupervised training. Specifically, only multiple coordinate information in the historical touch data of the above-mentioned one or more interactive controls is input into the classification model, and the classification model is allowed to perform unsupervised clustering based on the K-means algorithm. The K value of the K-means algorithm can be specifically equivalent to the number of the one or more interactive controls. For the specific details of the K-means algorithm, please refer to the prior art and will not be repeated here.
[0063] It should be understood that after the control category corresponding to the touch coordinates is outputted, the category center touch coordinates of the control category corresponding to the touch coordinates can be adjusted according to the touch coordinates. Specifically, the category center touch coordinates are offset in the direction of the touch coordinates with a preset adjustment weight. That is, the touch coordinates are used as newly generated historical touch data and regressed into the classification model, so that the classification model gradually caters to the user's touch habits as the user touches multiple times.
[0064] Figure 6 FIG. 1 shows a flowchart of an implementation of a screen touch optimization method provided by another embodiment of the present application, see Figure 6 , relative to Figure 3 The optimization method disclosed in the embodiment also includes S601 to S603, which are described in detail as follows:
[0065] Furthermore, the optimization method further includes:
[0066] In S601, one or more interactive controls included in the screen image are identified to obtain interactive areas corresponding to the one or more interactive controls.
[0067] In this embodiment, the above-mentioned identification of one or more interactive controls contained in the screen image to obtain the interactive areas corresponding to the one or more interactive controls can be specifically as follows: capturing the screen image displayed on the current screen to obtain a screenshot; performing image recognition processing on the screenshot to identify one or more interactive controls and corresponding interactive areas in the screenshot. Exemplarily, the interactive control can be an operation button, and the interactive area can be the display area of the operation button. The above-mentioned image recognition processing on the screenshot can be based on an image segmentation algorithm to capture multiple candidate areas from the screenshot; each candidate area is matched with the icons of multiple preset interactive controls, and the successfully matched candidate area is identified as the interactive area of the above-mentioned interactive control.
[0068] It should be understood that the one or more interactive controls contained in the above-mentioned screen image are identified to obtain the interactive areas corresponding to the one or more interactive controls. Specifically, it can also be: intercepting the screen image displayed on the current screen to obtain a screenshot; performing image preprocessing on the screenshot and inputting it into a pre-trained image recognition model, and the image recognition model outputs one or more interactive controls and their corresponding interactive areas; the image recognition model can be a convolutional neural network obtained through deep learning training, and the training set of the image recognition model can be a plurality of training screenshots containing various interactive controls, and each training screenshot is marked with various interactive controls and their interactive areas. It should be understood that the training data set of the image recognition model can be determined according to the running application corresponding to the screenshot, that is, each different running application has a different training data set for training the image recognition model.
[0069] In S602, adjacent areas corresponding to the respective interactive controls are determined based on the interactive areas of the respective interactive controls.
[0070] In this embodiment, the adjacent area corresponding to each of the interactive controls is an area that does not overlap with the corresponding interactive area. The adjacent area refers to an area that a user may accidentally touch when touching the interactive control.
[0071] In a possible implementation, the above-mentioned determination of the adjacent area corresponding to each interactive control based on the interactive area of each interactive control can be specifically as follows: taking an interactive control as an example, based on a preset adjacent distance, the area from the interactive area of the interactive control to the adjacent distance is the adjacent area of the interactive control. For details, refer to Figure 7 , Figure 7 A schematic diagram of a neighboring area provided by an embodiment of the present application is shown, taking control 1 as an example, the distance between the outer circle and the inner circle of the control 1 is the above-mentioned neighboring distance, the inner circle of the control 1 is the interactive area 71 of the control 1, and the annular area around the control 1 is the neighboring area 72 of the control 1. It should be understood that the preset neighboring distance can be a preset fixed value, or a value determined according to the area size of the interactive area 71 of the interactive control.
[0072] like Figure 7 As shown, the adjacent area 72 of the control 1 obtained in the above possible implementation manner has an overlapping area 73 with the interactive area of the control 5 shown in the figure. Therefore, further, as Figure 8 As shown, the method S602 disclosed in this embodiment includes S6021 to S6022, which are described in detail as follows:
[0073] The determining the adjacent area corresponding to each of the interactive controls based on the interactive area of each of the interactive controls includes:
[0074] In S6021, an area of the screen image whose distance to the edge of the first interactive area is less than or equal to the proximity distance is determined as a first proximity area corresponding to the first interactive control.
[0075] In this embodiment, the first interactive control is any interactive control among the one or more interactive controls, and the first interactive area is the interactive area 71 of the first interactive control. Figure 7 , the first interactive control can be Figure 7 For the control 1 shown, the first adjacent area is the annular area 72 around the control 1. The detailed description of S6021 in this embodiment can refer to the related description of determining the adjacent area, which will not be repeated here.
[0076] In S6022, if the first adjacent area intersects with the interaction areas corresponding to other interactive controls, the first adjacent area is adjusted so that there is no intersection between the first adjacent area and the interaction areas of each interactive control.
[0077] In this embodiment, refer to Figure 7 When the first adjacent area is the adjacent area 72 of the control 1, there is an intersection between the first adjacent area and the interactive area of the control 5. The first adjacent area needs to be adjusted so that there is no intersection between the first adjacent area and the interactive area of any interactive control, so as to avoid repeated user touch events triggering the operation of two controls and causing user touch confusion.
[0078] In a possible implementation, the adjustment of the first adjacent area may be, specifically, gradually adjusting the first adjacent area in a direction away from the intersection until there is no intersection between the first adjacent area and the interactive area of any interactive control; the adjusted first adjacent area may be specifically referred to Fig. 9 , Fig. 9 A schematic diagram of a neighboring area provided by another embodiment of the present application is shown. Specifically, the adjusted first neighboring area may be Fig. 9 A neighboring area 91 of control 1 is shown.
[0079] In S603, adjacent areas corresponding to the interactive controls are combined to obtain an erroneous operation area.
[0080] In this embodiment, the misoperation area refers to the area that may be touched by the misoperation when the user intends to perform a touch operation on the interactive control but makes a misoperation. Fig. 9 The adjacent areas of each interactive control in the screen shown in the figure are combined to obtain the error operation area. The error operation area can be specifically referred to Fig.10 , Fig.10A schematic diagram showing an erroneous operation area provided by an embodiment of the present application is shown. Fig.10 The black area 100 in FIG. 1 is the above-mentioned erroneous operation area.
[0081] In this embodiment, by determining the user's erroneous operation area, the amount of calculation can be reduced by not considering other erroneous operations outside the erroneous operation area, and the possible touch area when the user erroneously operates can be estimated in advance, so as to accurately correct the user's erroneous operation later.
[0082] It should be understood that the above steps S601 to S603 may be performed before S301 or after S301, which is not limited here.
[0083] Furthermore, the method S302 disclosed in this embodiment includes S604, which is described in detail as follows:
[0084] The step of determining a target interactive control corresponding to the touch event according to the touch position includes:
[0085] In S604, if the touch coordinates corresponding to the touch position are located at the intersection of adjacent areas of at least two interactive controls, a target interactive control corresponding to the touch event is determined from the at least two interactive controls.
[0086] In one possible implementation, the misoperation area is obtained by combining the adjacent areas of each interactive control. When the touch coordinates are in the misoperation area, the touch coordinates are also in the adjacent area of a certain interactive control. Generally speaking, the target interactive control corresponding to the touch event is determined based on the touch coordinates. Specifically, it can be determined that the area where the touch coordinates are located is the adjacent area of which interactive control. This means that the touch coordinates correspond to the determined interactive control, that is, the determined interactive control is the target interactive control. However, there is a situation where the adjacent areas of at least two interactive controls partially overlap. See Fig. 9 , take control 1 and control 2 as examples to explain, Fig. 9 There is an overlapped area 93 between the adjacent area 91 of control 1 and the adjacent area 92 of control 2. That is, when the touch coordinates are located in the overlapped area 93, it is necessary to further determine which control the target interactive control corresponding to the touch coordinates is. Fig. 9Taking the overlapping area 93 shown as an example, the above-mentioned determination of the target interactive control corresponding to the touch event from the at least two interactive controls can specifically be: selecting control 1 or control 2 as the target interactive control corresponding to the touch coordinates, that is, the target interactive control corresponding to the touch event; exemplarily, the overlapping area 93 between the adjacent area of control 1 and the adjacent area of control 2 is evenly divided, if the touch coordinates are located in the partial overlapping area 931 close to control 1, then the target interactive control corresponding to the touch coordinates is control 1; if the touch coordinates are located in the partial overlapping area 932 close to control 2, then the target interactive control corresponding to the touch coordinates is control 2.
[0087] It should be noted that the method of selecting control 1 or control 2 as the target interactive control corresponding to the touch coordinates is not limited.
[0088] Furthermore, if Fig.11 As shown, the method S604 disclosed in this embodiment includes S6041 to S6043, which are described in detail as follows:
[0089] The determining, from the at least two interactive controls, a target interactive control corresponding to the touch coordinates corresponding to the touch position includes:
[0090] In S6041, operation intervals corresponding to the at least two interactive controls are determined.
[0091] In this embodiment, the operation interval is used to indicate the triggering time interval of the interactive operation corresponding to the interactive control, which can also be said to be the cooling time of the interactive control; the operation interval can be specifically determined according to the interactive control. For example, each interactive control is configured with a corresponding operation interval. Specifically, the preset interactive control in S601 is pre-configured with a corresponding operation interval. When S601 identifies an interactive control that matches the preset interactive control, the operation interval of the interactive control is determined. Fig. 9 , determine the operation intervals corresponding to control 1 and control 2 respectively. For example, the operation interval of control 1 is 2s, and the operation interval of control 2 is 4s.
[0092] In S6042, the interval between the triggering moment of the most recent interaction operation corresponding to the at least two interactive controls and the current moment is obtained.
[0093] In this embodiment, an interactive control is used as an example for explanation. The triggering time of the most recent interactive operation of the interactive control refers to the time when the last touch event generated based on the user's touch operation was responded to and the operation of the interactive control was performed, that is, the most recent time when the interactive control was executed. It should be understood that even if the last touch event was caused by a user's erroneous operation, as long as the operation of the interactive control is executed as a response, the erroneous operation also belongs to the most recent interactive operation. The interval duration is used to characterize the time that the interactive control has not been touched so far, and the interval duration is determined to facilitate subsequent comparison with the corresponding operation interval.
[0094] In S6043, an interactive control whose corresponding interval duration is greater than or equal to the corresponding operation interval is selected from the at least two interactive controls as a target interactive control corresponding to the touch event.
[0095] In this embodiment, an interactive control is used as an example for explanation. If the interval duration of the interactive control is greater than or equal to the operation interval of the interactive control, it means that the last operation of the interactive control has passed long enough and can receive the next operation. In other words, the interactive control has cooled down and can be touched again at any time. At this time, the interactive control should be used as the target interactive control corresponding to the touch event. By comparing the interval duration and the operation interval of an interactive control, the user's erroneous operation is prevented from being identified as an invalid operation.
[0096] It should be understood that before the step of identifying the interactive control in S601, the difference between the icon of the interactive control that has not reached the operation interval and the icon of the interactive control that has reached the operation interval can be preset, and the difference can be identified at the same time when the interactive control is identified in S601 to determine whether the last operation of the identified interactive control has reached the corresponding operation interval; taking the game skill as an example, the display area of the interactive control that has not reached the operation interval generally displays the corresponding remaining time in seconds, indicating the difference between the corresponding interval duration and the corresponding operation interval; if the remaining time is not displayed on the display area of the interactive control, it means that the last operation of the interactive control has reached the corresponding operation interval; in particular, there is a situation where the game skill has not been learned (currently cannot be used), if the brightness value of the interactive control is lower than the threshold, the interactive control can be identified as not ready to receive the next operation, and the operation interval of the interactive control is infinite. It should be understood that if the result of S601 identification is used as the benchmark for whether the last operation of the interactive control has reached the corresponding operation interval, it is necessary to monitor the screen in real time to timely know whether the interactive control has reached the corresponding operation interval.
[0097] In this embodiment, if there are at least two interactive controls whose corresponding interval duration is longer than the corresponding operation interval, it is necessary to further determine the target interactive control corresponding to the touch event to ensure the uniqueness of the target interactive control. In the case where there are at least two interactive controls whose corresponding interval duration is longer than the corresponding operation interval, the target interactive control corresponding to the touch event is selected from the at least two interactive controls, and the selection rules may be as follows:
[0098] Exemplarily, the interactive control with the shortest corresponding interval duration is selected as the target interactive control corresponding to the touch event, that is, the interactive control most recently operated by the user is selected as the target interactive control to meet the user's need to reuse the interactive control.
[0099] Exemplarily, the interactive control with the shortest difference between the corresponding operation interval and the corresponding interval duration is selected as the target interactive control corresponding to the touch event, that is, the interactive control that can just receive the next operation (that is, the interactive control that is just cooled down) is selected to meet the user's urgent need to use the interactive control.
[0100] Exemplarily, the interactive control with the shortest corresponding operation interval is selected as the target interactive control corresponding to the touch event, that is, the interactive control that is touched again the fastest after being touched (that is, the shortest cooling time) is selected to meet the user's need to touch enough interactive controls within a certain period of time.
[0101] Exemplarily, the interactive control with the highest historical operation frequency is selected as the target interactive control corresponding to the touch event, that is, the interactive control most frequently used by users is selected to cater to the user's usage habits; it should be understood that the historical operation frequency of each interactive control can be determined from the historical touch data of each interactive control.
[0102] like Fig.12 As shown, Fig.12 The present invention is a flowchart for implementing the method of determining one or more interactive controls contained in a currently displayed screen image in an embodiment. In an embodiment of the present application, determining one or more interactive controls contained in a currently displayed screen image includes the following steps:
[0103] In S1201, determining the application corresponding to the screen image;
[0104] In this embodiment, generally speaking, when the terminal device is running an application, the screen touch needs to be optimized more than when the application is not running. Therefore, by determining the application corresponding to the currently displayed screen image, the screen touch can be optimized for the application.
[0105] In one possible implementation, the above-mentioned determination of the application corresponding to the currently displayed screen image may specifically be to obtain the currently running application identifier from the background of the terminal device, and thereby determine the above-mentioned application through the application identifier; or it may be to capture the currently displayed screen image and identify the application corresponding to the screen image through an image recognition algorithm.
[0106] In S1202, based on the configuration data of the application, one or more interactive controls included in the screen image and an erroneous operation area corresponding to the interactive controls are determined.
[0107] In this embodiment, the configuration data includes interactive control layout information and / or control optimization weights of the application.
[0108] In one possible implementation, if the configuration data is interactive control layout information, and the interactive control layout information includes the regional positions corresponding to each control, then the above-mentioned determination of one or more interactive controls contained in the screen image based on the configuration data of the application may specifically be: determining the regional positions corresponding to each interactive control in the screen image according to the interactive control layout information, and the each control may be the one or more interactive controls mentioned above. Exemplarily, the interactive control layout information refers to the default configuration data of the application or the user customized configuration data according to the application, such as various button layout schemes in a game. Through the interactive control layout information, the interactive controls of the application can be specifically identified, for example, the regional positions of each game button can be determined through the button layout scheme of the game, and there is no need to identify all the interactive controls in the screen image, which can reduce the amount of calculation for identifying one or more interactive controls contained in the screen image.
[0109] In another possible implementation, if the configuration data is a control optimization weight, and the control optimization weight includes the optimization weight of each control, then the above-mentioned configuration data based on the application determines one or more interactive controls contained in the screen image, which can be specifically: referring to the above S301 to determine all interactive controls in the screen image, and according to the control optimization weight, determining the interactive controls that need to be optimized as the above-mentioned one or more interactive controls, specifically, the optimization weight of the interactive controls that need to be optimized is greater than or equal to the preset first weight threshold. See Fig. 9 , the screen contains 5 interactive controls, and other interactive controls are not displayed, which can reduce the amount of calculation for controls that do not need to be optimized and improve optimization efficiency. It should be understood that when determining the above-mentioned misoperation area, a control to be optimized can be selected from the above-mentioned screen, and the optimization weight of the control to be optimized is greater than or equal to the preset second weight threshold, wherein the second weight threshold is greater than or equal to the above-mentioned first weight threshold; the above-mentioned misoperation area is determined according to the neighboring areas of each control to be optimized, further improving efficiency; illustratively, Fig.10 The screen contains 5 interactive controls, but the operation area only includes the adjacent areas of controls 1, 2, and 3.
[0110] In one possible implementation, the configuration data may include interactive control layout information and control optimization weights, that is, the configuration data based on the application is used to determine one or more interactive controls contained in the screen image. Specifically, it may be as follows: according to the interactive control layout information, the area positions corresponding to each control in the screen image are determined; according to the control optimization weights, the one or more interactive controls are determined from the various controls.
[0111] It should be understood that the configuration data may also include preset icons and operation intervals for various controls, so as to play a certain role in the above-mentioned related steps.
[0112] Corresponding to the method described in the above embodiment, Fig.13 A schematic diagram of the structure of a device disclosed in an embodiment of the present application is shown. For the convenience of explanation, only the part related to the embodiment of the present application is shown.
[0113] Reference Fig.13 The device for optimizing screen touch includes: a touch event monitoring module 131, which is used to receive a touch event of the current screen and obtain the touch position of the touch event; the screen image of the current screen includes one or more interactive controls; a target interactive control determination module 132, which is used to determine the target interactive control corresponding to the touch event according to the touch position if the touch position is in the error operation area corresponding to the one or more interactive controls; a touch event response module 133, which is used to respond to the touch event and execute the interactive operation corresponding to the target interactive control.
[0114] Optionally, the target interactive control determination module 132 includes: a classification module, used to input the touch coordinates corresponding to the touch position into a classification model, classify the touch coordinates through the classification model, and obtain the control category corresponding to the touch coordinates; the classification model is trained based on the historical touch data of the one or more interactive controls; the target interactive control determination module 132 is also used to determine the interactive control corresponding to the control category as the target interactive control.
[0115] Optionally, the screen touch optimization device also includes: a classification model training module, which is used to input the historical touch data of the one or more interactive controls into the classification model to be trained, cluster the historical touch data through the classification model to be trained, and determine the category center touch coordinates of the control category corresponding to each of the interactive controls to obtain a trained classification model. The above classification module is also used to input the touch coordinates into the trained classification model, determine the control category corresponding to the category center touch coordinates with the smallest distance from the touch coordinates through the trained classification model, and output the determined control category.
[0116] Optionally, the screen touch optimization device also includes: an interactive area identification module, which is used to identify one or more interactive controls contained in the screen image to obtain interactive areas corresponding to the one or more interactive controls; a neighboring area identification module, which is used to determine the neighboring area corresponding to each interactive control based on the interactive area of each interactive control, and the neighboring area corresponding to each interactive control is an area that does not overlap with the corresponding interactive area; an erroneous operation area identification module, which is used to combine the neighboring areas corresponding to each interactive control to obtain an erroneous operation area.
[0117] Optionally, the target interactive control determination module 132 is further used to determine the target interactive control corresponding to the touch event from the at least two interactive controls if the touch coordinates corresponding to the touch position are located at the intersection of adjacent areas of at least two interactive controls.
[0118] Optionally, the target interaction control determination module 132 also includes: an operation interval determination module, used to determine the operation intervals corresponding to the at least two interaction controls, wherein the operation intervals are used to indicate the triggering time interval of the interaction operation corresponding to the interaction control; an interval duration acquisition module, used to acquire the interval duration between the triggering moment of the most recent interaction operation corresponding to the at least two interaction controls and the current moment; the target interaction control determination module 132 is also used to select, from the at least two interaction controls, an interaction control whose corresponding interval duration is greater than or equal to the corresponding operation interval, as the target interaction control corresponding to the touch event.
[0119] Optionally, the target interaction control determination module 132 is also used to select the target interaction control from the at least two interaction controls whose corresponding interval durations are greater than the corresponding operation intervals according to a selection rule if there are at least two interaction controls whose corresponding interval durations are greater than the corresponding operation intervals; wherein the selection rule includes any one of the following: selecting the interaction control whose corresponding interval duration is the shortest as the target interaction control corresponding to the touch event; or selecting the interaction control whose corresponding operation interval and the corresponding interval duration have the shortest difference as the target interaction control corresponding to the touch event; or selecting the interaction control whose corresponding operation interval is the shortest as the target interaction control corresponding to the touch event; or selecting the interaction control whose corresponding operation interval is the shortest as the target interaction control corresponding to the touch event; or selecting the interaction control with the highest historical operation frequency as the target interaction control corresponding to the touch event.
[0120] Optionally, the above-mentioned neighboring area identification module is also used to determine an area in the screen image whose distance to the edge of the first interactive area is less than or equal to the neighboring distance as a first neighboring area corresponding to a first interactive control, the first interactive control is any interactive control among the one or more interactive controls, and the first interactive area is the interactive area of the first interactive control; the above-mentioned neighboring area identification module also includes: a neighboring area adjustment module, which is used to adjust the first neighboring area if there is an intersection between the first neighboring area and the interactive areas corresponding to other interactive controls, so that there is no intersection between the first neighboring area and the interactive areas of each interactive control.
[0121] Optionally, the screen touch optimization device also includes: an application identification module, used to determine the application corresponding to the screen image; a configuration data analysis module, used to determine one or more interactive controls contained in the screen image, and an erroneous operation area corresponding to the interactive controls based on the configuration data of the application.
[0122] It should be noted that the information interaction, execution process and other contents between the above-mentioned devices are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0123] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0124] Fig.14 FIG. 1 shows a schematic diagram of the structure of a terminal device disclosed in an embodiment of the present application. Fig.14 As shown, the terminal device 14 of this embodiment includes: at least one processor 140 ( Fig.14 Only one processor is shown in the figure), a memory 141, and a computer program 142 stored in the memory 141 and executable on the at least one processor 140, wherein the processor 140 implements the steps of any of the above-mentioned method embodiments when executing the computer program 142.
[0125] The terminal device 14 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 140 and a memory 141. Those skilled in the art will appreciate that Fig.14 It is only an example of the terminal device 14 and does not constitute a limitation on the terminal device 14. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0126] The processor 140 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0127] In some embodiments, the memory 141 may be an internal storage unit of the terminal device 14, such as a hard disk or memory of the terminal device 14. In other embodiments, the memory 141 may also be an external storage device of the terminal device 14, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 14. Further, the memory 141 may also include both an internal storage unit and an external storage device of the terminal device 14. The memory 141 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 141 may also be used to temporarily store data that has been output or is to be output.
[0128] The embodiment of the present application further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0129] An embodiment of the present application discloses a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0130] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0131] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0132] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0133] In the embodiments disclosed in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A screen touch optimization method, characterized in that: include: Receive a touch event on the current screen and obtain a touch position of the touch event; The screen image of the current screen includes one or more interactive controls; If the touch position is within the erroneous operation area corresponding to the one or more interactive controls, determining the target interactive control corresponding to the touch event according to the touch position; In response to the touch event, executing the interactive operation corresponding to the target interactive control; The optimization method further includes: Identify one or more interactive controls contained in the screen image to obtain interactive areas corresponding to the one or more interactive controls; Determine an area in the screen image whose distance from the edge of the first interactive area is less than or equal to the adjacent distance as a first adjacent area corresponding to a first interactive control, wherein the first interactive control is any interactive control among the one or more interactive controls, and the first interactive area is an interactive area of the first interactive control; If the first adjacent area and the interaction areas corresponding to other interactive controls have an intersection, adjusting the first adjacent area so that there is no intersection between the first adjacent area and the interaction areas of each interactive control; The adjacent areas corresponding to the interactive controls are combined to obtain an erroneous operation area.
2. The method according to claim 1, characterized in that The step of determining a target interactive control corresponding to the touch event according to the touch position includes: Inputting the touch coordinates corresponding to the touch position into a classification model, and classifying the touch coordinates by using the classification model to obtain a control category corresponding to the touch coordinates; the classification model is trained based on historical touch data of the one or more interactive controls; An interactive control corresponding to the control category is determined as a target interactive control.
3. The method according to claim 2, characterized in that Before inputting the touch coordinates corresponding to the touch position into a classification model and classifying the touch coordinates by the classification model to obtain the control category corresponding to the touch coordinates, the method further includes: Inputting historical touch data of the one or more interactive controls into the classification model to be trained, clustering the historical touch data through the classification model to be trained, and determining the category center touch coordinates of the control category corresponding to each of the interactive controls to obtain a trained classification model; The step of inputting the touch coordinates corresponding to the touch position into a classification model, classifying the touch coordinates by using the classification model, and obtaining the control category corresponding to the touch coordinates includes: The touch coordinates are input into the trained classification model, the control category corresponding to the category center touch coordinates with the smallest distance from the touch coordinates is determined by the trained classification model, and the determined control category is output.
4. The method according to claim 1, characterized in that: The step of determining a target interactive control corresponding to the touch event according to the touch position includes: If the touch coordinates corresponding to the touch position are located at the intersection of adjacent areas of at least two interactive controls, a target interactive control corresponding to the touch event is determined from the at least two interactive controls.
5. The method according to claim 4, characterized in that The determining a target interactive control corresponding to the touch event from the at least two interactive controls includes: Determine operation intervals respectively corresponding to the at least two interactive controls, where the operation intervals are used to indicate a triggering time interval of an interactive operation corresponding to the interactive control; Obtaining the interval between the triggering moment of the most recent interactive operation corresponding to the at least two interactive controls and the current moment; From the at least two interactive controls, an interactive control whose corresponding interval duration is greater than or equal to the corresponding operation interval is selected as a target interactive control corresponding to the touch event.
6. The method according to claim 5, characterized in that The selecting, from the at least two interactive controls, an interactive control whose corresponding interval duration is greater than or equal to the corresponding operation interval as a target interactive control corresponding to the touch event includes: If there are at least two interactive controls whose corresponding interval durations are greater than or equal to the corresponding operation interval, a target interactive control is selected from the at least two interactive controls whose corresponding interval durations are greater than the corresponding operation interval according to a selection rule; The selection rule includes any one of the following: Selecting the interactive control with the shortest corresponding interval duration as the target interactive control corresponding to the touch event; or Selecting an interactive control with the shortest difference between a corresponding operation interval and a corresponding interval duration as a target interactive control corresponding to the touch event; or Selecting the interactive control with the shortest corresponding operation interval as the target interactive control corresponding to the touch event; or The interactive control with the highest historical operation frequency is selected as the target interactive control corresponding to the touch event.
7. The method according to any one of claims 1 to 6, characterized in that The optimization method further includes: Determining an application corresponding to the screen image; Based on the configuration data of the application, one or more interactive controls included in the screen image and an erroneous operation area corresponding to the interactive controls are determined.
8. The method according to claim 7, characterized in that The configuration data includes interactive control layout information and / or control optimization weights of the application.
9. The method according to claim 1, characterized in that: The performing the interactive operation corresponding to the target interactive control in response to the touch event includes: The touch position corresponding to the touch event is adjusted to a target touch position; the target touch position is used to trigger an interactive operation corresponding to the target interactive control.
10. A touch screen optimization device, characterized in that: include: A touch event monitoring module, used to receive a touch event of the current screen and obtain a touch position of the touch event; The screen image of the current screen includes one or more interactive controls; a target interactive control determining module, configured to determine a target interactive control corresponding to the touch event according to the touch position if the touch position is within an erroneous operation area corresponding to the one or more interactive controls; A touch event response module, used to execute the interactive operation corresponding to the target interactive control in response to the touch event; An interactive area identification module, used to identify one or more interactive controls contained in the screen image, and obtain interactive areas corresponding to the one or more interactive controls; a neighboring area identification module, configured to determine an area in the screen image whose distance from an edge of the first interactive area is less than or equal to the neighboring distance as a first neighboring area corresponding to a first interactive control, wherein the first interactive control is any interactive control among the one or more interactive controls, and the first interactive area is an interactive area of the first interactive control; an adjacent region adjustment module, configured to adjust the first adjacent region if there is an intersection between the first adjacent region and the interaction regions corresponding to other interactive controls, so that there is no intersection between the first adjacent region and the interaction regions of each interactive control; The erroneous operation area identification module is used to combine the adjacent areas corresponding to the various interactive controls to obtain the erroneous operation area.
11. A terminal device, characterized in that: include: A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Mistaken touch preventing method and mobile terminal
CN103677408A
Method and terminal equipment for responding touch control operation
CN109745699A
Touch control method, mobile terminal and computer readable storage medium
CN109814797A
Screen content identification method and device, electronic device and storage medium
CN109885233A
Interactive object selection method and device
CN112433661A
