A handwriting input method, device and device for handwriting input

By adding a text input area and editing function to the handwriting input interface of the mobile terminal, the problem that the existing handwriting input method is single and inconvenient for editing is solved, and the efficiency and intuitiveness of users' handwriting input notes are improved.

CN113918030BActive Publication Date: 2024-10-15BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111166920.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2024-10-15
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

The existing handwriting input method on mobile terminals is relatively simple and inconvenient for editing and modification, which affects the efficiency of user notes.

Method used

Add a text input area to the handwriting input interface of the electronic device, synchronously display the text characters corresponding to the handwriting in real time, and provide editing operations, supporting a variety of editing instructions, such as deletion, copy, paste, color replacement, movement and zoom, to enhance user input and editing convenience.

Benefits of technology

It improves the intuitiveness and convenience of handwriting input, allows users to view and modify input content in real time, and enhances the efficiency and accuracy of handwriting input.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113918030B_ABST
    Figure CN113918030B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a handwriting input method, device and device for handwriting input. The method comprises: in response to a handwriting input instruction, displaying a handwriting input interface, wherein the handwriting input interface comprises a handwriting input area and a text input area; acquiring handwriting input in real time in the handwriting input area, and determining the text characters corresponding to the handwriting; in the text input area, synchronously displaying the text characters corresponding to the handwriting according to the input order of the handwriting. The embodiments of the present invention can check the converted text effect in real time, enhance the intuitiveness of handwriting input, and facilitate users to find errors in input. In addition, the embodiments of the present invention can realize independent input and editing operations on the input content, provide users with a variety of optional input and editing methods, increase the convenience of user handwriting input, and thus improve the efficiency of user handwriting input notes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a writing input method, device and a device for handwriting input. Background Art

[0002] With the popularization of mobile terminals such as mobile phones, e-readers, and tablet computers, users can study and work through mobile terminals. Currently, mobile terminals can support the function of handwriting input notes, that is, support users to record notes by handwriting input.

[0003] After the user completes the handwriting input, the mobile terminal can save the handwriting trace in the handwriting input interface as a note file for the user to view later.

[0004] However, the current method of handwriting note input is relatively simple and inconvenient to edit and modify, which affects the efficiency of users in using notes. Summary of the invention

[0005] The embodiments of the present invention provide a handwriting input method, device and device for handwriting input, which can improve the efficiency of user handwriting input notes.

[0006] In order to solve the above problems, an embodiment of the present invention discloses a handwriting input method, which is applied to an electronic device. The method includes:

[0007] In response to a handwriting input instruction, displaying a handwriting input interface, the handwriting input interface including a handwriting input area and a text input area;

[0008] Acquire the handwriting input in real time in the handwriting input area, and determine the text characters corresponding to the handwriting;

[0009] In the text input area, text characters corresponding to the handwriting are synchronously displayed according to the input order of the handwriting.

[0010] Optionally, the method further comprises:

[0011] Receiving an operation instruction for a target text character displayed in the text input area, the operation instruction including an edit instruction and / or a save instruction;

[0012] In response to the operation instruction, a corresponding text operation is performed on the target text character.

[0013] Optionally, the method further comprises:

[0014] Receiving an editing instruction for the target handwriting input in the handwriting input area, the editing instruction including any one of a deletion instruction, a content addition instruction, a copy instruction, a paste instruction, a color change instruction, a move instruction, and a scaling instruction;

[0015] In response to the editing instruction, performing a corresponding editing operation on the target handwriting;

[0016] In the text input area, a corresponding editing operation is performed on the target text characters corresponding to the target handwriting.

[0017] Optionally, the method further comprises:

[0018] receiving a circle selection operation performed on the handwriting inputted in the handwriting input area;

[0019] The handwriting within the circled selection range of the circle selection operation is determined as the target handwriting.

[0020] Optionally, displaying a handwriting input interface in response to a handwriting input instruction includes:

[0021] In response to a handwriting input instruction, displaying a template selection interface, wherein the template selection interface includes a preset note template;

[0022] receiving a selection operation for a target note template among the note templates;

[0023] A handwriting input interface is displayed based on the target note template.

[0024] Optionally, a sliding control is displayed in the handwriting input area, and the method further includes:

[0025] Receiving a sliding operation on the sliding control;

[0026] According to the direction of the sliding operation, a display area of ​​the display interface of the handwriting input area is moved.

[0027] Optionally, the acquiring of the handwriting input in real time in the handwriting input area and determining the text characters corresponding to the handwriting includes:

[0028] Acquire the handwriting inputted by the user in real time in the handwriting input area;

[0029] Calculating a pen lift interval feature of a target stroke in the handwriting, the pen lift interval feature being used to indicate a pen lift interval between a target stroke in the handwriting and a previous stroke of the target stroke, the target stroke being any stroke in the handwriting;

[0030] Determine a pen lift interval identifier of the target stroke based on the pen lift interval feature of the target stroke and the pen lift interval determination model corresponding to the user, wherein the pen lift interval identifier is used to indicate whether the target stroke and its previous stroke belong to the same character;

[0031] If the pen lift interval mark indicates that the target stroke and the previous stroke do not belong to the same character, the handwriting is recognized and processed to obtain a text character corresponding to the handwriting.

[0032] Optionally, the method further comprises:

[0033] Obtaining the pen lift interval features of the user's historical strokes, the labels of the historical strokes, and the actual pen lift intervals between adjacent strokes in the historical strokes; the historical strokes include a set of strokes input by the user in handwriting; the pen lift interval feature of the i-th stroke in the historical strokes is used to indicate the pen lift interval between the i-th stroke and the i-1-th stroke; the label of the i-th stroke is used to indicate whether the i-th stroke and the i-1-th stroke belong to the same character;

[0034] The pen lift interval features of the historical strokes, the labels of the historical strokes, and the actual pen lift intervals between adjacent strokes in the historical strokes are used to train a pen lift interval determination model corresponding to the user.

[0035] On the other hand, an embodiment of the present invention discloses a handwriting input device, which is applied to an electronic device, and the device includes:

[0036] A handwriting input instruction response module, used to respond to a handwriting input instruction and display a handwriting input interface, wherein the handwriting input interface includes a handwriting input area and a text input area;

[0037] A handwriting acquisition module, used to acquire the handwriting input in real time in the handwriting input area, and determine the text character corresponding to the handwriting;

[0038] The text character display module is used to synchronously display the text characters corresponding to the handwriting in the text input area according to the input order of the handwriting.

[0039] Optionally, the device further comprises:

[0040] An operation instruction receiving module, used for receiving an operation instruction for a target text character displayed in the text input area, wherein the operation instruction includes an editing instruction and / or a saving instruction;

[0041] The operation instruction response module is used to perform corresponding text operations on the target text characters in response to the operation instruction.

[0042] Optionally, the device further comprises:

[0043] An editing instruction receiving module, used for receiving an editing instruction for a target handwriting inputted in the handwriting input area, wherein the editing instruction includes any one of a deletion instruction, a content addition instruction, a copy instruction, a paste instruction, a color change instruction, a move instruction, and a scaling instruction;

[0044] An editing instruction response module, used for performing a corresponding editing operation on the target handwriting in response to the editing instruction;

[0045] The editing operation execution module is used to execute corresponding editing operations on the target text characters corresponding to the target handwriting in the text input area.

[0046] Optionally, the device further comprises:

[0047] A circle selection operation determination module, used for receiving a circle selection operation performed on the handwriting inputted in the handwriting input area;

[0048] The target handwriting determination module is used to determine the handwriting within the circled selection range of the circle selection operation as the target handwriting.

[0049] Optionally, the handwriting input instruction response module includes:

[0050] A template selection interface display submodule, for displaying a template selection interface in response to a handwriting input instruction, wherein the template selection interface includes a preset note template;

[0051] A selection operation receiving submodule, used for receiving a selection operation for a target note template in the note templates;

[0052] The handwriting input interface display submodule is used to display the handwriting input interface based on the target note template.

[0053] Optionally, a sliding control is displayed in the handwriting input area, and the device further includes:

[0054] A sliding operation receiving module, used for receiving a sliding operation on the sliding control;

[0055] The display area moving module is used to move the display area of ​​the display interface of the handwriting input area according to the direction of the sliding operation.

[0056] Optionally, the handwriting acquisition module includes:

[0057] A handwriting trace acquisition submodule, used for acquiring the handwriting traces input by the user in real time in the handwriting input area;

[0058] a pen lift interval feature calculation submodule, used for calculating a pen lift interval feature of a target stroke in the handwriting, wherein the pen lift interval feature is used for indicating a pen lift interval between a target stroke in the handwriting and a previous stroke of the target stroke, wherein the target stroke is any stroke in the handwriting;

[0059] A pen lift interval identification determination submodule, used to determine the pen lift interval identification of the target stroke based on the pen lift interval feature of the target stroke and the pen lift interval determination model corresponding to the user, wherein the pen lift interval identification is used to indicate whether the target stroke and its previous stroke belong to the same character;

[0060] The handwriting recognition submodule is used to recognize the handwriting if the pen lift interval mark indicates that the target stroke and its previous stroke do not belong to the same character, so as to obtain the text character corresponding to the handwriting.

[0061] Optionally, the device further comprises:

[0062] A pen lift interval feature acquisition submodule, used to acquire the pen lift interval features of the user's historical strokes, the labels of the historical strokes, and the actual pen lift intervals between adjacent strokes in the historical strokes; the historical strokes include a set of strokes input by the user in handwriting; the pen lift interval feature of the i-th stroke in the historical strokes is used to indicate the pen lift interval between the i-th stroke and the i-1-th stroke; the label of the i-th stroke is used to indicate whether the i-th stroke and the i-1-th stroke belong to the same character;

[0063] The pen lift interval determination model training submodule is used to train the pen lift interval determination model corresponding to the user by using the pen lift interval features of the historical strokes, the labels of the historical strokes and the actual pen lift intervals between adjacent strokes in the historical strokes.

[0064] On the other hand, an embodiment of the present invention discloses a device for handwriting input, which includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for executing one or more of the handwriting input methods described above.

[0065] In yet another aspect, an embodiment of the present invention discloses a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables a device to perform one or more of the handwriting input methods described above.

[0066] The embodiments of the present invention include the following advantages:

[0067] In an embodiment of the present invention, the handwriting input interface includes a handwriting input area and a text input area. The handwriting input area is used to receive handwriting input by the user in real time. The text input area is used to synchronously display the text characters corresponding to the handwriting in the handwriting input area. The embodiment of the present invention adds a text input area to the handwriting input interface, and converts the handwriting input in real time in the handwriting input area, and synchronously displays the converted text characters in the text input area according to the input order of the handwriting. As a result, during the handwriting input process, the user can check the converted text effect in real time, which enhances the intuitiveness of the handwriting input and facilitates the user to find errors in the input. In addition, the embodiment of the present invention can realize independent input and editing operations on the input content through two independent input areas, the handwriting input area and the text input area, provide users with a variety of optional input and editing methods, increase the convenience of the user's handwriting input, and thus improve the efficiency of the user's handwriting input notes. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0069] Figure 1 is a flow chart of steps of an embodiment of a handwriting input method of the present invention;

[0070] Figure 2 It is a schematic diagram of a handwriting input interface of the present invention;

[0071] Figure 3 It is a schematic diagram of a template selection interface of the present invention;

[0072] Figure 4 is a structural block diagram of an embodiment of a handwriting input device of the present invention;

[0073] Figure 5 is a block diagram of a device 800 for handwriting input according to the present invention;

[0074] Figure 6 It is a schematic diagram of the structure of the server in some embodiments of the present invention. DETAILED DESCRIPTION

[0075] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0076] Method Embodiment

[0077] Reference Figure 1 , shows a flow chart of steps of a handwriting input method embodiment of the present invention, the method may specifically include the following steps:

[0078] Step 101: In response to a handwriting input instruction, a handwriting input interface is displayed, wherein the handwriting input interface includes a handwriting input area and a text input area.

[0079] Step 102: Acquire the handwriting input in real time in the handwriting input area, and determine the text characters corresponding to the handwriting.

[0080] Step 103: In the text input area, text characters corresponding to the handwriting are synchronously displayed according to the input order of the handwriting.

[0081] The handwriting input method provided in the embodiment of the present invention can be applied to electronic devices that support handwriting input and have a touch screen or a handwriting board, and can be used to collect handwriting generated during the user's handwriting input process. The electronic devices may include but are not limited to: mobile terminals, tablet computers, personal digital assistants (PDAs), computers, electronic readers, etc.

[0082] When the user performs a handwriting input operation on the electronic device, a handwriting input instruction can be triggered based on the user's handwriting input operation, and the electronic device responds to the handwriting input instruction and displays a handwriting input interface for the user to perform handwriting input. For example, the user sets the default input mode to handwriting input, and when the user opens an input box of any application such as a chat application, a memo, or a browser, a handwriting input instruction can be triggered, and the electronic device responds to the handwriting input instruction and displays a handwriting input interface.

[0083] It should be noted that, in the embodiment of the present invention, the handwriting input interface includes a handwriting input area and a text input area, wherein the handwriting input area is used to receive handwriting input by the user in real time, and the text input area is used to synchronously display the text characters corresponding to the handwriting input in the handwriting input area.

[0084] During the handwriting input process, the handwriting inputted by the user in the handwriting input area in real time is continuously obtained, and the text characters corresponding to the handwriting are determined. Specifically, a user-personalized handwriting recognition model can be pre-trained, and the handwriting inputted in real time in the handwriting input area is recognized and processed by the user-personalized handwriting recognition model to determine the text characters corresponding to the handwriting.

[0085] In practical applications, a user personalized word table can be established for the user based on the user's historical input information. In the user personalized word table, each Chinese character has a corresponding user personalized handwriting. In other words, the user personalized word table contains a mapping relationship between the user's handwriting and the corresponding text characters. It should be noted that the user's handwriting in the mapping relationship contains all the strokes of the corresponding text characters, that is, the complete strokes of the corresponding text characters. A user personalized handwriting recognition model can be directly constructed based on the mapping relationship between the handwriting in the user personalized word table and the corresponding text characters, and the user personalized handwriting recognition model can be trained based on the user personalized word table. The trained user personalized handwriting recognition model is used to recognize the handwriting input by the user, which can improve the recognition accuracy of the handwriting.

[0086] The user personalized handwriting recognition model may adopt a deep learning model, such as DNN (Deep Neural Networks), CNN (Convolutional Neural Networks), etc.; or a conventional classifier model, such as SVM (Support Vector Machine), HMM (Hidden Markov Model), etc. This is not specifically limited in the embodiments of the present invention.

[0087] Furthermore, in the embodiment of the present invention, only the handwriting in the handwriting input area is recognized and processed, and the handwriting input outside the handwriting input area is not processed.

[0088] After determining the text characters corresponding to the handwriting, the text characters corresponding to the handwriting are synchronously displayed in the text input area according to the input order of the handwriting. In order to facilitate the user to view, the font and size of the text characters can also be set, specifically, it can be: obtaining preset setting parameters such as font, size, font color, for example, the preset setting parameters are "Songti, No. 5, Red", and based on these setting parameters, the text characters corresponding to the handwriting are displayed.

[0089] It should be noted that, in the embodiment of the present invention, the text characters displayed in the text input area are always consistent with the handwriting input in real time in the handwriting input area. For example, when the user inputs the handwriting corresponding to the word "hand" in the handwriting input area, the word "hand" is displayed in the text input area; when the user continues to input the handwriting corresponding to "write" in the handwriting input area, the word "write" continues to be displayed in the text input area. That is to say, in the embodiment of the present invention, every time the user completes inputting the handwriting corresponding to a text character in the handwriting input area, the text character is displayed in the text input area.

[0090] Furthermore, the order in which the text characters are displayed is consistent with the order in which the handwriting was entered. Figure 2 , shows a schematic diagram of a handwriting input interface provided by an embodiment of the present invention. Figure 2 As shown, the area indicated by the rectangular box is the text input area, and the area below the text input area is the handwriting input area. The user enters "Handwritten Notes" in the handwriting input area, and "Handwritten Notes" is displayed in the text input area simultaneously. If the user continues to enter "My" before the "Handwritten Notes" already entered in the handwriting input area, "My Handwritten Notes" will be displayed in the text input area.

[0091] The text characters are the smallest character units of the corresponding language. For example, if the language of the user's handwriting input is Chinese, the text characters are Chinese characters; if the language of the user's handwriting input is English, the text characters are English letters, and so on.

[0092] For the handwriting input interface, operation controls such as close control and retract control can also be set. Optionally, the operation controls can be set at the top of the handwriting input interface, for example, the close control is set at the upper right corner of the handwriting input interface, and the retract control is set at the upper left corner of the handwriting input interface, etc., to distinguish the handwriting input area and the text input area in the handwriting input interface, so as to avoid user misoperation.

[0093] When the user closes the handwriting input interface after completing the handwriting input, the handwriting input area of ​​the handwriting input interface can be saved and the handwriting input interface can be closed according to the closing operation of the user clicking the close control of the handwriting input interface. When the user clicks the folding control of the handwriting input interface to trigger the folding operation, the handwriting input area of ​​the handwriting input interface can be saved in the cache first, and the handwriting input interface can be folded. The folded handwriting input interface can be displayed again. For example, when the user receives a display instruction for the handwriting input interface, the handwriting in the cache can be obtained first, and then the handwriting input interface containing the handwriting can be displayed, and the user can continue to re-input handwriting in the handwriting input area of ​​the handwriting input interface.

[0094] The embodiment of the present invention divides the handwriting input interface into a handwriting input area and a text input area, wherein the handwriting input area is used to receive the handwriting input by the user in real time, and the text input area is used to synchronously display the text characters corresponding to the handwriting in the handwriting input area. The embodiment of the present invention adds a text input area to the handwriting input interface, and converts the handwriting input in real time in the handwriting input area, and synchronously displays the converted text characters in the text input area according to the input order of the handwriting. Therefore, during the handwriting input process, the user can check the converted text effect in real time, which enhances the intuitiveness of the handwriting input and facilitates the user to find errors in the input.

[0095] In addition, the embodiment of the present invention can realize independent input and editing operations on input content through two independent input areas, namely the handwriting input area and the text input area, provide users with a variety of optional input and editing methods, increase the convenience of user handwriting input, and thus improve the efficiency of user handwriting input notes.

[0096] In an optional embodiment of the present invention, the method further includes:

[0097] Step S11, receiving an operation instruction for the target text character displayed in the text input area, wherein the operation instruction includes an edit instruction and / or a save instruction;

[0098] Step S12: In response to the operation instruction, perform a corresponding text operation on the target text character.

[0099] It should be noted that, in the embodiment of the present invention, text operations can be performed separately on the text characters displayed in the text input area. For example, editing operations can be performed separately on the target text characters displayed in the text input area, and / or the target text characters displayed in the text input area can be saved separately as a text file or picture text.

[0100] The editing instruction includes any one of a deletion instruction, a content addition instruction, a copy instruction, a paste instruction, a color change instruction, a move instruction, and a zoom instruction.

[0101] It should be noted that, in an embodiment of the present invention, the delete instruction is used to delete the specified target text character. The content condition instruction allows the user to add the target text character at the specified position in the text input area. The copy instruction allows the user to copy the target text character in the text input area. The paste instruction is used to paste the copied content to the specified position in the text input area. The color change instruction is used to change the font color of the target text character. The move instruction is used to move the target text character to the specified position. The zoom instruction is used to zoom the display ratio of the target text character.

[0102] For example, if the handwriting entered in the handwriting input area and the text characters displayed in the text input area are both "Handwritten Notes", you can delete the two words "Handwriting" in the text input area without performing any operation on the handwriting in the handwriting input area. At this time, the text characters displayed in the text input area are "Notes" and the handwriting displayed in the handwriting input area is "Handwritten Notes". You can also add "My" before "Handwritten Notes" in the text input area without performing any operation on the handwriting in the handwriting input area. At this time, the text characters displayed in the text input area are "My Handwritten Notes" and the handwriting displayed in the handwriting input area is still "Handwritten Notes", and so on.

[0103] The embodiments of the present invention support the separate editing and saving of the target text characters displayed in the text input area. When performing text operations on the target text characters in the text input area, no operations need be performed on the handwriting in the handwriting input area. This provides users with a variety of optional input and editing methods, increases the convenience of the user's handwriting input, and thereby improves the efficiency of the user's handwriting input note.

[0104] In an optional embodiment of the present invention, the method further includes:

[0105] Step S21, receiving an editing instruction for a target handwriting input in the handwriting input area;

[0106] Step S22, in response to the editing instruction, performing a corresponding editing operation on the target handwriting;

[0107] Step S23: In the text input area, a corresponding editing operation is performed on the target text characters corresponding to the target handwriting.

[0108] In actual applications, the text characters displayed in the text input area conform to the standard font specifications, which are more convenient for users to view, share, and edit. However, due to different writing habits of users, handwriting is not conducive to reading and viewing by other users. Therefore, in order to facilitate content viewing and sharing, it is usually necessary to convert handwriting into text characters and store them. Therefore, in an embodiment of the present invention, text operations can be performed on the text characters in the text input area separately. However, if an editing instruction is received for the target handwriting that has been entered in the handwriting input area, it is necessary to synchronously perform corresponding editing operations on the target handwriting and the target text characters corresponding to the target handwriting.

[0109] For example, if a user enters "Handwritten Notes" in the handwriting input area, "Handwritten Notes" will be displayed in the text input area at the same time. If the user continues to enter "My" before the "Handwritten Notes" already entered in the handwriting input area, "My" will also need to be added before the text characters "Handwritten Notes" in the text input area, that is, "My Handwritten Notes" will be displayed in the text input area.

[0110] The editing instruction includes any one of a deletion instruction, a content addition instruction, a copy instruction, a paste instruction, a color change instruction, a move instruction, and a zoom instruction.

[0111] It should be noted that, in an embodiment of the present invention, the delete instruction is used to delete the specified target handwriting. The content condition instructs the user to add the target handwriting at the specified position of the handwriting input area. The copy instruction instructs the user to copy the target handwriting in the handwriting input area. The paste instruction is used to paste the copied content to the specified position in the handwriting input area. Among them, the pasted content can be the copied target handwriting, or it can be text, pictures, web links, etc. copied from other files. The color change instruction is used to change the font color of the target handwriting. The move instruction is used to move the target handwriting to a specified position. The zoom instruction is used to zoom the display ratio of the target handwriting.

[0112] If the handwriting is recognized after the user's handwriting input is completed, if there are errors in the content of the user's handwriting input, it will lead to the accumulation of handwriting errors, thereby affecting the recognition accuracy. The final recognition result does not meet the user's expectations, and after correcting the erroneous content in the handwriting input, it is necessary to re-recognize all the handwriting input content, which has low fault tolerance and recognition efficiency, thereby affecting the handwriting input efficiency. Therefore, in an embodiment of the present invention, during the handwriting input process, the user can check the converted text effect in real time, which enhances the intuitiveness of the handwriting input and facilitates the user to find errors in the input. If the text characters displayed in the text input area are inconsistent with the user's expected input content, the user can modify the handwriting input in the handwriting input area at any time, and the text characters displayed in the text input area can be updated according to the user's modification, without the need to re-recognize all the handwriting, thereby improving the fault tolerance and text recognition efficiency of the input system, and is conducive to further improving the handwriting input efficiency.

[0113] In addition, in an embodiment of the present invention, a cursor is also displayed in the text input area. If the editing instruction for the target handwriting in the handwriting input area is a deletion instruction, after step S23, the cursor in the text input area can be automatically moved to the position of the target text character corresponding to the deleted target handwriting, so that the user can directly input the text characters to be added in the text input area, thereby improving the input efficiency.

[0114] In an optional embodiment of the present invention, the method further includes:

[0115] Step S31, receiving a circle selection operation performed on the handwriting inputted in the handwriting input area;

[0116] Step S32: determining the handwriting within the circled range of the circled selection operation as the target handwriting.

[0117] The circling operation may be to form handwriting in the handwriting input area in a circling manner, that is, to circle the input handwriting through the handwriting input line. For example, the input handwriting is circled by drawing a circle in the handwriting input area in a handwriting input manner.

[0118] Optionally, in an embodiment of the present invention, when the handwriting input is circled by handwriting input, the content covered by the circled range corresponding to the connected lines of the user's handwriting input can be directly determined as the target handwriting; or the circled range of the handwriting can be expanded outward in four directions of up, down, left and right with the circled range of the handwriting as the center to form an outer rectangle of the handwriting, and then the coverage of the outer rectangle is determined by determining the content covered by the outer rectangle as the target handwriting. After selecting the target handwriting, various editing operations can be performed on the target handwriting.

[0119] In an optional embodiment of the present invention, the step 101 of displaying a handwriting input interface in response to a handwriting input instruction includes:

[0120] Step S41, in response to a handwriting input instruction, displaying a template selection interface, wherein the template selection interface includes a preset note template;

[0121] Step S42: receiving a selection operation for a target note template in the note templates;

[0122] Step S43: display a handwriting input interface based on the target note template.

[0123] In the embodiment of the present invention, note templates may be preset, and when the electronic device responds to a handwriting input instruction, a template selection interface may be displayed, in which various preset note templates are displayed. Figure 3 , shows a schematic diagram of a template selection interface provided by an embodiment of the present invention. Figure 3 As shown, the template selection interface displays a variety of note templates for users to choose from.

[0124] It should be noted that the note template may be configured with parameters such as the interface background of the handwriting input interface, the display position of the handwriting input area and the text input area in the handwriting input interface, and the area size.

[0125] When a selection operation for a target note model in the note template is received, a handwriting input interface may be displayed based on the target note template selected by the user.

[0126] In an optional embodiment of the present invention, a sliding control is displayed in the handwriting input area, and the method further includes:

[0127] Step S51: receiving a sliding operation on the sliding control;

[0128] Step S52: moving the display area of ​​the display interface of the handwriting input area according to the direction of the sliding operation.

[0129] In an embodiment of the present invention, a sliding control may be displayed in a handwriting input area, for example, a sliding control may be displayed in a side area of ​​the handwriting input area. A user may perform a sliding operation on the sliding control, for example, moving the sliding control upward or downward. When the electronic device receives a sliding operation on the sliding control, the display area of ​​the display interface of the handwriting input area may be moved according to the direction of the sliding operation. For example, when the user moves the sliding control upward, the display area of ​​the display interface of the handwriting input area may be moved upward, that is, the display area above the current display area is displayed in the display interface of the handwriting input area, so that the user can view and edit the handwriting input in the display area above the current display area; or, when the user moves the sliding control downward, the display area of ​​the display interface of the handwriting input area may be moved downward, that is, the display area below the current display area is displayed in the display interface of the handwriting input area, so that the user can continue to input handwriting in the blank display area below the current display area, or view and edit the handwriting input in the display area below the current display area.

[0130] In an optional embodiment of the present invention, the method further includes:

[0131] Step S61, in response to a save instruction, converting the handwriting track inputted in the handwriting input area into a target file of a preset type, wherein the preset type includes a picture type and / or a text type;

[0132] Step S62: Save the target file.

[0133] In the embodiment of the present invention, the handwriting track inputted in the handwriting input area may also be saved in the form of a picture and / or text, so as to facilitate viewing and sharing by users.

[0134] In an optional embodiment of the present invention, the method further includes: if the number of characters in the display interface of the handwriting input area is greater than or equal to a preset threshold, saving the handwriting input in the display interface, and creating a new blank display interface in the handwriting input area, wherein the blank display interface is used to display the handwriting newly input by the user.

[0135] In actual applications, you can set an upper limit on the number of words in handwriting or an upper limit on the length of the display interface of the handwriting input area. When the handwriting input by the user exceeds the preset upper limit on the number of words or the upper limit on the length of the interface, the handwriting that has been input can be saved first, and a new blank display interface can be automatically created for the user to continue inputting, thereby improving input efficiency.

[0136] In an optional embodiment of the present invention, the step 102 of acquiring the handwriting input in real time in the handwriting input area and determining the text character corresponding to the handwriting includes:

[0137] Step S71, obtaining the handwriting input by the user in real time in the handwriting input area;

[0138] Step S72, calculating a pen lift interval feature of a target stroke in the handwriting, wherein the pen lift interval feature is used to indicate a pen lift interval between a target stroke in the handwriting and a previous stroke of the target stroke, wherein the target stroke is any stroke in the handwriting;

[0139] Step S73, determining a pen lift interval identifier of the target stroke based on the pen lift interval feature of the target stroke and a pen lift interval determination model corresponding to the user, wherein the pen lift interval identifier is used to indicate whether the target stroke and its previous stroke belong to the same character;

[0140] Step S74: If the pen lift interval mark indicates that the target stroke and the previous stroke do not belong to the same character, the handwriting is recognized to obtain a text character corresponding to the handwriting.

[0141] It should be noted that, in the embodiment of the present invention, the text characters displayed in the text input area are always consistent with the handwriting input in real time in the handwriting input area. For example, when the user inputs the handwriting corresponding to the word "hand" in the handwriting input area, the word "hand" is displayed in the text input area; when the user continues to input the handwriting corresponding to "write" in the handwriting input area, the word "write" continues to be displayed in the text input area. That is to say, in the embodiment of the present invention, every time the user completes inputting the handwriting corresponding to a text character in the handwriting input area, the text character of the handwriting is displayed in the text input area.

[0142] Therefore, in an embodiment of the present invention, it is necessary to determine in real time whether the handwriting currently input is a complete handwriting of a word. If so, it is necessary to perform text recognition on the handwriting currently input, determine the text character corresponding to the handwriting and display it in the text input area. Specifically, the pen lift interval feature of the target stroke in the handwriting input by the user in real time can be calculated, and a model can be determined based on the pen lift interval feature of the target stroke and the pen lift interval corresponding to the user to determine the pen lift interval identifier corresponding to the target stroke in the handwriting, so as to determine whether the target stroke and the previous stroke of the target stroke belong to the same word. If the target stroke and the previous stroke do not belong to the same word, the handwriting is recognized and processed to obtain the text character corresponding to the handwriting.

[0143] Among them, the pen lift interval feature of the target stroke includes the feature that can affect the pen lift interval between the target stroke and the previous stroke of the target stroke when the user is performing handwriting input. Generally speaking, if the distance between the target stroke and the previous stroke of the target stroke is relatively large, the pen lift interval between the target stroke and the previous stroke of the target stroke will be relatively large; if the distance between the target stroke and the previous stroke of the target stroke is relatively small, the pen lift interval between the target stroke and the previous stroke of the target stroke will be relatively small. Therefore, in an optional embodiment of the present invention, the pen lift interval feature of the target stroke may include the distance between the target stroke and the previous stroke. The embodiment of the present invention does not specifically limit the distance between the target stroke and the previous stroke of the target stroke. The distance between the target stroke and the previous stroke of the target stroke can be the distance between a certain point on the target stroke and a certain point on the previous stroke of the target stroke.

[0144] In an embodiment of the present invention, it is considered that when a user inputs using a handwriting input method, in general, after inputting the i-1th stroke, the touch tool, such as a finger, can be moved from the end position of the i-1th stroke to the start position of the i-th stroke. That is to say, the distance between the start position of the i-th stroke and the end position of the i-1th stroke is an important factor affecting the pen lift interval between the i-th stroke and the i-1th stroke. Therefore, in an optional embodiment of the present invention, the distance between the target stroke and the previous stroke of the target stroke can also be reflected as the distance between the start position of the target stroke and the end position of the previous stroke of the target stroke. Specifically, a coordinate system can be constructed in the handwriting input area of ​​the handwriting input interface, and the distance between the start position of the target stroke and the end position of the previous stroke of the target stroke is calculated based on the coordinates of the start position of the target stroke in the coordinate system and the coordinates of the end position of the previous stroke of the target stroke in the coordinate system.

[0145] It should be noted that the above content is only an exemplary description of the embodiment of the present invention, and the embodiment of the present invention does not specifically limit the pen lift interval feature of the target stroke and the specific calculation method of the pen lift interval feature.

[0146] The pen lift interval determination model corresponding to the user can be trained based on the pen lift interval features of the user's historical strokes. The pen lift interval features of the target strokes are input into the pen lift interval determination model to determine the pen lift interval identifier of the target stroke. The pen lift interval identifier is used to indicate whether the target stroke and its previous stroke belong to the same character.

[0147] In an optional embodiment of the present invention, the method further includes:

[0148] Step S81, obtaining the pen lift interval features of the user's historical strokes, the labels of the historical strokes, and the actual pen lift intervals between adjacent strokes in the historical strokes; the historical strokes include a set of strokes input by the user in handwriting; the pen lift interval feature of the i-th stroke in the historical strokes is used to indicate the pen lift interval between the i-th stroke and the i-1-th stroke; the label of the i-th stroke is used to indicate whether the i-th stroke and the i-1-th stroke belong to the same character;

[0149] Step S82: using the pen lift interval features of the historical strokes, the labels of the historical strokes, and the actual pen lift intervals between adjacent strokes in the historical strokes, to train a pen lift interval determination model corresponding to the user.

[0150] It should be noted that the historical strokes may be a set of strokes input by the user through handwriting, and the stroke set includes multiple strokes. The strokes in the historical strokes are arranged in the order of input by the user. In other words, the i-th stroke in the historical strokes is the next stroke input by the user after the i-1-th stroke is input.

[0151] In an embodiment of the present invention, the label of the i-th stroke in the historical strokes indicates whether the i-th stroke and the i-1-th stroke belong to the same character. In other words, the label of the i-th stroke in the historical strokes indicates whether the character where the i-1-th stroke is located has been inputted. It is understandable that if the i-th stroke and the i-1-th stroke belong to the same character, it indicates that after the i-1-th stroke is inputted and before the i-th stroke is inputted, the character where the i-1-th stroke is located has not been inputted completely, and there are other strokes such as the i-th stroke that have not been inputted. If the i-th stroke and the i-1-th stroke do not belong to the same character, it indicates that the i-1-th stroke is the last stroke of one character, and the i-th stroke is the first stroke of another character.

[0152] It should be noted that the actual pen lift interval between adjacent strokes in the history strokes refers to the time interval between the end of inputting the k-1th stroke and the start of inputting the kth stroke when the user inputs strokes using the handwriting input method.

[0153] In an embodiment of the present invention, when training the pen lift interval determination model corresponding to the user by utilizing the pen lift interval features of the historical strokes, the labels of the historical strokes, and the actual pen lift intervals between adjacent strokes in the historical strokes, multiple iterations may be performed. During the iteration process, the pen lift interval determination model may be used to predict the labels of the historical strokes based on the pen lift interval identifiers input for the historical strokes, and the predicted pen lift interval identifiers may be compared with the labels actually carried by the historical strokes, and the parameters of the pen lift interval determination model may be adjusted based on the comparison results.

[0154] In an embodiment of the present invention, after training the pen lift interval determination model corresponding to the user, if the user uses a handwriting input method to input, the pen lift interval determination model can be used to determine the pen lift interval identifier between the target stroke and the previous stroke of the target stroke based on the pen lift interval characteristics of the target stroke input by the user.

[0155] It should be noted that the embodiments of the present invention do not limit the conditions for completing the training of the pen lift interval determination model. For example, if the accuracy of the pen lift interval determination model corresponding to the user reaches a preset proportion within a certain period, the training of the pen lift interval determination model can be regarded as completed; for example, when the number of training samples reaches a certain order of magnitude, the training of the pen lift interval threshold determination model can also be regarded as completed.

[0156] The embodiment of the present application trains a corresponding pen lift interval determination model for each user, and uses the pen lift interval determination model corresponding to the user to analyze the pen lift interval characteristics of the target strokes in the handwriting of the user. The determined pen lift interval identification of the target strokes is more in line with the user's personalized input habits, thereby improving the accuracy of the pen lift interval identification, which is conducive to improving the recognition accuracy of handwriting.

[0157] In summary, the embodiment of the present invention adds a text input area to the handwriting input interface, and converts the handwriting input in real time in the handwriting input area, and synchronously displays the converted text characters in the text input area according to the input order of the handwriting. As a result, during the handwriting input process, the user can check the converted text effect in real time, which enhances the intuitiveness of the handwriting input and facilitates the user to find errors in the input. In addition, the embodiment of the present invention can realize independent input and editing operations on the input content through two independent input areas, the handwriting input area and the text input area, provide users with a variety of optional input and editing methods, increase the convenience of the user's handwriting input, and thus improve the efficiency of the user's handwriting input notes.

[0158] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0159] Device Embodiment

[0160] Reference Figure 4 , shows a structural block diagram of an embodiment of a handwriting input device of the present invention, the device may include:

[0161] A handwriting input instruction response module 401, configured to display a handwriting input interface in response to a handwriting input instruction, wherein the handwriting input interface includes a handwriting input area and a text input area;

[0162] A handwriting trace acquisition module 402, used to acquire the handwriting traces input in real time in the handwriting input area, and determine the text characters corresponding to the handwriting traces;

[0163] The text character display module 403 is used to synchronously display the text characters corresponding to the handwriting in the text input area according to the input order of the handwriting.

[0164] Optionally, the device further comprises:

[0165] An operation instruction receiving module, used for receiving an operation instruction for a target text character displayed in the text input area, wherein the operation instruction includes an editing instruction and / or a saving instruction;

[0166] The operation instruction response module is used to perform corresponding text operations on the target text characters in response to the operation instruction.

[0167] Optionally, the device further comprises:

[0168] An editing instruction receiving module, used for receiving an editing instruction for a target handwriting inputted in the handwriting input area, wherein the editing instruction includes any one of a deletion instruction, a content addition instruction, a copy instruction, a paste instruction, a color change instruction, a move instruction, and a scaling instruction;

[0169] An editing instruction response module, used for performing a corresponding editing operation on the target handwriting in response to the editing instruction;

[0170] The editing operation execution module is used to execute corresponding editing operations on the target text characters corresponding to the target handwriting in the text input area.

[0171] Optionally, the device further comprises:

[0172] A circle selection operation determination module, used for receiving a circle selection operation performed on the handwriting inputted in the handwriting input area;

[0173] The target handwriting determination module is used to determine the handwriting within the circled selection range of the circle selection operation as the target handwriting.

[0174] Optionally, the handwriting input instruction response module includes:

[0175] A template selection interface display submodule, for displaying a template selection interface in response to a handwriting input instruction, wherein the template selection interface includes a preset note template;

[0176] A selection operation receiving submodule, used for receiving a selection operation for a target note template in the note templates;

[0177] The handwriting input interface display submodule is used to display the handwriting input interface based on the target note template.

[0178] Optionally, a sliding control is displayed in the handwriting input area, and the device further includes:

[0179] A sliding operation receiving module, used for receiving a sliding operation on the sliding control;

[0180] The display area moving module is used to move the display area of ​​the display interface of the handwriting input area according to the direction of the sliding operation.

[0181] Optionally, the handwriting acquisition module includes:

[0182] A handwriting trace acquisition submodule, used for acquiring the handwriting traces input by the user in real time in the handwriting input area;

[0183] a pen lift interval feature calculation submodule, used for calculating a pen lift interval feature of a target stroke in the handwriting, wherein the pen lift interval feature is used for indicating a pen lift interval between a target stroke in the handwriting and a previous stroke of the target stroke, wherein the target stroke is any stroke in the handwriting;

[0184] A pen lift interval identification determination submodule, used to determine the pen lift interval identification of the target stroke based on the pen lift interval feature of the target stroke and the pen lift interval determination model corresponding to the user, wherein the pen lift interval identification is used to indicate whether the target stroke and its previous stroke belong to the same character;

[0185] The handwriting recognition submodule is used to recognize the handwriting if the pen lift interval mark indicates that the target stroke and its previous stroke do not belong to the same character, so as to obtain the text character corresponding to the handwriting.

[0186] Optionally, the device further comprises:

[0187] A pen lift interval feature acquisition submodule, used to acquire the pen lift interval features of the user's historical strokes, the labels of the historical strokes, and the actual pen lift intervals between adjacent strokes in the historical strokes; the historical strokes include a set of strokes input by the user in handwriting; the pen lift interval feature of the i-th stroke in the historical strokes is used to indicate the pen lift interval between the i-th stroke and the i-1-th stroke; the label of the i-th stroke is used to indicate whether the i-th stroke and the i-1-th stroke belong to the same character;

[0188] The pen lift interval determination model training submodule is used to train the pen lift interval determination model corresponding to the user by using the pen lift interval features of the historical strokes, the labels of the historical strokes and the actual pen lift intervals between adjacent strokes in the historical strokes.

[0189] In summary, the embodiment of the present invention adds a text input area to the handwriting input interface, and converts the handwriting input in real time in the handwriting input area, and synchronously displays the converted text characters in the text input area according to the input order of the handwriting. As a result, during the handwriting input process, the user can check the converted text effect in real time, which enhances the intuitiveness of the handwriting input and facilitates the user to find errors in the input. In addition, the embodiment of the present invention can realize independent input and editing operations on the input content through two independent input areas, the handwriting input area and the text input area, provide users with a variety of optional input and editing methods, increase the convenience of the user's handwriting input, and thus improve the efficiency of the user's handwriting input notes.

[0190] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0191] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0192] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0193] An embodiment of the present invention provides a device for handwriting input, the device comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

[0194] A11. In response to a handwriting input instruction, display a handwriting input interface, wherein the handwriting input interface includes a handwriting input area and a text input area;

[0195] A12, obtaining the handwriting input in real time in the handwriting input area, and determining the text character corresponding to the handwriting;

[0196] A13. In the text input area, text characters corresponding to the handwriting are synchronously displayed according to the input order of the handwriting.

[0197] Optionally, the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0198] Receiving an operation instruction for a target text character displayed in the text input area, the operation instruction including an edit instruction and / or a save instruction;

[0199] In response to the operation instruction, a corresponding text operation is performed on the target text character.

[0200] Optionally, the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0201] Receiving an editing instruction for the target handwriting input in the handwriting input area, the editing instruction including any one of a deletion instruction, a content addition instruction, a copy instruction, a paste instruction, a color change instruction, a move instruction, and a scaling instruction;

[0202] In response to the editing instruction, performing a corresponding editing operation on the target handwriting;

[0203] In the text input area, a corresponding editing operation is performed on the target text characters corresponding to the target handwriting.

[0204] Optionally, the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0205] receiving a circle selection operation performed on the handwriting inputted in the handwriting input area;

[0206] The handwriting within the circled selection range of the circle selection operation is determined as the target handwriting.

[0207] Optionally, displaying a handwriting input interface in response to a handwriting input instruction includes:

[0208] In response to a handwriting input instruction, displaying a template selection interface, wherein the template selection interface includes a preset note template;

[0209] receiving a selection operation for a target note template among the note templates;

[0210] A handwriting input interface is displayed based on the target note template.

[0211] Optionally, a sliding control is displayed in the handwriting input area, and the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0212] Receiving a sliding operation on the sliding control;

[0213] According to the direction of the sliding operation, a display area of ​​the display interface of the handwriting input area is moved.

[0214] Optionally, the acquiring of the handwriting input in real time in the handwriting input area and determining the text characters corresponding to the handwriting includes:

[0215] Acquire the handwriting inputted by the user in real time in the handwriting input area;

[0216] Calculating a pen lift interval feature of a target stroke in the handwriting, the pen lift interval feature being used to indicate a pen lift interval between a target stroke in the handwriting and a previous stroke of the target stroke, the target stroke being any stroke in the handwriting;

[0217] Determine a pen lift interval identifier of the target stroke based on the pen lift interval feature of the target stroke and the pen lift interval determination model corresponding to the user, wherein the pen lift interval identifier is used to indicate whether the target stroke and its previous stroke belong to the same character;

[0218] If the pen lift interval mark indicates that the target stroke and the previous stroke do not belong to the same character, the handwriting is recognized and processed to obtain a text character corresponding to the handwriting.

[0219] Optionally, the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0220] Obtaining the pen lift interval features of the user's historical strokes, the labels of the historical strokes, and the actual pen lift intervals between adjacent strokes in the historical strokes; the historical strokes include a set of strokes input by the user in handwriting; the pen lift interval feature of the i-th stroke in the historical strokes is used to indicate the pen lift interval between the i-th stroke and the i-1-th stroke; the label of the i-th stroke is used to indicate whether the i-th stroke and the i-1-th stroke belong to the same character;

[0221] The pen lift interval features of the historical strokes, the labels of the historical strokes, and the actual pen lift intervals between adjacent strokes in the historical strokes are used to train a pen lift interval determination model corresponding to the user.

[0222] Figure 5 8 is a block diagram of a device 800 for handwriting input according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0223] Reference Figure 5 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0224] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0225] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0226] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0227] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0228] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice information processing mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0229] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0230] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, the sensor assembly 814 can also detect the position change of the voice processing device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0231] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency information processing (RFID) technology, infrared data association (I rDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0232] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0233] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0234] Figure 61 is a schematic diagram of the structure of the server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1922 can be configured to communicate with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.

[0235] The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and / or one or more operating systems 1941, such as Wi ndows ServerTM, Mac OS XTM, UnixTM, Li nuxTM, FreeBSDTM, etc.

[0236] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to perform Figure 1 The handwriting input method shown.

[0237] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to execute a handwriting input method, the method comprising: in response to a handwriting input instruction, displaying a handwriting input interface, the handwriting input interface comprising a handwriting input area and a text input area; acquiring handwriting input in real time in the handwriting input area, and determining the text characters corresponding to the handwriting; in the text input area, synchronously displaying the text characters corresponding to the handwriting in the order in which the handwriting is input.

[0238] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0239] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

[0240] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

[0241] The handwriting input method, the handwriting input device and the device for handwriting input provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples herein. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A handwriting input method, characterized in that: Applied to electronic equipment, the method comprises: In response to a handwriting input instruction, displaying a handwriting input interface, the handwriting input interface including a handwriting input area and a text input area; Acquire the handwriting input in real time in the handwriting input area, and determine the text characters corresponding to the handwriting; In the text input area, according to the input order of the handwriting, the text characters corresponding to the handwriting are synchronously displayed; Receiving an editing instruction for the target handwriting input in the handwriting input area, the editing instruction including any one of a deletion instruction, a content addition instruction, a copy instruction, a paste instruction, a color change instruction, a move instruction, and a scaling instruction; In response to the editing instruction, performing a corresponding editing operation on the target handwriting; In the text input area, performing corresponding editing operations on target text characters corresponding to the target handwriting; If the number of characters in the display interface of the handwriting input area is greater than or equal to a preset threshold, the handwriting input in the display interface is saved, and a blank display interface is created in the handwriting input area, and the blank display interface is used to display the handwriting newly input by the user; The input handwriting is saved in the form of picture and / or text.

2. The method according to claim 1, characterized in that The method further comprises: Receiving an operation instruction for a target text character displayed in the text input area, the operation instruction including an edit instruction and / or a save instruction; In response to the operation instruction, a corresponding text operation is performed on the target text character.

3. The method according to claim 1, characterized in that The method further comprises: receiving a circle selection operation performed on the handwriting inputted in the handwriting input area; The handwriting within the circled selection range of the circle selection operation is determined as the target handwriting.

4. The method according to claim 1, characterized in that: The step of displaying a handwriting input interface in response to a handwriting input instruction includes: In response to a handwriting input instruction, displaying a template selection interface, wherein the template selection interface includes a preset note template; receiving a selection operation for a target note template among the note templates; A handwriting input interface is displayed based on the target note template.

5. The method according to claim 1, characterized in that: A sliding control is displayed in the handwriting input area, and the method further includes: Receiving a sliding operation on the sliding control; According to the direction of the sliding operation, a display area of ​​the display interface of the handwriting input area is moved.

6. The method according to claim 1, characterized in that The step of acquiring the handwriting input in real time in the handwriting input area and determining the text character corresponding to the handwriting includes: Acquire the handwriting inputted by the user in real time in the handwriting input area; Calculating a pen lift interval feature of a target stroke in the handwriting, the pen lift interval feature being used to indicate a pen lift interval between a target stroke in the handwriting and a previous stroke of the target stroke, the target stroke being any stroke in the handwriting; Determine a pen lift interval identifier of the target stroke based on the pen lift interval feature of the target stroke and the pen lift interval determination model corresponding to the user, wherein the pen lift interval identifier is used to indicate whether the target stroke and its previous stroke belong to the same character; If the pen lift interval mark indicates that the target stroke and the previous stroke do not belong to the same character, the handwriting is recognized and processed to obtain a text character corresponding to the handwriting.

7. The method according to claim 6, characterized in that The method further comprises: Obtaining the pen lift interval features of the user's historical strokes, the labels of the historical strokes, and the actual pen lift intervals between adjacent strokes in the historical strokes; the historical strokes include a set of strokes input by the user in handwriting; the pen lift interval feature of the i-th stroke in the historical strokes is used to indicate the pen lift interval between the i-th stroke and the i-1-th stroke; the label of the i-th stroke is used to indicate whether the i-th stroke and the i-1-th stroke belong to the same character; The pen lift interval features of the historical strokes, the labels of the historical strokes, and the actual pen lift intervals between adjacent strokes in the historical strokes are used to train a pen lift interval determination model corresponding to the user.

8. A handwriting input device, characterized in that: Applied to electronic equipment, the device comprises: A handwriting input instruction response module, used to respond to a handwriting input instruction and display a handwriting input interface, wherein the handwriting input interface includes a handwriting input area and a text input area; A handwriting acquisition module, used to acquire the handwriting input in real time in the handwriting input area, and determine the text character corresponding to the handwriting; A text character display module, used for synchronously displaying text characters corresponding to the handwriting in the text input area according to the input order of the handwriting; An editing instruction receiving module, used for receiving an editing instruction for a target handwriting inputted in the handwriting input area, wherein the editing instruction includes any one of a deletion instruction, a content addition instruction, a copy instruction, a paste instruction, a color change instruction, a move instruction, and a scaling instruction; An editing instruction response module, used for performing a corresponding editing operation on the target handwriting in response to the editing instruction; An editing operation execution module, used for executing a corresponding editing operation on a target text character corresponding to the target handwriting in the text input area; If the number of characters in the display interface of the handwriting input area is greater than or equal to a preset threshold, the handwriting input in the display interface is saved, and a blank display interface is created in the handwriting input area, and the blank display interface is used to display the handwriting newly input by the user; The input handwriting is saved in the form of picture and / or text.

9. The device according to claim 8, characterized in that The device also includes: An operation instruction receiving module, used for receiving an operation instruction for a target text character displayed in the text input area, wherein the operation instruction includes an editing instruction and / or a saving instruction; The operation instruction response module is used to perform corresponding text operations on the target text characters in response to the operation instruction.

10. The device according to claim 8, characterized in that The device also includes: A circle selection operation determination module, used for receiving a circle selection operation performed on the handwriting inputted in the handwriting input area; The target handwriting determination module is used to determine the handwriting within the circled selection range of the circle selection operation as the target handwriting.

11. The device according to claim 8, characterized in that: The handwriting input instruction response module includes: A template selection interface display submodule, for displaying a template selection interface in response to a handwriting input instruction, wherein the template selection interface includes a preset note template; A selection operation receiving submodule, used for receiving a selection operation for a target note template in the note templates; The handwriting input interface display submodule is used to display the handwriting input interface based on the target note template.

12. A device for handwriting input, characterized in that: The device includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for executing the handwriting input method as described in any one of claims 1 to 7.

13. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, causes a device to perform the handwriting input method according to any one of claims 1 to 7.