User operation execution method and device, electronic equipment and readable storage medium

By obtaining the trajectory and direction of user operations on the screen of the electronic device, determining the target angle and performing operations within the preset range, the problems of false touches and gesture deviations are solved, the interaction accuracy and user experience are improved, and especially in in-vehicle devices, the risk of distraction during driving is reduced.

CN120704552APending Publication Date: 2025-09-26GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510860437.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

User operations on electronic device screens may result in false triggers and gesture deviations, resulting in low interaction response accuracy, affecting user experience and operational efficiency, especially in dynamic environments.

Method used

By obtaining the operation trajectory and direction of the user operation, determining the target angle, and executing the user operation when the preset angle range is met, a fault tolerance space is provided to distinguish between intentional and unintentional operations, reducing erroneous responses caused by accidental touches.

Benefits of technology

It improves the reliability and user experience of human-computer interaction, reduces erroneous responses caused by accidental touches, improves the response efficiency and interaction accuracy of the screen, and especially reduces the risk of distraction during driving in in-vehicle electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704552A_ABST
    Figure CN120704552A_ABST
Patent Text Reader

Abstract

The invention provides a user operation execution method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of intelligent interaction.The method is applied to the electronic equipment comprising a screen, and the method comprises the steps that under the condition that user operation acting on the screen is detected, the operation track and the operation direction of the user operation are obtained; according to the operation track and a target angle between the operation track and the reference line; and under the condition that the target angle meets the preset angle interval, executing user operation based on the operation direction. According to the method and the device, accurate recognition of effective user operation is realized, and improvement of man-machine interaction reliability and user experience is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent interaction technology, and more specifically, to a method, device, electronic device and computer-readable storage medium for executing user operations in the field of intelligent interaction technology. Background Art

[0002] In order to improve the intuitiveness and convenience of user experience and interaction, the screen of an electronic device supports users to directly interact with the content on the screen through user operations (such as gesture operations or touch operations) to achieve operations such as switching functional modules and jumping through interface levels. However, in actual applications, there are certain false triggers in user operations. For example, it is difficult for the screen to effectively distinguish between intended user operations (such as precise clicks, sliding navigation) and unintended user operations (such as accidental palm touches, exploratory touches on the interface), or there are deviations in the user's operation gestures when performing user operations. Especially in dynamic environments, imprecise gestures will lead to differences between the user's actual operation intentions and the screen response, resulting in low accuracy of the interactive response of the user operation, affecting the user's operation efficiency. Summary of the Invention

[0003] The present application provides a method, device, electronic device and computer-readable storage medium for executing user operations. The present application realizes accurate identification of effective user operations, which is conducive to improving the reliability of human-computer interaction and user experience.

[0004] In a first aspect, a method for executing user operations is provided, which is applied to an electronic device including a screen, the method comprising: when a user operation acting on the screen is detected, obtaining an operation trajectory and an operation direction of the user operation; determining a target angle between the operation trajectory and a reference line based on the operation trajectory; and executing the user operation based on the operation direction when the target angle satisfies a preset angle range.

[0005] In this embodiment, by obtaining the target angle between the operation trajectory of the user operation and the reference line, the user operation is executed when the target angle meets the preset angle range. On the one hand, the user operation is constrained by whether the target angle meets the preset angle range. On the other hand, the preset angle range is used to provide a fault tolerance space for user operation deviations, thereby ensuring that only user operations whose target angle meets the preset angle range can trigger the screen response, reducing erroneous responses caused by accidental touches or responses that do not match the actual trigger intentions, and realizing accurate identification of effective user operations, which is beneficial to improving the human-computer interaction reliability and user experience.

[0006] In combination with the first aspect, in some possible implementations, obtaining the operation trajectory and operation direction of the user operation includes: obtaining the starting point and end point of the user operation, determining the line between the starting point and the end point as the operation trajectory; and determining the operation direction based on the direction from the starting point to the end point.

[0007] In this embodiment, by obtaining the starting point and end point of the user operation, the line between the starting point and the end point is determined as the operation trajectory; the operation direction is determined according to the direction from the starting point to the end point. When identifying the user operation, even if the target angle formed by some contacts and the reference line exceeds the preset angle range during the touch process, as long as the angle between the sliding direction determined based on the starting point and the end point and the reference line falls within the preset angle range, it will still be identified as an intended user operation. This not only improves the fault tolerance for user operation identification, but also reduces the risk of misidentification due to user operation deviations, while also reducing the computational overhead brought about by complex analysis of the complete operation trajectory, thereby improving the response efficiency of the screen.

[0008] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the reference line is the horizontal axis or vertical axis of a reference coordinate system established based on the screen, and the target angle between the operation trajectory and the reference line is determined according to the operation trajectory, including: determining the angle between the line between the starting point and the end point and the horizontal axis or vertical axis of the reference coordinate system as the target angle.

[0009] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after determining the target angle between the operation trajectory and the reference line based on the operation trajectory, the method also includes: obtaining the tangent value of the target angle; when the tangent value is less than or equal to the preset tangent value, performing the user operation based on the operation direction.

[0010] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, when the screen is a touch screen, the user operation is a touch operation, and the user operation is performed based on the operation direction, including: if the touch operation is a sliding operation and the operation direction is a first direction, executing the first function; if the touch operation is a sliding operation and the operation direction is a second direction, executing the second function, and the second direction is the opposite direction of the first direction.

[0011] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, executing the first function includes: obtaining the moving speed and moving distance of the sliding operation, where the moving distance is the product of the distance between the starting point and the end point of the sliding trajectory of the sliding operation and the cosine value of the target angle; when the moving speed is greater than or equal to the first speed threshold and the moving distance is greater than or equal to the first distance threshold, executing the first function.

[0012] In this embodiment, the moving speed and moving distance of the sliding operation are obtained, where the moving distance is the product of the distance between the starting point and the end point of the sliding trajectory and the cosine value of the target angle; and when the moving speed is greater than or equal to a first speed threshold and the moving distance is greater than or equal to the first distance threshold, the first function is executed. This achieves the distinction between intended and unintended user operations based on the touch angle, and further filters the touch angle based on the moving distance and moving speed. User operations with a moving speed greater than or equal to the first speed threshold and a moving distance greater than or equal to the first distance threshold are determined as the final intended user operations. This ensures a closer fit between the actual operation intention and the recognized operation intention, further reduces erroneous responses caused by accidental touches, and improves interaction accuracy.

[0013] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the method also includes: obtaining M historical user operations and N different calibrated angle intervals, wherein the i-th historical user operation corresponds to the i-th first historical angle, the i-th first historical angle is the angle between the line between the starting point and the end point of the historical operation trajectory of the i-th historical user operation and the reference line, M and N are both positive integers, 1≤i≤M; determining a preset angle interval from the N calibrated angle intervals based on the M historical user operations.

[0014] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, a preset angle interval is determined from N calibrated angle intervals based on M historical user operations, including: traversing the N calibrated angle intervals, and for the j-th calibrated angle interval, obtaining the first target operation and the second target operation corresponding to the j-th calibrated angle interval, the first historical angle corresponding to the first target operation belongs to the historical user operation of the j-th angle interval, and the first historical angle corresponding to the second target operation does not belong to the historical user operation of the j-th angle interval, 1≤j≤N; obtaining a first number of first execution operations in the first target operation and a second number of second execution operations in the second target operation, the first execution operation and the second execution operation both include historical user operations executed by the screen; determining a target angle interval from the N calibrated angle intervals based on the first total number, the first number, the second total number and the second number of the second target operations; and determining the target angle interval as the preset angle interval.

[0015] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the target angle interval is determined from N calibrated angle intervals based on the first total number of the first target operation, the first number, the second total number and the second number of the second target operation, including: determining a first ratio of the first number to the first total number to obtain the correct execution rate corresponding to the j-th calibrated angle interval; determining a second ratio of the second number to the second total number to obtain the error execution rate corresponding to the j-th calibrated angle interval; when the first difference is located in the first difference interval and the second difference is located in the second difference interval, the j-th calibrated angle interval is determined as the target angle interval, the first difference is the difference between the correct execution rate and the preset correct execution rate, and the second difference is the difference between the error execution rate and the preset error execution rate; when the first difference is not located in the first difference interval and / or the second difference is not located in the second difference interval, the j+1th angle interval is used as the j-th angle interval, and the steps of obtaining the first target operation and the second target operation corresponding to the j-th calibrated angle interval are executed.

[0016] By performing the same sliding operation in different calibrated angle intervals, the number of user operations triggered by intended user operations and the total number of intended user operations in each angle interval are obtained to determine the correct execution rate, and the number of user operations triggered by unintentional user operations and the total number of unintentional user operations in each angle interval are determined to determine the error execution rate. The correct execution rate in each calibrated angle interval is compared with the preset correct execution rate, and the error execution rate in each calibrated angle interval is compared with the preset error execution rate. The calibrated angle interval corresponding to the first difference between the correct execution rate and the preset correct execution rate is within the first difference interval and the second difference between the error execution rate and the preset error execution rate is within the second difference interval is determined as the preset angle interval. This can effectively distinguish between intended user operations and unintentional user operations, thereby limiting the target angle of the user operation, filtering unintentional user operations, and reducing the risk of accidental touches.

[0017] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the method also includes: obtaining Q historical user operations, for each historical user operation, the historical user operation corresponds to a second historical angle, the second historical angle corresponding to the historical user operation is the angle between the line between the starting point and the end point of the historical operation trajectory of the historical user operation and the reference line, and Q is a positive integer; obtaining the historical user operations executed on the screen from the Q historical user operations, and obtaining K third target operations, K≤Q, K is a positive integer; and determining a preset angle range based on the second historical angles corresponding to the K third target operations.

[0018] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, a preset angle interval is determined based on the second historical angles corresponding to K third target operations, including: obtaining the historical moving speeds and historical moving distances of the K third target operations, where the historical moving distance is the product of the distance between the start point and the end point of the historical operation trajectory of the third target operation and the cosine value of the second historical angle corresponding to the third target operation; determining the maximum value of the second historical angles corresponding to P fourth target operations as the maximum value of the preset angle interval, and determining the minimum value of the second historical angles corresponding to the P fourth target operations as the minimum value of the preset angle interval, to obtain the preset angle interval, where the P fourth target operations include historical user operations that meet preset conditions among the K third target operations, and the preset conditions include a historical moving distance greater than or equal to a second distance threshold and a historical moving speed greater than or equal to a second speed threshold, P≤K, and P is a positive integer.

[0019] By obtaining the second historical angle corresponding to the historical user operation executed on the screen, the second historical angle is further screened by the historical moving speed and historical moving distance of the user operation in the second historical angle corresponding to the historical user operation executed on the screen, and the second historical angle corresponding to the historical moving distance being greater than or equal to the second distance threshold and the historical moving speed being greater than or equal to the second speed threshold is obtained, and the maximum value of the second historical angle corresponding to the historical moving distance being greater than or equal to the second distance threshold and the historical moving speed being greater than or equal to the second speed threshold is determined as the maximum value of the preset angle interval, and the minimum value is determined as the minimum value of the preset angle interval, to obtain the preset angle interval, so that the user operation can conform to the operating habits of most users, the operating intention of the user operation can be accurately identified, and the response efficiency and interaction efficiency can be improved.

[0020] In a second aspect, a device for executing a user operation is provided, which is applied to an electronic device including a screen, and includes:

[0021] An acquisition module, configured to acquire an operation track and an operation direction of a user operation when a user operation acting on the screen is detected;

[0022] a determination module, configured to determine a target angle between the operation trajectory and a reference line according to the operation trajectory;

[0023] The execution module is used to execute the user operation based on the operation direction when the target angle meets the preset angle range.

[0024] In a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the electronic device executes the execution method of the user operation in the above-mentioned first aspect or any possible implementation of the first aspect.

[0025] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.

[0026] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of a scenario in which a user operation is performed according to an embodiment of the present application is shown;

[0028] Figure 2 A schematic diagram of an interface of a screen of an in-vehicle electronic device provided in an embodiment of the present application is shown;

[0029] Figure 3 A schematic diagram showing a flow chart of a method for executing a user operation provided in an embodiment of the present application is shown;

[0030] Figure 4 A schematic diagram of a reference coordinate system established based on a screen provided in an embodiment of the present application is shown;

[0031] Figure 5 A schematic diagram of determining an operation trajectory provided by an embodiment of the present application is shown;

[0032] Figure 6 A schematic diagram showing a target angle provided by an embodiment of the present application is shown;

[0033] Figure 7 A schematic diagram of obtaining the tangent value of a target angle provided by an embodiment of the present application is shown;

[0034] Figure 8 A schematic diagram of performing a user operation based on an operation direction provided by an embodiment of the present application is shown;

[0035] Figure 9 A schematic diagram of the structure of a user-operated execution device provided in an embodiment of the present application is shown;

[0036] Figure 10 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0037] The following will clearly and thoroughly describe the technical solutions in this application in conjunction with the accompanying drawings. In the description of the embodiments of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more than two.

[0038] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0039] like Figure 1 As shown, Figure 1 A schematic diagram of a scenario for user operation execution provided by an embodiment of the present application is shown, which includes a vehicle and an onboard electronic device 100. In order to improve the user experience and enhance the intuitiveness and convenience of interaction, the screen of the onboard electronic device 100 supports the user to implement interactions such as switching function modules and jumping interface levels through user operations (such as gesture operations or touch operations). Figure 2 As shown, Figure 2 A schematic diagram of an interface of a vehicle-mounted electronic device screen provided in an embodiment of the present application is shown. Figure 2 The user operation involved is a touch operation. Figure 2 The screen interface shown in (a) includes multiple functional modules. Figure 2 When a function module is selected in the screen interface shown in (a), the function list corresponding to the function module will be displayed in the screen interface. For example, if the user Figure 2 Select the music module in the screen interface shown in (a). Figure 2 (a) will display a song list, and the user can operate a specific song item in the song list to select a specific song, and the screen interface will also switch to the interface corresponding to the specific song. For example, Figure 2 Select song 1 in the interface shown in (a), and the screen interface will change from Figure 2 (a) Switch to Figure 2 (b) Figure 2 The screen interface shown in (b) displays the relevant information of song 1, and the user can Figure 2(b) The screen interface continues to operate with the user to switch songs, adjust the volume, etc. However, Figure 2 When an accidental trigger (such as an accidental palm touch, an exploratory touch on the interface) occurs in the screen interface shown in (b), the screen will also perform interactions such as song switching and volume adjustment, making it difficult to effectively distinguish between intended user operations (such as precise sliding operations) and unintended user operations (such as an accidental palm touch, an exploratory touch on the interface), or the user Figure 2 When performing user operations in the screen interface shown in (b), there are deviations in the operation gestures. Especially in the dynamic environment of the vehicle (for example, during vehicle driving), inaccurate gestures will cause differences between the user's actual operation intentions and the screen response, resulting in low accuracy of the interactive response of the user operation and affecting the user's operation efficiency.

[0040] Based on the above problems, the embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for executing user operations. The present application limits the operation direction of the user operation, and while tolerating the deviation between the operation direction of the user operation and the reference direction of the user operation, it achieves the distinction between intended user operations and unintentional user operations, filters out unintentional user operations, and makes the screen of the electronic device only respond to intended user operations, ensuring the matching between the screen response and the operation intention, reducing the erroneous response caused by false touch or the response that does not match the actual triggering intention, and realizing the accurate identification of effective user operations, which is beneficial to improving the human-computer interaction reliability and user experience. In vehicle-mounted electronic equipment, by improving the interaction accuracy of the screen in the electronic device, the risk of distraction during driving can be reduced and the safety during driving can be improved.

[0041] like Figure 3 As shown, Figure 3 A flow chart of a method for executing a user operation provided in an embodiment of the present application is shown. The method for executing a user operation provided in the present application includes the following steps S310-S330.

[0042] S310 : When a user operation acting on the screen is detected, an operation track and an operation direction of the user operation are acquired.

[0043] The screen mentioned in the embodiments of the present application may be a touch screen or a non-touch screen (i.e., a display screen without touch function); if the screen is a touch screen or a non-touch screen, the user operation may be an air gesture operation of the user; if the screen is a touch screen, the user operation may be an air gesture operation of the user, or a touch operation generated by the user interacting with the screen through a finger or an input tool (such as a stylus). Common touch operations include click operations, slide operations, drag operations, long press operations, double-click operations, etc. The operation trajectory of the user operation refers to the operation path formed from the start moment of the interaction to the end moment of the interaction during the user's interaction with the screen, including but not limited to touch trajectories, air gesture motion trajectories, etc. The operation direction refers to the directional attribute of the user's input behavior in the spatial dimension when the user triggers the user operation.

[0044] S320: Determine a target angle between the operation trajectory and the reference line according to the operation trajectory.

[0045] A reference line is a pre-set directional baseline on the screen. To determine whether a user action is the intended action, the operator obtains the user's action trajectory and then determines the angle between the action trajectory and the reference line. This angle is then used as the target angle.

[0046] S330: When the target angle satisfies the preset angle range, the user operation is performed based on the operation direction.

[0047] After obtaining the target angle of the user operation, determine whether the target angle is within the preset angle range. If the target angle is not within the preset angle range, it means that the user operation is an unintentional user operation, that is, the user operation is triggered unintentionally or accidentally by the user; if the target angle is within the preset angle range, it means that the user operation is an intended user operation, that is, the user intentionally interacts with the screen of the electronic device, and then performs the user operation based on the operation direction.

[0048] The embodiment of the present application provides a method for executing a user operation. By obtaining the target angle between the operation trajectory of the user operation and a reference line, the user operation is executed when the target angle meets a preset angle range. On the one hand, the user operation is constrained by judging whether the target angle meets the preset angle range. On the other hand, the preset angle range provides a fault tolerance space for user operation deviations, thereby ensuring that only user operations with a target angle meeting the preset angle range can trigger a screen response, reducing erroneous responses caused by accidental touches or responses that do not match the actual triggering intention, and achieving accurate recognition of valid user operations, which is conducive to improving the reliability of human-computer interaction and user experience. In automotive electronic equipment, by improving the interactive accuracy of the screen in the electronic equipment, the risk of distraction during driving can be reduced and the safety during driving can be improved.

[0049] The following description is made by taking a touch screen as an example and a touch operation as a user operation.

[0050] In one possible implementation, obtaining the operation trajectory and operation direction of the user operation includes: obtaining the starting point and end point of the user operation, determining the line between the starting point and the end point as the operation trajectory; and determining the operation direction according to the direction from the starting point to the end point.

[0051] In order to facilitate the determination of various parameters of user operations, a reference coordinate system is usually established based on the screen, such as Figure 4 As shown, Figure 4 A schematic diagram of a reference coordinate system based on a screen provided in an embodiment of the present application is shown. Figure 4 China-Israel Figure 2 In (b), the horizontal direction of the screen 102 is the horizontal axis x of the reference coordinate system, and the vertical direction of the screen 102 is the vertical axis y of the reference coordinate system, and the xoy coordinate system is constructed to obtain the reference coordinate system. When the screen of the electronic device detects a user operation, if the user operation is a touch operation, the contact position coordinates of the input tool and the screen at each contact moment are obtained, and multiple touch position points arranged in chronological order are obtained. The earliest touch position point is determined as the starting point of the user operation, and the touch position point where the touch ends is determined as the end point of the user operation. The starting point and the end point of the user operation are connected to obtain the operation trajectory of the user operation. For example, Figure 5 As shown, Figure 5 A schematic diagram of determining an operation trajectory provided by an embodiment of the present application is shown. Figure 5 As shown in (a), the starting point of user operation A is A1 and the end point is A2. The line A1A2 between the starting point A1 and the end point A2 of user operation A is determined as the operation trajectory of user operation A. Figure 5As shown in (b), the starting point of user operation B is B1 and the end point is B2. The line B1B2 between the starting point B1 and the end point B2 of user operation B is determined as the operation trajectory of user operation B; Figure 5 As shown in (c), the starting point of the user operation C is C1 and the end point is C2. The connecting line C1C2 between the starting point C1 and the end point C2 of the user operation C is determined as the operation trajectory of the user operation C.

[0052] The operation direction is the direction from the starting point of the user operation to the end point. For example, Figure 5 As shown, the operation direction of user operation A is from starting point A1 to end point A2, the operation direction of user operation B is from starting point B1 to end point B2, and the operation direction of user operation C is from starting point C1 to end point C2.

[0053] By obtaining the starting point and end point of the user operation, the line between the starting point and the end point is determined as the operation trajectory; the operation direction is determined according to the direction from the starting point to the end point. When identifying the user operation, even if the target angle formed by some touch points and the reference line exceeds the preset angle range during the touch process, as long as the angle between the sliding direction determined based on the starting point and the end point and the reference line falls within the preset angle range, it will still be identified as an intended user operation. This not only improves the fault tolerance for user operation recognition, but also reduces the risk of misrecognition caused by user operation deviations, while also reducing the computational overhead brought about by complex analysis of the complete operation trajectory, thereby improving the screen's response efficiency.

[0054] In one possible implementation, the reference line is the horizontal axis or vertical axis of a reference coordinate system established based on the screen, and the target angle between the operation trajectory and the reference line is determined according to the operation trajectory, including: determining the angle between the line between the starting point and the end point and the horizontal axis or vertical axis of the reference coordinate system as the target angle.

[0055] You can select the horizontal or vertical axis of the reference coordinate system established based on the screen as the reference line, such as Figure 4 The x-axis or y-axis in the image is a reference line. When determining the target angle, the angle between the operation trajectory and the reference line can be determined as the target angle. For example, Figure 6 As shown, Figure 6 A schematic diagram of a target angle provided by an embodiment of the present application is shown, with the x-axis as a reference line. Figure 6 As shown in (a), the target angle corresponding to the user operation A is the angle θ1 between the operation trajectory A1A2 and the x-axis, as shown in Figure 6 As shown in (b), the target angle corresponding to the user operation B is the angle θ2 between the operation trajectory B1B2 and the x-axis, as shown in Figure 6 As shown in (c), the target angle corresponding to the user operation C is the angle θ3 between the operation trajectory C1C2 and the x-axis.

[0056] In one possible implementation, after determining the target angle between the operation trajectory and the reference line based on the operation trajectory, the method further includes: obtaining a tangent value of the target angle; and performing a user operation based on the operation direction when the tangent value is less than or equal to a preset tangent value.

[0057] After obtaining the target angle between the operation trajectory and the reference line, the tangent value of the target angle is obtained. For example, Figure 7 As shown, Figure 7 A schematic diagram of obtaining a target angle provided by an embodiment of the present application is shown in FIG. Figure 7 As shown in (a), after determining the starting point A1 and the end point A2 of the user operation A, a first parallel line is drawn through the starting point A1 of the user operation A, and a second parallel line is drawn through the end point A2 of the user operation A. The intersection of the first parallel line and the second parallel line is P1, and the distance between P1 and A1 is L. 11 , the distance between P1 and A2 is L 12 , L 12 With L 11 The ratio is the tangent value of the target angle θ1 of the user operation A, and the target angle θ1 is determined based on the arc tangent of the tangent value. Figure 7 As shown in (b), after determining the starting point B1 and the end point B2 of the user operation B, a first parallel line is drawn through the starting point B1 of the user operation B on the x-axis, and a second parallel line is drawn through the end point B2 of the user operation B on the y-axis. The intersection of the first and second parallel lines is P2, and the distance between P2 and B1 is L. 21 , the distance between P2 and B2 is L 22 , L 22 With L 21 The ratio is the tangent value of the target angle θ2 of the user operation B, and the target angle θ2 is determined based on the arc tangent of the tangent value. Figure 7 As shown in (c), after determining the starting point C1 and the end point C2 of the user operation C, a first parallel line is drawn through the starting point C1 of the user operation C on the x-axis, and a second parallel line is drawn through the end point C2 of the user operation C on the y-axis. The intersection of the first parallel line and the second parallel line is P3, and the distance between P3 and C1 is L. 31 , the distance between P3 and C2 is L 32 , L 32 The ratio to L31 is the tangent value of the target angle θ3 of the user operation C, and the target angle θ3 is determined based on the arc tangent of the tangent value.

[0058] In one possible implementation, when the screen is a touch screen and the user operation is a touch operation, the user operation is performed based on the operation direction, including: if the touch operation is a sliding operation and the operation direction is a first direction, executing the first function; if the touch operation is a sliding operation and the operation direction is a second direction, executing the second function, and the second direction is the opposite direction of the first direction.

[0059] If the touch operation is determined to be an intended user operation, the specific operation type of the touch operation can be identified. For example, if the touch operation is a sliding operation, the operation direction can be determined. If the operation direction is a first direction, and the first direction is the negative direction along the x-axis, then the first function associated with the first direction and the sliding operation is executed, wherein the first function can be to switch the currently playing song to the next song adjacent to the currently playing song. If the operation direction is a second direction, and the second direction is the positive direction along the x-axis, then the second function associated with the second direction and the sliding operation is executed, wherein the second function can be to switch the currently playing song to the previous song adjacent to the currently playing song. For example, Figure 8 As shown, Figure 8 A schematic diagram of performing user operations based on operation direction provided by an embodiment of the present application is shown. Figure 8 In the touch screen interface shown in (a), if a sliding operation is performed in the negative direction of the x-axis, that is, the first direction is the negative direction of the x-axis, the currently playing song 1 will be switched to song 2, and song 2 is the next song adjacent to song 1. The relevant information of song 2 is displayed in the touch screen interface. Figure 8 In the touch screen interface shown in (b), a sliding operation is performed in the positive direction of the x-axis, that is, the second direction is the positive direction of the x-axis, then the currently playing song 1 is switched to song 3, song 3 is the previous song adjacent to song 1, and the relevant information of song 3 is displayed in the touch screen interface.

[0060] In one possible implementation, executing the first function includes: obtaining the moving speed and moving distance of the sliding operation, where the moving distance is the product of the distance between the starting point and the end point of the sliding trajectory of the sliding operation and the cosine value of the target angle; when the moving speed is greater than or equal to the first speed threshold and the moving distance is greater than or equal to the first distance threshold, executing the first function.

[0061] In order to further determine whether the sliding operation is an intended user operation, when executing the first function and the second function, the moving speed and moving distance of the sliding operation are obtained, and whether the sliding operation is an intended user operation is further verified based on the moving speed and moving distance, wherein the moving speed is the speed at which the input tool moves continuously on the screen of the electronic device, and the touch event programming interface in the screen can be used to intervene with a speed capture tool or mechanism to capture the moving speed of the user operation; the moving distance is the product of the distance between the starting point and the end point of the operation trajectory and the cosine value of the target angle, such as Figure 7As shown in (a), the moving distance L corresponding to the operation trajectory A 11 ,like Figure 7 As shown in (b), the moving distance L corresponding to the operation trajectory B 21 ,like Figure 7 As shown in (c), the moving distance L corresponding to the operation trajectory C 31 . After obtaining the moving distance, the moving distance is compared with the first distance threshold. When the moving distance is greater than or equal to the first distance threshold, it indicates that the sliding operation is determined as an intended user operation in the moving distance dimension. When the moving distance is less than the first distance threshold, it indicates that the sliding operation is determined as an unintended user operation in the moving distance dimension, and the sliding operation can be filtered out. After obtaining the moving speed, the moving speed is compared with the first speed threshold. When the moving speed is greater than or equal to the first speed threshold, it indicates that the sliding operation is intended user operation in the moving speed dimension. When the moving speed is less than the first speed threshold, it indicates that the sliding operation is determined as an unintended user operation in the moving speed dimension, and the sliding operation can be filtered out. The sliding operation with a moving speed greater than or equal to the first speed threshold and a moving distance greater than or equal to the first distance threshold is determined as the final intended operation, so that the touch control executes the sliding operation.

[0062] By obtaining the moving speed and moving distance of the sliding operation, where the moving distance is the product of the distance between the starting point and the end point of the sliding track and the cosine value of the target angle; and when the moving speed is greater than or equal to the first speed threshold and the moving distance is greater than or equal to the first distance threshold, executing the first function. This method achieves the distinction between intended user operations and unintended user operations based on the touch angle, and further filters the touch angle based on the moving distance and moving speed. User operations with a moving speed greater than or equal to the first speed threshold and a moving distance greater than or equal to the first distance threshold are determined as the final intended user operations. This ensures a closer fit between the actual operation intention and the recognized operation intention, further reduces erroneous responses caused by accidental touches, and improves interaction accuracy.

[0063] In one possible implementation, the method further includes: obtaining M historical user operations and N different calibrated angle intervals, wherein the i-th historical user operation corresponds to the i-th first historical angle, the i-th first historical angle is the angle between the line between the starting point and the end point of the historical operation trajectory of the i-th historical user operation and the reference line, M and N are both positive integers, 1≤i≤M; and determining a preset angle interval from the N calibrated angle intervals based on the M historical user operations.

[0064] Among them, historical user operations are air gesture operations or touch operations. In order to ensure that the preset angle range can accommodate the deviation between the actual sliding direction and the reference line and effectively distinguish between intended user operations and unintended user operations, when determining the preset angle range, N different calibration angle ranges can be set first, such as ±10°, ±15°, ±22.5°, ±25°, ±30°, ±35°, etc., and M historical user operations are obtained, each of which corresponds to a first historical angle. Then, the M historical user operations are tested in each calibration angle range respectively, and the preset angle range is determined from the N calibration angle ranges based on the test results.

[0065] In one possible implementation, a preset angle interval is determined from N calibrated angle intervals based on M historical user operations, including: traversing the N calibrated angle intervals, and for the j-th calibrated angle interval, obtaining the first target operation and the second target operation corresponding to the j-th calibrated angle interval, the first historical angle corresponding to the first target operation belongs to the historical user operation of the j-th angle interval, and the first historical angle corresponding to the second target operation does not belong to the historical user operation of the j-th angle interval, 1≤j≤N; obtaining a first number of first execution operations in the first target operation and a second number of second execution operations in the second target operation, the first execution operation and the second execution operation both include historical user operations executed by the screen; determining a target angle interval from the N calibrated angle intervals based on the first total number, the first number, the second total number and the second number of the second target operations; and determining the target angle interval as the preset angle interval.

[0066] M historical user operations are tested separately in each calibration angle interval, and the first historical angle corresponding to each historical operation can be compared with the calibration angle interval. If the first historical angle is within the calibration angle interval, the historical user operation corresponding to the first historical angle is considered to be an intended user operation (i.e., a first target operation), and a first total number of intended user operations is obtained. If the first historical angle is not within the calibration angle interval, the historical user operation corresponding to the first historical angle is considered to be an unintended user operation (i.e., a second target operation), and a second total number of unintended user operations is obtained. In each calibration angle interval, a first number of historical user operations (i.e., first execution operations) in which the intended user operation triggers a screen response and a second number of historical user operations (i.e., second execution operations) in which the unintended user operation screen or touch panel surface responds are counted. For example, as shown in Table 1, Table 1 shows an example of the first total number, the first number, the second total number, and the second number of the first target operations in different calibration angle intervals provided in an embodiment of the present application;

[0067] Table 1

[0068]

[0069]

[0070] After determining the first total number, the first number, the second total number and the second number of the first target operations in each calibration angle interval, the target angle interval can be determined based on the first proportion of the first number to the first total number and the second proportion of the first total number to historical user operations. For example, the calibration angle interval corresponding to the first proportion close to 90% and the second proportion close to 85% can be determined as the preset angle interval.

[0071] In one possible implementation, a target angle interval is determined from N calibrated angle intervals based on the first total number of the first target operation, the first number, the second total number and the second number of the second target operation, including: determining a first ratio of the first number to the first total number to obtain the correct execution rate corresponding to the j-th calibrated angle interval; determining a second ratio of the second number to the second total number to obtain the error execution rate corresponding to the j-th calibrated angle interval; when the first difference is located in the first difference interval and the second difference is located in the second difference interval, determining the j-th calibrated angle interval as the target angle interval, the first difference is the difference between the correct execution rate and the preset correct execution rate, and the second difference is the difference between the error execution rate and the preset error execution rate; when the first difference is not located in the first difference interval and / or the second difference is not located in the second difference interval, taking the j+1th angle interval as the j-th angle interval, and executing the steps of obtaining the first target operation and the second target operation corresponding to the j-th calibrated angle interval.

[0072] After determining the first total number, the first number, the second number, and the second total number of each calibration angle interval, determining the correct execution rate corresponding to each calibration angle interval based on a first ratio of the first number to the first total number, wherein the correct execution rate is the ratio of the number of intended user operations responded by the screen of the electronic device to the total number of intended user operations, and determining the error execution rate corresponding to each calibration angle interval based on a second ratio of the second number to the second total number, wherein the error execution rate is the ratio of the number of unintended user operations responded by the screen of the electronic device to the total number of unintended user operations, as shown in Table 2, which shows an example of the correct execution rate and the error execution rate corresponding to each calibration angle interval in Table 1;

[0073] Table 2

[0074]

[0075]

[0076] After determining the correct execution rate and the incorrect execution rate corresponding to each calibration angle interval, the correct execution rate in each calibration angle interval is compared with the preset correct execution rate, and the incorrect execution rate is compared with the preset incorrect execution rate. Assuming that the preset correct execution rate is 95.5% and the preset incorrect execution rate is 6%, the first difference interval is [0, 0.012] and the second difference interval is [0, 0.01]. The calibration angle intervals whose differences with the preset correct execution rate of 95.5% are within the first difference interval [0, 0.012] are ±15° and ±22.5°; the calibration angle intervals whose differences with the preset incorrect execution rate are within the second difference interval [0, 0.01] are ±22.5°. The calibration angle interval ±22.5°, whose differences with the preset correct execution rate of 95.5% are within the first difference interval [0, 0.012] and whose differences with the preset correct execution rate of 95.5% are within the first difference interval [0, 0.012], is determined as the preset angle interval.

[0077] By performing the same sliding operation in different calibrated angle intervals, the number of user operations triggered by intended user operations and the total number of intended user operations in each angle interval are obtained to determine the correct execution rate, and the number of user operations triggered by unintentional user operations and the total number of unintentional user operations in each angle interval are determined to determine the error execution rate. The correct execution rate in each calibrated angle interval is compared with the preset correct execution rate, and the error execution rate in each calibrated angle interval is compared with the preset error execution rate. The calibrated angle interval corresponding to the first difference between the correct execution rate and the preset correct execution rate is within the first difference interval and the second difference between the error execution rate and the preset error execution rate is within the second difference interval is determined as the preset angle interval. This can effectively distinguish between intended user operations and unintentional user operations, thereby limiting the target angle of the user operation, filtering unintentional user operations, and reducing the risk of accidental touches.

[0078] In one possible implementation, the method further includes: obtaining Q historical user operations, where for each historical user operation, the historical user operation corresponds to a second historical angle, and the second historical angle corresponding to the historical user operation is the angle between the line connecting the starting point and the end point of the historical operation trajectory of the historical user operation and the reference line, where Q is a positive integer; obtaining the historical user operations executed on the screen from the Q historical user operations to obtain K third target operations, where K≤Q, and K is a positive integer; and determining a preset angle range based on the second historical angles corresponding to the K third target operations.

[0079] In order to enable user operations in the preset angle range to trigger the screen to respond to user operations more sensitively, when determining the preset angle range, Q historical user operations can be obtained first, and the historical user operations executed by the screen can be filtered out from the Q historical user operations to obtain K historical user operations executed by the screen (i.e., the third target operation). The preset angle range is determined from the second historical angles corresponding to the K historical user operations executed by the screen. For example, the second historical angle range whose proportion of the K second historical angles is closest to the set threshold (such as 80%) can be determined as the preset angle range.

[0080] In one possible implementation, a preset angle interval is determined based on the second historical angles corresponding to K third target operations, including: obtaining the historical moving speeds and historical moving distances of the K third target operations, where the historical moving distance is the product of the distance between the start point and the end point of the historical operation trajectory of the third target operation and the cosine value of the second historical angle corresponding to the third target operation; determining the maximum value of the second historical angles corresponding to P fourth target operations as the maximum value of the preset angle interval, and determining the minimum value of the second historical angles corresponding to the P fourth target operations as the minimum value of the preset angle interval, to obtain the preset angle interval, where the P fourth target operations include historical user operations that meet preset conditions among the K third target operations, and the preset conditions include a historical moving distance greater than or equal to a second distance threshold and a historical moving speed greater than or equal to a second speed threshold, P≤K, and P is a positive integer.

[0081] After screening out K third target operations executed on the screen from Q historical user operations, compare the historical moving speed of each third target operation with the second speed threshold, and compare the historical moving distance of each third target operation with the second distance threshold, and screen out third target operations whose historical moving distance is greater than or equal to the first distance threshold and whose historical moving speed is greater than or equal to the second speed threshold, and obtain P fourth target operations, determine the maximum and minimum values ​​of the second historical angles corresponding to the P fourth target operations, determine the maximum value of the P second historical angles as the maximum value of the preset angle interval, and determine the minimum value of the P second historical angles as the minimum value of the preset angle interval, and obtain the preset angle interval.

[0082] By obtaining the second historical angle corresponding to the historical user operation executed on the screen, the second historical angle is further screened by the historical moving speed and historical moving distance of the user operation in the second historical angle corresponding to the historical user operation executed on the screen, and the second historical angle corresponding to the historical moving distance being greater than or equal to the second distance threshold and the historical moving speed being greater than or equal to the second speed threshold is obtained, and the maximum value of the second historical angle corresponding to the historical moving distance being greater than or equal to the second distance threshold and the historical moving speed being greater than or equal to the second speed threshold is determined as the maximum value of the preset angle interval, and the minimum value is determined as the minimum value of the preset angle interval, to obtain the preset angle interval, so that the user operation can conform to the operating habits of most users, the operating intention of the user operation can be accurately identified, and the response efficiency and interaction efficiency can be improved.

[0083] The following are device embodiments of the present application, which can be used to execute method embodiments of the present application.

[0084] like Figure 9 As shown, Figure 9 A schematic structural diagram of a user-operated execution device provided in an embodiment of the present application is shown.

[0085] For example, Figure 9 As shown, the apparatus 900 includes:

[0086] An acquisition module 910 is configured to acquire an operation track and an operation direction of the user operation when a user operation acting on the screen is detected;

[0087] A determination module 920 is configured to determine a target angle between the operation trajectory and a reference line based on the operation trajectory;

[0088] The execution module 930 is configured to execute the user operation based on the operation direction when the target angle satisfies the preset angle range.

[0089] In a possible implementation, the acquisition module 910 is further configured to: acquire the starting point and end point of the user operation, determine the line between the starting point and the end point as the operation trajectory; and determine the operation direction according to the direction from the starting point to the end point.

[0090] In one possible implementation, the reference line is the horizontal axis or vertical axis of a reference coordinate system established based on the screen, and the determination module 920 is further used to determine the angle between the line between the start point and the end point and the horizontal axis or vertical axis of the reference coordinate system as the target angle.

[0091] In one possible implementation, the device further includes:

[0092] The tangent value acquisition module is used to obtain the tangent value of the target angle; when the tangent value is less than or equal to the preset tangent value, the user operation is performed based on the operation direction.

[0093] In one possible implementation, the execution module 930 is also used to: when the screen is a touch screen and the user operation is a touch operation, if the touch operation is a sliding operation and the operation direction is a first direction, execute the first function; if the touch operation is a sliding operation and the operation direction is a second direction, execute the second function, and the second direction is the opposite direction of the first direction.

[0094] In one possible implementation, the execution module 930 is also used to: obtain the moving speed and moving distance of the sliding operation, where the moving distance is the product of the distance between the starting point and the end point of the sliding trajectory of the sliding operation and the cosine value of the target angle; when the moving speed is greater than or equal to the first speed threshold and the moving distance is greater than or equal to the first distance threshold, execute the first function.

[0095] In one possible implementation, the device further includes:

[0096] The first preset angle interval determination module is used to obtain M historical user operations and N different calibrated angle intervals, where the i-th historical user operation corresponds to the i-th first historical angle, and the i-th first historical angle is the angle between the line between the starting point and the end point of the historical operation trajectory of the i-th historical user operation and the reference line, and M and N are both positive integers, 1≤i≤M; the preset angle interval is determined from the N calibrated angle intervals based on the M historical user operations.

[0097] In a possible implementation, the first preset angle interval determining module is further configured to:

[0098] Traverse N calibrated angle intervals, and for the j-th calibrated angle interval, obtain the first target operation and the second target operation corresponding to the j-th calibrated angle interval, the first historical angle corresponding to the first target operation belongs to the historical user operation of the j-th angle interval, and the first historical angle corresponding to the second target operation does not belong to the historical user operation of the j-th angle interval, 1≤j≤N; obtain a first number of first execution operations in the first target operation, and a second number of second execution operations in the second target operation, the first execution operation and the second execution operation both include historical user operations executed by the screen; determine a target angle interval from the N calibrated angle intervals according to the first total number, the first number, the second total number and the second number of the second target operations; determine the target angle interval as a preset angle interval.

[0099] In a possible implementation, the first preset angle interval determining module is further configured to:

[0100] Determine a first ratio of the first quantity to the first total quantity to obtain the correct execution rate corresponding to the j-th calibration angle interval; determine a second ratio of the second quantity to the second total quantity to obtain the incorrect execution rate corresponding to the j-th calibration angle interval; when the first difference is located in the first difference interval and the second difference is located in the second difference interval, determine the j-th calibration angle interval as the target angle interval, the first difference is the difference between the correct execution rate and the preset correct execution rate, and the second difference is the difference between the incorrect execution rate and the preset incorrect execution rate; when the first difference is not located in the first difference interval and / or the second difference is not located in the second difference interval, take the j+1-th angle interval as the j-th angle interval, and execute the steps of obtaining the first target operation and the second target operation corresponding to the j-th calibration angle interval.

[0101] In one possible implementation, the device further includes:

[0102] A second preset angle interval determination module is used to obtain Q historical user operations. For each historical user operation, the historical user operation corresponds to a second historical angle. The second historical angle corresponding to the historical user operation is the angle between the line connecting the starting point and the end point of the historical operation trajectory of the historical user operation and the reference line, where Q is a positive integer; obtain the historical user operations executed on the screen from the Q historical user operations to obtain K third target operations, where K≤Q, and K is a positive integer; and determine the preset angle interval based on the second historical angles corresponding to the K third target operations.

[0103] In a possible implementation, the second preset angle interval determining module is further configured to:

[0104] Obtain historical movement speeds and historical movement distances of K third target operations, where the historical movement distance is the product of the distance between the start point and the end point of the historical operation trajectory of the third target operation and the cosine value of the second historical angle corresponding to the third target operation; determine the maximum value of the second historical angles corresponding to P fourth target operations as the maximum value of the preset angle interval, and determine the minimum value of the second historical angles corresponding to the P fourth target operations as the minimum value of the preset angle interval to obtain the preset angle interval, the P fourth target operations include historical user operations that meet preset conditions among the K third target operations, the preset conditions include that the historical movement distance is greater than or equal to the second distance threshold and the historical movement speed is greater than or equal to the second speed threshold, P≤K, and P is a positive integer.

[0105] It should be noted that the user operation execution device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example when executing the user operation execution method. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0106] In addition, the user operation execution device and the user operation execution method embodiment provided in the above embodiment belong to the same concept. Therefore, for details not disclosed in the device embodiment of this specification, please refer to the user operation execution method embodiment mentioned in this specification, and no further details will be given here.

[0107] like Figure 10 As shown, Figure 10 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown.

[0108] For example, Figure 10 As shown, the electronic device 1000 includes: a memory 1001 and a processor 1002, wherein the memory 1001 stores an executable program code 10011, and the processor 1002 is used to call and execute the executable program code 10011 to perform a method for executing a user operation.

[0109] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to perform a method for executing a user operation provided by an embodiment of the present application.

[0110] In this embodiment, the device can be divided into functional modules based on the above-described method examples. For example, each functional module can be mapped to a specific functional module, or two or more functions can be integrated into a single processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and represents only a logical functional division. In actual implementation, other division methods may be used.

[0111] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0112] It should be understood that the device provided in this embodiment is used to execute the above-mentioned method for executing a user operation, and thus can achieve the same effect as the above-mentioned implementation method.

[0113] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is used in a vehicle, the processing module may be used to control and manage the vehicle's movements, while the storage module may be used to support the vehicle's execution of relevant program codes.

[0114] The processing module may be a processor or controller that implements or executes the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processing system (DSP) and a microprocessor, and the storage module may be a memory.

[0115] In addition, the device provided in the embodiments of the present application can specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a user operation execution method provided in the above embodiment.

[0116] This embodiment also provides a computer-readable storage medium, which stores computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement a method for executing a user operation provided by the above embodiment.

[0117] This embodiment further provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement a method for executing a user operation provided by the above embodiment.

[0118] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0119] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0120] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, 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.

[0121] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A method for executing a user operation, characterized in that: Applied to an electronic device including a screen, the method includes: When a user operation acting on the screen is detected, obtaining an operation track and an operation direction of the user operation; determining a target angle between the operation trajectory and a reference line according to the operation trajectory; When the target angle satisfies a preset angle range, the user operation is performed based on the operation direction.

2. The method according to claim 1, characterized in that The obtaining of the operation track and operation direction of the user operation includes: Obtaining a starting point and an end point of the user operation, and determining a line between the starting point and the end point as the operation trajectory; The operation direction is determined according to the direction from the starting point to the end point.

3. The method according to claim 2, characterized in that The reference line is a horizontal axis or a vertical axis of a reference coordinate system established based on the screen, and determining a target angle between the operation trajectory and the reference line according to the operation trajectory includes: The angle between the line connecting the starting point and the end point and the horizontal axis or the vertical axis of the reference coordinate system is determined as the target angle.

4. The method according to claim 1, wherein After determining a target angle between the operation trajectory and a reference line according to the operation trajectory, the method further includes: Obtaining the tangent value of the target angle; When the tangent value is less than or equal to a preset tangent value, the user operation is performed based on the operation direction.

5. The method according to claim 1, wherein In a case where the screen is a touch screen and the user operation is a touch operation, performing the user operation based on the operation direction includes: If the touch operation is a sliding operation and the operation direction is a first direction, executing a first function; If the touch operation is the sliding operation and the operation direction is a second direction, a second function is executed, and the second direction is an opposite direction to the first direction.

6. The method according to claim 5, characterized in that The performing of the first function includes: Acquire a moving speed and a moving distance of the sliding operation, where the moving distance is the product of a distance between a starting point and an end point of a sliding track of the sliding operation and a cosine value of the target angle; In a case where the moving speed is greater than or equal to a first speed threshold and the moving distance is greater than or equal to a first distance threshold, the first function is executed.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: Obtain M historical user operations and N different calibration angle intervals, where the i-th historical user operation corresponds to the i-th first historical angle, and the i-th first historical angle is the angle between the line connecting the starting point and the end point of the historical operation trajectory of the i-th historical user operation and the reference line, where M and N are both positive integers, and 1≤i≤M; The preset angle interval is determined from N calibrated angle intervals according to the M historical user operations.

8. The method according to claim 7, characterized in that Determining the preset angle interval from N calibrated angle intervals according to the M historical user operations includes: Traverse N calibration angle intervals, and for the jth calibration angle interval, obtain the first target operation and the second target operation corresponding to the jth calibration angle interval, where the first historical angle corresponding to the first target operation belongs to the historical user operation of the jth angle interval, and the first historical angle corresponding to the second target operation does not belong to the historical user operation of the jth angle interval, where 1≤j≤N; Acquire a first number of first execution operations in the first target operations and a second number of second execution operations in the second target operations, wherein both the first execution operations and the second execution operations include historical user operations executed on the screen; determining a target angle interval from N calibrated angle intervals based on a first total number of the first target operations, the first number, a second total number of the second target operations, and the second number; The target angle interval is determined as the preset angle interval.

9. The method according to claim 8, characterized in that Determining a target angle interval from N calibrated angle intervals according to a first total number of the first target operations, the first number, a second total number of the second target operations, and the second number includes: determining a first ratio of the first number to the first total number to obtain a correct execution rate corresponding to the j-th calibration angle interval; determining a second ratio of the second number to the second total number to obtain an error execution rate corresponding to the j-th calibration angle interval; When the first difference is within a first difference interval and the second difference is within a second difference interval, the j-th calibration angle interval is determined as the target angle interval, the first difference is a difference between the correct execution rate and a preset correct execution rate, and the second difference is a difference between the incorrect execution rate and a preset incorrect execution rate; When the first difference is not located in the first difference interval and / or the second difference is not located in the second difference interval, the j+1th angle interval is used as the jth angle interval, and the steps of obtaining the first target operation and the second target operation corresponding to the jth calibration angle interval are performed.

10. The method according to any one of claims 1 to 6, characterized in that The method further comprises: Obtain Q historical user operations. For each historical user operation, the historical user operation corresponds to a second historical angle. The second historical angle corresponding to the historical user operation is the angle between the line connecting the starting point and the end point of the historical operation trajectory of the historical user operation and the reference line. Q is a positive integer. Obtain historical user operations executed on the screen from the Q historical user operations to obtain K third target operations, where K≤Q, and K is a positive integer; The preset angle range is determined according to the second historical angles corresponding to the K third target operations.

11. The method according to claim 10, characterized in that The determining the preset angle range according to the second historical angles corresponding to the K third target operations includes: Obtaining historical movement speeds and historical movement distances of the K third target operations, where the historical movement distance is the product of a distance between a start point and an end point of a historical operation trajectory of the third target operation and a cosine value of a second historical angle corresponding to the third target operation; The maximum value of the second historical angles corresponding to the P fourth target operations is determined as the maximum value of the preset angle interval, and the minimum value of the second historical angles corresponding to the P fourth target operations is determined as the minimum value of the preset angle interval to obtain the preset angle interval, the P fourth target operations include historical user operations that meet preset conditions among the K third target operations, and the preset conditions include a historical moving distance greater than or equal to a second distance threshold and a historical moving speed greater than or equal to a second speed threshold, P≤K, and P is a positive integer.

12. A user-operated execution device, characterized in that: Applicable to an electronic device including a screen, the device includes: an acquisition module, configured to acquire an operation track and an operation direction of the user operation when a user operation acting on the screen is detected; a determination module, configured to determine a target angle between the operation trajectory and a reference line according to the operation trajectory; An execution module is configured to execute the user operation based on the operation direction when the target angle satisfies a preset angle range.

13. An electronic device, characterized in that: The electronic device comprises: a memory for storing executable program code; A processor is configured to call and run the executable program code from the memory, so that the electronic device executes the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 11 is implemented.