CN112926419A - 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
CN112926419A
CN112926419A CN202110172455.1A CN202110172455A CN112926419A CN 112926419 A CN112926419 A CN 112926419A CN 202110172455 A CN202110172455 A CN 202110172455A CN 112926419 A CN112926419 A CN 112926419A
Authority
CN
China
Prior art keywords
ith character
handwriting
character
correct
ith
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.)
Granted
Application number
CN202110172455.1A
Other languages
Chinese (zh)
Other versions
CN112926419B (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

Images

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 present disclosure provides a character determination result processing method, device, electronic device, storage medium and computer program product, which relate 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 the N characters of the dictation, and displaying dictation judgment result prompt information corresponding to the N characters respectively; 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 input handwriting drawing information, dictation judgment results 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 technology, and more particularly, to the field of computer vision technology.
Background
In the related technology, the single Chinese character teaching technology can play the writing animation effect and practice test of the correct stroke sequence according to the characteristics of the stroke sequence when the Chinese character is written, and can support the functions of rendering, animation, circulation animation, phrase animation, test and the like of the Chinese character. However, how to provide the judgment situation of the Chinese characters in dictation more intuitively and accurately in the scene of Chinese character teaching and correct wrong Chinese characters accurately and efficiently becomes a 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 the N characters of the dictation, and displaying dictation judgment result prompt information corresponding to the N characters respectively; 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 input handwriting drawing information, dictation judgment results 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 the N characters of the dictation, and displaying dictation judgment result prompt information corresponding to the N characters respectively; 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 input handwriting drawing information, dictation judgment results and 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 cause the at least one processor to perform a method provided by any 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, wherein the computer instructions are configured to cause a computer to perform the method provided by any of the embodiments of the present disclosure.
According to the technical scheme, the dictation result is displayed under the condition that the dictation of N characters is completed, the input handwriting drawing information, the correct handwriting drawing information and the dictation judgment result of any one of the characters can be displayed, the comparison condition of the input handwriting and the correct handwriting can be displayed more visually and accurately, and therefore writing errors can be corrected efficiently.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flow chart of a character determination result processing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic view 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 schematic flow chart diagram for generating handwriting drawing information according to one embodiment of the present disclosure;
FIG. 6 is a schematic diagram of an interface for displaying handwriting drawing information according to an embodiment of the disclosure;
FIG. 7 is a schematic flow chart illustrating a process for determining dictation results for a character according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a character determination result processing apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of a second schematic structural diagram 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 according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those 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.
The schematic diagram of the input handwriting determination method provided by one embodiment of the disclosure. As shown in fig. 1, the method includes:
s101: responding to the operation of displaying the results of the N characters of the dictation, and displaying dictation judgment result prompt information corresponding to the N characters respectively; 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 input handwriting drawing information, dictation judgment results 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 embodiment can be applied to terminal equipment.
Here, each of the N characters may be any one of a chinese character, a foreign letter, a foreign word, a number, and the like. Preferably, each of the characters may be a chinese character.
The N characters may be preset N characters dictated this time. For example, N characters can be preselected by a parent as the characters (such as chinese characters) of the dictation; alternatively, the N characters may be selected according to a range set by the user (for example, a new word of a first class in a first class).
The ith character can be any one of the N characters dictated this time.
The operation of displaying the result of the dictation of the N characters may be that the user clicks a submit button through the current interactive interface. Here, the submit button may be a virtual button displayed in the current interactive interface, and corresponding prompt information, such as "submit", "complete this dictation", may be displayed in the display area of the submit button, which is not exhaustive in this embodiment.
The displaying of the dictation determination result prompt information corresponding to the N characters may include: acquiring dictation judgment results corresponding to the N characters respectively, and generating dictation judgment result prompt information based on the dictation judgment results; and displaying the correct handwriting drawing information of the N characters and the dictation judgment result prompt information respectively corresponding to the correct handwriting drawing information on a result display interface.
The dictation determination result prompt information may be a dictation determination result prompt icon or a dictation determination result prompt character. The suggestive words may be: correct and wrong; or the suggestive words may be other contents, and are not exhaustive here.
The dictation determination result prompt information for the N characters may be determined based on the dictation determination results for the N characters. Taking the dictation determination result prompt information as a prompt icon for example, assuming that the dictation determination result of the jth character in the N characters is an error, the dictation determination result prompt information may be a preset error icon; if the dictation determination result of the jth character in the N characters is correct, the dictation determination result prompt message may be a preset correct icon. The wrong icon and the correct icon are different, and the styles of the wrong icon and the correct icon can be set according to actual conditions.
As shown in fig. 2, which is an example of a result presentation interface, in fig. 2, correct handwriting drawing information of 6 chinese characters and dictation determination result prompt information of each chinese character are presented, and the dictation determination result prompt information in fig. 2 is a prompt icon, for example, the dictation determination result of a chinese character "i" is correct, and the corresponding dictation determination result prompt information 21 is an opposite-hook type icon.
If the user wants to check any one of the N characters included in the result display interface, the user can click any one of the N characters, and any one of the N characters is referred to as an ith character for subsequent description.
The operation of presenting the ith character of the N characters may be a click operation for the ith character of the N characters in the result presentation interface. The clicking operation may be a mouse click or a finger touch click, and the like.
The input handwriting drawing information of the ith character may be drawn based on a trajectory set of the ith character, and the time for drawing the input handwriting drawing information of the ith character may be when the ith character is in a complete state. Specifically, the input handwriting drawing information of the ith character may be drawn when the input state of the (i + 1) th character is switched after the input of all handwriting of the ith character is completed. The dictation determination result of the ith character may also be determined when switching to the input state of the (i + 1) th character after completing the input of all handwriting of the ith character.
The correct handwriting drawing information of the ith character may be obtained in advance, for example, when determining N characters dictated this time, correct handwriting drawing information corresponding to each of the N characters is obtained from the stored multiple candidate characters and the correct handwriting drawing information corresponding to the multiple candidate characters; or, when determining the current dictation of N characters, acquiring a trace set of correct handwriting corresponding to each character of the N characters, and generating correct handwriting drawing information corresponding to each character based on the trace set of correct handwriting.
The input handwriting drawing information, the correct handwriting drawing information, and the dictation determination result for displaying the ith character may be: and displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation judgment result of the ith character on a comparison interface of the ith character.
Wherein, the displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation determination result of the ith character on the comparison interface of the ith character specifically may include
Displaying information to be displayed of input handwriting of the ith character in a first area of a contrast interface of the ith character, displaying information to be displayed of correct handwriting of the ith character in a second area of the contrast interface of the ith character, and displaying dictation result information corresponding to the ith character in a third area of the contrast interface of the ith character.
The first region and the second region may have the same size, and the first region, the second region, and the third region do not overlap with each other.
Here, the dictation result information may include that the ith character is written correctly or wrongly; if the ith character is wrongly written, the dictation result information can further comprise an error reason.
For example, referring to fig. 3, when the ith character is correct, the information to be displayed on the input handwriting of the ith character is displayed in the first area 31 of the contrast interface of the ith character, the information to be displayed on the correct handwriting of the ith character is displayed in the second area 32 of the contrast interface of the ith character, and the dictation result information corresponding to the ith character is displayed in the third area 33 of the contrast interface of the ith character, which indicates that the ith character is written correctly.
For example, referring to fig. 4, when the dictation result of the ith character is an error, the information to be shown of the input handwriting of the ith character is shown in the first area 41 of the contrast interface of the ith character, the information to be shown of the correct handwriting of the ith character is shown in the second area 42 of the contrast interface of the ith character, and the dictation result information corresponding to the ith character is shown in the third area 43 of the contrast interface of the ith character, which represents the writing error of the ith character, and the error cause is a stroke number error.
Therefore, by adopting the scheme, the dictation judgment result prompt information of the N characters can be displayed under the condition of determining the result of displaying the N characters of the dictation at this time; 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 judgment result of the ith character can be displayed. Therefore, the dictation result can be displayed when the dictation of the N characters is completed, and the comparison condition of the input handwriting and the correct handwriting can be displayed more visually and accurately by displaying the input handwriting drawing information, the correct handwriting drawing information and the dictation judgment result of any one of the characters, so that the writing error can be corrected efficiently.
The generating method of the input handwriting drawing information of the ith character may include:
and under the condition that the ith character in the N characters is in a finished state, generating the input handwriting drawing information of the ith character based on drawing line related parameters and the track set of the ith character.
Here, when the ith character is in a complete state, the trace information of all input scripts corresponding to the ith character may be sequentially stored in the trace set of the ith character.
Wherein, the track information of each input handwriting in the track information of all the input handwriting may include: inputting a plurality of coordinate information of handwriting; wherein the 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 information to be displayed of the input handwriting of the ith character is generated based on the drawing line related parameters and the trajectory set of the ith character, and the information to be displayed of the input handwriting of the ith character can be specifically realized based on a canvas technology.
Wherein the drawing line related parameter may include at least one of: end point pattern of lines, end intersection pattern of lines, width of each line, color, gradation, or pattern of strokes.
The drawing line related parameter may be reset each time as needed, or may be default, or may be preset.
The generating of the information to be displayed on the input handwriting of the ith character based on the drawing line related parameter and the trajectory set of the ith character is described with reference to fig. 5, and may include:
s501: acquiring a track set of the ith character;
s502: setting relevant parameters of the drawing lines; for example, the end point pattern of the lines, the end intersection pattern of the lines, the width of each line, the color, gradation, or pattern of the brush strokes may be set in sequence.
The canvas may also be created before S502, i.e., a blank area is created.
S503: extracting current track information from the track set of the ith character; the current track information may 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 relevant parameters of the drawing lines to obtain the drawing information of the current track information; the method specifically comprises the following steps: drawing the current track information on a canvas based on the drawing line related parameters and 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, executing S503; namely, whether the trace information which is not drawn exists in the trace set of the ith character is judged.
S506: and obtaining the input handwriting drawing information of the ith character.
Therefore, by adopting the scheme, the input handwriting drawing information of the ith character can be obtained by drawing based on the track set of the ith character and the relevant parameters of the drawing line under the condition that the ith character is finished. Therefore, the handwriting input by the user can be reserved, and accurate display is carried out by calling the input handwriting drawing information when the input handwriting of the ith character needs to be displayed, so that the input handwriting of any Chinese character which is listened to and written at this time can be traced back, and further the subsequent error correction learning is more efficient and accurate.
Before executing the foregoing S101, dictation determination results corresponding to the N characters of the dictation of this time may be determined. The processing for determining the dictation determination result for each of the N characters may be determined in real time when each character is in a complete state. The following description of determining the dictation determination result by taking any one of the N characters as the ith character as an example may include:
under the condition that the ith character in the N characters is in an input state, 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;
determining a dictation determination result for the ith character based on the current writing state of the ith character when the ith character is in a complete state.
It should be noted that, during the dictation process of the N characters, for each of the N characters, the state of, for example, the ith character may include: input status, completion status.
The manner in which the ith character is in the input state may include:
under the condition that the ith character is the 1 st character entering the dictation function, if the user selects to start dictation, controlling to enter the input state of the 1 st character;
or, in the case that the ith character is not the 1 st character after entering the dictation function, if the input of the (i-1) th character is completed and then the input is switched to the dictation ith character based on the user operation, the input state of the ith character is controlled to enter.
The manner in which the ith character is in a complete state may include: and controlling the ith character to be in a finished state in response to clicking to enter the next character.
The obtaining of the track information of the current input handwriting of the ith character may specifically be: and acquiring the 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 in which characters are input; 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 current handwriting input method comprises the following steps of obtaining the coordinate information of a starting point of the current input handwriting, the coordinate information of an end point of the current input handwriting, and the coordinate information of at least one intermediate 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 dictated at this time are determined, the correct handwriting information corresponding to each character in the N characters can be determined. Wherein, the correct handwriting information of the ith character may include: at least one coordinate information of a correct trajectory for the target area range of each handwriting; additionally, the order between all correct writings for the ith character may also be included.
It should be understood that, in the case of the input state of the ith character, only the trajectory information of all input scripts of the ith character is displayed within the target area, and the correct handwriting information of the ith character is not displayed. That is, the presentation property of the correct handwriting information of the ith character may be set to be hidden.
Therefore, 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 the judgment result of the character is determined based on the writing state of the character under the condition that the character is input; therefore, the judgment result of the currently input character can be determined in real time every time one character is input, and the processing efficiency is improved.
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, including:
determining a handwriting judgment result of the current input handwriting based on the trajectory information of the current input handwriting of the ith character and the trajectory information of the correct handwriting of the ith character;
and updating the current writing state of the ith character based on the handwriting judgment result.
Determining a handwriting judgment result of the current input handwriting based on the trajectory information of the current input handwriting of the ith character and the correct handwriting information of the ith character, wherein the trajectory information of the current input handwriting of the ith character and the correct handwriting information of the ith character can 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 and the correct track position of the correct handwriting at the corresponding position in the correct handwriting information of the ith character are not matched, 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 trace of the ith character matches the correct track position of the correct trace at the corresponding position in the correct trace information of the ith character may be: 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, 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; 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 an actual situation, and a unit may be the number of pixels, which is not exhaustive here.
The current writing state of the ith character may include: any one of writing, initialization, error and 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 then 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 the completion state.
Updating the current writing state of the ith character based on the handwriting judgment result, wherein the updating comprises at least one of the following steps:
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be in writing;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be in writing;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be correct;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be correct;
under the condition that 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 updating the current writing state of the ith character to be an error under the condition that the handwriting judgment result is an error.
It is noted that the initial writing state of the ith character may be set to initialization.
The last updated writing state of the ith character may be the writing state of the last record 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 preset coordinate position of the correct track corresponding to the final handwriting. For example, if the ith character is a Chinese character and the correct stroke number is 4, the current input handwriting can be used as the ending handwriting if the current input handwriting is the 4 th stroke.
That is, if the handwriting determination result is correct, but the last updated writing state of the ith character is wrong, the current writing state of the ith character must be wrong. And if the handwriting judgment result is wrong, determining that the current writing state of the ith character is wrong no matter what the previous updated writing state is. In other cases, it is further necessary to determine whether the current handwriting is the end handwriting in combination with the last updated writing state.
The writing state of the previous update may be the initially set state of the ith character, i.e., the initialization.
Therefore, under the condition that each character is in an input state, the handwriting judgment result of the current handwriting can be determined in real time, the writing state of the character is updated based on the current handwriting judgment result, and the judgment result of the character is determined based on the writing state of the character under the condition that the character is input; therefore, the judgment result of the currently input character can be determined in real time every time one character is input, the problem of a scene that the character is not privately written in the prior art is solved, and the processing efficiency is ensured.
Determining a dictation determination result for the ith character based on the current writing state of the ith character, including 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 determination manner that the ith character is in the completion state may include: determining that the ith character is input under the condition that the operation of clicking and dictating the next character by a user is detected; or, when the user clicks the operation of completing the input, determining that the ith character completes the input.
By way of example in conjunction with fig. 6, if it is detected that the user has clicked on the button 61 (i.e. the virtual button for "next word" shown in fig. 6), it can be determined that the current character has completed inputting.
The foregoing processing for determining the writing state of the current input handwriting of the ith character and determining the dictation determination result is specifically described with reference to fig. 7:
s701: setting the initial writing state of the ith character to be an initialization state;
s702: detecting whether track information of current input handwriting is received; if so, executing S703; otherwise, execute S709;
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, go to step S704; otherwise, S708 is executed;
s704: judging whether the last updated writing state of the ith character is in error, initialization or writing, and if the last updated writing state of the ith character is in initialization or writing, executing S705; if the result is false, go to step S708;
s705: judging whether the track information of the current input handwriting is the end handwriting of the ith character, if so, executing S706; otherwise, executing S707;
s706: updating the current writing state of the ith character to be correct, and adding the track information of the current input handwriting into the track set of the ith character;
s707: updating the current writing state of the ith character to be in writing, and adding the track information of the current input handwriting to the track set of the ith character;
s708, updating the current writing state of the ith character to be an error, adding the track information of the current input handwriting into the track set of the ith character, and recording the number of wrong strokes;
after completion of the above-mentioned S706, S707, and S708, S709 is executed.
S709: judging whether the ith character is in a finished state, if so, executing S710; otherwise, executing S702;
s710: judging whether the current writing state of the ith character is wrong, initialized or in writing, if so, determining that the dictation judgment result of the ith character is wrong; otherwise, determining that the dictation judgment result of the ith character is correct.
Therefore, by adopting the scheme, the current input handwriting can be judged in real time, the writing state of the ith character can be updated, and the corresponding dictation judgment result can be determined based on the writing state under the condition that the current input of the ith character is determined to be finished. Therefore, each input handwriting can be judged in real time, whether the current character is correct or not can be quickly determined according to the writing state when the character is finally finished, and the judgment efficiency and the judgment accuracy are improved.
An embodiment of the present disclosure further provides a character determination result processing apparatus, as shown in fig. 8, including:
the first display processing module 801 is configured to, in response to an operation of displaying results of N characters of the dictation at this time, display dictation determination result prompt information corresponding to each of the N characters; wherein N is an integer greater than or equal to 1;
an information obtaining module 802, configured to obtain input handwriting drawing information, a 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 the input handwriting drawing information of the ith character based on a drawing line related parameter and a trajectory set of the ith character when the ith character of the N characters is in a complete state.
Further comprising:
a writing state updating module 805, configured to update a current writing state of an ith character based on trajectory information of a current input handwriting of the ith character and trajectory information of a correct handwriting of the ith character when the ith character of the N characters is in an input state;
a determining module 806, configured to determine a dictation determination result of the ith character based on the current writing state of the ith character when the ith character is in a complete state.
The writing state updating module 805 is configured to determine a handwriting determination result of the current input handwriting based on the trajectory information of the current input handwriting of the ith character and the trajectory information of the correct handwriting of the ith character; and updating the current writing state of the ith character based on the handwriting judgment result.
The writing status updating module 805 is configured to perform at least one of:
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be in writing;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be in writing;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be correct;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be correct;
under the condition that 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 updating the current writing state of the ith character to be an error under the condition that the handwriting judgment result is an error.
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.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 10 illustrates a schematic block diagram of an example electronic device 900 that can 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples 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 necessary 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.
A number of 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 a communication unit 1009 such as a network card, a modem, a wireless communication transceiver, or the like. The communication unit 1009 allows the electronic device 1000 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
Computing unit 1001 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 1001 executes the respective methods and processes described above, such as the content recommendation method. For example, in some embodiments, the content recommendation method may be implemented as a computer software program tangibly embodied in 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 electronic device 1000 via ROM 1002 and/or communications 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 circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a 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 that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes 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 codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. 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. A 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 a pointing device (e.g., a mouse or a 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 can 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 back-end 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 back-end, 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 clients and servers. A client and server are generally 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 understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (15)

1. A character determination result processing method includes:
responding to the operation of displaying the results of the N characters of the dictation, and displaying dictation judgment result prompt information corresponding to the N characters respectively; 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 input handwriting drawing information, dictation judgment results 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.
2. The method of claim 1, further comprising:
and under the condition that the ith character in the N characters is in a finished state, generating the input handwriting drawing information of the ith character based on drawing line related parameters and the track set of the ith character.
3. The method of claim 1, further comprising:
under the condition that the ith character in the N characters is in an input state, 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;
determining a dictation determination result for the ith character based on the current writing state of the ith character when the ith character is in a complete state.
4. The method as claimed in claim 3, wherein the updating the current writing state of the ith character based on the trajectory information of the current input writing of the ith character and the trajectory information of the correct writing of the ith character comprises:
determining a handwriting judgment result of the current input handwriting based on the trajectory information of the current input handwriting of the ith character and the trajectory information of the correct handwriting of the ith character;
and updating the current writing state of the ith character based on the handwriting judgment result.
5. The method according to claim 4, wherein the updating the current writing state of the ith character based on the handwriting determination result comprises at least one of:
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be in writing;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be in writing;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be correct;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be correct;
under the condition that 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 updating the current writing state of the ith character to be an error under the condition that the handwriting judgment result is an error.
6. The method of claim 5, wherein said determining a dictation determination 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.
7. A character determination result processing apparatus comprising:
the first display processing module is used for responding to the operation of displaying the results of the N characters of the dictation, and displaying dictation judgment result prompt information corresponding to the N characters respectively; 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 input handwriting drawing information, dictation judgment results and 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.
8. The apparatus of claim 7, 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 a track set of the ith character under the condition that the ith character in the N characters is in a finished state.
9. The apparatus of claim 7, further comprising:
a writing state updating module, configured to update a current writing state of an ith character based on trajectory information of a current input trajectory of the ith character and trajectory information of a correct trajectory of the ith character when the ith character of the N characters is in an input state;
and the judging module is used for determining the 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.
10. The apparatus according to claim 9, wherein the writing state updating module is configured to determine a handwriting determination result of the current input handwriting based on trajectory information of the current input handwriting of the ith character and trajectory information of a correct handwriting of the ith character; and updating the current writing state of the ith character based on the handwriting judgment result.
11. The apparatus of claim 10, wherein the writing status update module is to perform at least one of:
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be in writing;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be in writing;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be correct;
under the condition that 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 end handwriting of the ith character, updating the current writing state of the ith character to be correct;
under the condition that 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 updating the current writing state of the ith character to be an error under the condition that the handwriting judgment result is an error.
12. The apparatus of claim 11, 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.
13. 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-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-6.
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 true CN112926419A (en) 2021-06-08
CN112926419B 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 (9)

* 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 judging normativity of character writing operation of electronic equipment
CN103400512A (en) * 2013-07-16 2013-11-20 步步高教育电子有限公司 Learning assisting device and operating method thereof
US20140321751A1 (en) * 2013-04-26 2014-10-30 Kabushiki Kaisha Toshiba Character input apparatus and method
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

Patent Citations (9)

* 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
US20140321751A1 (en) * 2013-04-26 2014-10-30 Kabushiki Kaisha Toshiba Character input apparatus and method
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 judging normativity of character writing operation of electronic equipment
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
何薇;钱增磊;唐超;蒋玉兵;江耿红;肖文皓;白瑞林;: "基于机器视觉的机器人写字技术的设计", 江南大学学报(自然科学版), no. 05 *

Also Published As

Publication number Publication date
CN112926419B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN112926306B (en) Text error correction method, device, equipment and storage medium
CN112153206B (en) Contact person matching method and device, electronic equipment and storage medium
US20230196825A1 (en) Face key point detection method and apparatus, and electronic device
JP7285899B2 (en) USER IMAGE RECOGNITION MODEL UPDATE METHOD, APPARATUS, ELECTRONIC DEVICE, COMPUTER-READABLE RECORDING MEDIUM, AND COMPUTER PROGRAM
CN111881675A (en) Text error correction method and device, electronic equipment and storage medium
CN115879469B (en) Text data processing method, model training method, device and medium
CN112001169A (en) Text error correction method and device, electronic equipment and readable storage medium
CN111241810A (en) Punctuation prediction method and device
CN113535916B (en) Question and answer method and device based on table and computer equipment
CN113297371A (en) Method, device and equipment for generating recommended question library and storage medium
CN112784588B (en) Method, device, equipment and storage medium for labeling text
CN113392660A (en) Page translation method and device, electronic equipment and storage medium
CN112150380A (en) Method and device for correcting image, electronic equipment and readable storage medium
CN112926419B (en) Character judgment result processing method and device and electronic equipment
CN112052647A (en) Document editing method and device, electronic equipment and readable storage medium
CN111125603B (en) Webpage scene recognition method and device, electronic equipment and storage medium
CN114118067A (en) Term noun error correction method and apparatus, electronic device, and medium
CN113642559A (en) Text acquisition method, device and equipment based on scanning equipment and storage medium
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN113448668A (en) Method and device for skipping popup window and electronic equipment
CN113946357A (en) Cloud application updating method, device, system, electronic equipment and computer medium
CN113326368B (en) Answering data processing method, device, equipment and storage medium
CN112860874B (en) Question-answer interaction method, device, equipment and storage medium
CN113723120B (en) Display method and device of reference information and electronic equipment
CN113836939B (en) Text-based data analysis method and device

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