Information sending method and device
By automatically acquiring and sending handwritten information when the handwriting layer is enabled, the problem of complex and time-consuming handwritten information generation and sending in the prior art is solved, and fast and efficient handwriting input is achieved.
Patent Information
- Application Number
- CN202010831532.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-18
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2040-08-18
AI Technical Summary
In the process of handwriting input, the existing technology requires the user to manually close the handwriting layer and click the send button to generate and send handwriting information, which makes the information sending process complicated and time-consuming, affecting the efficiency of handwriting input.
When the handwriting layer is enabled, it automatically acquires handwriting traces and generates handwriting information, and automatically sends it when preset conditions are met, simplifying the generation and sending process and avoiding the step of turning off the handwriting layer.
It improves the efficiency of handwriting input and reduces time costs, enabling users to quickly complete handwriting input and ensure accurate information transmission.
Smart Images

Figure CN111913646B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the computer technical field, and in particular to an information sending method and device. BACKGROUND
[0002] Handwriting input is a common input method on a terminal device, and handwriting input is realized by character recognition on a user's handwriting track on a touch screen of the terminal device.
[0003] In some cases (such as when handwriting complex characters), a user needs to occupy a large operation area to complete handwriting input, and therefore, in order to meet the requirement of handwriting input on the operation area, a handwriting layer can be overlaid on the touch screen of the terminal device, so that the user can perform handwriting operation on any area of the touch screen. The handwriting layer refers to an operation layer used to collect a user's handwriting track.
[0004] However, how to perform handwriting input becomes a technical problem to be solved. SUMMARY
[0005] The main purpose of the embodiments of the present application is to provide an information sending method and device, which can quickly perform handwriting input.
[0006] The embodiments of the present application provide an information sending method, which comprises the following steps:
[0007] When it is determined that a handwriting layer on a terminal device is in an open state, a handwriting track of a user on the handwriting layer is acquired;
[0008] Handwriting information is generated according to the handwriting track;
[0009] The handwriting information is sent.
[0010] Optionally, the handwriting information is sent, which comprises the following steps:
[0011] After receiving an information sending request triggered by the user on the handwriting layer, the handwriting information is sent.
[0012] Optionally, the information sending request is triggered by the user by touching a first control deployed on the handwriting layer;
[0013] Alternatively,
[0014] The information sending request is triggered by the user by performing a pre-set first operation on the handwriting layer.
[0015] Optionally, the handwriting information is sent, which comprises the following steps:
[0016] A current time is acquired;
[0017] determining that the handwritten information is not updated in a time period from a generation time of the handwritten information to the current time, and determining that a time difference between the current time and the generation time of the handwritten information reaches the sending delay duration, sending the handwritten information.
[0018] Optionally, the determining process of the sending delay duration comprises:
[0019] determining the information checking habit of the user according to historical handwritten input data of the user;
[0020] determining the sending delay duration according to the information checking habit of the user.
[0021] Optionally, the determining the sending delay duration according to the information checking habit of the user comprises:
[0022] if the information checking habit of the user comprises an information checking rate of the user, determining a delay duration corresponding to the information checking rate of the user as the sending delay duration;
[0023] if the information checking habit of the user comprises an information checking duration of the user, determining the information checking duration of the user as the sending delay duration;
[0024] if the information checking habit of the user comprises the information checking rate of the user and the information checking duration of the user, determining a product of the information checking duration of the user and a duration coefficient determined according to the information checking rate of the user as the sending delay duration.
[0025] Optionally, the sending the handwritten information comprises:
[0026] sending the handwritten information according to the handwriting habit of the user.
[0027] Optionally, the sending the handwritten information according to the handwriting habit of the user comprises:
[0028] determining the information sending condition according to the handwriting habit of the user;
[0029] sending the handwritten information when the information sending condition is reached.
[0030] Optionally, if the handwriting habit of the user comprises an information input habit of the user, the determining the information sending condition according to the handwriting habit of the user comprises:
[0031] When it is determined that the user's information input habit is to determine the characters to be displayed on the screen by manually selecting the character candidates displayed on the handwriting layer, the information sending conditions are determined to include the semantic integrity of the handwritten information and that the user has not performed a handwriting operation on the handwriting layer within a first time period after completing the last character candidate selection operation corresponding to the handwritten information.
[0032] When it is determined that the user's information input habit is that the user does not select the first character candidate displayed on the handwriting layer to determine the character to be displayed, the information sending conditions are determined to include the user performing a tap operation on the handwriting layer, or the information sending conditions are determined to include the semantic completeness of the handwritten information and the user performing a pre-set second operation on the handwriting layer.
[0033] Optionally, the process for determining the semantic integrity of the handwritten information includes:
[0034] Each sentence in the handwritten information is obtained as a sentence to be processed.
[0035] Obtain the character co-occurrence probability of each sentence to be processed;
[0036] The confusion level of each sentence to be processed is determined based on the co-occurrence probability of each character.
[0037] When the confusion level of each sentence to be processed is determined to be below a preset threshold, the semantic integrity of the handwritten information is determined.
[0038] Optionally, if the user's handwriting habits include the user's information verification habits, then determining the information sending conditions based on the user's handwriting habits includes:
[0039] Based on the user's information verification habits, the sending delay duration is determined, and the information sending conditions include the unupdated duration of the handwritten information reaching the sending delay duration.
[0040] Optionally, the method further includes:
[0041] After confirming that the handwritten information has been sent, the handwriting layer is turned off;
[0042] When the conditions for enabling the handwriting layer are met, the handwriting layer is enabled.
[0043] Optionally, when a text box for recording the handwritten information is displayed on the terminal device, the handwriting layer is enabled by clearing the text box;
[0044] or,
[0045] The handwriting layer opening condition is that the user performs a third preset operation on the terminal device.
[0046] Or,
[0047] The handwriting layer opening condition is that the user touches a second control on the terminal device.
[0048] Or,
[0049] The handwriting layer opening condition is that the display page of the terminal device does not change within a second time period after the handwriting layer is closed.
[0050] Embodiments of the present application also provide an information sending device, the device comprising:
[0051] A trajectory acquisition unit is configured to acquire a handwriting trajectory of a user on a handwriting layer of a terminal device when it is determined that the handwriting layer is in an open state.
[0052] An information generation unit is configured to generate handwriting information according to the handwriting trajectory.
[0053] An information sending unit is configured to send the handwriting information.
[0054] Embodiments of the present application also provide an information sending device, comprising a processor, a memory and a system bus.
[0055] The processor and the memory are connected through the system bus.
[0056] The memory is configured to store one or more programs, the one or more programs comprising instructions which, when executed by the processor, cause the processor to perform any of the implementation methods of the information sending method.
[0057] Embodiments of the present application also provide a computer readable storage medium, the computer readable storage medium storing instructions, when the instructions are run on a terminal device, causing the terminal device to perform any of the implementation methods of the information sending method.
[0058] Embodiments of the present application also provide a computer program product, when the computer program product is run on a terminal device, causing the terminal device to perform any of the implementation methods of the information sending method.
[0059] Based on the above technical solutions, the present application has the following beneficial effects:
[0060] The information sending method provided in the application comprises the following steps: when it is determined that a handwriting layer on a terminal device of a user is in an open state, obtaining a handwriting track of the user on the handwriting layer; generating handwriting information according to the handwriting track; and automatically sending the handwriting information, so that a receiving object of the handwriting information can quickly receive the handwriting information, thereby enabling the user to quickly perform handwriting input and improving handwriting input efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0062] Figure 1 The application scenario diagram of the information sending method applied to the terminal device provided in the embodiments of the present application is shown in the following figure.
[0063] Figure 2 The application scenario diagram of the information sending method applied to the server provided in the embodiments of the present application is shown in the following figure.
[0064] Figure 3 The flowchart of the information sending method provided in the embodiments of the present application is shown in the following figure.
[0065] Figure 4 The structural diagram of the information sending device provided in the embodiments of the present application is shown in the following figure. DETAILED DESCRIPTION
[0066] In order to facilitate the understanding of the technical solutions of the present application, the following introduces some basic concepts.
[0067] The handwriting input refers to an input mode in which a user realizes character input by performing handwriting operation on a touch screen of a terminal device. In addition, the working principle of the handwriting input is that when the user performs handwriting in a specified area (such as a handwriting layer) of the touch screen, the user handwriting track can be determined as a user handwriting track, and the user handwriting track is subjected to character recognition to generate handwriting information of the user.
[0068] The handwriting layer refers to an operation layer for collecting the user handwriting track. In addition, in order to meet the demand of the user handwriting input for the operation area, the handwriting layer can usually cover the entire touch screen, so that the user can perform handwriting operation on any area of the touch screen.
[0069] The handwriting layer has two states: an open state and a closed state. When the handwriting layer is in the open state, the handwriting layer can cover the entire touch screen of the terminal device, so that the user can perform handwriting operations on the handwriting layer. When the handwriting layer is in the closed state, the handwriting layer is not displayed on the touch screen of the terminal device, so that the user can use other terminal device controls on the terminal device in addition to the handwriting layer. In addition, in order to facilitate the user to accurately know whether the handwriting layer of the terminal device is in the open state at the current time, the handwriting layer can be pre-set to a preset color (such as green with a certain degree of transparency), so that the user can determine whether the handwriting layer is in the open state according to the preset color.
[0070] The tap layer is an operation layer for receiving a user tap operation (such as a click operation, a press operation, etc.). For example, the tap layer can support tap input, which refers to character input by performing a tap operation on a specified area (such as a keyboard display area). Tap is used to represent a click operation and / or a press operation.
[0071] The inventors found in the research on handwriting input that in the related art, if the handwriting layer is overlaid on the tap layer, after generating handwriting information according to a handwriting track of the user on the handwriting layer, the user can first manually close the handwriting layer, so that the user can use the tap layer located below the handwriting layer to perform a tap operation; then, the user can click an information sending button disposed on the tap layer, so as to send the handwriting information. It can be seen that in the above related art, the generation process and the sending process of the handwriting information involved in handwriting input occur in different operation layers, so that the generated handwriting information must go through the process of "closing the handwriting layer → clicking the sending button" to be sent out, thereby making the information sending process of the handwriting information relatively complex, which leads to a relatively long time cost of handwriting information sending, thereby leading to a relatively high time cost of handwriting input.
[0072] In order to solve the technical problems in the background art and the defects of the above related art, the embodiments of the present application provide an information sending method, which comprises: when it is determined that the handwriting layer on the terminal device of the user is in an open state, first acquiring a handwriting track of the user on the handwriting layer, then generating handwriting information according to the handwriting track, and automatically sending the handwriting information, so that the receiving object of the handwriting information can quickly receive the handwriting information, thereby enabling the user to quickly perform handwriting input, which is beneficial to improve handwriting input efficiency.
[0073] As can be seen, since the handwritten information is automatically sent out after it is generated, the handwriting layer remains on throughout the process of generating and sending the handwritten information involved in handwriting input. This eliminates the need to "close the handwriting layer" between the processes of generating and sending handwritten information, thus effectively simplifying the execution process of handwriting input and reducing its execution time, thereby significantly lowering the time cost of handwriting input.
[0074] Furthermore, the embodiments of this application do not limit the executing entity of the information sending method. For example, the information sending method provided in the embodiments of this application can be applied to data processing devices such as terminal devices or servers. The terminal device can be a smartphone, computer, personal digital assistant (PDA), or tablet computer, etc. The server can be a standalone server, a cluster server, or a cloud server.
[0075] To facilitate understanding of the technical solutions provided in the embodiments of this application, the following descriptions are provided in conjunction with... Figure 1 and Figure 2 The application scenarios of the information sending method provided in the embodiments of this application are described exemplarily. Among them, Figure 1 This is a schematic diagram illustrating an application scenario of the information transmission method for terminal devices provided in the embodiments of this application; Figure 2 This is a schematic diagram illustrating an application scenario of the information sending method for a server provided in an embodiment of this application.
[0076] exist Figure 1 In the application scenario shown, when user 101 selects handwriting input as the input method on terminal device 102, terminal device 102 will automatically activate the handwriting layer so that user 101 can perform handwriting operations on the handwriting layer; then, after terminal device 102 obtains the handwriting trajectory of user 101 on the handwriting layer, terminal device 102 can generate handwriting information based on the handwriting trajectory and automatically send the handwriting information to the recipient 103 so that the recipient 103 can quickly receive the handwriting information.
[0077] exist Figure 2In the application scenario shown, when the user 201 selects handwriting input as the input method on the terminal device 202, the terminal device 202 automatically opens the handwriting layer to enable the user 201 to perform handwriting operation on the handwriting layer. Then, after the terminal device 202 obtains the handwriting track of the user 101 on the handwriting layer, the terminal device 202 directly sends the handwriting track to the server 203, so that the server 203 generates handwriting information according to the handwriting track and automatically sends the handwriting information to the receiver 204 of the handwriting information, so that the receiver 204 can quickly receive the handwriting information. In addition, the server 203 also feeds back the handwriting information to the terminal device 202 for display, so that the user 201 can view the handwriting information on the terminal device 202.
[0078] It should be noted that the information sending method provided by the embodiments of the present application can be applied not only to Figure 1 or Figure 2 the application scenario shown, but also to other application scenarios that need to send handwriting information, which is not limited by the embodiments of the present application.
[0079] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme of the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0080] Method embodiment one
[0081] Referring to Figure 3 , the figure is a flowchart of an information sending method provided by the embodiments of the present application.
[0082] The information sending method provided by the embodiments of the present application comprises S1-S3:
[0083] S1: When it is determined that the handwriting layer on the terminal device is in an open state, obtaining a handwriting track of a user on the handwriting layer.
[0084] The user refers to a user who selects handwriting input as the input method on the terminal device.
[0085] The handwriting track refers to a track generated by a user performing handwriting operation on the handwriting layer, and the handwriting track can describe handwriting information that the user wants to input. In addition, the handwriting track is not limited in the embodiments of the present application, for example, the handwriting track can be used to describe a character (such as a Chinese character, a letter or a symbol), can be used to describe a sentence, and can be used to describe multiple sentences. In addition, the handwriting track is not limited in the embodiments of the present application, for example, the handwriting track can refer to handwriting track in a period of time, or can refer to handwriting track at a moment.
[0086] In the embodiments of the present application, when the user selects handwriting input as the input method on the terminal device, the terminal device automatically opens the handwriting layer and keeps the handwriting layer in an open state, so that the handwriting layer can collect handwriting track of the user on the handwriting layer, thereby enabling subsequent handwriting information that the user wants to send by using the terminal device to be determined based on the collected handwriting track.
[0087] S2: generating handwriting information according to the handwriting track.
[0088] The handwriting information is used to describe character information that the user wants to send by using the terminal device, and the handwriting information can be determined according to the handwriting track of the user on the handwriting layer. In addition, the handwriting information is not limited in the embodiments of the present application, for example, the handwriting information can be a character (such as the character "?"), can be a sentence, or can be multiple sentences.
[0089] In the embodiments of the present application, after the handwriting track is obtained, the handwriting information can be generated according to the handwriting track, so that the handwriting information can describe character information that the user wants to send by using the terminal device. It should be noted that the generation method of the handwriting information is not limited in the embodiments of the present application, and any method that can generate handwriting information based on handwriting track can be used.
[0090] In fact, for one information sending process, the user sometimes wants to send a character, sometimes wants to send a sentence, and sometimes wants to send a paragraph (that is, multiple sentences), so in order to ensure that the handwriting information automatically sent each time is the handwriting information that the user wants to send, the embodiments of the present application provide a handwriting information generation process, which can specifically include the following steps:
[0091] Step 1: obtaining handwriting track of the user on the handwriting layer as current handwriting track.
[0092] The current handwriting track refers to handwriting track obtained from the handwriting layer at the current moment, or refers to handwriting track obtained from the handwriting layer in the current time period.
[0093] Step 2: updating the to-be-updated information by using the current handwriting track, so that the updated to-be-updated information comprises character information corresponding to the current handwriting track and the to-be-updated information.
[0094] The to-be-updated information is determined by using handwriting tracks acquired before the current time (or the current time period) for generating the handwriting information; and the initial value of the to-be-updated information is empty.
[0095] The character information corresponding to the current handwriting track refers to character information determined according to the current handwriting track for composing the handwriting information, and the character information corresponding to the current handwriting track can comprise at least one character.
[0096] Step 3: determining whether the preset condition corresponding to the user is reached, if yes, taking the updated to-be-updated information as the handwriting information; if no, returning to execute Step 1.
[0097] The preset condition corresponding to the user is used to describe a condition (that is, a sending timing of the handwriting information) that should be reached when the user sends out the handwriting information, and the preset condition corresponding to the user is not limited in the embodiment of the present application, for example, the preset condition corresponding to the user can be an information sending request triggered by the user on the handwriting layer, or can be an information sending condition corresponding to the user.
[0098] It should be noted that the related content of the "information sending request" and the related content of the "information sending condition" are described below Method embodiment two .
[0099] Based on the related content of the above Step 1 to Step 3, it can be known that in the embodiment of the present application, the handwriting information can be generated according to the character information corresponding to the multiple handwriting operations of the user, and the generation process is specifically: after the i th handwriting track of the user on the handwriting layer is acquired, the i th to-be-updated information is first updated by using the i th handwriting track to obtain the i+1 th to-be-updated information, so that the i+1 th to-be-updated information comprises character information corresponding to the i th handwriting track and the i th to-be-updated information; then it is determined whether the preset condition corresponding to the user is reached, if the preset condition corresponding to the user is not reached, the i+1 th handwriting track and the subsequent steps (that is, the acquisition process of the i+2 th to-be-updated information) are continuously executed; if the preset condition corresponding to the user is reached, the i+1 th to-be-updated information is directly taken as the handwriting information for automatic sending. Wherein, i is a positive integer, i≤M, M is the total number of handwriting operations (that is, the total number of updates of the to-be-updated information) experienced for generating the handwriting information. In addition, the 1 st to-be-updated information can be pre-set as empty, so that the 2 nd to-be-updated information only comprises character information corresponding to the 1 st handwriting track.
[0100] It can be seen that when the user performs handwriting input, only when it is determined that the preset condition corresponding to the user is reached, all character information generated by the user with the aid of the handwriting layer is automatically sent as a whole, so that the sent information can be the input information that the user hopes to send at one time, thereby making the automatically sent information better meet the user information sending demand, and thus it is beneficial to improve the user handwriting input experience.
[0101] S3: sending the handwriting information.
[0102] In the embodiment of the present application, after the handwriting information is acquired, the handwriting information can be directly and automatically sent to the receiver of the handwriting information, so that the receiver can timely receive the handwriting information. Since the handwriting information is automatically sent after being generated, the handwriting layer is still in an open state when the handwriting information is sent, so that the generation process and the sending process of the handwriting information occur in the same operation layer, without the need for the user to manually perform an operation layer switching operation, which can effectively simplify the operation process of handwriting input, thereby effectively reducing the time cost of handwriting input.
[0103] In addition, the present application also provides various possible implementation manners of S3, and the technical details are described below Method embodiment two Method embodiment two .
[0104] Based on the above related content of S1 to S3, it can be seen that in the information sending method provided by the present application, when it is determined that the handwriting layer on the terminal device of the user is in an open state, the handwriting trajectory of the user on the handwriting layer is first acquired, then handwriting information is generated according to the handwriting trajectory, and the handwriting information is automatically sent, so that the receiving object of the handwriting information can quickly receive the handwriting information, thereby enabling the user to quickly perform handwriting input, which is beneficial to improve the handwriting input efficiency. It can be seen that since the handwriting information is automatically sent after being generated, the handwriting layer remains in an open state during the generation process and the sending process of the handwriting information involved in handwriting input, so that the step of "closing the handwriting layer" is not needed between the process of generating handwriting information and the process of sending handwriting information, which can effectively simplify the execution process of handwriting input, thereby effectively reducing the execution time consumption of handwriting input, and thus effectively reducing the time cost of handwriting input.
[0105] Method embodiment three
[0106] In fact, the information sending demand (especially the sending timing demand) of the user for the handwritten information is different in different application scenarios. Therefore, in order to meet the information sending demand (especially the sending timing demand) of the user for the handwritten information in different application scenarios, the present application further provides three possible implementation manners of sending the handwritten information (namely S3), which are introduced as follows.
[0107] In some application scenarios, the user prefers to actively control the sending timing of the handwritten information. Therefore, in order to meet this demand, the present application provides a first possible implementation manner of S3, which is specifically: after receiving the information sending request triggered by the user on the handwriting layer, the handwritten information is sent.
[0108] The information sending request refers to a request triggered by the user on the handwriting layer and used for requesting to send the handwritten information (for example, the handwritten information). In addition, the present application does not limit the triggering manner of the information sending request, which is described below in combination with two examples.
[0109] Example 1: The information sending request can be triggered by the user through the first control deployed on the handwriting layer.
[0110] The first control refers to a control deployed on the handwriting layer and used for triggering the information sending request. In addition, the present application does not limit the first control. For example, the first control can be a button (such as a floating button or a button with a fixed deployment position). It should be noted that whether the first control is displayed on the handwriting layer is set by the user in advance on the terminal device.
[0111] The present application also does not limit the touch manner of the first control. For example, the touch manner of the first control can be a tapping manner, that is, the user triggers the information sending request by tapping the first control.
[0112] The present application also does not limit the deployment position of the first control. For example, when the first control is a control with a fixed deployment position, the first control can be fixed at a preset position in the touchable area (such as the tapable area) on the handwriting layer. For another example, when the first control is a control with an adjustable deployment position (such as a floating button), the first control can be adjusted by the user to any position in the touchable area on the handwriting layer according to personal habits (for example, if the user is used to controlling the terminal device with the left hand, the user can adjust the first control to the left position in the touchable area), so that the left hand of the user can more conveniently touch the first control.
[0113] Based on the related content of the above example 1, when the first control for triggering the information sending request is deployed on the handwriting layer, if the user wants to send the generated handwriting information, the user can touch (for example, tap) the first control on the handwriting layer to trigger the information sending request, so as to automatically send the generated handwriting information. Because the first control is deployed on the handwriting layer, the user can directly touch the first control on the handwriting layer without switching the operation layer, so that the user does not need to go through the step of "closing the handwriting layer" during handwriting input, which can simplify the operation process of handwriting input and reduce the time cost of handwriting input.
[0114] In example 2, the information sending request can be triggered by the user by performing a first operation preset on the handwriting layer.
[0115] The first operation is a preset operation for triggering the information sending request, and the first operation can be performed by the user on the handwriting layer. In addition, the embodiments of the present application do not limit the first operation. For example, the first operation can be a W (W is a positive integer) click on the handwriting layer. For another example, the first operation can be sliding along a preset sliding track (for example, a sliding track similar to "√").
[0116] It should be noted that the embodiments of the present application do not limit the determination process of the first operation. For example, the first operation can be a default operation for triggering the information sending request on the terminal device. For another example, the first operation can be an operation for triggering the information sending request preset by the user according to personal preferences.
[0117] Based on the related content of the above example 2, if the user wants to send the generated handwriting information, the user can perform the first operation (for example, double click or slide according to the "√" sliding track) on the handwriting layer to trigger the information sending request, so as to automatically send the generated handwriting information. Because the first operation is performed by the user on the handwriting layer, the operation layer does not need to be switched, so that the user does not need to go through the step of "closing the handwriting layer" during handwriting input, which can simplify the operation process of handwriting input and reduce the time cost of handwriting input.
[0118] Based on the related content of the first possible implementation manner of S3, if the user prefers to actively control the sending time of the handwritten information, the user can actively send the generated handwritten information by manually triggering the information sending request on the handwriting layer. Since the information sending request is triggered by the user on the handwriting layer, the operation layer does not need to be switched, so that the user does not need to go through the step of "closing the handwriting layer" during handwriting input, which can simplify the operation process of handwriting input and reduce the time cost of handwriting input. Since the information sending request is actively triggered by the user, the triggering time of the information sending request is the sending time of the handwritten information required by the user, which realizes the user's requirement for the sending time of the handwritten information, and is beneficial to improve the sending accuracy of the handwritten information, thereby improving the handwriting input experience of the user.
[0119] In some application scenarios, the user prefers to check the edited handwritten information, and therefore, in order to meet this requirement, the second possible implementation manner of S3 is provided, which is specifically: obtaining the current time; when it is determined that the handwritten information is not updated in the time period from the generation time of the handwritten information to the current time, and it is determined that the time difference between the current time and the generation time of the handwritten information reaches the sending delay duration, the handwritten information is sent. The current time is used to describe the real-time time after the generation time of the handwritten information.
[0120] It should be noted that "the handwritten information is not updated in the time period from the generation time of the handwritten information to the current time" means that the handwritten information does not change in the time period [the generation time of the handwritten information, the current time], that is, the user has not modified the handwritten information since the editing of the handwritten information is completed.
[0121] The sending delay duration refers to the duration reserved for the user to check the handwritten information. In addition, the determination manner of the sending delay duration is not limited in the embodiments of the present application, for example, the sending delay duration can be the default handwritten information checking duration on the terminal device, or the handwritten information checking duration set by the user according to personal preference. The handwritten information checking duration refers to the duration consumed by the user when checking the handwritten information.
[0122] In fact, different users consume different durations when checking the handwritten information, and therefore, in order to make the sending delay duration corresponding to different users meet the handwritten information checking duration requirement of different users, the sending delay duration can be determined according to the information checking habit of the user. The information checking habit of the user is used to describe the habit of the user when checking the handwritten information in the handwriting input process (that is, the habit of the user when checking the edited handwritten information).
[0123] In addition, the embodiment of the present application does not limit the determination manner of the information verification habit of the user. For example, the information verification habit of the user can be provided by the user actively, or the information verification habit of the user can be analyzed according to historical handwriting input data of the user. The historical handwriting input data refers to data (for example, handwriting information, handwriting track, etc.) generated by the user when performing handwriting input in a historical time period.
[0124] Based on this, the embodiment of the present application further provides an implementation manner of determining the sending delay duration, which specifically includes steps 11-12:
[0125] Step 11: determining the information verification habit of the user according to historical handwriting input data of the user.
[0126] The embodiment of the present application does not limit the information verification habit of the user. For example, the information verification habit of the user can include the information verification rate of the user and / or the information verification duration of the user. The information verification rate of the user is used to describe the possibility of the user verifying the handwriting information. The information verification duration of the user is used to describe the duration consumed by the user when verifying the handwriting information.
[0127] In addition, the embodiment of the present application does not limit the implementation manner of step 11, and any method capable of extracting the information verification habit of the user from the historical handwriting input data of the user can be used for implementation, for example, a big data mining method.
[0128] Based on the related content of step 11, in the embodiment of the present application, the information verification habit of the user can be analyzed from the historical handwriting input data of the user, so that the information verification habit of the user can accurately represent the personal habit of the user when verifying the handwriting information.
[0129] Step 12: determining the sending delay duration according to the information verification habit of the user.
[0130] In fact, in the information verification habit of the user, the information verification rate of the user and the information verification duration of the user can have a relatively serious influence on the determination process of the sending delay duration of the user.
[0131] The influence of the information checking rate of the user can be specifically: if the information checking rate of the user is higher, it means that the user is more likely to check the handwritten information after editing, and therefore, in order to meet the information checking requirement of the user, a longer sending delay time can be allocated to the user for checking the handwritten information; if the information checking rate of the user is lower, it means that the user is less likely to check the handwritten information after editing, and therefore, in order to reduce the influence of the handwritten information checking process on the execution efficiency of the handwritten input, a shorter sending delay time can be allocated to the user for checking the handwritten information. It can be seen that the information checking rate of the user is positively correlated with the sending delay time corresponding to the user.
[0132] The influence of the information checking time of the user can be specifically: if the information checking time of the user is longer, it means that the user needs a longer time to check the edited handwritten information, and therefore, in order to meet the requirement of the user for the information checking time, a longer sending delay time can be allocated to the user for checking the handwritten information; if the information checking time of the user is shorter, it means that the user needs a shorter time to check the edited handwritten information, and therefore, in order to reduce the influence of the handwritten information checking process on the execution efficiency of the handwritten input, a shorter sending delay time can be allocated to the user for checking the handwritten information. It can be seen that the information checking time of the user is positively correlated with the sending delay time corresponding to the user.
[0133] Based on this, three possible implementation manners of step 12 are provided, which will be introduced below.
[0134] As the first possible implementation manner of step 12, when the information checking habit of the user includes the information checking rate of the user, step 12 can be specifically: determining the delay time corresponding to the information checking rate of the user as the sending delay time.
[0135] In some cases, in order to quickly determine the delay time corresponding to the information checking rate of the user, a mapping relationship can be established in advance, so that the mapping relationship can record the delay time corresponding to each information checking rate, that is, the mapping relationship includes the correspondence between each information checking rate and the delay time corresponding to the information checking rate. Since the information checking rate is positively correlated with the delay time, in the mapping relationship, the delay time corresponding to the information checking rate with a larger value is also longer, and the delay time corresponding to the information checking rate with a smaller value is also shorter.
[0136] It should be noted that the present application embodiment does not limit the expression manner of the mapping relationship between the information checking rate and the delay duration, and the mapping relationship can be expressed by using a function form or a mapping table.
[0137] Based on the related content of the first possible implementation manner of the step 12, if the mapping relationship for recording the corresponding relationship between the information checking rate and the delay duration is preset, after the information checking rate of the user is obtained, the delay duration corresponding to the information checking rate of the user can be determined according to the mapping relationship, and the delay duration is determined as the sending delay duration corresponding to the user.
[0138] As the second possible implementation manner of the step 12, when the information checking habit of the user includes the information checking duration of the user, the step 12 can be specifically: determining the information checking duration of the user as the sending delay duration.
[0139] It can be seen that if the information checking habit of the user includes the information checking duration of the user, after the information checking duration of the user is obtained, the information checking duration of the user can be directly determined as the sending delay duration of the user. Because the information checking duration of the user can accurately represent the duration consumed by the user when checking the handwriting information, the sending delay duration of the user determined based on the information checking duration of the user can meet the time requirement of the user for checking the handwriting information.
[0140] As the third possible implementation manner of the step 12, when the information checking habit of the user includes the information checking rate of the user and the information checking duration of the user, the step 12 can be specifically: determining a duration coefficient according to the information checking rate of the user, and determining the product of the information checking duration of the user and the duration coefficient as the sending delay duration.
[0141] The duration coefficient is used to represent the influence of the information checking rate of the user on the sending delay duration of the user, and the duration coefficient is positively correlated with the information checking rate of the user, and specifically: the higher the information checking rate of the user is, the larger the duration coefficient is. In addition, the present application embodiment does not limit the determination manner of the duration coefficient, for example, the information checking rate of the user can be directly determined as the duration coefficient.
[0142] It can be seen that if the information checking habit of the user includes the information checking rate of the user and the information checking duration of the user, after the information checking rate of the user is obtained, the duration coefficient can be determined according to the information checking rate of the user, so that the duration coefficient can accurately represent the influence of the information checking rate of the user on the sending delay duration of the user; and the duration coefficient is multiplied by the information checking duration of the user as a weight to obtain the sending delay duration of the user. Since the sending delay duration of the user is determined according to the information checking rate of the user and the information checking duration of the user, the sending delay duration of the user can more accurately represent the duration consumed by the user when checking the handwritten information.
[0143] Based on the related content of the second possible implementation manner of S3, for the user who prefers to check the edited handwritten information, after the user has edited the handwritten information, the user is not immediately sent the handwritten information, but is given time (that is, the sending delay duration) to check the handwritten information, until it is determined that the handwritten information is not updated in the time period from the generation time of the handwritten information to the current time, and it is determined that the time difference between the current time and the generation time of the handwritten information reaches the sending delay duration, the handwritten information is sent out, so that the sent handwritten information is more accurate, which is beneficial to improve the handwriting input experience of the user.
[0144] In some application scenarios, for users with different handwriting habits, the automatic sending time of the handwritten information can be determined according to the handwriting habit of the user, so that the automatic sending time can meet the handwriting habit of the user. Based on this, the third possible implementation manner of S3 is provided in the embodiments of the present application, which is specifically: sending the handwritten information according to the handwriting habit of the user.
[0145] The handwriting habit is used to describe the personal habit of the user when performing handwriting input. In addition, the embodiments of the present application do not limit the acquisition method of the handwriting habit, for example, the handwriting habit can be set by the user according to personal preference in the terminal device, or can be determined according to the historical handwriting input data of the user (for example, using any big data mining method to determine the handwriting habit of the user from a large amount of historical handwriting input data of the user).
[0146] The embodiments of the present application do not limit the handwriting habit, for example, the handwriting habit can include the information checking habit of the user and / or the information input habit of the user. It should be noted that the related content of the information checking habit of the user is described in the second possible implementation manner of S3.
[0147] The information input habit of the user is used to describe the handwriting information input habit of the user when performing handwriting input. In order to facilitate the understanding of the information input habit of the user, the following two cases are described.
[0148] Case 1: Some users like to manually select the on-screen character from the character candidate displayed on the handwriting layer, so the information input habits of these users can be collectively referred to as: the user determines the on-screen character by selecting the character candidate displayed on the handwriting layer.
[0149] The character candidate refers to the alternative character recommended to the user according to the handwriting track, and the character candidate can be displayed on the handwriting layer for the user to manually select. In addition, the display mode of the character candidate on the handwriting layer is not limited in the embodiments of the present application, for example, the pre-on-screen mode can be used for display.
[0150] Manual selection refers to that the user actively selects the character corresponding to the handwriting track from the multiple character candidates on the handwriting layer by means of a finger or any kind of point-and-click device (such as a stylus). In addition, the manual selection is not limited, for example, the manual selection can be a point-and-click operation.
[0151] The on-screen character refers to the character displayed to a preset display position (for example, a text box, a pre-set character display position on the handwriting layer) and used to compose the handwriting information.
[0152] Based on the related content of case 1, it can be known that in each handwriting input process, some users like to manually select the character corresponding to the handwriting track from the multiple character candidates displayed on the handwriting layer, so that the handwriting information can be determined based on the manually selected character subsequently.
[0153] Case 2: Because the first character candidate displayed on the handwriting screen can be automatically on-screen (for example, for two adjacent handwriting operations, the last handwriting operation of the user can make the first character candidate in the previous handwriting operation automatically on-screen), some users like to perform the following operation: if the character the user wants to input is the first character candidate, the user will not actively select the first character candidate but wait for the first character candidate to be automatically on-screen; if the character the user wants to input is a non-first character candidate, the user will actively select the non-first character candidate, so the information input habits of these users can be collectively referred to as: the user does not determine the on-screen character by manually selecting the first character candidate displayed on the handwriting layer. The first character candidate refers to the character candidate displayed on the handwriting layer in the first position in the arrangement order. The non-first character candidate refers to the character candidate displayed on the handwriting layer in the second position or any position after the second position in the arrangement order.
[0154] In addition, the embodiment of the present application further provides a specific implementation of handwriting information sending based on handwriting habit of a user, which can include S31-S32:
[0155] S31: determining an information sending condition according to the handwriting habit of the user.
[0156] The information sending condition is used to describe a condition required when sending the handwriting information, and the information sending condition can be determined according to the handwriting habit of the user.
[0157] In order to facilitate the understanding of S31, the following describes three possible implementation modes of S31.
[0158] As the first possible implementation mode of S31, when the handwriting habit of the user includes the information input habit of the user, S31 can be specifically:
[0159] When it is determined that the information input habit of the user is to determine the on-screen character by manually selecting the character candidate item displayed on the handwriting layer, the information sending condition includes semantic integrity of the handwriting information, and the user does not perform manual operation on the handwriting layer within a first time length after performing the last character candidate item selection operation corresponding to the handwriting information.
[0160] When it is determined that the information input habit of the user is to determine the on-screen character without manually selecting the first character candidate item displayed on the handwriting layer, the information sending condition includes performing a second preset operation on the handwriting layer, or the information sending condition includes semantic integrity of the handwriting information and performing the second preset operation on the handwriting layer.
[0161] The semantic integrity of the handwriting information refers to that each sentence in the handwriting information is a semantically complete sentence, that is, there is no semantically incomplete sentence in the handwriting information. It should be noted that the embodiment of the present application further provides a specific implementation of determining whether the semantic of the handwriting information is complete, and the technical details are described below Method embodiment three .
[0162] The last character candidate item selection operation corresponding to the handwriting information refers to the last character candidate item selection operation triggered by the user on the handwriting layer in the generation process of the handwriting information. For example, when generating the handwriting information, H character candidate item selection operations are experienced, and the last character candidate item selection operation corresponding to the handwriting information is the Hth character candidate item selection operation. H is a positive integer.
[0163] The first time length is a time length preset according to an application scenario.
[0164] The second operation is a preset operation for identifying completion of handwriting information input, and the second operation is triggered by the user on the handwriting layer. In addition, the second operation is not limited in the embodiments of the present application. For example, the second operation can be that the user taps the first character candidate to input the character. For another example, the second operation can be that the user triggers a tapping operation in a preset indication area.
[0165] Based on the above related content of the first possible implementation of S31, for those users who like to manually select and input characters from the character candidates displayed on the handwriting layer, once these users continuously do not perform handwriting operations, it can be basically determined that these users have completed editing of the handwriting information, and thus the information sending condition corresponding to the user can be set to include the constraint condition that "the user does not perform handwriting operations on the handwriting layer within a first time length after performing a last character candidate selection operation corresponding to the handwriting information". In addition, in order to avoid sending the handwriting information that is not completed by the user due to long thinking time, the information sending condition corresponding to the user can be further set to include the constraint condition that "the semantic completeness of the handwriting information", so as to effectively ensure that the handwriting information sent automatically is semantically complete, which is beneficial to improve the sending accuracy of the handwriting information and thus improve the user experience.
[0166] However, for those users who are used to using the first character candidate automatic input function, once these users actively perform an operation other than handwriting operation on the handwriting layer, it can be determined that these users have completed editing of the handwriting information, and thus the information sending condition corresponding to the user can be set to include the constraint condition that "the user performs a second operation on the handwriting layer". In addition, in order to avoid sending the handwriting information that is not completed by the user due to unintentional performance of the second operation, the information sending condition corresponding to the user can be further set to include the constraint condition that "the semantic completeness of the handwriting information", so as to effectively ensure that the handwriting information sent automatically is semantically complete, which is beneficial to improve the sending accuracy of the handwriting information and thus improve the user experience.
[0167] It can be seen that, because the handwriting habit of the user includes the information input habit of the user, the information sending condition corresponding to the user set according to the information input habit of the user can meet the information input habit of the user when the user performs handwriting input, which is beneficial to improve the user experience.
[0168] As the second possible implementation of S31, when the handwriting habit of the user includes the information verification habit of the user, S31 can specifically be: determining a sending delay time length according to the information verification habit of the user, and determining that the information sending condition includes that the un-updated time length of the handwriting information reaches the sending delay time length. It should be noted that the determination process of the sending delay time length is described above in step 12.
[0169] It can be seen that for a user with information checking habits, the sending delay duration corresponding to the user can be determined according to the information checking habits of the user, and the information sending condition corresponding to the user is set according to the sending delay duration, so that the information sending condition includes the constraint condition that the non-updating duration of the handwritten information reaches the sending delay duration, so that the information sending condition corresponding to the user can meet the information checking habits of the user, which is beneficial to improve the sending accuracy of the handwritten information, thereby improving the user experience.
[0170] As a third possible implementation of S31, when the handwriting habits of the user include the information input habits and the information checking habits of the user, S31 can be specifically:
[0171] When it is determined that the information input habits of the user are that the user determines the on-screen character by manually selecting the character candidate displayed on the handwriting layer, it is determined that the information sending condition includes that the non-updating duration of the handwritten information reaches the sending delay duration, the semantic completeness of the handwritten information, and that the user does not perform handwriting operation on the handwriting layer within the first duration after performing the last character candidate selection operation corresponding to the handwritten information.
[0172] When it is determined that the information input habits of the user are that the user does not determine the on-screen character by manually selecting the first character candidate displayed on the handwriting layer, it is determined that the information sending condition includes that the non-updating duration of the handwritten information reaches the sending delay duration and that the user performs the second preset operation on the handwriting layer, or it is determined that the information sending condition includes that the non-updating duration of the handwritten information reaches the sending delay duration, the semantic completeness of the handwritten information, and that the user performs the second preset operation on the handwriting layer.
[0173] It can be seen that for those users with information checking habits and information input habits, the information sending condition corresponding to the user can be set according to the information checking habits and information input habits of the user, so that the information sending condition corresponding to the user can meet the information input habits and information checking habits of the user when performing handwriting input, which is beneficial to improve the sending accuracy of the handwritten information, thereby improving the user experience.
[0174] Based on the above related content of S31, after obtaining the handwriting habits of the user, the information sending condition corresponding to the user can be generated according to the handwriting habits of the user, so that the information sending condition corresponding to the user can meet the handwriting habits of the user when performing handwriting input, which is beneficial to improve the accuracy of the sending timing of the handwritten information, thereby improving the user experience.
[0175] S32: When the information sending condition is reached, the handwritten information is sent.
[0176] To facilitate the understanding of S32, the following seven examples are explained.
[0177] In example 1, when the sending condition is that the non-updating duration of the handwritten information reaches the sending delay duration, S32 can be specifically: obtaining the current time, and when it is determined that the handwritten information is not updated in the time period from the generation time of the handwritten information to the current time, and it is determined that the time difference between the current time and the generation time of the handwritten information reaches the sending delay duration, the handwritten information is sent.
[0178] It should be noted that the specific implementation of example 1 is similar to the second possible implementation of S3 described above, so please refer to the second possible implementation of S3 for technical details.
[0179] It can be seen that for users who are used to checking the edited handwritten information, after obtaining the handwritten information, it can be determined in real time whether the handwritten information is updated, and until the handwritten information is not updated for the sending delay duration, it can be determined that the user has completed the checking process of the handwritten information, so the handwritten information can be automatically sent out.
[0180] In example 2, when the sending condition is that the semantic of the handwritten information is complete, and the user does not perform handwriting operation on the handwriting layer within the first time duration after performing the last character candidate selection operation corresponding to the handwritten information, S32 can be specifically: obtaining the current time; when it is determined that the user does not perform handwriting operation on the handwriting layer in the time period from the execution time of the last character candidate selection operation corresponding to the handwritten information to the current time, and it is determined that the time difference between the current time and the execution time of the last character candidate selection operation corresponding to the handwritten information reaches the first time duration, and it is determined that the semantic of the handwritten information is complete, the handwritten information is sent.
[0181] It can be seen that, for the user who is used to determining the on-screen character by manually selecting the character candidate displayed on the handwriting layer, after obtaining the handwriting information, the following three judgment processes can be performed respectively at the current time: judging whether the user performs handwriting operation on the handwriting layer within the time period [the execution time of the last character candidate selection operation corresponding to the handwriting information, the current time], judging whether the time difference between the current time and the execution time of the last character candidate selection operation corresponding to the handwriting information reaches the first time length, and judging whether the semantics of the handwriting information is complete; at this time, only when it is determined that the user does not perform sliding on the handwriting layer within the time period from the execution time of the last character candidate selection operation corresponding to the handwriting information to the current time, and it is determined that the current time and the execution time of the last character candidate selection operation corresponding to the handwriting information reach the first time length, and it is determined that the semantics of the handwriting information is complete, the handwriting information is sent; however, when the judgment results of the three judgment processes are other conditions, the handwriting information will not be sent, and the next round of judgment process is continued.
[0182] In example 3, when the information sending condition is that the user performs the second operation preset on the handwriting layer, S32 can specifically be: performing real-time detection on the execution operation of the user on the handwriting layer until the second operation performed by the user on the handwriting layer is detected, and sending the handwriting information.
[0183] It can be seen that, for the user who is used to using the first character candidate automatic on-screen function, these users do not like to actively perform other redundant operations on the handwriting layer in addition to handwriting operation, so in order to determine that these users have edited the handwriting information, the second operation can be used as an identifier of the editing completion of the handwriting information, so that the sending time of the handwriting information can be set as the second operation actively performed by the user on the handwriting layer, so that as long as it is detected that the user performs the second operation, it can be determined that the user has edited the handwriting information, and the handwriting information can be automatically sent.
[0184] In example 4, when the information sending condition is that the semantics of the handwriting information is complete, and the user performs the second operation preset on the handwriting layer, S32 can specifically be: performing real-time detection on the execution operation of the user on the handwriting layer, so as to determine whether the semantics of the handwriting information is complete when the second operation performed by the user on the handwriting layer is determined, if yes, the handwriting information is sent; if no, a prompt information is generated, so that the user can manually confirm whether to continue to send the handwriting information based on the prompt information. The prompt information is used to prompt the user whether to send the handwriting information with incomplete semantics.
[0185] It can be seen that, for those users who are used to using the first character candidate automatic on-screen function, in order to avoid sending incomplete semantic handwritten information due to unintentional execution of the second operation by the user, the application embodiment can automatically determine whether the generated handwritten information is complete after determining that these users have performed the second operation on the handwriting layer. If the handwritten information is complete, the handwritten information is directly sent out. If the handwritten information is not complete, the user is asked to send information in the form of a prompt. In this way, only when the user manually confirms to send the information, the semantic incomplete handwritten information can be sent. In this way, the occurrence of automatic sending of semantic incomplete handwritten information due to user misoperation can be effectively reduced, thereby improving the accuracy of automatic sending of handwritten information, and thus improving the user experience.
[0186] In Example 5, when the sending condition is that the non-updating duration of the handwritten information reaches the sending delay duration, the semantic of the handwritten information is complete, and the user does not perform handwriting operation on the handwriting layer within the first duration after performing the last character candidate selection operation corresponding to the handwritten information, S32 can specifically be: obtaining the current time; when it is determined that the handwritten information is not updated in the time period from the generation time of the handwritten information to the current time, and it is determined that the time difference between the current time and the generation time of the handwritten information reaches the sending delay duration, and it is determined that the user does not perform handwriting operation on the handwriting layer in the time period from the execution time of the last character candidate selection operation corresponding to the handwritten information to the current time, and it is determined that the time difference between the current time and the execution time of the last character candidate selection operation corresponding to the handwritten information reaches the first duration, and it is determined that the semantic of the handwritten information is complete, the handwritten information is sent.
[0187] It should be noted that, if the generation time of the handwritten information and the execution time of the last character candidate selection operation corresponding to the handwritten information are the same time point, the first duration and the sending delay duration are equal. If the generation time of the handwritten information and the execution time of the last character candidate selection operation corresponding to the handwritten information are different time points, the first duration and the sending delay duration are not equal.
[0188] It can be seen that, for the user who is used to checking the edited handwriting information and is used to determining the on-screen character by manually selecting the character candidate displayed on the handwriting layer, after obtaining the handwriting information, the following five judgment processes can be performed respectively at the current time: judging whether the handwriting information is updated in the time period [the generation time of the handwriting information, the current time], whether the time difference between the current time and the generation time of the handwriting information reaches the sending delay duration, whether the user performs handwriting operation on the handwriting layer in the time period [the execution time of the last character candidate selection operation corresponding to the handwriting information, the current time], whether the time difference between the current time and the execution time of the last character candidate selection operation corresponding to the handwriting information reaches the first duration, and whether the semantics of the handwriting information is complete, so that whether to send the handwriting information can be determined based on the judgment results of the five judgment processes.
[0189] In example 6, when the sending condition is that the non-updating duration of the handwriting information reaches the sending delay duration, and the user performs the second operation preset on the handwriting layer, S32 can specifically be: performing real-time detection on the execution operation of the user on the handwriting layer, so as to obtain the current time when it is determined that the user performs the second operation on the handwriting layer, and sending the handwriting information when it is determined that the handwriting information is not updated in the time period from the generation time of the handwriting information to the current time, and that the time difference between the current time and the generation time of the handwriting information reaches the sending delay duration.
[0190] It can be seen that, for the user who is used to checking the edited handwriting information and is used to using the first character candidate automatic on-screen function, in order to meet the above two habits of these users at the same time, it can be determined that these users perform the second operation on the handwriting layer, and the following two judgment processes are performed in real time after the second operation: judging whether the handwriting information is updated in the time period from the generation time of the handwriting information to the current time, and whether the time difference between the current time and the generation time of the handwriting information reaches the sending delay duration, so that the handwriting information is only sent when it is determined that the handwriting information is not updated in the time period from the generation time of the handwriting information to the current time, and that the time difference between the current time and the generation time of the handwriting information reaches the sending delay duration. This is beneficial to improve the accuracy of automatic sending of handwriting information, thereby improving the user experience.
[0191] In example 7, when the sending condition is that the non-updating duration of the handwriting information reaches the sending delay duration, and the user performs the second operation preset on the handwriting layer, and the semantics of the handwriting information is complete, S32 can specifically be: sending the handwriting information when it is determined that the user performs the second operation on the handwriting layer, the semantics of the handwriting information is complete, and the non-updating duration of the handwriting information reaches the sending delay duration.
[0192] It can be seen that, for the user who is used to checking the edited handwritten information and is used to using the first character candidate automatic on-screen function, in order to avoid sending the incomplete semantic handwritten information due to the user unintentionally performing the second operation, the handwritten information can be sent only when it is determined that the user performs the second operation on the handwriting layer, the semantic of the handwritten information is complete, and the non-updating duration of the handwritten information reaches the sending delay duration, which is beneficial to improve the accuracy of the automatic sending of the handwritten information, thereby improving the user experience.
[0193] Based on the related content of S32, after obtaining the edited handwritten information of the user and the information sending condition corresponding to the user, the sending time of the handwritten information can be determined according to the information sending condition corresponding to the user, so that the sending time of the handwritten information can conform to the handwritten information sending habit of the user when performing handwriting input, which is beneficial to improve the accuracy of the automatic sending of the handwritten information, thereby improving the user experience.
[0194] Based on the related content of the third possible implementation manner of S3, after obtaining the edited handwritten information of the user, the sending of the handwritten information can be performed according to the handwriting habit of the user, so that the sending time of the handwritten information can conform to the handwriting habit of the user, which is beneficial to improve the accuracy of the automatic sending of the handwritten information, thereby improving the user experience.
[0195] Method embodiment four
[0196] In addition, the present application embodiment does not limit the judgment process of whether the semantic of the handwritten information is complete, in order to facilitate understanding, the following two possible implementation manners are described.
[0197] In the first possible implementation manner, the judgment process of whether the semantic of the handwritten information is complete can be specifically: inputting the handwritten information into a pre-constructed semantic evaluation model to obtain a semantic evaluation result output by the semantic evaluation model. The semantic evaluation result is used to represent whether the semantic of the handwritten information is complete.
[0198] The semantic evaluation model is used to evaluate the semantic completeness of the input text (such as handwritten information). In addition, the present application embodiment does not limit the semantic evaluation model, which can be any model capable of evaluating the semantic completeness of the handwritten information. For example, the semantic evaluation model can be an n-gram language model or a neural network language model.
[0199] In addition, the embodiment of the present application does not limit the training process of the semantic evaluation model. For example, the semantic evaluation model can be trained by using a large number of training sentences with complete semantics, so that the trained semantic evaluation model can accurately evaluate the semantic integrity of the model input text.
[0200] Based on the related content of the first possible implementation, it can be known that the semantic evaluation model can be trained in advance by using a large number of training sentences with complete semantics, so that the trained semantic evaluation model can accurately evaluate the semantic integrity of the model input text, thereby enabling the trained semantic evaluation model to accurately determine whether the semantics of the handwritten information is complete.
[0201] In the second possible implementation, the process of determining whether the semantics of the handwritten information is complete can include steps 21-24.
[0202] Step 21: Obtain each sentence in the handwritten information as a to-be-processed sentence.
[0203] In the embodiment of the present application, after obtaining the handwritten information, the handwritten information can be subjected to sentence recognition to obtain each sentence in the handwritten information. Then, each sentence in the handwritten information is taken as a to-be-processed sentence, so that it can be determined whether each to-be-processed sentence is semantically complete. For example, when the handwritten information includes R sentences, the first sentence in the handwritten information is taken as the first to-be-processed sentence, the second sentence in the handwritten information is taken as the second to-be-processed sentence, and so on, and the Rth sentence in the handwritten information is taken as the Rth to-be-processed sentence. Wherein, R is a positive integer.
[0204] It should be noted that the embodiment of the present application does not limit the sentence recognition method, and any sentence recognition method capable of recognizing sentences in handwritten information can be used. For example, the sentence recognition can be performed according to a pre-set sentence end symbol (such as “.”, “!”, “?” and the like for indicating the end of a sentence).
[0205] Step 22: Obtain the character co-occurrence probability of each to-be-processed sentence.
[0206] The character co-occurrence probability is used to represent the probability that all characters in the to-be-processed sentence appear in the same sentence at the same time.
[0207] In addition, the embodiment of the present application does not limit the calculation method of the character co-occurrence probability, and any calculation method capable of calculating the character co-occurrence probability of all characters in the to-be-processed sentence can be used. For example, the character co-occurrence probability P(S r ) of the rth to-be-processed sentence S r ) can be calculated by using formula (1).
[0208]
[0209] wherein P(S r ) is the character co-occurrence probability of the rth sentence to be processed; S r is the rth sentence to be processed, and is the tth word in the rth sentence to be processed, t is a positive integer, t≤T, and T is a positive integer; r is a positive integer, r≤R, and R is the total number of sentences in the handwriting information. is the conditional probability of the tth word appearing on the premise that the 1th word to the (t-1)th word appears.
[0210] Step 23: Determine the perplexity of each sentence to be processed according to the character co-occurrence probability of each sentence to be processed.
[0211] Perplexity (PPL) is an index for measuring whether the semantics of the sentence to be processed is complete, and the perplexity of the sentence to be processed is negatively correlated with the degree of completeness of the semantics of the sentence to be processed. Specifically, if the perplexity of the sentence to be processed is higher, the degree of completeness of the semantics of the sentence to be processed is lower, and the possibility that the sentence to be processed belongs to a complete semantic sentence is lower; if the perplexity of the sentence to be processed is lower, the degree of completeness of the semantics of the sentence to be processed is higher, and the possibility that the sentence to be processed belongs to a complete semantic sentence is higher.
[0212] The embodiments of the present application do not limit the calculation method of the perplexity of the sentence to be processed. For example, the perplexity of the rth sentence to be processed S r may be calculated by using formula (2).
[0213]
[0214] wherein PPL(S r ) is the perplexity of the rth sentence to be processed; P(S r ) is the character co-occurrence probability of the rth sentence to be processed; S r is the rth sentence to be processed, and is the tth word in the rth sentence to be processed, t is a positive integer, t≤T, and T is a positive integer; r is a positive integer, r≤R, and R is the total number of sentences in the handwriting information.
[0215] Step 24: Determine the semantics of the handwriting information to be complete when the perplexity of each sentence to be processed is lower than a preset threshold.
[0216] The preset threshold refers to the lowest value of the confusion degree of the semantic complete sentence, and the preset threshold can be set in advance according to the application scenario.
[0217] In practice, different users have different expression styles, resulting in different preset thresholds corresponding to different users. Therefore, in order to make the preset threshold corresponding to a user more accurately represent the lowest value of the confusion degree of the semantic complete sentence used by the user, the preset threshold corresponding to the user can be determined according to historical information input data of the user. Based on this, an embodiment of the present application provides an implementation manner for determining a preset threshold, which specifically includes the following steps 31-33:
[0218] Step 31: Obtain positive sample data and negative sample data according to historical information input data of a user.
[0219] The historical information input data refers to data information (such as historical sending information, historical editing incomplete information, etc.) generated in the input process (for example, a handwriting input process and / or a non-handwriting input process) of the user in a historical time period, and the historical information input data can include at least one sentence. It should be noted that the non-handwriting input refers to other input methods except handwriting input, such as point input.
[0220] The positive sample data refers to a sentence belonging to a semantic complete sentence.
[0221] The negative sample data refers to a sentence belonging to a semantic incomplete sentence.
[0222] In some cases, in order to quickly obtain the positive sample data and the negative sample data, the sentences sent out by the user in the historical time period can be automatically labeled as positive sample data, and the sentences not sent out by the user in the historical time period and in the editing state can be automatically labeled as negative sample data.
[0223] Step 32: Calculate the confusion degree of the positive sample data and the confusion degree of the negative sample.
[0224] In the embodiment of the present application, in order to improve the accuracy of the preset threshold, the implementation manner for calculating the confusion degree of the handwriting information in the embodiment of the present application can be used to calculate the confusion degree of each sample data (such as positive sample data, negative sample data, etc.).
[0225] Step 33: Determine the preset threshold according to the confusion degree of the positive sample data and the confusion degree of the negative sample.
[0226] In the embodiment of the present application, after obtaining the confusion degree of all positive sample data and the confusion degree of all negative sample data, the preset threshold can be determined according to the confusion degree of all positive sample data and the confusion degree of all negative sample data, so that the preset threshold can accurately represent the boundary distribution characteristics between the confusion degree of the semantic complete sentence and the confusion degree of the semantic incomplete sentence.
[0227] In addition, the embodiment of the present application does not limit the implementation of step 33. For example, step 33 can specifically be: calculating the average of the confusion degrees of all positive sample data as a first average value; calculating the average of the confusion degrees of all negative sample data as a second average value; and taking the weighted average of the first average value and the second average value as the preset threshold. It should be noted that, for the above-mentioned weighted average process, the weight corresponding to the first average value and the weight corresponding to the second average value can be pre-set according to the application scenario.
[0228] Based on the above-mentioned related content of steps 31 to 33, the preset threshold corresponding to each user can be determined according to the information data involved in the input processing process of the user in the historical time period, so that the preset threshold corresponding to the user can more accurately represent the minimum confusion degree of the semantic complete sentence used by the user, which is beneficial to improve the judgment accuracy of the semantic completeness of the handwritten information.
[0229] Based on the above-mentioned related content of steps 21 to 24, in the embodiment of the present application, the confusion degrees of the sentences in the handwritten information can be calculated first, so that the confusion degrees of the sentences can accurately represent whether the semantics of the sentences are complete; and then the semantics of the handwritten information is determined based on the confusion degrees of the sentences, which specifically is: if the confusion degrees of the to-be-processed sentences are all lower than the preset threshold, it is determined that the semantics of the handwritten information is complete.
[0230] Device embodiment
[0231] In some cases, the handwriting layer will cover the terminal device controls that are not deployed in the operation layer, so that the user cannot operate the terminal device controls when the handwriting layer is in the open state. However, sometimes after the user sends the handwritten information, the user needs to immediately use the terminal device controls that are not deployed in the operation layer to perform other operations (for example, making a call, etc.). Therefore, in order to improve the operation efficiency of the terminal device controls, the embodiment of the present application further provides an implementation of the information sending method, in which the information sending method comprises S4-S5 in addition to the above-mentioned S1-S3.
[0232] S4: closing the handwriting layer after determining that the handwritten information is sent out.
[0233] In the embodiments of the present application, after the handwriting information is determined to be sent out, the handwriting layer is automatically closed immediately, so that the terminal device controls not deployed on the handwriting layer can be in an available state, thereby enabling the user to use the terminal device controls to perform other operations. Since the handwriting layer is automatically closed after the handwriting information is sent out, the user does not need to manually close the handwriting layer, which can reduce the steps required to be experienced by the user when operating the terminal device controls, thereby effectively saving time cost.
[0234] S5: When the handwriting layer opening condition is reached, the handwriting layer is opened.
[0235] The handwriting layer opening condition is used to describe the condition required to be reached to automatically open the handwriting layer again, and the handwriting layer opening condition can be pre-set.
[0236] Different application scenarios can use different handwriting layer opening conditions. For ease of understanding, four examples are described below.
[0237] Example 1: If a text box for recording handwriting information is displayed on the terminal device, the handwriting layer opening condition can be emptying the text box.
[0238] The text box refers to a control on the terminal device for recording user handwriting information in real time, and the deployment position of the text box is not limited in the embodiments of the present application. For example, when the handwriting layer is overlaid on the tap layer, the text box can be deployed on the tap layer. Since the handwriting layer is in a transparent state, the user can clearly understand the handwriting information input by the user from the text box during handwriting input.
[0239] In addition, after the handwriting information is sent out, the text box is automatically emptied, so that the text box can continue to record information input by the user in the next round. Therefore, when it is detected that the text box is emptied, the handwriting layer can be directly opened, so that the user can use the handwriting layer to input information in the next round. It can be seen that in some application scenarios, the handwriting layer opening condition can be set to empty the text box.
[0240] Example 2: The handwriting layer opening condition is that the user performs a pre-set third operation on the terminal device.
[0241] The third operation refers to an operation that can trigger the handwriting layer to be opened, and the third operation is not limited in the embodiments of the present application. For example, the third operation can be a specific gesture, a specific touch screen touch operation (such as clicking three times in succession), or a specific handwriting trajectory, etc.
[0242] It should be noted that the embodiment of the present application does not limit the setting manner of the third operation, for example, the third operation can be pre-set by the user, or it can be the default operation on the terminal device for triggering the handwriting layer to be opened.
[0243] In example 3, the handwriting layer opening condition is that the user performs touch control on the second control on the terminal device.
[0244] The second control refers to a control capable of triggering the handwriting layer to be opened, and the embodiment of the present application does not limit the second control.
[0245] In addition, the embodiment of the present application also does not limit the touch control manner of the second control, for example, the touch control manner of the second control is tapping.
[0246] In example 4, the handwriting layer opening condition is that the display page of the terminal device is not switched within a second time length after the handwriting layer is closed.
[0247] The second time length can be pre-set, or it can be set by the user according to personal preference. For example, the second time length can be 30 seconds.
[0248] It can be seen that in the embodiment of the present application, after the handwriting layer is closed, if the user does not have the action of switching the display page of the terminal device, it can be determined that the user does not have the demand to operate other terminal device controls, and therefore the handwriting layer can be automatically opened, so that the user can continue to use the handwriting layer to input handwriting information.
[0249] Based on the related content of S4 to S5, in the embodiment of the present application, after the handwriting information is sent out, the handwriting layer can be automatically closed, so that the user can operate the terminal device controls which are not deployed in the operation layer; then, the handwriting layer can be automatically opened when the handwriting layer opening condition is reached, so that the user can continue to use the handwriting layer to input handwriting information. Since the closing and restarting of the handwriting layer are both automatically completed, the user does not need to manually operate, which simplifies the operation burden of the user when handwriting input is performed, and is beneficial to improve the user experience.
[0250] Based on the information sending method provided by the above method embodiment, the embodiment of the present application further provides an information sending device, which is explained and described below with reference to the accompanying drawings.
[0251] Figure 4
[0252] The device embodiment introduces the information sending device, and the related content is described in the above method embodiment.
[0253] Referring to The figure is a structural schematic diagram of the information sending device provided by the embodiment of the present application.
[0254] The information sending device 400 provided by the embodiments of the present application comprises:
[0255] The trajectory acquisition unit 401 is configured to acquire a handwriting trajectory of a user on a handwriting layer when it is determined that the handwriting layer on the terminal device is in an open state;
[0256] The information generation unit 402 is configured to generate handwriting information according to the handwriting trajectory;
[0257] The information sending unit 403 is configured to send the handwriting information.
[0258] In a possible implementation, the information sending unit 403 is specifically configured to:
[0259] send the handwriting information after receiving an information sending request triggered by the user on the handwriting layer.
[0260] In a possible implementation, the information sending request is triggered by the user by touching a first control deployed on the handwriting layer;
[0261] or,
[0262] the information sending request is triggered by the user by performing a pre-set first operation on the handwriting layer.
[0263] In a possible implementation, the information sending unit 403 is specifically configured to:
[0264] acquire a current time;
[0265] when it is determined that the handwriting information is not updated in a time period from a generation time of the handwriting information to the current time, and it is determined that a time difference between the current time and the generation time of the handwriting information reaches the sending delay duration, send the handwriting information.
[0266] In a possible implementation, the determination process of the sending delay duration is:
[0267] determine information checking habits of the user according to historical handwriting input data of the user;
[0268] determine the sending delay duration according to the information checking habits of the user.
[0269] In a possible implementation, the determination of the sending delay duration according to the information checking habits of the user comprises:
[0270] if the information checking habits of the user include an information checking rate of the user, a delay duration corresponding to the information checking rate of the user is determined as the sending delay duration.
[0271] If the information checking habit of the user includes the information checking duration of the user, the information checking duration of the user is determined as the sending delay duration;
[0272] If the information checking habit of the user includes the information checking rate of the user and the information checking duration of the user, a duration coefficient is determined according to the information checking rate of the user, and a product of the information checking duration of the user and the duration coefficient is determined as the sending delay duration.
[0273] In a possible implementation, the information sending unit 403 is specifically configured to:
[0274] send the handwriting information according to the handwriting habit of the user.
[0275] In a possible implementation, the information sending unit 403 includes:
[0276] a condition determining subunit, configured to determine the information sending condition according to the handwriting habit of the user;
[0277] an information sending subunit, configured to send the handwriting information when the information sending condition is reached.
[0278] In a possible implementation, the condition determining subunit is specifically configured to:
[0279] If the handwriting habit of the user includes the information input habit of the user, when it is determined that the information input habit of the user is that the user determines on-screen characters by manually selecting character candidate items displayed on the handwriting layer, it is determined that the information sending condition includes semantic integrity of the handwriting information and that the user does not perform handwriting operation on the handwriting layer within a first duration after performing a last character candidate item selection operation corresponding to the handwriting information.
[0280] When it is determined that the information input habit of the user is that the user does not determine on-screen characters by manually selecting a first character candidate item displayed on the handwriting layer, it is determined that the information sending condition includes that the user performs a second preset operation on the handwriting layer, or it is determined that the information sending condition includes semantic integrity of the handwriting information and that the user performs the second preset operation on the handwriting layer.
[0281] In a possible implementation, the determination process of the semantic integrity of the handwriting information includes:
[0282] obtain each sentence in the handwriting information as each to-be-processed sentence;
[0283] acquire character co-occurrence probability of each sentence to be processed;
[0284] determine confusion degree of each sentence to be processed according to the character co-occurrence probability of each sentence to be processed;
[0285] determine that the semantic integrity of the handwriting information is complete when the confusion degree of each sentence to be processed is determined to be lower than a preset threshold.
[0286] In a possible implementation, the condition determining subunit is specifically configured to:
[0287] If the handwriting habit of the user includes the information verification habit of the user, determine a sending delay duration according to the information verification habit of the user, and determine that the information sending condition includes that the non-updating duration of the handwriting information reaches the sending delay duration.
[0288] In a possible implementation, the information sending apparatus 400 further includes:
[0289] a handwriting layer closing unit configured to close the handwriting layer after determining that the handwriting information is sent out;
[0290] a handwriting layer restarting unit configured to open the handwriting layer when a handwriting layer opening condition is reached.
[0291] In a possible implementation, when a text box for recording the handwriting information is displayed on the terminal device, the handwriting layer opening condition is to clear the text box.
[0292] Alternatively,
[0293] the handwriting layer opening condition is that the user performs a third operation preset on the terminal device.
[0294] Alternatively,
[0295] the handwriting layer opening condition is that the user performs touch control on a second control on the terminal device.
[0296] Alternatively,
[0297] the handwriting layer opening condition is that the display page of the terminal device is not switched within a second duration after the handwriting layer is closed.
[0298] Further, an embodiment of the present application further provides an information sending device, including: a processor, a memory, a system bus;
[0299] the processor and the memory are connected through the system bus;
[0300] The memory is configured to store one or more programs, the one or more programs comprising instructions which, when executed by the processor, cause the processor to perform any of the above information sending method implementation methods.
[0301] Further, the embodiments of the present application further provide a computer readable storage medium, wherein instructions are stored in the computer readable storage medium, and when the instructions run on a terminal device, the terminal device executes any of the above information sending method implementation methods.
[0302] Further, the embodiments of the present application further provide a computer program product, wherein when the computer program product runs on a terminal device, the terminal device executes any of the above information sending method implementation methods.
[0303] From the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment methods can be implemented by means of software and necessary universal hardware platforms. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network communication device such as a media gateway, etc.) execute the methods described in the various embodiments or some parts of the embodiments of the present application.
[0304] It should be noted that the various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be mutually referred to. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant part can be referred to the method part.
[0305] It should also be noted that in this document, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.
[0306] The foregoing description of the disclosed embodiments enables a person skilled in the art to make or use the application. Modifications of these embodiments will occur to persons of skill in the art, and that the generic principles defined herein can be applied to other embodiments without departing from the spirit or scope of the application. Therefore, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for sending information, characterized in that, The method includes: When it is determined that the handwriting layer on the terminal device is enabled, the user's handwriting trajectory on the handwriting layer is obtained; Handwritten information is generated based on the handwritten trajectory; Send the handwritten information; Sending the handwritten information includes: Get the current time; When it is determined that the handwritten information has not been updated within the time period from the time of its generation to the current time, and when it is determined that the time difference between the current time and the time of its generation reaches the transmission delay duration, the handwritten information is transmitted so that the handwriting layer remains in the active state when the handwritten information is transmitted. The process for determining the transmission delay duration is as follows: Based on the user's historical handwritten input data, determine the user's information verification habits; The sending delay duration is determined based on the user's information verification habits.
2. The method according to claim 1, characterized in that, The step of determining the sending delay duration based on the user's information verification habits includes: If the user's information verification habits include the user's information verification rate, then the delay time corresponding to the user's information verification rate is determined as the sending delay time. If the user's information verification habits include the user's information verification duration, then the user's information verification duration is determined as the sending delay duration; If the user's information verification habits include the user's information verification rate and the user's information verification duration, then the duration coefficient is determined based on the user's information verification rate, and the product of the user's information verification duration and the duration coefficient is determined as the sending delay duration.
3. The method according to claim 1, characterized in that, The method further includes: After confirming that the handwritten information has been sent, the handwriting layer is turned off; When the conditions for enabling the handwriting layer are met, the handwriting layer is enabled.
4. The method according to claim 3, characterized in that, When a text box for recording the handwritten information is displayed on the terminal device, the handwriting layer is enabled when the text box is cleared. or, The handwriting layer is enabled when the user performs a pre-set third operation on the terminal device; or, The handwriting layer is activated when the user touches the second control on the terminal device. or, The handwriting layer is enabled when the display page of the terminal device does not switch within a second time period after the handwriting layer is disabled.
5. An information transmitting device, characterized in that, The device includes: The trajectory acquisition unit is used to acquire the user's handwriting trajectory on the handwriting layer when it is determined that the handwriting layer on the terminal device is in the open state. An information generation unit is used to generate handwritten information based on the handwritten trajectory; An information sending unit is used to send the handwritten information; The information sending unit is specifically used for: obtaining the current time; when it is determined that the handwritten information has not been updated within the time period from the generation time of the handwritten information to the current time, and when it is determined that the time difference between the current time and the generation time of the handwritten information reaches the sending delay duration, sending the handwritten information; wherein, the process of determining the sending delay duration is as follows: determining the user's information verification habits based on the user's historical handwritten input data; and determining the sending delay duration based on the user's information verification habits.
Citation Information
Patent Citations
Handwriting information exchange mode in communication systems for instant messaging, and the like
CN101964760A
Handwritten telephone number identification, verification and information sending system
CN106709474A
Method for generating and automatically sending a handwritten electronic message
US20110199343A1
Blackboard writing sending method and system and touch all-in-one machine
CN111355792A
Intelligent word cloud picture data processing method, device and equipment and storage medium
CN111368553A