CN111949141B - Handwritten character input method and device, electronic equipment and storage medium - Google Patents

Handwritten character input method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111949141B
CN111949141B CN202010597437.3A CN202010597437A CN111949141B CN 111949141 B CN111949141 B CN 111949141B CN 202010597437 A CN202010597437 A CN 202010597437A CN 111949141 B CN111949141 B CN 111949141B
Authority
CN
China
Prior art keywords
text
library
information
track information
matching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010597437.3A
Other languages
Chinese (zh)
Other versions
CN111949141A (en
Inventor
左亚军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Volkswagen Mobvoi Beijing Information Technology Co Ltd
Original Assignee
Volkswagen Mobvoi Beijing Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Volkswagen Mobvoi Beijing Information Technology Co Ltd filed Critical Volkswagen Mobvoi Beijing Information Technology Co Ltd
Priority to CN202010597437.3A priority Critical patent/CN111949141B/en
Publication of CN111949141A publication Critical patent/CN111949141A/en
Application granted granted Critical
Publication of CN111949141B publication Critical patent/CN111949141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

One or more embodiments of the present disclosure provide a handwritten text input method, apparatus, electronic device, and storage medium; the method comprises the following steps: acquiring at least one track information continuously input by a user; determining a starting point position and an end point position of the first track information, and determining the track length of the track information according to the starting point position and the end point position; judging whether the track length is greater than a preset length threshold value; if yes, matching is carried out in a preset text library according to the at least one track information, and text information corresponding to the at least one track information is determined according to a matching result. The scheme of the disclosure can realize simple and efficient handwriting input and can also reduce potential safety hazards existing in the text input process.

Description

Handwritten character input method and device, electronic equipment and storage medium
Technical Field
One or more embodiments of the present disclosure relate to the field of information processing technologies, and in particular, to a handwritten text input method, apparatus, electronic device, and storage medium.
Background
With the continuous development of electronic device technology, various electronic devices have become one of the indispensable tools in people's daily lives. When a user needs to input instructions or input information to an electronic device, text input is often performed by handwriting input using an input method.
When inputting handwritten characters, a user needs to input instructions to select the position of the character input (such as a search box, an edit box and the like), call up a virtual keyboard and perform handwriting input in a region appointed by the virtual keyboard. The existing text input mode is complex in operation and low in efficiency; in some application scenes, the attention of a user is also influenced by a complicated operation process, and potential safety hazards exist.
Therefore, how to simplify the process of inputting handwritten characters, improve the efficiency of inputting handwritten characters, and reduce the potential safety hazards existing in the process of inputting characters is a technical problem to be solved urgently at present.
Disclosure of Invention
In view of this, one or more embodiments of the present disclosure are directed to a handwritten text input method, apparatus, electronic device, and storage medium.
In view of the above object, one or more embodiments of the present disclosure provide a handwritten text input method, including:
Acquiring at least one track information continuously input by a user;
Determining a starting point position and an end point position of the first track information, and determining the track length of the track information according to the starting point position and the end point position;
Judging whether the track length is greater than a preset length threshold value; if yes, matching is carried out in a preset text library according to the at least one track information, and text information corresponding to the at least one track information is determined according to a matching result.
In some optional embodiments, the preset text library includes: at least two of Chinese character library, letter library and symbol library;
the matching is performed in a preset text library according to the at least one track information, and text information corresponding to the at least one track information is determined according to a matching result, which specifically comprises the following steps:
Determining the number of the at least one track information;
setting a matching sequence for the at least two libraries according to the number of the track information;
Matching is carried out in the at least two libraries according to the matching sequence according to the at least one track information; when a matching result is obtained in any library, determining text information corresponding to the at least one track information according to the matching result.
In some optional embodiments, the preset text library includes: a Chinese character library, a letter library and a symbol library;
when the number of the track information is one, the matching order is: symbol library, letter library and Chinese character library;
when the number of the track information is two or three, the matching order is: a letter library, a symbol library and a Chinese character library;
When the number of the track information is greater than or equal to four, the matching sequence is: chinese character library, letter library and symbol library.
In some optional embodiments, the determining, according to the matching result, text information corresponding to the at least one track information specifically includes:
when more than one text information is determined according to the matching result, displaying all the text information to a user;
Acquiring voice information input by a user;
Performing word recognition on the voice information to obtain word selection information;
and matching the text selection information with all the text information, and determining the text information matched with the text selection information as the text information corresponding to the at least one track information.
In some alternative embodiments, the length threshold is: 2 x w+e or 2 x h+e; wherein W is the width of the keys of the default virtual keyboard, H is the height of the keys of the default virtual keyboard, and E is the distance between two adjacent keys of the default virtual keyboard.
In some alternative embodiments, the method further comprises:
And determining and executing the target event corresponding to the text information according to the preset corresponding relation.
In some alternative embodiments, the target event comprises: open applications and/or perform system functions.
Based on the same inventive concept, one or more embodiments of the present disclosure further provide a handwritten text input device, including:
The acquisition module is configured to acquire at least one piece of track information continuously input by a user;
A determining module configured to determine a start position and an end position of the first track information, and determine a track length of the track information according to the start position and the end position;
The matching module is configured to judge whether the track length is greater than a preset length threshold value; if yes, matching is carried out in a preset text library according to the at least one track information, and text information corresponding to the at least one track information is determined according to a matching result.
Based on the same inventive concept, one or more embodiments of the present specification also provide an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method as described in any one of the above when executing the program.
Based on the same inventive concept, one or more embodiments of the present specification also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform any of the methods described above.
As can be seen from the foregoing, in the handwritten text input method, apparatus, electronic device and storage medium provided in one or more embodiments of the present disclosure, when track information continuously input by a user is obtained, whether the user is performing handwriting input is determined by the track length of the first track information, and when it is determined that the user is performing handwriting input, matching is performed in a preset text library according to the obtained track information to determine text information, so as to implement a handwriting input process. The user can start the handwriting input process only by directly inputting track information, the operation process is simple and convenient, the efficiency is extremely high, the whole handwriting input process cannot influence the attention of the user excessively, and the safety in the handwriting input process can be improved.
Drawings
For a clearer description of one or more embodiments of the present description or of the solutions of the prior art, the drawings that are necessary for the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are only one or more embodiments of the present description, from which other drawings can be obtained, without inventive effort, for a person skilled in the art.
FIG. 1 is a flow diagram of a handwritten text input method in accordance with one or more embodiments of the present disclosure;
FIG. 2 is a schematic diagram of a default virtual keyboard in one or more embodiments of the present disclosure;
FIG. 3 is a flowchart illustrating steps for determining text information in one or more embodiments of the present disclosure;
FIG. 4 is a flowchart illustrating steps for selecting text information by voice input in one or more embodiments of the present disclosure;
FIG. 5 is a schematic diagram of a handwriting input device according to one or more embodiments of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to one or more embodiments of the present disclosure.
Detailed Description
For the purposes of promoting an understanding of the principles and advantages of the disclosure, reference will now be made to the embodiments illustrated in the drawings and specific language will be used to describe the same.
It is noted that unless otherwise defined, technical or scientific terms used in one or more embodiments of the present disclosure should be taken in a general sense as understood by one of ordinary skill in the art to which the present disclosure pertains. The use of the terms "first," "second," and the like in one or more embodiments of the present description does not denote any order, quantity, or importance, but rather the terms "first," "second," and the like are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
As described in the background art, the manner of handwriting text input in the prior art generally has the problems of complicated operation and low efficiency. Specifically, taking a case that a user inputs a text application scene in a text field as an example, the user needs to click the text field to call out a virtual keyboard; then, selecting handwriting incomes by clicking keys on the virtual keyboard to switch to a handwriting input mode; finally, handwriting input is performed in a specified area provided by the handwriting input mode. In addition, in some application scenarios, the cumbersome operation process also brings about potential safety hazards. For example, during driving, when a user operates a mobile phone or a vehicle-mounted device to perform handwriting input, the tedious input process can seriously affect the concentration of the user in the driving process, and driving accidents are very easy to cause.
In view of the above problems, one or more embodiments of the present disclosure provide a handwriting text input scheme, when track information continuously input by a user is obtained, whether the user is performing handwriting input is determined by a track length of first track information, and when it is determined that the user is performing handwriting input, matching is performed in a preset text library according to the obtained track information to determine text information, so as to implement a handwriting input process. The user can start the handwriting input process only by directly inputting track information, the operation process is simple and convenient, the efficiency is extremely high, the whole handwriting input process cannot influence the attention of the user excessively, and the safety in the handwriting input process can be improved.
The handwriting input scheme is further described below by means of specific examples.
Referring to fig. 1, one or more embodiments of the present description provide a handwritten text input method. The method may be performed by any apparatus, device, platform, cluster of devices having computing, processing capabilities.
Referring to fig. 1, the handwritten character input method includes the steps of:
step S101, obtaining at least one track information continuously input by a user;
step S102, determining a starting point position and an end point position of the first track information, and determining the track length of the track information according to the starting point position and the end point position;
step S103, judging whether the track length is larger than a preset length threshold value; if yes, matching is carried out in a preset text library according to the at least one track information, and text information corresponding to the at least one track information is determined according to a matching result.
In this embodiment, track information continuously input by a user is first acquired. Specifically, when the method of the present embodiment is applied to an electronic device having a touch function, the track information may be obtained by identifying a touch operation of a user. The number of track information is at least one; when there is more than one of the track information, the track information is continuously input by the user.
For the first track information input by the user, determining the track length of the track information. Specifically, the start position and the end position of the track information are determined first. The start position and the end position can be realized by coordinates. As an alternative implementation manner, the method of the present embodiment is applied to an electronic device having a rectangular display area, and a rectangular coordinate system is established based on the display area, with the lower left corner of the display area as the origin (0, 0) of coordinates. For the first track information input by the user, the starting point position and the end point position of the first track information are identified based on the established rectangular coordinate system, and the starting point position and the end point position are respectively: start position (x 1,y1) and end position (x 2,y2); then, the linear distance between the start point and the end point of the track information is calculated based on the start point position and the end point position, i.eAs the track length of the track information. In other embodiments, the track length may be determined in other ways based on the start position and the end position; for example, a difference between the abscissa of the start position and the end position, a difference between the ordinate of the start position and the end position, or the like is calculated.
After the track length of the first track information input by the user is obtained, a preset length threshold is obtained, the track length is compared with the length threshold, and whether the track length is larger than the preset length threshold is judged. In this embodiment, whether the track length of the first track information input by the user is sufficiently long is determined by the length threshold. When the first track information input by the user is long enough, the user is considered to start handwriting input, and the first track information is the first stroke of the text input by the user; when the first track information input by the user is not long enough, the user is not considered to be handwriting input, but only one track information is input.
For the length threshold, as an alternative implementation, it may be determined based on a system default virtual keyboard of the electronic device to which the method of the present embodiment is applied. Specifically, the default virtual keyboard is an operating system of the electronic device or a virtual key keyboard provided by a default input method application program and used for realizing input. Referring to fig. 2, an example of a default virtual keyboard is given, in which the square graphic objects are keys, and the keys arranged in an array form the default virtual keyboard. For the default virtual keyboard, the width of the key is W, the height of the key is H, and the interval between two adjacent keys is E. Correspondingly, the length threshold is set to 2×w+e or 2×h+e. In addition, in other embodiments, the length threshold may be set to other values, such as the average length of the first stroke of a large number of users making handwriting input, as obtained by big data statistics.
And comparing the track length determined based on the linear distance between the starting point position and the end point position of the first track information input by the user with the length threshold.
When the track length is greater than the length threshold, that is, the track length of the first track information input by the user is greater than twice the key length (or width) plus one key spacing on the default virtual keyboard, the user is likely to be handwriting inputting the first stroke, such as a horizontal stroke, a left-falling stroke and the like, at this time, the acquired track information continuously input by the user is further matched in a preset character library, and the character information corresponding to the track information can be obtained if the matching is successful by matching the track information with the pre-stored standard rule corresponding to the characters in the character library. Further, after the text information corresponding to the track information is obtained, corresponding subsequent processing is performed according to the text information, for example, the text information is displayed in an input box.
When the track length is not greater than the length threshold, if the first track information input by the user is a circular track, the linear distance between the starting point position and the end point position is smaller, so that the similar track information does not accord with the characteristics of the user when inputting characters, and the track information input by the user is not subjected to subsequent processing.
In this embodiment, the track information continuously input by the user corresponds to text input content of handwriting input by the user, so as to conform to habit and characteristics of text input by the user, and the text input by the user can be divided by time intervals between the track information continuously input. For example, the time interval is set to be 1 second, when the time interval between any two adjacent track information exceeds 1 second, a plurality of track information which is considered to be sequential are respectively corresponding to different characters which are input later, and correspondingly, a plurality of track information which is corresponding to the different characters are respectively matched in a character library, so that the character information which is respectively corresponding to the track information is obtained by matching. For the foregoing time interval, the specific numerical value can be flexibly set by comprehensively considering the software and hardware configuration of the electronic device.
It should be noted that, the track information may be obtained not only under the interface of the virtual keyboard provided by the system of the electronic device, but also under other interfaces. The other interfaces can be any interfaces which need to input characters but do not display virtual keyboards, wherein the interfaces have input boxes for users to input characters but do not display virtual keyboards, such as search interfaces, login interfaces and the like; the other interface may also be other interfaces in the system of the electronic device that allow user input, such as a system desktop, a welcome interface for an application, etc.
It should be noted that, the identification of the track information, the determination of the start position and the end position, and the correlation technique of matching the text information in the text library in the above embodiment are all the prior art, and the corresponding specific working manner and technical principle thereof are not described in detail in the present specification.
A specific application example of the handwritten character input method of the present embodiment is given below. The handwritten character input method of the embodiment is applied to the vehicle-mounted equipment and operates based on a vehicle-mounted system of the vehicle-mounted equipment. The user needs to input a destination in the navigation software in the driving process, and the user operates the vehicle central control screen to click and open the navigation software to enter an input destination interface. And the user directly starts handwriting input of track information corresponding to the characters on the central control screen under the input destination interface. When the track length of the first track information is judged to be greater than the length threshold value, the track information continuously input by the user is matched with the obtained text information in the text library, and the text information is displayed in an input box of the input destination in the interface. Therefore, in the whole handwriting input process, the user can complete the handwriting input process except the necessary operation of starting the navigation function, and the operation is very simple and convenient; and moreover, the simple operation does not have excessive concentration of users in driving, and potential safety hazards can be effectively reduced.
As an optional embodiment, in the handwriting text input method, the preset text library includes: chinese character library, letter library and symbol library. The Chinese character library, the letter library and the symbol library are respectively used for matching and outputting the characters of Chinese characters, letters and symbols. The letters corresponding to the letter library can be letters in any language, such as English, french and the like.
In this embodiment, referring to fig. 3, the step of matching in a preset text library to determine text information specifically includes:
step S301, determining the quantity of the at least one track information;
step S302, setting a matching sequence for a Chinese character library, a letter library and a symbol library according to the number;
step S303, matching is carried out in a Chinese character library, a letter library and a symbol library according to the matching sequence according to the at least one track information; when a matching result is obtained in any library, determining text information corresponding to the at least one track information according to the matching result.
In the handwriting input process, the condition of alternately inputting characters and symbols of different languages is often faced. In the existing handwriting input scheme, after the user inputs track information, the user needs to match in different text libraries, and the data processing speed is affected by the mode. In this embodiment, the matching is performed sequentially in the kanji library, the alphabetic library, and the symbol library according to the number of track information in accordance with different matching sequences, and after the matching is performed in any one of the libraries to obtain a matching result, the matching process is not performed on the subsequent libraries in the matching sequence.
Specifically, when the number of track information is one, the strokes of the text currently input by the surface user are fewer, and from the aspect of general text composition characteristics, the input text has a high probability of being a symbol, and then a possible letter. The corresponding matching order is: symbol library, letter library and Chinese character library. That is, when the number of the track information is one, the track information is used for matching in the symbol library, if the matching result is obtained, the corresponding text information is determined, and if the matching result is not obtained, the matching is further carried out in the letter library and the Chinese character library in sequence until the matching result is obtained.
When the number of track information is two or three, the input text is a letter with a high probability and a symbol with a high probability from the viewpoint of general text composition characteristics. The corresponding matching order is: letter library, symbol library, chinese character library. That is, when the number of track information is two or three, the track information is used to match in the alphabet, and the subsequent matching process is performed according to whether the matching result is obtained.
When the number of the track information is greater than or equal to four, the input characters have a high probability of Chinese characters and then letters from the aspect of general character composition. The corresponding matching order is: chinese character library, letter library and symbol library. That is, when the number of the track information is greater than or equal to four, the track information is used for matching in the Chinese character library, and the subsequent matching process is performed according to whether the matching result is obtained.
In this embodiment, the corresponding relation between the number of track information and the matching sequence of each text library is set according to the characteristics of the number of strokes forming the text, so that in most cases, text information corresponding to the track information can be obtained without matching each text library, thus effectively improving the data processing speed and further improving the efficiency of the handwritten text input method in this embodiment.
In addition, as an alternative embodiment, the preset text library may include only any two of a Chinese character library, a letter library and a symbol library. And correspondingly, according to the two selected libraries, correspondingly setting the matching sequence corresponding to the number of the track information. For example, the number of the cells to be processed,
If the two libraries are respectively a Chinese character library and a letter library, the two libraries can be correspondingly set as follows: when the number of track information is greater than three, the matching order is: a Chinese character library and a letter library; when the number of track information is less than or equal to three, the matching order is: a letter library and a Chinese character library.
If the two libraries are respectively a Chinese character library and a symbol library, the two libraries can be correspondingly set as follows: when the number of track information is more than two, the matching sequence is as follows: a Chinese character library and a symbol library; when the number of track information is less than or equal to two, the matching order is: symbol library and Chinese character library;
If the two libraries are a letter library and a symbol library, respectively, the two libraries can be set as follows: when the number of track information is one, the matching sequence is: a symbol library, a letter library; when the number of track information is greater than one, the matching order is: a letter library and a symbol library.
It should be noted that, the foregoing embodiments aim to improve the efficiency of handwriting text input on the basis of conforming to the characteristics of the number of strokes constituting the text by establishing a correspondence between the number of track information and the matching sequence of the text library, and the correspondence between the number of specific track information and the matching sequence of the text library in the foregoing embodiments is merely an example, and may be adjusted accordingly as required in the implementation process.
As an optional embodiment, in the handwriting text input method, when matching is performed in a preset text library to determine text information corresponding to the track information, more than one text information may be obtained by matching in the same text library, and the more than one text information needs to be determined through selection of a user. Specifically, the text information obtained by all matching can be displayed to the user, and prompt information is popped up for the user to select. The selection mode may be a mode that a user inputs a selection instruction through an input device (such as clicking a touch screen directly) or a mode that the user inputs through voice.
Referring to fig. 4, the step of selecting text information by voice input specifically includes:
step S401, when more than one text information is determined according to the matching result, displaying all the text information to a user;
Step S402, acquiring voice information input by a user;
step S403, performing character recognition on the voice information to obtain character selection information;
And step S404, matching the text selection information with all the text information, and determining the text information matched with the text selection information as the text information corresponding to the at least one track information.
In this embodiment, all the text information obtained according to the matching result is displayed to the user in a prompt box or voice mode, so that the user can know all the text information. The user selects in a voice mode according to the text input requirement, namely, inputs voice information. After the voice information input by the user is obtained, carrying out character recognition on the voice information to obtain character selection information; and then, the text information matched with the text selection information is used as text information corresponding to the track information input by the user.
As an example, the user intends to input the "month" word through four continuous trace information by the handwritten word input method of the present embodiment, but matches and determines two word information of "month" and "eye" in the kanji library due to the problem of trace deformation caused by handwriting. At this time, two text messages of month and eye are displayed to the user through the prompt box, and the user is prompted by voice to select. The user inputs the voice information of 'month', and the character selection information 'month' is obtained through character recognition. Further, the matching can finally obtain the result of the corresponding text information 'month' as the track information input by the user.
It should be noted that, in this embodiment, the technology of using the voice device as a text is related to the prior art, and the corresponding specific working manner and technical principle thereof are not described in detail in this specification.
As an optional embodiment, in the handwriting text input method, after determining text information corresponding to at least one track information, the method further includes the following steps: and determining and executing the target event corresponding to the text information according to the preset corresponding relation.
In this embodiment, text information obtained by the user through the handwriting text input method of this embodiment is further used to execute a predetermined target event. The corresponding relation corresponds the text information with the target event.
In this embodiment, the target event may be opening an application. For example, when the text information obtained by the user through the handwriting text input method of the embodiment is "WeChat", the WeChat is opened correspondingly. The text information corresponding to the name of the application program can be corresponding to the opening of the application program. When the user obtains text information with the content being the application program name through the handwriting text input method of the embodiment, the corresponding application program is correspondingly started.
In this embodiment, the target event may also be execution of a system function. For example, when the text information obtained by the user through the handwriting text input method of the embodiment is "restart", the restart operation is correspondingly executed. The text information corresponding to the name of the system function can be corresponding to the execution of the system function. When the user obtains the text information with the content being the system function name through the handwriting text input method of the embodiment, the corresponding system function is executed correspondingly.
The handwritten character input method of the embodiment enables a user to simply and rapidly realize the execution of the target event through the method of the embodiment, and further enriches the application range of the method of the embodiment.
It should be noted that the foregoing describes specific embodiments of the present invention. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Based on the same inventive concept, one or more embodiments of the present specification also provide a handwritten text input device. Referring to fig. 5, the handwritten character input device includes:
an acquisition module 501 configured to acquire at least one track information continuously input by a user;
A determining module 502 configured to determine a start position and an end position of the first track information, and determine a track length of the track information according to the start position and the end position;
A matching module 503 configured to determine whether the track length is greater than a preset length threshold; if yes, matching is carried out in a preset text library according to the at least one track information, and text information corresponding to the at least one track information is determined according to a matching result.
In an alternative embodiment, the preset text library includes: at least two of Chinese character library, letter library and symbol library; the matching module 503 is specifically configured to determine the number of the at least one track information; setting a matching sequence for the at least two libraries according to the number of the track information; matching is carried out in the at least two libraries according to the matching sequence according to the at least one track information; when a matching result is obtained in any library, determining text information corresponding to the at least one track information according to the matching result.
In an alternative embodiment, the preset text library includes: a Chinese character library, a letter library and a symbol library; when the number of the track information is one, the matching order is: symbol library, letter library and Chinese character library; when the number of the track information is two or three, the matching order is: a letter library, a symbol library and a Chinese character library; when the number of the track information is greater than or equal to four, the matching sequence is: chinese character library, letter library and symbol library.
In an alternative embodiment, the matching module 503 is specifically configured to display all the text information to the user when more than one text information is determined according to the matching result; acquiring voice information input by a user; performing word recognition on the voice information to obtain word selection information; and matching the text selection information with all the text information, and determining the text information matched with the text selection information as the text information corresponding to the at least one track information.
In an alternative embodiment, the length threshold is: 2 x w+e or 2 x h+e; wherein W is the width of the keys of the default virtual keyboard, H is the height of the keys of the default virtual keyboard, and E is the distance between two adjacent keys of the default virtual keyboard.
In an alternative embodiment, the handwritten text input device further includes: and the execution module is configured to determine and execute the target event corresponding to the text information according to the preset corresponding relation. Wherein the target event comprises: open applications and/or perform system functions.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, the functions of each module may be implemented in one or more pieces of software and/or hardware when implementing one or more embodiments of the present description.
The device of the foregoing embodiment is configured to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, one or more embodiments of the present disclosure further provide an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement the handwritten text input method as described in any of the embodiments above.
Fig. 6 shows a more specific hardware architecture of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), a microprocessor, an Application SPECIFIC INTEGRATED Circuit (ASIC), or one or more integrated circuits, etc. for executing related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage, dynamic storage, etc. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
Based on the same inventive concept, one or more embodiments of the present specification also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the handwritten text input method as described in any of the embodiments above.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the disclosure, including the claims, is limited to these examples; combinations of features of the above embodiments or in different embodiments are also possible within the spirit of the present disclosure, steps may be implemented in any order, and there are many other variations of the different aspects of one or more embodiments described above which are not provided in detail for the sake of brevity.
The present disclosure is intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Any omissions, modifications, equivalents, improvements, and the like, which are within the spirit and principles of the one or more embodiments of the disclosure, are therefore intended to be included within the scope of the disclosure.

Claims (9)

1. A handwritten text input method, comprising:
Acquiring at least one track information continuously input by a user;
Determining a starting point position and an end point position of the first track information, and determining the track length of the track information according to the starting point position and the end point position;
Judging whether the track length is greater than a preset length threshold value; if yes, matching is carried out in a preset text library according to the at least one track information, and text information corresponding to the at least one track information is determined according to a matching result;
wherein, the preset text library comprises: at least two of Chinese character library, letter library and symbol library;
the matching is performed in a preset text library according to the at least one track information, and text information corresponding to the at least one track information is determined according to a matching result, which specifically comprises the following steps:
Determining the number of the at least one track information; setting a matching sequence for the at least two libraries according to the number of the track information;
Matching is carried out in the at least two libraries according to the matching sequence according to the at least one track information;
When a matching result is obtained in any library, determining text information corresponding to the at least one track information according to the matching result.
2. The handwritten text input method of claim 1, wherein said pre-set text library comprises: a Chinese character library, a letter library and a symbol library;
when the number of the track information is one, the matching order is: symbol library, letter library and Chinese character library;
when the number of the track information is two or three, the matching order is: a letter library, a symbol library and a Chinese character library;
When the number of the track information is greater than or equal to four, the matching sequence is: chinese character library, letter library and symbol library.
3. The handwritten text input method according to claim 1, wherein the determining text information corresponding to the at least one track information according to the matching result specifically includes:
when more than one text information is determined according to the matching result, displaying all the text information to a user;
Acquiring voice information input by a user;
Performing word recognition on the voice information to obtain word selection information;
and matching the text selection information with all the text information, and determining the text information matched with the text selection information as the text information corresponding to the at least one track information.
4. The handwritten text input method of claim 1, wherein said length threshold is: 2 x w+e or 2 x h+e; wherein W is the width of the keys of the default virtual keyboard, H is the height of the keys of the default virtual keyboard, and E is the distance between two adjacent keys of the default virtual keyboard.
5. The handwritten text input method of claim 1, further comprising:
And determining and executing the target event corresponding to the text information according to the preset corresponding relation.
6. The handwritten text input method of claim 5, wherein said target event comprises: open applications and/or perform system functions.
7. A handwritten character input device, comprising:
The acquisition module is configured to acquire at least one piece of track information continuously input by a user;
A determining module configured to determine a start position and an end position of the first track information, and determine a track length of the track information according to the start position and the end position;
the matching module is configured to judge whether the track length is greater than a preset length threshold value; if yes, matching is carried out in a preset text library according to the at least one track information, and text information corresponding to the at least one track information is determined according to a matching result;
wherein, the preset text library comprises: at least two of Chinese character library, letter library and symbol library;
The matching module is specifically configured to determine the number of the at least one track information; setting a matching sequence for the at least two libraries according to the number of the track information; matching is carried out in the at least two libraries according to the matching sequence according to the at least one track information; when a matching result is obtained in any library, determining text information corresponding to the at least one track information according to the matching result.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 6 when the program is executed by the processor.
9. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 6.
CN202010597437.3A 2020-06-28 2020-06-28 Handwritten character input method and device, electronic equipment and storage medium Active CN111949141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010597437.3A CN111949141B (en) 2020-06-28 2020-06-28 Handwritten character input method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010597437.3A CN111949141B (en) 2020-06-28 2020-06-28 Handwritten character input method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111949141A CN111949141A (en) 2020-11-17
CN111949141B true CN111949141B (en) 2024-04-26

Family

ID=73337231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010597437.3A Active CN111949141B (en) 2020-06-28 2020-06-28 Handwritten character input method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111949141B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991720A (en) * 2005-12-28 2007-07-04 中兴通讯股份有限公司 Device for realizing automatic hand-write input
CN101118472A (en) * 2006-07-31 2008-02-06 联想移动通信科技有限公司 Device and method supporting hand-written input and keyboard input
CN102184074A (en) * 2011-04-21 2011-09-14 安徽科大讯飞信息科技股份有限公司 Keyboard, automatic hand input switching method and device and mobile terminal
CN102902470A (en) * 2011-07-29 2013-01-30 中国移动通信集团公司 Input interface switching method and input interface switching device
CN102981693A (en) * 2011-09-07 2013-03-20 汉王科技股份有限公司 Multi-language hand writing input method and device
CN103246452A (en) * 2012-02-01 2013-08-14 联想(北京)有限公司 Method for switching character types in handwriting input and electronic device
CN105930141A (en) * 2016-04-01 2016-09-07 乐视控股(北京)有限公司 Input mode setting method and apparatus
CN108572776A (en) * 2018-05-02 2018-09-25 广州视源电子科技股份有限公司 Rendering processing method, device and equipment based on special characters and storage medium
CN108733304A (en) * 2018-06-15 2018-11-02 蒋渊 A kind of automatic identification and processing hand-written character method, apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010231480A (en) * 2009-03-27 2010-10-14 Toshiba Corp Handwriting processing apparatus, program, and method
DE102012020610A1 (en) * 2012-10-19 2014-04-24 Audi Ag Car with a handwriting recognition system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991720A (en) * 2005-12-28 2007-07-04 中兴通讯股份有限公司 Device for realizing automatic hand-write input
CN101118472A (en) * 2006-07-31 2008-02-06 联想移动通信科技有限公司 Device and method supporting hand-written input and keyboard input
CN102184074A (en) * 2011-04-21 2011-09-14 安徽科大讯飞信息科技股份有限公司 Keyboard, automatic hand input switching method and device and mobile terminal
CN102902470A (en) * 2011-07-29 2013-01-30 中国移动通信集团公司 Input interface switching method and input interface switching device
CN102981693A (en) * 2011-09-07 2013-03-20 汉王科技股份有限公司 Multi-language hand writing input method and device
CN103246452A (en) * 2012-02-01 2013-08-14 联想(北京)有限公司 Method for switching character types in handwriting input and electronic device
CN105930141A (en) * 2016-04-01 2016-09-07 乐视控股(北京)有限公司 Input mode setting method and apparatus
CN108572776A (en) * 2018-05-02 2018-09-25 广州视源电子科技股份有限公司 Rendering processing method, device and equipment based on special characters and storage medium
CN108733304A (en) * 2018-06-15 2018-11-02 蒋渊 A kind of automatic identification and processing hand-written character method, apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Vision-Based Mid-Air Unistroke Character Input Using Polar Signatures;Lalit Kane et al.;IEEE Transactions on Human-Machine Systems;第47卷(第6期);1077-1088 *
手指书写:一种虚拟文字识别人机交互新方法;金连文;徐睿;杨端端;镇立新;黄建成;;电子学报(03);396-401 *

Also Published As

Publication number Publication date
CN111949141A (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN106484266B (en) Text processing method and device
CN106325688B (en) Text processing method and device
US8922489B2 (en) Text input using key and gesture information
US8619045B2 (en) Calculator and computer-readable medium
US10325018B2 (en) Techniques for scheduling language models and character recognition models for handwriting inputs
US20160154997A1 (en) Handwriting input apparatus and control method thereof
KR20130127349A (en) System and control method for character make-up
CN108256523B (en) Identification method and device based on mobile terminal and computer readable storage medium
US20200242825A1 (en) Electronic device and method for correcting handwriting by same
JPH08305821A (en) Method and device for data processing
CN115357177A (en) Device control method, device, storage medium and electronic device
CN116324684A (en) Electronic device and method for operating a numeric keypad of an electronic device
CN112764606A (en) Identification display method and device and electronic equipment
CN113220125A (en) Finger interaction method and device, electronic equipment and computer storage medium
CN111949141B (en) Handwritten character input method and device, electronic equipment and storage medium
KR101373654B1 (en) Character input terminal by recognization of divided drag region, server for downloading application program
CN105404624A (en) Chinese character recognition method, device and terminal
CN116311526A (en) Image area determining method and device, electronic equipment and storage medium
WO2020124442A1 (en) Pushing method and related product
CN115437548A (en) Display method and device of virtual keyboard, electronic equipment and storage medium
JP6655331B2 (en) Electronic equipment and methods
CN110597593B (en) User-guided task processing method and device, computer equipment and storage medium
US11244138B2 (en) Hologram-based character recognition method and apparatus
CN111090382B (en) Character content input method and terminal equipment
US20150347004A1 (en) Indic language keyboard interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant