CN112926419B - Character judgment result processing method and device and electronic equipment - Google Patents

Character judgment result processing method and device and electronic equipment Download PDF

Info

Publication number
CN112926419B
CN112926419B CN202110172455.1A CN202110172455A CN112926419B CN 112926419 B CN112926419 B CN 112926419B CN 202110172455 A CN202110172455 A CN 202110172455A CN 112926419 B CN112926419 B CN 112926419B
Authority
CN
China
Prior art keywords
ith character
character
handwriting
ith
dictation
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
CN202110172455.1A
Other languages
Chinese (zh)
Other versions
CN112926419A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110172455.1A priority Critical patent/CN112926419B/en
Publication of CN112926419A publication Critical patent/CN112926419A/en
Application granted granted Critical
Publication of CN112926419B publication Critical patent/CN112926419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/32Digital ink
    • G06V30/36Matching; Classification
    • G06V30/387Matching; Classification using human interaction, e.g. selection of the best displayed recognition candidate
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/32Digital ink
    • G06V30/333Preprocessing; Feature extraction
    • G06V30/347Sampling; Contour coding; Stroke extraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/28Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet
    • G06V30/287Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet of Kanji, Hiragana or Katakana characters

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a character judgment result processing method, a device, electronic equipment, a storage medium and a computer program product, and relates to the technical field of artificial intelligence, in particular to the technical field of computer vision. The specific implementation scheme is as follows: responding to the operation of displaying the results of N characters of the dictation, and displaying the dictation judgment result prompt information respectively corresponding to the N characters; wherein N is an integer greater than or equal to 1; responding to the operation of displaying the ith character in the N characters, and acquiring the input handwriting drawing information, dictation judgment result and correct handwriting drawing information of the ith character; wherein i is an integer of 1 or more and N or less; and displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation judgment result of the ith character.

Description

Character judgment result processing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of artificial intelligence, and in particular, to the field of computer vision.
Background
In the related technology, the technology of single Chinese character teaching can play the writing animation effect and practice test of correct stroke sequence according to the characteristics of the Chinese characters according to the stroke sequence when writing, and can also support the functions of Chinese character rendering, animation, circulation animation, phrase animation, test and the like. However, how to provide the judgment condition of the dictated Chinese character more intuitively and accurately under the dictation scene of Chinese character teaching, and correct the wrong Chinese character accurately and efficiently becomes the problem to be solved.
Disclosure of Invention
The present disclosure provides a character determination result processing method, apparatus, electronic device, storage medium, and computer program product.
According to an aspect of the present disclosure, there is provided a character determination result processing method including:
responding to the operation of displaying the results of N characters of the dictation, and displaying the dictation judgment result prompt information respectively corresponding to the N characters; wherein N is an integer greater than or equal to 1;
responding to the operation of displaying the ith character in the N characters, and acquiring the input handwriting drawing information, dictation judgment result and correct handwriting drawing information of the ith character; wherein i is an integer of 1 or more and N or less;
and displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation judgment result of the ith character.
According to another aspect of the present disclosure, there is provided a character determination result processing apparatus including:
the first display processing module is used for responding to the operation of displaying the results of N characters of the dictation, and displaying the dictation judgment result prompt information respectively corresponding to the N characters; wherein N is an integer greater than or equal to 1;
The information acquisition module is used for responding to the operation of displaying the ith character in the N characters and acquiring the input handwriting drawing information, the dictation judgment result and the correct handwriting drawing information of the ith character; wherein i is an integer of 1 or more and N or less;
and the second display processing module is used for displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation judgment result of the ith character.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods provided by any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method provided by any of the embodiments of the present disclosure.
According to the technical scheme, under the condition that the dictation of N characters is completed, the dictation result is displayed, the input handwriting drawing information, the correct handwriting drawing information and the dictation judging result of any one character can be displayed, the comparison condition of the input handwriting and the correct handwriting can be displayed more intuitively and accurately, and therefore writing errors can be corrected efficiently.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow chart of a method for processing character determination results according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a results presentation interface provided by one embodiment of the present disclosure;
FIG. 3 is a schematic illustration of a comparative interface provided by another embodiment of the present disclosure;
FIG. 4 is another comparative interface provided by another embodiment of the present disclosure;
FIG. 5 is a flow diagram of generating handwriting drawing information provided by one embodiment of the present disclosure;
FIG. 6 is a schematic diagram of an interface displaying handwriting drawing information provided by an embodiment of the present disclosure;
FIG. 7 is a flow chart of determining dictation results of characters provided by an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a character determination result processing apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of a composition of another character determination result processing apparatus according to an embodiment of the present disclosure;
Fig. 10 is a block diagram of an electronic device for implementing a character determination result processing method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
A schematic diagram of an input handwriting determination method is provided in one embodiment of the present disclosure. As shown in fig. 1, the method includes:
s101: responding to the operation of displaying the results of N characters of the dictation, and displaying the dictation judgment result prompt information respectively corresponding to the N characters; wherein N is an integer greater than or equal to 1;
s102: responding to the operation of displaying the ith character in the N characters, and acquiring the input handwriting drawing information, dictation judgment result and correct handwriting drawing information of the ith character; wherein i is an integer of 1 or more and N or less;
S103: and displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation judgment result of the ith character.
The present embodiment can be applied to a terminal device.
Here, each of the N characters may be any one of a kanji character, a foreign language letter, a foreign language word, a number, and the like. Preferably, each character may be a kanji character.
The N characters may be preset N characters of the dictation. For example, the parent may pre-select N characters as the characters (e.g., kanji) of the current dictation; or, the character may be N characters selected according to a range set by the user (such as a new character of a first class of a grade).
The ith character can be any one of N characters written at this time.
The operation of displaying the results of the N characters of the dictation can be that the user clicks a submit button through the current interactive interface. Here, the submitting button may be a virtual button displayed in the current interactive interface, and the displaying area of the submitting button may display corresponding prompt information, for example, may include prompt information such as "submit", "finish this dictation", which is not exhaustive in this embodiment.
The displaying the dictation judgment result prompt information corresponding to the N characters respectively may include: acquiring dictation judgment results corresponding to the N characters respectively, and generating prompt information of the dictation judgment results based on the dictation judgment results; and displaying the correct handwriting drawing information of the N characters and the corresponding dictation judgment result prompt information respectively on a result display interface.
The dictation determination result prompt information may specifically be a dictation determination result prompt icon or may also be a dictation determination result prompt character. The prompting characters can be as follows: correct and incorrect; or the hinting text can be other content, which is not intended to be exhaustive.
The dictation determination result prompt information of the N characters may be determined based on the dictation determination results of the N characters. Taking the dictation judgment result prompt information as a prompt icon for example to describe, and assuming that the dictation judgment result of the j-th character in the N characters is wrong, the dictation judgment result prompt information can be a preset error icon; and assuming that the dictation judgment result of the j-th character in the N characters is correct, the dictation judgment result prompt information can be a preset correct icon. The error icon and the correct icon are different, and the patterns of the error icon and the correct icon can be set according to actual conditions.
As shown in fig. 2, correct handwriting drawing information of 6 chinese characters and dictation determination result prompt information of each chinese character are shown, the dictation determination result prompt information in fig. 2 is a prompt icon, for example, the dictation determination result of "me" of a chinese character is correct, and the corresponding dictation determination result prompt information 21 is an icon of opposite-to-hook style.
If the user wants to view any one of the N characters contained in the result display interface, the user can click any one of the N characters, where any one of the N characters is called an ith character to perform subsequent description.
The operation of displaying the ith character in the N characters may be a click operation for the ith character in the N characters in the result display interface. The clicking operation may be a mouse click or a finger touch click, etc.
The input handwriting drawing information of the ith character may be drawn based on a track set of the ith character, and the time for drawing the input handwriting drawing information of the ith character may be in a case where the ith character is in a completed state. Specifically, when the input state of the i+1th character is switched after the input of all the handwriting of the i character is completed, the input handwriting drawing information of the i character is drawn. The dictation determination result of the i-th character may be determined when switching to the input state of the i+1th character after the input of all handwriting of the i-th character is completed.
The correct handwriting drawing information of the ith character may be obtained in advance, for example, when determining N characters of the dictation, obtaining correct handwriting drawing information corresponding to each of the N characters from a plurality of stored candidate characters and correct handwriting drawing information corresponding to each candidate character; or, when determining the N characters written this time, acquiring a track set of correct handwriting corresponding to each of the N characters, and generating correct handwriting drawing information corresponding to each of the characters based on the track set of correct handwriting.
The displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation determination result of the ith character may be: and displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation judging result of the ith character on a comparison interface of the ith character.
The comparison interface of the ith character displays the input handwriting drawing information, the correct handwriting drawing information and the dictation judgment result of the ith character, and the method specifically comprises the following steps of
Displaying the information to be displayed of the input handwriting of the ith character in a first area of a comparison interface of the ith character, displaying the information to be displayed of the correct handwriting of the ith character in a second area of the comparison interface of the ith character, and displaying the dictation result information corresponding to the ith character in a third area of the comparison interface of the ith character.
The first area and the second area may have the same size, and the first area, the second area, and the third area do not overlap with each other.
Here, the dictation result information may include that the i-th character is written correctly or written incorrectly; if the ith character is wrongly written, the dictation result information can further comprise an error reason.
For example, in connection with fig. 3, when the ith character is correct, information to be displayed on the input handwriting of the ith character is displayed in a first area 31 of the comparison interface of the ith character, information to be displayed on the correct handwriting of the ith character is displayed in a second area 32 of the comparison interface of the ith character, and dictation result information corresponding to the ith character is displayed in a third area 33 of the comparison interface of the ith character, which indicates that the writing of the ith character is correct.
In the case that the dictation result of the ith character is an error, the information to be displayed on the input handwriting of the ith character is displayed in the first area 41 of the comparison interface of the ith character, the information to be displayed on the correct handwriting of the ith character is displayed in the second area 42 of the comparison interface of the ith character, and the dictation result information corresponding to the ith character is displayed in the third area 43 of the comparison interface of the ith character, which characterizes the writing error of the ith character and the error causes are stroke number errors.
Therefore, by adopting the scheme, the dictation judgment result prompt information of the N characters can be displayed under the condition that the result of displaying the N characters of the current dictation is determined; when the ith character in the N characters needs to be checked, the input handwriting drawing information, the correct handwriting drawing information and the dictation judging result of the ith character can be displayed. Therefore, when the dictation of N characters is completed, the result of the dictation is displayed, and the comparison condition of the input handwriting and the correct handwriting can be displayed more intuitively and accurately by displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation judgment result of any one character, so that the writing error can be corrected efficiently.
The generating manner of the input handwriting drawing information of the ith character may include:
and generating the input handwriting drawing information of the ith character based on drawing line related parameters and a track set of the ith character under the condition that the ith character in the N characters is in a completed state.
Here, in the case where the ith character is in the completed state, the track information of all input handwriting corresponding to the ith character may be sequentially stored in the track set of the ith character.
Wherein the track information of each of the track information of the entire input handwriting may include: inputting a plurality of coordinate information of handwriting; wherein the plurality of coordinate information of the input handwriting at least comprises: the initial coordinate information of the input handwriting, the end coordinate information of the input handwriting, the turning point coordinate information of the input handwriting and the like.
The generating of the input handwriting information to be displayed of the ith character based on the drawing line related parameters and the track set of the ith character can be realized based on a canvas technology.
Wherein the drawn line related parameters may include at least one of: the end point pattern of the line, the end intersection pattern of the line, the width of each line, the color of the pen strokes, the gradient, or the pattern.
The drawing line related parameters may be reset each time as needed, or may be default, or may be preset.
The generating the information to be displayed of the input handwriting of the ith character based on the drawing line related parameters and the track set of the ith character, which is described with reference to fig. 5, may include:
s501: acquiring a track set of the ith character;
s502: setting related parameters of the drawn lines; for example, an end point pattern of a line, a width of each line, a color of a pen touch, a gradation, or a pattern may be sequentially set.
Canvas, i.e., an area where a blank is created, may also be created before S502.
S503: extracting current track information from the track set of the ith character; the current track information can be track information corresponding to any input handwriting in the track set of the ith character;
s504: drawing the current track information based on the drawing line related parameters to obtain drawing information of the current track information; the specific steps can be as follows: drawing the current track information on canvas based on the drawing line related parameters and the position information (or coordinate information) contained in the current track information;
S505: judging whether the current track information is the last track information in the track set of the ith character, if so, executing S506; otherwise, S503 is executed; that is, it is determined whether there is any non-drawn track information in the track set of the ith character.
S506: and obtaining the input handwriting drawing information of the ith character.
By adopting the scheme, the input handwriting drawing information of the ith character can be obtained based on the track set of the ith character and the drawing line related parameters under the condition that the ith character is completed. Therefore, handwriting input by a user can be reserved, and further, when the input handwriting of the ith character needs to be displayed, the input handwriting drawing information is called to accurately display, so that the input handwriting of any Chinese character written at the time can be traced back, and further, the subsequent error correction learning is more efficient and accurate.
Before executing S101, dictation determination results corresponding to the N characters of the current dictation may be determined. The processing for determining the dictation determination result of each of the N characters may be determined in real time when each character is in a completed state. The following description of determining the dictation judgment result by taking any one of the N characters as an ith character as an example may include:
Updating the current writing state of the ith character based on the track information of the current input handwriting of the ith character and the track information of the correct handwriting of the ith character under the condition that the ith character in the N characters is in an input state;
and determining a dictation judgment result of the ith character based on the current writing state of the ith character under the condition that the ith character is in a finished state.
It should be noted that, in the dictation process of the N characters, the state of each of the N characters, such as the i-th character, may include: inputting a state and a completion state.
The manner in which the ith character is in the input state may include:
if the user selects to start dictation under the condition that the i character is the 1 st character entering the dictation function, controlling to enter the input state of the 1 st character;
or, if the i-th character is not the 1 st character after entering the dictation function, if the i-1 st character is input, the i-th character is switched to be dictated based on the operation of the user, and then the input state of the i-th character is controlled.
The manner in which the ith character is in the completed state may include: and controlling the ith character to be in a finished state in response to clicking an operation of entering the next character.
The track information of the current input handwriting of the ith character is obtained, which specifically may be: and acquiring track information of the current input handwriting of the ith character in the target area range.
Here, the target area range may refer to a preset area range of an input character; the target area range may be a preset size in a touch display area of the terminal device and an area range at a preset position.
The track information of the current input handwriting may include: a plurality of coordinate information of the current input handwriting; wherein the plurality of coordinate information may include at least: the method comprises the steps of starting point coordinate information of the current input handwriting, end point coordinate information of the current input handwriting and coordinate information of at least one middle point and/or turning point of the current input handwriting.
The correct handwriting information of the ith character can be obtained in advance, that is, when the N characters of the dictation are determined, the correct handwriting information corresponding to each of the N characters can be determined. Wherein, the correct handwriting information of the ith character can comprise: at least one coordinate information of a correct trajectory of the target area range of each writing; in addition, the order between all correct scripts of the ith character may be included.
It should be understood that, in the case of being in the input state of the ith character, only the track information of all input scripts of the ith character is displayed in the target area range, and the correct script information of the ith character is not displayed. That is, the presentation attribute of the correct handwriting information of the ith character may be set to be hidden.
By adopting the scheme, the handwriting judgment result of the current handwriting can be determined in real time under the condition that each character is in the input state, the writing state of the character is updated based on the current handwriting judgment result, and then the judgment result of the character is determined based on the writing state of the character under the condition that the input of the character is completed; therefore, the judgment result of the currently input character can be determined in real time when one character is input, and the processing efficiency is improved.
The updating the current writing state of the ith character based on the track information of the current input handwriting of the ith character and the track information of the correct handwriting of the ith character comprises the following steps:
determining a handwriting judgment result of the current input handwriting based on the track information of the current input handwriting of the ith character and the track information of the correct handwriting of the ith character;
And updating the current writing state of the ith character based on the handwriting judging result.
The determining, based on the track information of the current input handwriting of the ith character and the correct handwriting information of the ith character, a handwriting judgment result of the current input handwriting may be:
determining that the handwriting judgment result of the current input handwriting is correct under the condition that the track information of the current input handwriting of the ith character is matched with the correct track position of the correct handwriting at the corresponding position in the correct handwriting information of the ith character;
and under the condition that the track information of the current input handwriting of the ith character is not matched with the correct track position of the correct handwriting at the corresponding position in the correct handwriting information of the ith character, determining that the handwriting judgment result of the current input handwriting is wrong.
Here, the judging manner of whether the track information of the current input handwriting of the ith character is matched with the correct track position of the correct handwriting at the corresponding position in the correct handwriting information of the ith character may be: determining that the track information of the current input handwriting of the ith character is matched with the correct track position at the corresponding position in the correct handwriting information of the ith character if the distance difference between the track information of the current input handwriting of the ith character and the correct track position at the corresponding position in the correct handwriting information of the ith character is smaller than a preset distance threshold value; otherwise, the track information of the current input handwriting of the ith character is not matched with the correct track position of the correct handwriting at the corresponding position in the correct handwriting information of the ith character.
The preset distance threshold value may be set according to practical situations, and the unit may be the number of pixels, which is not exhaustive here.
The current writing state of the i-th character may include: any one of writing, initializing, error, correct.
By adopting the processing, the handwriting judgment result of the current input handwriting can be determined in real time according to the track information of the current input handwriting and the track information of the correct handwriting, and the current writing state of the ith character is determined based on the handwriting judgment result. Therefore, the current writing state of the ith character can be updated in real time along with the current handwriting input condition, so that the dictation judgment result of the ith character can be more efficiently and accurately determined when the ith character is in a finished state.
The step of updating the current writing state of the ith character based on the handwriting judgment result comprises at least one of the following steps:
if the handwriting judgment result is correct, if the last updated writing state of the ith character is in writing and the current input handwriting is not the ending handwriting of the ith character, updating the current writing state of the ith character to be in writing;
If the handwriting judgment result is correct, if the last updated writing state of the ith character is initialized and the current input handwriting is not the ending handwriting of the ith character, updating the current writing state of the ith character into writing;
if the handwriting judgment result is correct, if the last updated writing state of the ith character is initialized and the current input handwriting is the ending handwriting of the ith character, updating the current writing state of the ith character to be correct;
if the handwriting judgment result is correct, if the last updated writing state of the ith character is in writing and the current input handwriting is the ending handwriting of the ith character, updating the current writing state of the ith character to be correct;
if the handwriting judgment result is correct, if the last updated writing state of the ith character is wrong, updating the current writing state of the ith character to be wrong;
and under the condition that the handwriting judgment result is wrong, updating the current writing state of the ith character to be wrong.
Note that the initial writing state of the i-th character may be set to initialization.
The last updated writing state of the ith character may be the last recorded writing state corresponding to the ith character.
Whether the current input handwriting is the ending handwriting of the ith character or not can be related according to the preset correct stroke number and/or the coordinate position of the correct track corresponding to the preset final handwriting. For example, assuming that the i-th character is a kanji character, the correct number of strokes is 4, if the current input handwriting is the 4 th stroke, the current input handwriting may be used as the ending handwriting.
That is, if the handwriting judgment result is correct, but the last updated writing state of the i-th character is erroneous, the current writing state of the i-th character must be erroneous. And if the handwriting judgment result is wrong, determining that the current writing state of the ith character is wrong no matter what the updated writing state is. In other cases, it is further necessary to determine whether the current handwriting is an end handwriting in combination with the last updated writing state.
The writing state updated last time may be the state of the initial setting of the ith character, that is, initialization.
Thus, the handwriting judgment result of the current handwriting can be determined in real time under the condition that each character is in the input state, the writing state of the character is updated based on the current handwriting judgment result, and then the judgment result of the character is determined based on the writing state of the character under the condition that the input of the character is completed; therefore, the judgment result of the currently input character can be determined in real time when one character is input, the problem that the prior art does not support the scene of character silently writing is solved, and the processing efficiency is ensured.
Said determining, based on said current writing state of said i-th character, a dictation decision result of said i-th character, comprising at least one of:
if the current writing state of the ith character is correct, determining that the dictation judgment result of the ith character is correct;
if the current writing state of the ith character is in writing, determining that the dictation judgment result of the ith character is wrong;
if the current writing state of the ith character is wrong, determining that the dictation judgment result of the ith character is wrong;
And if the current writing state of the ith character is initialized, determining that the dictation judgment result of the ith character is wrong.
The determining manner that the ith character is in the completion state may include: under the condition that the operation of clicking the next word by a user is detected, determining that the ith character is input; or determining that the ith character is input completely when the operation of completing input by clicking by the user is detected.
For example, in connection with fig. 6, if it is detected that the user clicks the key 61 therein (i.e., the virtual key of "next word" shown in fig. 6), it may be determined that the current character is completely input.
The foregoing process of determining the writing state of the current input handwriting of the ith character and determining the dictation determination result will be specifically described with reference to fig. 7:
s701: setting an initial writing state of the ith character as an initialized state;
s702: detecting whether track information of the current input handwriting is received or not; if so, then S703 is performed; otherwise, S709 is performed;
s703: judging whether the handwriting judgment result of the current input handwriting is correct or not based on the track information of the current input handwriting of the ith character and the correct handwriting information of the ith character; if so, executing S704; otherwise, S708 is performed;
S704: judging whether the last updated writing state of the ith character is in error, initialization or writing, if so, executing S705; if yes, executing S708;
s705: judging whether the track information of the current input handwriting is the ending handwriting of the ith character, if so, executing S706; otherwise, S707 is performed;
s706: updating the current writing state of the ith character to be correct, and adding the track information of the current input handwriting into a track set of the ith character;
s707: updating the current writing state of the ith character as writing, and adding the track information of the current input handwriting into a track set of the ith character;
s708, updating the current writing state of the ith character to be error, adding the track information of the current input handwriting into the track set of the ith character, and recording the number of error strokes;
after the completion of S706, S707, and S708, S709 is executed.
S709: judging whether the ith character is in a finished state, if so, executing S710; otherwise, S702 is performed;
s710: judging whether the current writing state of the ith character is error, initializing or writing, if so, determining that the dictation judgment result of the ith character is error; otherwise, determining that the dictation judgment result of the ith character is correct.
By adopting the scheme, the writing state of the ith character can be judged and updated in real time, and the corresponding dictation judgment result can be determined based on the writing state under the condition that the input of the ith character is determined to be completed. Therefore, each input handwriting can be judged in real time, and the judgment result of whether the current character is correct or not can be rapidly determined according to the writing state when the character is finally completed, so that the judgment efficiency and accuracy are improved.
The embodiment of the disclosure also provides a character determination result processing device, as shown in fig. 8, including:
a first display processing module 801, configured to respond to an operation for displaying results of N characters of the current dictation, and display dictation judgment result prompt information corresponding to the N characters respectively; wherein N is an integer greater than or equal to 1;
an information obtaining module 802, configured to obtain input handwriting drawing information, dictation determination result, and correct handwriting drawing information of an ith character in the N characters in response to an operation of displaying the ith character; wherein i is an integer of 1 or more and N or less;
a second display processing module 803, configured to display the input handwriting drawing information, the correct handwriting drawing information, and the dictation determination result of the ith character.
As shown in fig. 9, the apparatus further includes:
a drawing module 804, configured to generate, when the ith character of the N characters is in a completed state, the input handwriting drawing information of the ith character based on drawing line related parameters and a track set of the ith character.
Further comprises:
a writing state updating module 805, configured to update, when the ith character of the N characters is in an input state, a current writing state of the ith character based on track information of a current input handwriting of the ith character and track information of a correct handwriting of the ith character;
a determining module 806, configured to determine, when the ith character is in a completed state, a dictation determination result of the ith character based on the current writing state of the ith character.
The writing state updating module 805 is configured to determine a handwriting judgment result of the current input handwriting based on the track information of the current input handwriting of the i-th character and the track information of the correct handwriting of the i-th character; and updating the current writing state of the ith character based on the handwriting judging result.
The writing status updating module 805 is configured to perform at least one of the following:
if the handwriting judgment result is correct, if the last updated writing state of the ith character is in writing and the current input handwriting is not the ending handwriting of the ith character, updating the current writing state of the ith character to be in writing;
if the handwriting judgment result is correct, if the last updated writing state of the ith character is initialized and the current input handwriting is not the ending handwriting of the ith character, updating the current writing state of the ith character into writing;
if the handwriting judgment result is correct, if the last updated writing state of the ith character is initialized and the current input handwriting is the ending handwriting of the ith character, updating the current writing state of the ith character to be correct;
if the handwriting judgment result is correct, if the last updated writing state of the ith character is in writing and the current input handwriting is the ending handwriting of the ith character, updating the current writing state of the ith character to be correct;
If the handwriting judgment result is correct, if the last updated writing state of the ith character is wrong, updating the current writing state of the ith character to be wrong;
and under the condition that the handwriting judgment result is wrong, updating the current writing state of the ith character to be wrong.
The determining module 806 is configured to perform at least one of:
if the current writing state of the ith character is correct, determining that the dictation judgment result of the ith character is correct;
if the current writing state of the ith character is in writing, determining that the dictation judgment result of the ith character is wrong;
if the current writing state of the ith character is wrong, determining that the dictation judgment result of the ith character is wrong;
and if the current writing state of the ith character is initialized, determining that the dictation judgment result of the ith character is wrong.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 10 shows a schematic block diagram of an example electronic device 900 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 10, the electronic device 1000 includes a computing unit 1001 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic apparatus 1000 can also be stored. The computing unit 001, ROM 1002, and RAM 1003 are connected to each other by a bus 1004. An input output (I/O) interface 1005 is also connected to bus 1004.
Various components in the electronic device 1000 are connected to the I/O interface 1005, including: an input unit 1006 such as a keyboard, a mouse, and the like; an output unit 1007 such as various types of displays, speakers, and the like; a storage unit 1008 such as a magnetic disk, an optical disk, or the like; and communication unit 1009 such as a network card, modem, wireless communication transceiver, etc. Communication unit 1009 allows electronic device 1000 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks.
The computing unit 1001 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 1001 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1001 performs the respective methods and processes described above, for example, the content recommendation method. For example, in some embodiments, the content recommendation method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 1008. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 1000 via the ROM 1002 and/or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the content recommendation method described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to perform the content recommendation method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (8)

1. A character judgment result processing method includes:
responding to the operation of displaying the results of N characters of the dictation, and displaying the dictation judgment result prompt information respectively corresponding to the N characters; wherein N is an integer greater than or equal to 1;
responding to the operation of displaying the ith character in the N characters, and acquiring the input handwriting drawing information, dictation judgment result and correct handwriting drawing information of the ith character; wherein i is an integer of 1 or more and N or less;
displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation judgment result of the ith character;
wherein, when the ith character in the N characters is in an input state, and based on the track information of the current input handwriting of the ith character and the track information of the correct handwriting of the ith character, determining that the handwriting judgment result of the current input handwriting is correct: if the last updated writing state of the ith character is in writing and the current input handwriting is not the ending handwriting of the ith character, updating the current writing state of the ith character to be in writing; if the last updated writing state of the ith character is initialized and the current input handwriting is not the ending handwriting of the ith character, updating the current writing state of the ith character to be in writing; if the last updated writing state of the ith character is initialized and the current input handwriting is the ending handwriting of the ith character, updating the current writing state of the ith character to be correct; if the last updated writing state of the ith character is in writing and the current input handwriting is the ending handwriting of the ith character, updating the current writing state of the ith character to be correct; if the last updated writing state of the ith character is wrong, updating the current writing state of the ith character to be wrong; updating the current writing state of the ith character to be wrong under the condition that the handwriting judgment result is determined to be wrong; and determining a dictation judgment result of the ith character based on the current writing state of the ith character under the condition that the ith character is in a finished state.
2. The method of claim 1, further comprising:
and generating the input handwriting drawing information of the ith character based on drawing line related parameters and a track set of the ith character under the condition that the ith character in the N characters is in a completed state.
3. The method of claim 1, wherein the determining the dictation decision result for the ith character based on the current writing state of the ith character comprises at least one of:
if the current writing state of the ith character is correct, determining that the dictation judgment result of the ith character is correct;
if the current writing state of the ith character is in writing, determining that the dictation judgment result of the ith character is wrong;
if the current writing state of the ith character is wrong, determining that the dictation judgment result of the ith character is wrong;
and if the current writing state of the ith character is initialized, determining that the dictation judgment result of the ith character is wrong.
4. A character determination result processing apparatus comprising:
the first display processing module is used for responding to the operation of displaying the results of N characters of the dictation, and displaying the dictation judgment result prompt information respectively corresponding to the N characters; wherein N is an integer greater than or equal to 1;
The information acquisition module is used for responding to the operation of displaying the ith character in the N characters and acquiring the input handwriting drawing information, the dictation judgment result and the correct handwriting drawing information of the ith character; wherein i is an integer of 1 or more and N or less;
the second display processing module is used for displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation judgment result of the ith character;
the writing state updating module is used for determining that the handwriting judgment result of the current input handwriting is correct under the condition that the ith character in the N characters is in an input state and based on the track information of the current input handwriting of the ith character and the track information of the correct handwriting of the ith character: if the last updated writing state of the ith character is in writing and the current input handwriting is not the ending handwriting of the ith character, updating the current writing state of the ith character to be in writing; if the last updated writing state of the ith character is initialized and the current input handwriting is not the ending handwriting of the ith character, updating the current writing state of the ith character to be in writing; if the last updated writing state of the ith character is initialized and the current input handwriting is the ending handwriting of the ith character, updating the current writing state of the ith character to be correct; if the last updated writing state of the ith character is in writing and the current input handwriting is the ending handwriting of the ith character, updating the current writing state of the ith character to be correct; if the last updated writing state of the ith character is wrong, updating the current writing state of the ith character to be wrong; updating the current writing state of the ith character to be wrong under the condition that the handwriting judgment result is determined to be wrong;
And the judging module is used for determining the dictation judging result of the ith character based on the current writing state of the ith character under the condition that the ith character is in a finished state.
5. The apparatus of claim 4, further comprising:
and the drawing module is used for generating the input handwriting drawing information of the ith character based on drawing line related parameters and the track set of the ith character under the condition that the ith character in the N characters is in a finished state.
6. The apparatus of claim 4, wherein the means for determining is configured to perform at least one of:
if the current writing state of the ith character is correct, determining that the dictation judgment result of the ith character is correct;
if the current writing state of the ith character is in writing, determining that the dictation judgment result of the ith character is wrong;
if the current writing state of the ith character is wrong, determining that the dictation judgment result of the ith character is wrong;
and if the current writing state of the ith character is initialized, determining that the dictation judgment result of the ith character is wrong.
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.
8. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-3.
CN202110172455.1A 2021-02-08 2021-02-08 Character judgment result processing method and device and electronic equipment Active CN112926419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110172455.1A CN112926419B (en) 2021-02-08 2021-02-08 Character judgment result processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110172455.1A CN112926419B (en) 2021-02-08 2021-02-08 Character judgment result processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112926419A CN112926419A (en) 2021-06-08
CN112926419B true CN112926419B (en) 2023-10-27

Family

ID=76171213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110172455.1A Active CN112926419B (en) 2021-02-08 2021-02-08 Character judgment result processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112926419B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609735A (en) * 2012-02-06 2012-07-25 安徽科大讯飞信息科技股份有限公司 Method and apparatus for assessing standard fulfillment of character writing
CN103353824A (en) * 2013-06-17 2013-10-16 百度在线网络技术(北京)有限公司 Method for inputting character strings through voice, device and terminal equipment
CN103390358A (en) * 2013-07-03 2013-11-13 广东小天才科技有限公司 Method and device for performing standardability judgment of character writing operation of electronic device
CN103400512A (en) * 2013-07-16 2013-11-20 步步高教育电子有限公司 Learning assisting device and operating method thereof
CN104182766A (en) * 2014-08-29 2014-12-03 南京师范大学 Method for judging correctness of position relation of strokes of handwritten Chinese character based on template matching
CN104951810A (en) * 2014-03-24 2015-09-30 明博教育科技有限公司 Signal processing device
CN111081117A (en) * 2019-05-10 2020-04-28 广东小天才科技有限公司 Writing detection method and electronic equipment
CN111949156A (en) * 2020-07-10 2020-11-17 广州视源电子科技股份有限公司 Chinese character writing test method and system of writing device and writing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014215906A (en) * 2013-04-26 2014-11-17 株式会社東芝 Character input device, method, and program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609735A (en) * 2012-02-06 2012-07-25 安徽科大讯飞信息科技股份有限公司 Method and apparatus for assessing standard fulfillment of character writing
CN103353824A (en) * 2013-06-17 2013-10-16 百度在线网络技术(北京)有限公司 Method for inputting character strings through voice, device and terminal equipment
CN103390358A (en) * 2013-07-03 2013-11-13 广东小天才科技有限公司 Method and device for performing standardability judgment of character writing operation of electronic device
CN103400512A (en) * 2013-07-16 2013-11-20 步步高教育电子有限公司 Learning assisting device and operating method thereof
CN104951810A (en) * 2014-03-24 2015-09-30 明博教育科技有限公司 Signal processing device
CN104182766A (en) * 2014-08-29 2014-12-03 南京师范大学 Method for judging correctness of position relation of strokes of handwritten Chinese character based on template matching
CN111081117A (en) * 2019-05-10 2020-04-28 广东小天才科技有限公司 Writing detection method and electronic equipment
CN111949156A (en) * 2020-07-10 2020-11-17 广州视源电子科技股份有限公司 Chinese character writing test method and system of writing device and writing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于机器视觉的机器人写字技术的设计;何薇;钱增磊;唐超;蒋玉兵;江耿红;肖文皓;白瑞林;;江南大学学报(自然科学版)(第05期);全文 *

Also Published As

Publication number Publication date
CN112926419A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
US10664695B2 (en) System and method for managing digital ink typesetting
CN112580623B (en) Image generation method, model training method, related device and electronic equipment
CN112926306B (en) Text error correction method, device, equipment and storage medium
CN111709234B (en) Training method and device for text processing model and electronic equipment
CN112115678B (en) Information display method and device, storage medium and electronic equipment
US10325018B2 (en) Techniques for scheduling language models and character recognition models for handwriting inputs
CN112001169B (en) Text error correction method and device, electronic equipment and readable storage medium
JP7142121B2 (en) Character recognition method, device, electronic equipment, computer-readable storage medium, and program
US10996843B2 (en) System and method for selecting graphical objects
CN111832396B (en) Method and device for analyzing document layout, electronic equipment and storage medium
CN113780098B (en) Character recognition method, character recognition device, electronic equipment and storage medium
US20160055146A1 (en) Document processing device, document processing method, program, and information storage medium
CN111241810A (en) Punctuation prediction method and device
EP3387582A1 (en) System and method for beautifying digital ink
US20230196825A1 (en) Face key point detection method and apparatus, and electronic device
US11393231B2 (en) System and method for text line extraction
KR20210065901A (en) Method, device, electronic equipment and medium for identifying key point positions in images
CN114399772B (en) Sample generation, model training and track recognition methods, devices, equipment and media
CN112270169B (en) Method and device for predicting dialogue roles, electronic equipment and storage medium
CN113657396A (en) Training method, translation display method, device, electronic equipment and storage medium
CN113392660A (en) Page translation method and device, electronic equipment and storage medium
CN112926419B (en) Character judgment result processing method and device and electronic equipment
CN116259064A (en) Table structure identification method, training method and training device for table structure identification model
CN111125603B (en) Webpage scene recognition method and device, electronic equipment and storage medium
CN113297371A (en) Method, device and equipment for generating recommended question library and storage medium

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