A processing method and electronic device

By dynamically determining the target duration and responding to correction operations, the problem of the inability to meet the input speed requirements of different users in the prior art is solved, and the user experience is improved.

CN115167749BActive Publication Date: 2025-03-25LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210742013.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2025-03-25
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

In the prior art, fixed delay sensing is used for trajectory recognition and trajectory correction, which cannot meet the needs of different users' input speeds, resulting in poor user experience.

Method used

By obtaining the user's trajectory input speed, dynamically determine the target duration, and responding to the correction operation when the target duration arrives, the user input display trajectory is corrected to a standard trajectory that matches the display trajectory.

Benefits of technology

It realizes dynamic adjustment of the correction waiting time according to the user input speed, improving the user's user experience when trajectory input.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115167749B_ABST
    Figure CN115167749B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a processing method and an electronic device, the method comprising: obtaining a trajectory input, recording and displaying a display trajectory of the trajectory input; obtaining an input operation; if the input operation is a correction operation, correcting the display trajectory to a standard trajectory matching the display trajectory in response to the correction operation; wherein the correction operation includes maintaining a target operation for a target duration; and the target duration is related to a target parameter obtained during the trajectory input process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and relates to but is not limited to a processing method and an electronic device. Background Art

[0002] In the related art, time delay sensing is used to trigger trajectory recognition and trajectory correction. However, since each user has a different speed when inputting a trajectory, when a fixed time delay sensing is used, for example, a delay sensing with a preset value of 1 second, the preset value cannot satisfy users with different input speeds. Users who input faster will feel that the waiting time is too long, while users who input slower will feel that the waiting time is too short. This method of using a unified waiting delay for trajectory recognition and trajectory correction is relatively rigid, resulting in poor user experience for different users. Summary of the invention

[0003] In view of this, the embodiments of the present application at least provide a processing method and an electronic device.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a processing method, which includes:

[0006] Obtaining a trajectory input, recording and displaying a display trajectory of the trajectory input; obtaining an input operation; if the input operation is a correction operation, correcting the display trajectory to a standard trajectory matching the display trajectory in response to the correction operation; wherein the correction operation includes maintaining a target operation for a target duration; and the target duration is related to a target parameter obtained during the trajectory input process.

[0007] In some embodiments, the target parameter is an input speed corresponding to the trajectory input; and the method further includes: determining the target duration based on the input speed.

[0008] In some embodiments, determining the target duration based on the input speed includes: if the input speed is less than a speed threshold, extending the operation duration by a first specific duration to obtain the target duration; if the input speed is greater than or equal to the speed threshold, shortening the operation duration by a second specific duration to obtain the target duration.

[0009] In some embodiments, the input speed is determined by the following steps: obtaining an input start point and an input end point of the display trajectory; determining the length of the display trajectory between the input start point and the input end point; obtaining an input start point timestamp of the input start point and an input end point timestamp of the input end point; determining the input speed based on the input end point timestamp, the input start point timestamp and the length of the display trajectory.

[0010] In some embodiments, obtaining the input starting point and input end point of the display trajectory includes: if a trigger operation for the display trajectory is detected, the trajectory point input when the trigger operation is detected is determined as the input starting point; if the trajectory input of the next trajectory point of the current trajectory point on the display trajectory is not detected within a preset time length, the current trajectory point is determined as the input end point.

[0011] In some embodiments, determining the target duration based on the input speed includes: obtaining a duration relationship table; wherein the duration relationship table has a mapping relationship between at least one input speed and a target duration; and according to the input speed, querying the target duration corresponding to the input speed from the duration relationship table.

[0012] In some embodiments, the target parameter is the input duration from the start of the trajectory input to the end of the trajectory input; the method also includes: determining the target duration based on the input duration of the trajectory input; wherein, determining the target duration based on the input duration of the trajectory input includes: when the input duration is greater than a duration threshold, extending the operation duration by a first specific duration to obtain the target duration; when the input duration is less than or equal to the duration threshold, shortening the operation duration by a second specific duration to obtain the target duration.

[0013] In some embodiments, the target parameter is the biological information of the target object for the trajectory input; the method also includes: determining the target duration based on the biological information; wherein, determining the target duration based on the biological information includes: acquiring the biological information of the target object; the biological information includes a face image; performing face recognition on the face image to obtain feature information of the target object; if the feature information does not meet the feature constraint condition, extending the operation duration by a first specific duration to obtain the target duration; if the feature information meets the feature constraint condition, shortening the operation duration by a second specific duration to obtain the target duration.

[0014] In some embodiments, if the input operation is a correction operation, in response to the correction operation, the display trajectory is corrected to a standard trajectory that matches the display trajectory, including: if the input operation is a correction operation, performing trajectory recognition on the display trajectory to obtain a recognition result; determining a category of the display trajectory according to the recognition result; and correcting the display trajectory to a standard trajectory according to the category and a size parameter of the display trajectory.

[0015] The present application provides a processing device, the device comprising:

[0016] A first acquisition module, used for acquiring trajectory input;

[0017] A display module, used to record and display the display trajectory of the trajectory input;

[0018] A second obtaining module is used to obtain an input operation;

[0019] A correction module is used for correcting the display trajectory to a standard trajectory matching the display trajectory in response to the correction operation if the input operation is a correction operation; wherein the correction operation includes maintaining a target operation for a target duration; and the target duration is related to a target parameter obtained during the trajectory input process.

[0020] An embodiment of the present application provides a processing device, including a processor and a memory, wherein the memory stores a computer program that can be run on the processor, and the processor implements the above-mentioned processing method when executing the computer program.

[0021] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned processing method is implemented.

[0022] An embodiment of the present application provides an electronic device, including: a display screen and a processor, wherein the processor is used to obtain a trajectory input, record and display a display trajectory of the trajectory input; obtain an input operation; if the input operation is a correction operation, correct the display trajectory to a standard trajectory matching the display trajectory in response to the correction operation; wherein the correction operation includes maintaining a target operation for a target duration; and the target duration is related to a target parameter obtained during the trajectory input process.

[0023] An embodiment of the present application provides a computer program product, which includes executable instructions stored in a computer-readable storage medium; when a processor of a processing device reads the executable instructions from the computer-readable storage medium and executes the executable instructions, the above-mentioned processing method is implemented.

[0024] The processing method and electronic device provided in the embodiments of the present application obtain target parameters during the process of the user inputting a trajectory, determine the target duration according to the target parameters, and when the target duration is reached, correct the display trajectory input by the user to a standard trajectory matching the display trajectory in response to a correction operation. The target duration is determined by the target parameters, and different waiting times can be used for different users when triggering correction after the trajectory input is completed, thereby improving the user's satisfaction when inputting the trajectory. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1A Schematic diagram 1 of the process implementation of the method provided in the embodiment of the present application;

[0026] Figure 1B A schematic diagram of trajectory correction provided in an embodiment of the present application;

[0027] Figure 2 Schematic diagram of the process implementation of the method provided in the embodiment of the present application Figure 2 ;

[0028] Figure 3 Schematic diagram of the process implementation of the method provided in the embodiment of the present application Figure 3 ;

[0029] Figure 4 Schematic diagram of the process implementation of the method provided in the embodiment of the present application Figure 4 ;

[0030] Figure 5 A schematic diagram of the structure of a processing device provided in an embodiment of the present application;

[0031] Figure 6 A schematic diagram of the hardware entity of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The exemplary embodiments disclosed in the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the specific embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope disclosed in the present application to those skilled in the art.

[0033] In the following description, a large number of specific details are given to provide a more thorough understanding of the present application. However, it is obvious to those skilled in the art that the present application can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present application, some technical features known in the art are not described; that is, all features of the actual embodiments are not described here, and well-known functions and structures are not described in detail.

[0034] The term "trajectory" refers to a path drawn from the starting point to the end point of a line (eg, a curve).

[0035] The present application embodiment provides a processing method. Figure 1A A schematic diagram of the process implementation of the method provided in the embodiment of the present application is shown in FIG. Figure 1A As shown, the processing method provided in the embodiment of the present application is implemented through steps S101 to S102:

[0036] Step S101: obtaining a trajectory input, and recording and displaying a display trajectory of the trajectory input.

[0037] In the embodiment of the present application, the processing method can be applied to a terminal device, which can be a smart phone, a computer, a tablet, a handwriting board, a digital drawing board, etc. It can also be applied to an application installed on the terminal device, such as a writing board, a drawing board, etc.

[0038] In an embodiment of the present application, the trajectory input can be obtained by the user performing trajectory input through an external device connected to the above-mentioned terminal device, such as a stylus pen, a capacitive pen, a pressure-sensitive pen, a mouse and other external devices; or the user can perform trajectory input by approaching or touching the terminal device display screen with a finger.

[0039] During the process of the user inputting a trajectory, the terminal device records and displays the display trajectory of the trajectory input. The display trajectory here is a trajectory obtained in real time during the above trajectory input process and is displayed in real time on the display screen of the terminal device.

[0040] When a user performs a trajectory input in a terminal device or a writing and drawing application, a processor of the terminal device or the writing and drawing application obtains the user's continuous trajectory input and displays a continuous display trajectory based on the user's continuous trajectory input.

[0041] Step S102: obtaining an input operation; if the input operation is a correction operation, correcting the display trajectory to a standard trajectory matching the display trajectory in response to the correction operation; wherein the correction operation includes maintaining a target operation for a target duration; and the target duration is related to a target parameter obtained during the trajectory input process.

[0042] In an embodiment of the present application, after the user completes a continuous trajectory input, the terminal obtains an input operation. The input operation here is an operation performed on the display trajectory recorded and displayed in step S101, which can be a correction operation, or other operations such as coloring, bolding, erasing, etc.

[0043] Here, the input operation can be obtained by the user pressing a physical button set on the terminal device, or by selecting a function option set on the display interface of the application. Alternatively, when the track input is ended, the input operation is obtained by default, that is, the end operation corresponding to the end track input, that is, the input operation.

[0044] If the input operation is a correction operation, the display trajectory is corrected to a standard trajectory matching the display trajectory in response to the correction operation; wherein the correction operation includes maintaining a target operation for a target duration; and the target duration is related to a target parameter obtained during the trajectory input process.

[0045] When the input operation is a correction operation, the processor of the terminal device or application corrects the display trajectory input by the user to a standard trajectory that matches the display trajectory based on the correction operation. For example, when the user inputs a circular pattern, since it is difficult for the user to input a standard circle, the non-standard circle input by the user is corrected to a standard circle. Figure 1B A schematic diagram of trajectory correction provided in an embodiment of the present application is shown in FIG. Figure 1B As shown, after the user completes a continuous input track 101 , the terminal obtains a correction operation, and based on the correction operation, corrects the non-standard circle 101 input by the user into a standard circle 102 .

[0046] In the embodiment of the present application, the correction operation includes maintaining the target operation for a target duration, and the target duration is determined according to the target parameters obtained by the user during the trajectory input process.

[0047] Here, the target operation is used to indicate the end of the user's trajectory input. For example, when the user uses the stylus to input the trajectory on the mobile phone, some users are accustomed to leaving the brush on the mobile phone screen to wait for correction, while some users are accustomed to taking the brush off the mobile phone screen to wait for correction. Here, the operation of the brush staying on the mobile phone screen or the brush leaving the mobile phone screen is the target operation. When the user completes the trajectory input, the target duration of the target operation is obtained, for example, the target duration of the user leaving the brush on the mobile phone screen is 1 second (s), or the target duration of the user taking the brush off the mobile phone screen is 1s, then the display trajectory is corrected to obtain the standard trajectory corresponding to the display trajectory.

[0048] In the embodiment of the present application, in response to the correction operation, the display trajectory is corrected to a standard trajectory matching the display trajectory, which can be achieved through steps S1021 to S1024:

[0049] Step S1021: Determine the category of the display trajectory.

[0050] Step S1022: determining a standard track corresponding to the display track according to the category of the display track.

[0051] Step S1023: Determine the similarity between the display trajectory and the standard trajectory based on an algorithm.

[0052] Step S1024: when the degree of similarity between the display trajectory and the standard trajectory is greater than a similarity threshold, correcting the display trajectory to the standard trajectory.

[0053] Here, after the user completes the trajectory input, the display trajectory input by the user can be first classified. For example, the display trajectory input by the user can be judged as a non-standard circle, and then the similarity between the display trajectory and the standard trajectory can be judged by an algorithm. For example, the similarity threshold can be set to 90%. When it is judged that the similarity between the display trajectory and the standard trajectory is greater than 90%, the display trajectory is corrected to a standard circle.

[0054] In an embodiment of the present application, by obtaining target parameters during the user's trajectory input process, and determining the target duration based on the target parameters, when the target duration is reached, based on a correction operation, the display trajectory input by the user is corrected to a standard trajectory that matches the display trajectory, thereby satisfying the problem that different users have different target time lengths for waiting for correction when inputting trajectories, which causes a poor user experience.

[0055] Figure 2 Schematic diagram of the process implementation of the method provided in the embodiment of the present application Figure 2 ,like Figure 2 As shown, the method is implemented through steps S201 to S203:

[0056] Step S201: obtaining a trajectory input, and recording and displaying a display trajectory of the trajectory input.

[0057] Step S202: obtaining an input operation; if the input operation is a correction operation, correcting the display trajectory to a standard trajectory matching the display trajectory in response to the correction operation; wherein the correction operation includes maintaining a target operation for a target duration; and the target duration is related to a target parameter obtained during the trajectory input process.

[0058] In some embodiments, step S202 may be implemented by steps S2021 to S2023:

[0059] Step S2021: performing trajectory recognition on the display trajectory to obtain a recognition result.

[0060] Step S2022: Determine the category of the display trajectory according to the recognition result.

[0061] Step S2023: Correcting the display track to a standard track according to the category and the size parameter of the display track.

[0062] Here, the display track is corrected by identifying the type of the display track and determining the size parameters of the display track. For example, when the identification result shows that the type of the display track is a pentagon and the maximum side length of the display track is determined to be 10 centimeters (cm), the display track is corrected to a standard regular pentagon with a side length of 10 cm.

[0063] Step S203: the target parameter is the input speed corresponding to the trajectory input; and the target duration is determined based on the input speed.

[0064] In the embodiment of the present application, the target parameter is the input speed corresponding to the trajectory input. During the process of the user performing trajectory input, the user's input speed is obtained, and the target duration is determined according to the input speed.

[0065] In some embodiments, determining the target duration based on the input speed may be implemented through step S2031 or step S2032:

[0066] Step S2031: If the input speed is less than the speed threshold, the operation duration is extended by a first specific duration to obtain the target duration; if the input speed is greater than or equal to the speed threshold, the operation duration is shortened by a second specific duration to obtain the target duration.

[0067] In the embodiment of the present application, the speed threshold is a standard speed set in advance by the technician. When the user completes the trajectory input, the speed of the user input is determined by comparing the user input speed with the speed threshold, thereby determining the target duration of the target operation based on the speed of the user input, that is, determining the waiting time for waiting for correction based on the speed of the user input. Here, the operation duration is the duration corresponding to the target operation, that is, the duration of the user's brush staying on the mobile phone, or the duration of the user's brush picking up and leaving the mobile phone.

[0068] For example, the speed threshold can be set to 1 millimeter / millisecond (mm / ms). When the user's input speed is less than 1mm / ms, it is determined that the user's input speed is slow. Therefore, it is necessary to appropriately extend the target time for waiting for correction. When the user performs the target operation for 1 second (s), the first specific time is extended by 0.2s to obtain a target time of 1.2s. When the target time of 1.2s is reached, the display trajectory of the user input is corrected to obtain a standard trajectory.

[0069] In the embodiment of the present application, the input speed is achieved through steps A to D:

[0070] Step A: Obtain an input start point and an input end point of the display track.

[0071] Step B: Determine the length of the display track between the input start point and the input end point.

[0072] Step C: Obtain an input start point timestamp of the input start point and an input end point timestamp of the input end point.

[0073] Step D: Determine the input speed according to the input end timestamp, the input start timestamp and the length of the display track.

[0074] Here, during the process of the user inputting the trajectory, the time taken by the user to input the trajectory is calculated, and the input speed is calculated according to the length of the displayed trajectory obtained by the user input.

[0075] In this implementation example, the step of obtaining the input starting point and the input end point of the display track includes:

[0076] If a trigger operation for the display trajectory is detected, the trajectory point input when the trigger operation is detected will be determined as the input starting point; if the trajectory input of the next trajectory point of the current trajectory point on the display trajectory is not detected within a preset time length, the current trajectory point will be determined as the input end point.

[0077] In this embodiment, the trigger operation may be that the user approaches the mobile phone with a brush or finger, or directly touches the mobile phone, thereby generating a trigger operation, which indicates that the user starts to input a track, and then the track point input when the trigger operation is detected is determined as the input starting point. After the user's track input is completed, some users are accustomed to leaving the brush or finger on the mobile phone screen without moving. At this time, the user no longer inputs the track. Therefore, when the track input of the next track point of the current track point on the display track is not detected within a preset time, the current track point is determined as the input end point; when the user's track input is completed, some users are accustomed to leaving the brush or finger on the mobile phone screen. At this time, the user no longer inputs the track. After the user inputs the last current track point, the track input of the next track point cannot be detected. Therefore, the current track point is determined as the input end point. When the input end point is determined, it indicates that the user has completed the track input, and the display track input by the user can be corrected.

[0078] In some embodiments, determining the target duration based on the input speed may also be achieved through step S2032:

[0079] Step S2032: Obtain a duration relationship table; wherein the duration relationship table has at least one mapping relationship between an input speed and a target duration; and according to the input speed, query the target duration corresponding to the input speed from the duration relationship table.

[0080] In the embodiment of the present application, the duration relationship table includes: input speed, target duration, and a one-to-one correspondence between input speed and target duration. After determining the input speed corresponding to the user trajectory input, the target duration corresponding to the input speed can be determined from the duration relationship table by querying the duration relationship table, so that when the target duration is reached, the display trajectory input by the user is corrected.

[0081] In the embodiment of the present application, the speed of the user's input is judged according to the input speed of the user's trajectory input, so as to determine the corresponding target duration based on the different input speeds of different users, so as to meet the needs of different users for different target durations for inputting trajectories and improve user satisfaction.

[0082] Figure 3 Schematic diagram of the process implementation of the method provided in the embodiment of the present application Figure 3 ,like Figure 3 As shown, the method is implemented through steps S301 to S304:

[0083] Step S301: obtaining a trajectory input, and recording and displaying a display trajectory of the trajectory input.

[0084] Step S302: obtaining an input operation; if the input operation is a correction operation, correcting the display trajectory to a standard trajectory matching the display trajectory in response to the correction operation; wherein the correction operation includes maintaining a target operation for a target duration; and the target duration is related to a target parameter obtained during the trajectory input process.

[0085] Step S303: the target parameter is the input duration from the start of the trajectory input to the end of the trajectory input; and the target duration is determined based on the input duration of the trajectory input.

[0086] Step S304: When the input duration is greater than the duration threshold, the operation duration is extended by a first specific duration to obtain the target duration; when the input duration is less than or equal to the duration threshold, the operation duration is shortened by a second specific duration to obtain the target duration.

[0087] In an embodiment of the present application, the target parameter is the input duration of the user's trajectory input, and the target duration is determined by obtaining the user's input duration. The operation duration here is the duration corresponding to the target operation, that is, the length of time the user keeps the brush on the phone, or the length of time the user picks up the brush and leaves the phone. A duration threshold can be set to classify the user's input duration. For example, the duration threshold is set to 2s. When the user's input duration is greater than the duration threshold of 2s, the user's operation duration is extended by 0.2s to obtain a target duration of 2.2s. When the target duration is reached, in response to the correction operation, the display trajectory input by the user is corrected to a standard trajectory.

[0088] In some embodiments, the user's input duration is positively correlated with the length and complexity of the display trajectory obtained by the user's trajectory input. For example, the longer the length of the user's input, the longer the required input time, or the higher the complexity of the display trajectory input by the user, the longer the input time. Therefore, when the user's input duration is longer, it indicates that the length and complexity of the display trajectory input by the user are higher, and a longer target duration is required to correct the display trajectory.

[0089] Figure 4 Schematic diagram of the process implementation of the method provided in the embodiment of the present application Figure 4 ,like Figure 4 As shown, the method is implemented through steps S401 to S403:

[0090] Step S401: obtaining a trajectory input, and recording and displaying a display trajectory of the trajectory input.

[0091] Step S402: obtaining an input operation; if the input operation is a correction operation, correcting the display trajectory to a standard trajectory matching the display trajectory in response to the correction operation; wherein the correction operation includes maintaining a target operation for a target duration; and the target duration is related to a target parameter obtained during the trajectory input process.

[0092] Step S403: the target parameter is biological information of the target object for the trajectory input; the method further includes: determining the target duration based on the biological information.

[0093] In the embodiment of the present application, step S403 may be implemented through steps S4031 to S4033:

[0094] Step S4031: Acquire biological information of the target object; the biological information includes a face image.

[0095] Step S4032: Perform face recognition on the face image to obtain feature information of the target object.

[0096] Step S4033: If the feature information does not satisfy the feature constraint condition, the operation duration is extended by a first specific duration to obtain the target duration; if the feature information satisfies the feature constraint condition, the operation duration is shortened by a second specific duration to obtain the target duration.

[0097] In the embodiment of the present application, when the target object, i.e., the user, performs trajectory input, the user's biometric information can be obtained. For example, the user's facial image information can be obtained by opening the front camera of the mobile phone, and the user's feature information can be obtained by identifying the user's facial image, such as obtaining the user's age information by identifying the user's facial image. When the user's age information meets the feature constraint condition, for example, the age information meets the age information between 18 and 55 years old, indicating that the user is a young and middle-aged person, the operation time can be shortened by a first specific time to obtain the target time, so the young and middle-aged user can perform trajectory correction at a shorter target time; when the age information does not meet the age between 18 and 55 years old, it indicates that the user may be a child or an elderly person, and the operation time can be shortened by a second specific time to obtain the target time, so the child or the elderly can perform trajectory correction at a longer target time.

[0098] The processing method provided in the embodiment of the present application obtains the user's biometric information during the user trajectory input process to identify the user's age group, and determines different target durations according to users in different age groups to meet the usage needs of different users and improve user experience.

[0099] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0100] In writing and drawing applications, there is usually an automatic graphic calibration function. For example, when you draw a circle with a pen, the system can automatically recognize that you want to draw a circle, and then adjust this not-so-round circle into a standard circle. Similarly, if the system recognizes that you want to draw a rectangle, it will automatically turn the irregular hand-drawn rectangle into a regular rectangle. The common way to trigger graphic recognition is to use a delay, that is, when the pen stays on the canvas for a period of time to trigger the algorithm to judge the recognition. For example, if the pen stays on the canvas for 1 second, the algorithm will be triggered to judge the recognition, to determine whether a graphic has been input, and then automatically calibrate a graphic.

[0101] However, the speed of inputting with a pen is different for each person. Some people input faster, while others input slower. If a uniform waiting time of 1 second is used, each user will have a different experience. Users who input faster may feel that the waiting time is too long, while users who input slower may feel that the waiting time is too short. Using a uniform waiting time delay to process the recognition algorithm is relatively rigid and not user-friendly.

[0102] Based on the above problems, an embodiment of the present application provides a processing method that can determine and identify the user's own input speed to dynamically adjust the algorithm waiting time.

[0103] In the embodiment of the present application, if the user inputs and draws quickly, the waiting time for algorithm judgment is reduced. For example, a 0.5 second waiting time is adopted. When the pen stays on the canvas for 0.5 seconds, the algorithm judgment mechanism is triggered to determine whether a graphic is input, and then adjust it into a regular graphic.

[0104] On the contrary, if the user's input speed and drawing speed are relatively slow, then the waiting time for the algorithm judgment will be lengthened, for example, waiting for 2 seconds, and the algorithm judgment mechanism will be triggered only after the pen stays on the canvas for 2 seconds.

[0105] The processing method provided in the embodiment of the present application dynamically adjusts the waiting time required for triggering the calibration algorithm according to the different writing habits and input speed of each user, thereby providing a better user experience of graphic calibration.

[0106] The present application embodiment provides a processing device, Figure 5 is a schematic diagram of the structure of the processing device, such as Figure 5 As shown, the processing device 500 includes:

[0107] The first obtaining module 501 is used to obtain a trajectory input.

[0108] The display module 502 is used to record and display the display trajectory of the trajectory input.

[0109] The second obtaining module 503 is used to obtain an input operation.

[0110] The correction module 504 is used for correcting the display trajectory to a standard trajectory matching the display trajectory in response to the correction operation if the input operation is a correction operation; wherein the correction operation includes maintaining a target operation for a target duration; and the target duration is related to a target parameter obtained during the trajectory input process.

[0111] The embodiment of the present application provides an electronic device, comprising: a display screen and a processor. The display screen is used for trajectory input; the processor is used to obtain the trajectory input, record and display the display trajectory of the trajectory input; obtain an input operation; if the input operation is a correction operation, in response to the correction operation, correct the display trajectory to a standard trajectory matching the display trajectory; wherein the correction operation includes a target operation maintaining a target duration; the target duration is related to the target parameter obtained during the trajectory input process.

[0112] Figure 6 is a schematic diagram of the hardware entity of the electronic device provided in the embodiment of the present application, such as Figure 6 As shown, the hardware entity of the electronic device includes: a processor 601, a communication interface 602 and a memory 603, wherein:

[0113] The processor 601 generally controls the overall operation of the electronic device.

[0114] The communication interface 602 enables the electronic device to communicate with other terminals or servers through a network.

[0115] The memory 603 is configured to store instructions and applications executable by the processor 601, and can also cache data to be processed or processed by the processor 601 and various modules in the electronic device (for example, image data, audio data, voice communication data, and video communication data), which can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM). Data transmission can be performed between the processor 601, the communication interface 602, and the memory 603 through the bus 604.

[0116] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program performs the following steps: obtaining a trajectory input, recording and displaying a display trajectory of the trajectory input; obtaining an input operation; if the input operation is a correction operation, correcting the display trajectory to a standard trajectory matching the display trajectory in response to the correction operation; wherein the correction operation includes maintaining a target operation for a target duration; and the target duration is related to a target parameter obtained during the trajectory input process.

[0117] When the computer program is executed by the processor, the computer program further executes: the method further includes: determining the target duration based on the input speed.

[0118] When the computer program is executed by the processor, the computer program further executes: if the input speed is less than the speed threshold, the operation duration is extended by a first specific duration to obtain the target duration; if the input speed is greater than or equal to the speed threshold, the operation duration is shortened by a second specific duration to obtain the target duration.

[0119] When the computer program is executed by the processor, the computer program further executes: obtaining an input start point and an input end point of the display trajectory; determining the length of the display trajectory between the input start point and the input end point; obtaining an input start point timestamp of the input start point and an input end point timestamp of the input end point; and determining the input speed according to the input end point timestamp, the input start point timestamp and the length of the display trajectory.

[0120] When the computer program is executed by the processor, the computer program further executes: if a trigger operation for the display trajectory is detected, the trajectory point input when the trigger operation is detected is determined as the input starting point; if the trajectory input of the next trajectory point of the current trajectory point on the display trajectory is not detected within a preset time length, the current trajectory point is determined as the input end point.

[0121] When the computer program is executed by the processor, the computer program further executes: obtaining a duration relationship table; wherein the duration relationship table has a mapping relationship between at least one input speed and a target duration; and querying the target duration corresponding to the input speed from the duration relationship table according to the input speed.

[0122] When the computer program is executed by the processor, the computer program further executes: determining the target duration based on the operation duration of the trajectory input; wherein, determining the target duration based on the input duration of the trajectory input includes: when the operation duration is greater than a duration threshold, extending the operation duration by a first specific duration to obtain the target duration; when the operation duration is less than or equal to the duration threshold, shortening the operation duration by a second specific duration to obtain the target duration.

[0123] When the computer program is executed by the processor, it also executes: determining the target duration based on the biometric information; wherein, determining the target duration based on the biometric information includes: acquiring the biometric information of the target object; the biometric information includes a face image; performing face recognition on the face image to obtain feature information of the target object; if the feature information does not meet the feature constraint condition, extending the operation duration by a first specific duration to obtain the target duration; if the feature information meets the feature constraint condition, shortening the operation duration by a second specific duration to obtain the target duration.

[0124] When the computer program is executed by the processor, the computer program further executes: if the input operation is a correction operation, performing trajectory recognition on the display trajectory to obtain a recognition result; determining the category of the display trajectory according to the recognition result; and correcting the display trajectory to a standard trajectory according to the category and the size parameter of the display trajectory.

[0125] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the 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 can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0126] The units described above as separate components may or may not be physically separated, and the components displayed 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 present embodiment.

[0127] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0128] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0129] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0130] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A processing method, the method comprising: Obtaining a trajectory input, recording and displaying a display trajectory of the trajectory input; Get input operation; If the input operation is a correction operation, in response to the correction operation, correcting the display trajectory to a standard trajectory matching the display trajectory; The correction operation includes maintaining a target operation for a target duration, and the target operation is used to indicate that the trajectory input is finished; the target duration is related to a target parameter obtained during the trajectory input process, and the target parameter includes any one of the following: an input speed corresponding to the trajectory input, an input duration from the start of the trajectory input to the end of the trajectory input, and biological information of a target object performing the trajectory input.

2. The method according to claim 1 further comprises: The target duration is determined based on the input speed.

3. The method according to claim 2, wherein: The determining the target duration based on the input speed includes: If the input speed is less than the speed threshold, the duration corresponding to the target operation is extended by a first specific duration to obtain the target duration; If the input speed is greater than or equal to the speed threshold, the duration corresponding to the target operation is shortened by a second specific duration to obtain the target duration.

4. The method according to claim 3, wherein the input speed is determined by: Obtaining an input starting point and an input end point of the display track; Determining the length of the display track between the input starting point and the input end point; Obtaining an input start point timestamp of the input start point and an input end point timestamp of the input end point; The input speed is determined according to the input end timestamp, the input start timestamp, and the length of the display track.

5. According to the method of claim 4, the step of obtaining the input starting point and the input end point of the display track comprises: If a trigger operation for the display track is detected, the track point input when the trigger operation is detected is determined as the input starting point; If the track input of the next track point of the current track point on the display track is not detected within a preset time period, the current track point is determined as the input end point.

6. The method according to claim 2, wherein determining the target duration based on the input speed comprises: Acquire a duration relationship table; wherein the duration relationship table contains at least one mapping relationship between an input speed and a target duration; According to the input speed, the target duration corresponding to the input speed is searched from the duration relationship table.

7. The method according to claim 1, further comprising: Determining the target duration based on the input duration of the trajectory input; The step of determining the target duration based on the input duration of the trajectory input includes: When the input duration is greater than the duration threshold, the duration corresponding to the target operation is extended by a first specific duration to obtain the target duration; When the input duration is less than or equal to the duration threshold, the duration corresponding to the target operation is shortened by a second specific duration to obtain the target duration.

8. The method according to claim 1, further comprising: determining the target duration based on the biological information; Wherein, determining the target duration based on the biological information includes: Acquire biological information of the target object; the biological information includes a face image; Performing face recognition on the face image to obtain feature information of the target object; If the feature information does not satisfy the feature constraint condition, extending the duration corresponding to the target operation by a first specific duration to obtain the target duration; If the feature information satisfies the feature constraint condition, the duration corresponding to the target operation is shortened by a second specific duration to obtain the target duration.

9. The method according to claim 1, if the input operation is a correction operation, correcting the presentation trajectory to a standard trajectory matching the presentation trajectory in response to the correction operation, comprises: If the input operation is a correction operation, performing trajectory recognition on the display trajectory to obtain a recognition result; Determining a category of the display trajectory according to the recognition result; The display track is corrected to a standard track according to the category and the size parameter of the display track.

10. An electronic device, comprising: Display A processor, the processor is used to obtain a trajectory input, record and display a display trajectory of the trajectory input; Get input operation; If the input operation is a correction operation, the display trajectory is corrected to a standard trajectory matching the display trajectory in response to the correction operation; wherein the correction operation includes maintaining a target duration for a target operation, and the target operation is used to indicate that the trajectory input ends; the target duration is related to a target parameter obtained during the trajectory input process, and the target parameter includes any one of the following: an input speed corresponding to the trajectory input, an input duration from the start of the trajectory input to the end of the trajectory input, and biological information of a target object performing the trajectory input.

Citation Information

Patent Citations

  • Real-time identification method for on-line handwriting sentences

    CN101853126A

  • Method of providing handwriting style correction function and electronic device adapted thereto

    CN107085479A