CN112639712A - Character writing error detection method, terminal equipment and storage medium - Google Patents

Character writing error detection method, terminal equipment and storage medium Download PDF

Info

Publication number
CN112639712A
CN112639712A CN201880094170.7A CN201880094170A CN112639712A CN 112639712 A CN112639712 A CN 112639712A CN 201880094170 A CN201880094170 A CN 201880094170A CN 112639712 A CN112639712 A CN 112639712A
Authority
CN
China
Prior art keywords
stroke
writing
contact
handwriting
strokes
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.)
Pending
Application number
CN201880094170.7A
Other languages
Chinese (zh)
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.)
Shenzhen Royole Technologies Co Ltd
Original Assignee
Shenzhen Royole Technologies 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 Shenzhen Royole Technologies Co Ltd filed Critical Shenzhen Royole Technologies Co Ltd
Publication of CN112639712A publication Critical patent/CN112639712A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

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

Abstract

A character writing error detection method, a terminal device and a storage medium are provided, wherein the method comprises the following steps: acquiring contact data of writing handwriting when a user writes characters on a writing board, wherein the contact data comprises one or more of contact coordinates, contact generation time and contact pressure values; determining incorrect strokes written in the handwriting according to the character writing rule and the contact data; and controlling the display of the handwriting on a display screen and marking the wrongly written strokes. The embodiment of the invention can detect the strokes in the handwriting and mark and display the wrong strokes.

Description

Character writing error detection method, terminal equipment and storage medium Technical Field
The invention relates to the technical field of data processing, in particular to a character writing error detection method, terminal equipment and a storage medium.
Background
With the development of electronic technology, writing boards have come to the fore, and have been widely used in daily study and work of users. For example, a user may use a tablet to perform a text writing exercise. Because there is no way to detect the error of the strokes in writing characters, it cannot be determined whether the strokes are wrongly written during the writing process. Therefore, how to detect the error of the strokes in writing characters is a problem which needs to be solved urgently at present.
Disclosure of Invention
The embodiment of the invention provides a character writing error detection method, terminal equipment and a storage medium, which can detect errors of strokes in writing handwriting and mark and display the wrong strokes.
The first aspect of the embodiments of the present invention provides a method for detecting an error in writing, where the method includes:
acquiring contact data of writing handwriting when a user writes characters on a writing board, wherein the contact data comprises one or more of contact coordinates, contact generation time and contact pressure values;
determining incorrect strokes written in the handwriting according to the character writing rule and the contact data;
and controlling the display of the handwriting on a display screen and marking the wrongly written strokes.
A second aspect of an embodiment of the present invention provides a terminal device, including: a processor unit and a display screen, the processor unit to:
acquiring contact data of writing handwriting when a user writes characters on a writing board, wherein the contact data comprises one or more of contact coordinates, contact generation time and contact pressure values;
determining incorrect strokes written in the handwriting according to the character writing rule and the contact data;
and controlling the display of the handwriting on the display screen and marking the wrongly written strokes.
A third aspect of the embodiments of the present invention provides a storage medium, where a text writing error detection instruction is stored in the storage medium, and when the text writing error detection instruction runs on a computer, the text writing error detection instruction causes the computer to execute the text writing error detection method.
In the embodiment of the invention, the contact data of the handwriting when a user writes characters on the writing board is firstly obtained, the incorrect stroke written in the handwriting is determined according to the character writing rule and the contact data, then the handwriting is displayed on the display screen, and the incorrect stroke written is marked, so that the error detection can be carried out on the stroke in the handwriting, and the wrong stroke is marked and displayed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a block diagram of a writing system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for detecting errors in writing according to an embodiment of the present invention;
FIG. 3 is a diagram of a text script according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a writing system according to an embodiment of the invention. The writing system includes: a tablet 101 and a terminal device 102, a communication connection is established between the tablet 101 and the terminal device 102. A Bluetooth (Bluetooth) communication connection may be established between the tablet 101 and the terminal device 102. The tablet 101 and the terminal device 102 may also establish a communication connection through other communication manners, which is not limited herein. The writing system may also include a stylus capable of writing on the tablet 101. The terminal device 102 may be a terminal equipped with a display screen and a data processing function, such as a smart phone, a tablet computer, and a Mobile Internet Device (MID).
In one embodiment, the tablet 101 includes a display screen disposed on the tablet 101 for displaying handwriting generated when a user writes a character. The tablet 101 also includes a processor and a transceiver. The terminal device 102 includes a processor, a display screen, and a transceiver. The transceiver is a device with data receiving and transmitting functions. The processor of the tablet 101 obtains contact data of handwriting generated when a user writes characters on the tablet 101, and sends the contact data to the terminal device 102 through the transceiver of the tablet 101. Accordingly, the transceiver of the terminal apparatus 102 receives the contact data. The processor of the terminal device 102 obtains the touch point data and performs error detection on the handwriting according to the touch point data. The processor of the terminal device 102 controls the display screen to display the handwriting and marks incorrect strokes written in the handwriting. In one embodiment, the tablet 101 may also directly detect the writing, control the display screen to display the writing, and mark the incorrect stroke in the writing. The following are detailed below.
Referring to fig. 2, fig. 2 is a flow chart illustrating a text writing error detection method according to an embodiment of the present invention. The text writing error detection method is operated on the terminal equipment 102 or the handwriting board 101 shown in fig. 1. The text writing error detection method comprises the following steps:
step S201, acquiring contact data of writing handwriting when a user writes characters on a writing board.
In one embodiment, when the text writing error detection method is executed on the handwriting board 101, step S201 specifically includes: the handwriting board 101 directly acquires contact point data of handwriting generated when a user writes characters. That is, the touch point data of the handwriting is collected by the tablet 101.
Specifically, when the text writing error detection method is executed on the terminal device 102, the step S201 specifically includes: the terminal device 102 receives the contact data of the handwriting obtained by the handwriting board 101 when the user writes the character, which is sent by the handwriting board 101, when the user writes the character, that is, the terminal device 102 obtains the contact data of the handwriting generated when the user writes the character from the handwriting board 101.
Wherein the writing script comprises one or more strokes, and each stroke comprises a plurality of contact points. During the writing of a word by a user, the tablet 101 collects contact data of each contact in the writing trace. The touch point data includes one or more of touch point coordinates, touch point generation time, and touch point pressure values. Where the touch point coordinates refer to pixel (pixel) coordinates, e.g., (30 pixels, 40 pixels), in a dot matrix formed on the tablet 101 at the center of the touch point. The tablet 101 may send the collected contact data of each contact in the handwriting to the terminal device 102. The terminal device 102 receives the touch point data of each touch point in the handwriting transmitted by the tablet 101.
And S202, determining that incorrect strokes are written in the handwriting according to the character writing rule and the contact data.
In the embodiment of the present invention, the writing rules include stroke writing rules and stroke sequence rules, and the writing rules are stored in the memory of the terminal device 102 or the tablet 101 in advance. One stroke of the handwriting refers to the handwriting formed from the start of writing on and off the tablet 101 with a writing pen or a finger to the suspension of writing with a pen-up. That is, the writing of the same stroke in the handwriting is continuous, and the generation time interval between the multiple contacts in the same stroke is short. While the writing between different strokes in the writing handwriting has a certain time interval, and the generation time interval between the contacts of different strokes is relatively long. The terminal device 102 or the handwriting board 101 may determine the generation time interval between different touch points according to the touch point generation time in the touch point data, and determine the touch points included in each stroke in the handwriting according to the generation time interval between different touch points, that is, determine which touch points belong to the same stroke. Specifically, when the generation time interval between two adjacent touch points is smaller than or equal to a preset value, the terminal device 102 or the handwriting board 101 determines that the two adjacent touch points are touch points in the same stroke; when the generation time interval between two adjacent touch points is greater than the preset value, the terminal device 102 or the handwriting board 101 determines that the two adjacent touch points are touch points in two different strokes, that is, at least two strokes exist in the handwriting. The terminal device 102 or the tablet 101 then determines the writing order of each stroke in the handwriting according to the generation time of each contact in each stroke. In one embodiment, the writing sequence may refer to positions of the start and end strokes of each stroke and a sequence from the start to the end strokes. In another embodiment, the writing order may refer to a writing order between each stroke in the writing trace.
Further, the terminal device 102 or the handwriting board 101 determines a stroke track of each stroke in the handwriting according to the coordinates and the generation time of the contact in each stroke; and then judging the stroke type of each stroke in the writing handwriting according to the stroke writing rule and the stroke track of each stroke. The stroke writing rule may be a stroke writing rule of a Chinese character. The stroke writing rule includes: the stroke is horizontal (one), the stroke track is increased progressively along the positive direction of the X axis, and the included angle formed by the stroke track and the X axis is within plus or minus 10 degrees. A stroke vertical (I), the stroke track is increased progressively along the negative direction of the Y axis, and the included angle formed by the stroke track and the Y axis is within plus or minus 10 degrees. And (5) drawing the stroke, wherein the stroke track increases in the negative direction along the X axis and increases in the negative direction along the Y axis, and the stroke track forms an included angle with the X axis within the range from minus 125 degrees to minus 145 degrees. And (5) stroke points (stroke), wherein the stroke track is increased in the positive direction of the X axis and increased in the negative direction of the Y axis, the included angle formed by the stroke track and the X axis is within minus 35 degrees to minus 55 degrees, and the distance between the coordinate of the starting point and the coordinate of the ending point is less than 90 pixels. Stroke lifter
Figure PCTCN2018106461-APPB-000001
The stroke track is along the positive directions of the X axis and the Y axisAnd increasing in number, and the stroke track forms an angle within 35 degrees to 55 degrees with the X-axis. Stroke folder
Figure PCTCN2018106461-APPB-000002
The stroke track is increased in the positive direction of the X axis and then increased in the negative direction of the Y axis. And (5) stroke hooks (stroke tracks) are lifted up to the left upper part after increasing along the negative direction of the Y axis.
The terminal device 102 or the handwriting board 101 judges the variation trend of the stroke track of each stroke along the X axis and the Y axis respectively, and determines the included angle between the stroke track of each stroke and the X axis and the Y axis respectively; and then comparing the variation trend and the included angle with the stroke writing rule to determine the stroke type of each stroke in the writing handwriting.
In one embodiment, the terminal device 102 or the handwriting board 101 determines that the writing order of the strokes in the handwriting is incorrect according to the stroke order rule and the writing order and stroke type of each stroke in the handwriting. In one embodiment, the stroke order rule is a writing order of each stroke, and the incorrect writing order means that the starting and ending sequence of a certain stroke in the writing handwriting is incorrect. In another embodiment, the stroke order rule may also be a stroke writing order rule of a Chinese character pre-stored in the memory; the incorrect writing sequence means that the writing sequence between at least two strokes in the writing handwriting is wrong. Referring to table 1, a pre-stored writing sequence rule of strokes of a Chinese character is shown, that is, a correct writing sequence between strokes when writing a Chinese character.
As shown in Table 1, the stroke order rules for writing Chinese characters include: horizontal and vertical, left-falling and right-falling, from top to bottom, from left to right, from outside to inside and then sealed, from the middle to the two sides, and the like. The terminal device 102 or the handwriting board 101 firstly determines a standard writing sequence of each stroke in the writing script according to the stroke sequence rule and the stroke type of each stroke in the writing script; and then comparing the standard writing sequence of each stroke in the handwriting with the actual writing sequence of each stroke to determine the strokes with incorrect writing sequence in the handwriting.
Figure PCTCN2018106461-APPB-000003
TABLE 1 Chinese character Stroke sequence rules
For example, referring to fig. 3, fig. 3 is a schematic diagram of a text handwriting. The writing script of the characters as shown in fig. 3 is a "car" character. According to the Chinese character stroke sequence rule, the standard writing sequence of each stroke in the 'vehicle' character is horizontal, left-falling, folding, horizontal and vertical. Suppose that the user writes the "car" character, the actual writing sequence is horizontal, left-falling, vertical, horizontal. The terminal device 102 or the handwriting board 101 may determine that the writing order of the last two strokes in the actual writing handwriting corresponding to the "car" character is incorrect according to the standard writing order of each stroke in the "car" character. For another example, assume that the user writes the horizontal stroke of the "car" character in the order from the right-start stroke to the left-end stroke; the horizontal standard writing sequence of the strokes is the sequence from the left starting stroke to the right ending stroke; the terminal device 102 or the handwriting board 101 may determine that the writing order of the stroke bar is incorrect in the actual writing handwriting corresponding to the "car" character according to the standard writing order of the stroke bar.
In an embodiment, after determining that the first stroke in the handwriting has an incorrect writing order according to the stroke order rule and the writing order and the stroke type of each stroke in the handwriting, the terminal device 102 or the handwriting board does not judge the stroke with the writing order arranged behind the stroke any more, and directly determines the stroke as the stroke with the incorrect writing order in the handwriting.
In one embodiment, the terminal device 102 or the tablet 101 may further determine that the stroke type in the handwriting is incorrect according to the text formed by the handwriting, the writing rule of the text, and the writing order and stroke type of each stroke in the handwriting. The writing rule of the character is used for indicating the standard writing sequence and the correct stroke type of each stroke in the character corresponding to the handwriting. After determining the actual writing order and the actual stroke type of each stroke in the handwriting, the terminal device 102 or the tablet 101 first detects whether the actual writing order between each stroke in the handwriting is correct. Specifically, the terminal device 102 or the tablet 101 determines a standard writing order between each stroke in the text corresponding to the writing trace according to the writing rule of the text, and then detects whether the writing order between each stroke in the writing trace is correct by comparing the standard writing order of the text with the actual writing order between each stroke in the writing trace.
If the writing sequence of each stroke in the handwriting is correct, the terminal device 102 or the handwriting board 101 determines the correct stroke type of each stroke in the character corresponding to the handwriting according to the writing rule of the character; and then comparing the correct stroke type with the type of each actual stroke of the handwriting to obtain the stroke with the incorrect stroke type in the handwriting. For example, assume that when a user writes a "wood" word, the actual writing order of each stroke and the actual stroke type are horizontal, vertical, left-falling, and right-falling. According to the writing rule of Chinese characters, the standard writing sequence and correct stroke types of each stroke in the 'wood' character are horizontal stroke, vertical stroke, left falling stroke and right falling stroke. The terminal device 102 or the handwriting board 101 may determine that the stroke type of the second stroke in the actual handwriting corresponding to the "wood" character is incorrect according to the correct stroke type of each stroke in the "wood" character.
If there are strokes with incorrect writing sequence among the strokes in the handwriting, the terminal device 102 or the handwriting board 101 firstly adjusts the writing sequence of the strokes with incorrect writing sequence in the handwriting according to the standard writing sequence among each stroke in the character corresponding to the handwriting, so as to obtain the handwriting with the adjusted writing sequence of the strokes. Further, the terminal device 102 or the handwriting board 101 determines a correct stroke type of each stroke in the text corresponding to the handwriting according to the writing rule of the text; and comparing the correct stroke type of each stroke in the character corresponding to the writing handwriting with the actual stroke type of the stroke corresponding to the writing sequence in the writing handwriting after the stroke writing sequence is adjusted to obtain the stroke with the incorrect stroke type in the writing handwriting after the stroke writing sequence is adjusted, namely the stroke with the incorrect stroke type in the actual writing handwriting. For example, assume that when a user writes a "wood" word, the actual writing order of each stroke and the actual stroke type are horizontal, vertical, right, left. According to the writing rule of Chinese characters, the standard writing sequence and correct stroke types of each stroke in the 'wood' character are horizontal stroke, vertical stroke, left falling stroke and right falling stroke. The terminal device 102 or the handwriting board 101 may determine that the writing sequence of the third stroke and the fourth stroke is incorrect in the actual writing handwriting corresponding to the "wood" character according to the standard writing sequence of each stroke in the "wood" character; firstly, the writing sequence of the strokes with the incorrect writing sequence is adjusted to obtain the writing handwriting with the adjusted writing sequence of the strokes; the writing order and the stroke type of each stroke in the writing handwriting after the stroke writing order is adjusted are horizontal, vertical lifting, left falling and right falling. Further, the terminal device 102 or the handwriting board 101 may determine, according to the correct stroke type of each stroke in the "wood" character, that the stroke type mentioned in the second stroke in the writing trace after the stroke writing order adjustment corresponding to the "wood" character is incorrect, that is, the stroke type mentioned in the second stroke in the actual writing trace is incorrect.
In one embodiment, the terminal device 102 or the tablet 101 obtains a font type corresponding to the handwriting. When the font type corresponding to the handwriting is a hard-tipped font, the terminal device 102 or the handwriting board 101 may further determine that the nib of the handwriting writes an incorrect stroke according to the nib rule, the contact pressure value in the contact data, and the stroke type of each stroke in the handwriting. The stroke front rule can be a stroke front rule of a hard-tipped character in the Chinese character, namely the due stroke front of the hard-tipped character during writing; the stroke rule is stored in advance in the memory of the terminal device 102 or the tablet 101. Generally, when writing Chinese characters, the stroke rules include: heavier pen starting, lighter pen running and the like. For example: the stroke is horizontal, the head and the tail of the stroke are provided with the stroke tips, namely the pressure value of the contact at the head and the tail part is larger, and the pressure value of the contact at the middle part is smaller; the stroke skimming is that the head is provided with a pen point, namely the pressure value of a contact point of the head is required to be larger, and the pressure value of the contact point is required to be gradually reduced from the head to the tail.
The terminal device 102 or the handwriting board 101 determines the actual contact point pressure value change condition of the contact point included in each stroke according to the contact point generation time and the contact point pressure value included in each stroke; and acquiring the reference contact pressure value change condition of the stroke type according to the stroke front rule and the stroke type of each stroke in the handwriting. The terminal device 102 or the handwriting board 101 then compares the actual contact pressure value variation with the reference contact pressure value variation, and determines that the stroke in the handwriting is incorrect. For example, the reference contact pressure value change condition of the stroke bar is changed from big to small and then from small to big. The change situation of the actual contact point pressure value of the stroke beam in the handwriting is assumed to be only changed from big to small. The terminal device 102 or the handwriting board 101 may determine that the actual contact pressure value change condition of the stroke bar in the handwriting is not matched with the reference contact pressure value change condition corresponding to the stroke bar, and determine the stroke bar in the handwriting as the stroke with the incorrect writing style.
In one embodiment, the display interface of the tablet 101 or the terminal device 102 further includes font options, which include a hard pen font option, a soft pen font option, and the like. Before the user writes a character on the tablet 101, the tablet 101 or the terminal apparatus 102 receives a selection instruction input by the user for the font option, and determines the font type selected by the user according to the selection instruction. The selected font type is also the font type corresponding to the handwriting of the user when writing characters on the tablet 101. The terminal device 102 or the tablet 101 may obtain a font type corresponding to the handwriting according to the font type selected by the user.
And S203, controlling the writing handwriting to be displayed on a display screen, and marking the stroke which is written incorrectly.
Wherein the incorrectly written strokes include one or more of strokes with incorrect writing order, strokes with incorrect writing type, and strokes with incorrect stroke style.
In the embodiment of the present invention, when the terminal device 102 needs to display the handwriting, the terminal device 102 converts the contact coordinates of each contact in the handwriting into the screen coordinates of the terminal device 102. Then, the terminal device 102 determines the size of each contact in the handwriting according to the contact pressure value in the contact data. The touch spot size refers to the number of pixels that the touch spot occupies in a dot matrix formed on the display screen of the terminal device 102. Finally, the terminal device 102 displays the handwriting on the display screen of the terminal device 102 according to the screen coordinates, the contact generation time and the contact size corresponding to each contact in the handwriting.
In one embodiment, the terminal device 102 or the tablet 101 determines the stroke width of each stroke according to the contact pressure value of the contact in each stroke of the handwriting. And the stroke width is equal to the preset stroke width and the contact pressure value/pressure value constant. The terminal device 102 or the tablet 101 then displays the handwriting on its display screen according to the screen coordinates corresponding to each contact in the handwriting, the contact generation time, and the stroke width of each stroke.
In one embodiment, when writing with a stylus or finger on tablet 101 is fast, the contacts in the writing captured by tablet 101 may become sparse. If the terminal device 102 or the handwriting board 101 only connects sparse contacts through line segments when displaying the handwriting, edges and corners are likely to occur in the strokes with radians in the handwriting, which may result in poor restoration degree of the handwriting displayed by the terminal device 102 or the handwriting board 101 relative to the actual handwriting. The terminal device 102 or the handwriting board 101 may fit the contact points in the handwriting using bezier differences.
The terminal device 102 or the handwriting board 101 first determines a midpoint between every two touch points, then uses each touch point as a control point, uses two midpoints adjacent to the touch point as a start point and a stop point of a quadratic Bezier difference value, and determines a quadratic Bezier curve between the touch point and the two midpoints adjacent to the touch point, so as to implement fitting of the touch point in the handwriting. The terminal device 102 or the handwriting board 101 acquires the screen coordinates corresponding to the fitted contact. Finally, the terminal device 102 or the handwriting board 101 displays the fitted handwriting on the display screen after amplifying a target multiple (for example, 1.2 times) according to the screen coordinate, the contact generation time and the contact size corresponding to the fitted contact. The Bessel difference is adopted to fit the contact points in the handwriting, and radian optimization can be performed on the radian-bearing strokes, so that the real writing effect of the handwriting can be simulated, and the reduction degree of the handwriting displayed by the terminal device 102 or the handwriting board 101 relative to the actual handwriting can be improved.
In the embodiment of the present invention, when the terminal device 102 or the tablet 101 displays the handwriting on its display screen, a specific mark may be used to display the stroke that is incorrectly written. For example, the incorrectly written stroke is indicated by a particular color marker. Wherein, the terminal device 102 or the handwriting board 101 can mark the strokes with incorrect writing order in the handwriting with the first mark symbol. The first marker symbol may be a first target color, which may be red or gray, etc. In an embodiment, the terminal device 102 or the tablet 101 may also bold the strokes of the handwriting with incorrect writing order, or may flash the strokes with incorrect writing order, which is not limited herein. For example, referring to fig. 3 together, assuming that the writing order of the last two strokes (stroke vertical and stroke horizontal) in the "car" word of fig. 3 is incorrect, the terminal device 102 or the tablet 101 may mark the stroke vertical and stroke horizontal which are not aligned with the writing order with gray. While strokes written in the correct order in the figure are marked in black. By adopting the method, the writing sequence of the strokes in the handwriting can be detected, and the strokes with incorrect writing sequence can be marked and displayed.
Wherein the terminal device 102 or the handwriting board 101 may mark the stroke with the incorrect stroke type in the handwriting with the second mark symbol. The second marker symbol may be a second target color, which may be yellow or orange, etc. In an embodiment, the terminal device 102 or the tablet 101 may also bold the strokes of the writing script with the incorrect stroke type, or may flash the strokes of the writing script with the incorrect stroke type, which is not limited herein. It should be noted that the second mark symbol is different from the first mark symbol, or the terminal device 102 or the tablet 101 displays a mark for a stroke with an incorrect stroke type in a different manner from a mark for a stroke with an incorrect writing order. By adopting the method, the types of strokes in the handwriting can be detected, and the strokes with incorrect stroke types can be marked and displayed.
Wherein, the terminal device 102 or the handwriting board 101 may mark the stroke of the handwriting with the incorrect writing with the third mark symbol. The third marker symbol may be a third target color, which may be purple or blue, etc. In an embodiment, the terminal device 102 or the tablet 101 may also bold the stroke with the incorrect stroke in the handwriting, or may flash the stroke with the incorrect stroke, which is not limited herein. It should be noted that the third mark symbol is different from both the first mark symbol and the second mark symbol, or the terminal device 102 or the handwriting board 101 displays the mark of the stroke with incorrect writing order on the stroke in a different manner from the display of the mark of the stroke with incorrect writing order, and also from the display of the mark of the stroke with incorrect stroke type. By adopting the mode, the error detection can be carried out on the stroke front of the strokes in the handwriting, and the strokes which are displayed to be incorrectly written by the stroke front are marked.
In an embodiment, the terminal device 102 or the tablet 101 further adjusts the writing order of the strokes in the handwriting with incorrect writing order according to the stroke order rule and the stroke type of each stroke in the handwriting, so as to obtain the standard writing order of each stroke in the handwriting. And the terminal device 102 or the handwriting board 101 replaces the strokes with the incorrect stroke types in the writing handwriting according to the correct stroke type of each stroke in the character corresponding to the writing handwriting indicated by the character writing rule, so as to obtain the writing handwriting with the correct stroke types. The terminal device 102 or the handwriting board 101 obtains a contact reference pressure value corresponding to a stroke in which the writing style of the writing handwriting is incorrect, where the contact reference pressure value is a standard pressure value of each contact when the writing style of the handwriting is incorrect according to the writing style rule, and the standard pressure value of each contact is related to the position of the contact in the stroke. The contact reference pressure value may be stored in the memory of the terminal device 102 or the tablet 101. The contact reference pressure value may be a specific value or a value range. The terminal device 102 or the handwriting board 101 then determines a corrected pressure value of each contact according to the contact coordinates and the contact generation time of each contact in the incorrect stroke written by the stroke front and the reference pressure value of the contact; and correcting the stroke front of the stroke with incorrect stroke writing by using the corrected pressure value of each contact to obtain the stroke with correct stroke writing by the stroke front.
Further, the terminal device 102 or the handwriting board 101 displays a standard writing process of each stroke in the handwriting on the display screen thereof according to the screen coordinates of the contact in the handwriting, the contact generation time, each correct stroke and the correct writing sequence of each stroke in the handwriting, and the stroke front of each stroke. The standard writing process includes a standard writing order, a correct stroke type, and a correct stroke front.
By adopting the mode, the writing sequence of the strokes in the writing handwriting can be detected when the characters are written, the strokes of which the writing sequence does not meet the stroke sequence rule are detected, and the strokes of which the writing sequence is wrong are marked and displayed so as to remind a user to follow the correct character writing rule and train a good writing habit. The strokes with incorrect stroke types can be detected during writing of characters, and the strokes with incorrect stroke types are marked and displayed to prompt the user of the strokes with incorrect stroke types. The strokes with the stroke front not meeting the stroke front rule can be detected during writing of characters, and the strokes with the stroke front not meeting the stroke front rule are marked and displayed so as to prompt a user of incorrect strokes. The standard writing process of each stroke in the writing handwriting can be simulated and reproduced to prompt a user of the correct writing process of the writing handwriting, so that the wrong strokes in the writing process of the characters can be corrected, and the calligraphy level of the user can be improved. The writing efficiency of the user can be improved by correctly writing the characters.
In one embodiment, during writing of text on tablet 101 by a user using a stylus or finger. After the touch data of the current handwriting is collected, the tablet 101 displays the current handwriting in real time, and sends the touch data of the current handwriting to the terminal device 102. After receiving the contact data of the current handwriting, the terminal device 102 displays the current handwriting on its screen. By adopting the above manner, the terminal device 102 and the tablet 101 can realize synchronous display of the current handwriting.
In one embodiment, during writing of text on tablet 101 by a user using a stylus or finger. After acquiring the contact data of the current writing, the tablet 101 displays the current writing in real time, and when detecting that the time length of the user holding the pen for suspending writing exceeds a preset time length threshold (for example, 2s), sends all the contact data of the currently acquired writing to the terminal device 102. After the terminal device 102 receives all the contact data of the handwriting, the handwriting is displayed on the screen thereof. In the above manner, the tablet 101 may synchronously display the current writing trace, and the terminal device 102 displays the current writing trace after the writing trace is completed.
In the embodiment of the invention, the contact data of the handwriting when a user writes characters on the writing board is firstly obtained, the incorrect stroke written in the handwriting is determined according to the character writing rule and the contact data, then the handwriting is displayed on the display screen, and the incorrect stroke written is marked, so that the error detection can be carried out on the stroke in the handwriting, and the wrong stroke is marked and displayed.
Referring to fig. 4, fig. 4 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention. The terminal device described in the embodiment of the present invention includes: a communication unit 401, a display 402, a processor unit 403 and a memory 404. The communication unit 401, the display 402, the processor unit 403, and the memory 404 may be connected via a bus, or may be connected in another manner. The terminal device may be a tablet 101 or a device 102.
The processor Unit 403 may be one of a Central Processing Unit (CPU), a Micro Controller Unit (MCU) or a Graphics Processing Unit (GPU). The processing unit 403 may also be a core in a multi-core CPU, a multi-core GPU, or a multi-core MCU for implementing communication identifier binding.
The communication unit 401 may be used for transceiving information or signaling interaction, and receiving and transferring signals, and the communication unit 401 may be a transceiver. The display screen 402 may be used to display information input by or provided to the user and various menus for controlling the device, and the display screen 402 may also be used to display a writing trace. The Display screen 402 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
The memory 404 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, and a storage program required by at least one function (such as a text storage function, a location storage function, etc.); the storage data area may store data (such as image data, text data) created according to the use of the terminal device, etc., and may include a user interface module, an application storage program, etc.
The memory 404 is further configured to store program instructions, and the processor unit 403 may call the program instructions stored in the memory 404 to implement the method for detecting an error in writing characters as shown in fig. 2.
The invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a text writing error detection instruction, and when the text writing error detection instruction runs on a computer, the computer is caused to execute the text writing error detection method described in the above method embodiment.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The functional units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (16)

  1. A method for detecting errors in writing, the method comprising:
    acquiring contact data of writing handwriting when a user writes characters on a writing board, wherein the contact data comprises one or more of contact coordinates, contact generation time and contact pressure values;
    determining incorrect strokes written in the handwriting according to the character writing rule and the contact data;
    and controlling the display of the handwriting on a display screen and marking the wrongly written strokes.
  2. The method of claim 1, wherein the contact data includes contact coordinates and contact generation time, wherein the text writing rules include stroke order rules, and wherein determining that incorrect strokes were written in the written script based on the text writing rules and the contact data comprises:
    determining the writing sequence of each stroke in the writing handwriting according to the contact point generation time;
    determining the stroke type of each stroke according to the contact point coordinates and the contact point generation time;
    determining strokes with incorrect writing sequence in the writing handwriting according to the stroke sequence rule and the determined writing sequence and stroke type of each stroke;
    and controlling the handwriting to be displayed on a display screen, and marking the strokes with the incorrect writing sequence by using a first marking symbol.
  3. The method of claim 2, further comprising:
    adjusting the writing sequence of the strokes with incorrect writing sequence according to the stroke sequence rule and the stroke type of each stroke; and
    and controlling to display the standard writing sequence of each stroke in the writing handwriting on a display screen.
  4. The method of claim 2, wherein the determining that incorrect strokes were written in the written script based on the text writing rules and the contact data comprises:
    determining strokes with incorrect stroke types in the writing handwriting according to the writing rules of the characters and the determined writing sequence and stroke types of each stroke;
    and controlling the display of the handwriting on a display screen, and marking the strokes with the incorrect stroke types by using a second marking symbol.
  5. The method of claim 1, wherein the contact data comprises contact coordinates, contact generation time, and contact pressure values, and the text writing rules comprise hard-tipped rules for hard-tipped characters; determining incorrect strokes written in the handwriting according to the character writing rules and the contact data, wherein the determining comprises the following steps:
    acquiring a font type corresponding to the handwriting;
    when the font type corresponding to the writing handwriting is a hard-tipped pen font, determining the stroke type of each stroke in the writing handwriting according to the contact coordinates and the contact generation time;
    determining that the stroke front in the writing handwriting wrote incorrect strokes according to the stroke front rule, the contact point pressure value and the determined stroke type of each stroke;
    and controlling the handwriting to be displayed on a display screen, and marking the strokes with incorrect writing with the stroke front by using a third marking symbol.
  6. The method of claim 5, further comprising:
    acquiring a contact reference pressure value corresponding to the stroke with the incorrect writing of the stroke front, and correcting the stroke front of the stroke with the incorrect writing of the stroke front according to the contact reference pressure value; and
    and controlling to display the standard strokes of each hard-tipped pen stroke in the handwriting on a display screen.
  7. The method according to claim 1, wherein the touch point data includes touch point coordinates, touch point generation time, and touch point pressure values, the display screen is a display screen on a terminal device, and the displaying the handwriting on the display screen specifically includes:
    converting the contact coordinates into screen coordinates of the terminal equipment, and determining the size of a contact according to the contact pressure value;
    and controlling the writing handwriting to be displayed on the display screen according to the screen coordinates, the contact point generation time and the contact point size.
  8. The method of claim 1, wherein the display screen is a display screen on a tablet.
  9. A terminal device, comprising: a processor unit and a display screen, the processor unit to:
    acquiring contact data of writing handwriting when a user writes characters on a writing board, wherein the contact data comprises one or more of contact coordinates, contact generation time and contact pressure values;
    determining incorrect strokes written in the handwriting according to the character writing rule and the contact data;
    and controlling the display of the handwriting on the display screen and marking the wrongly written strokes.
  10. The terminal device according to claim 9, wherein the contact data includes contact coordinates and contact generation time, the text writing rule includes a stroke order rule, and the processor unit determines a writing order of each stroke in the writing trace according to the contact generation time;
    determining the stroke type of each stroke according to the contact point coordinates and the contact point generation time;
    determining strokes with incorrect writing sequence in the writing handwriting according to the stroke sequence rule and the determined writing sequence and stroke type of each stroke;
    and controlling the display of the handwriting on the display screen, and marking the strokes with the incorrect writing sequence by using a first marking symbol.
  11. The terminal device of claim 10, wherein the processor unit further adjusts the writing order of the strokes whose writing order is incorrect according to the stroke order rule and the stroke type of each stroke; and
    and controlling the display of the standard writing sequence of each stroke in the writing handwriting on the display screen.
  12. The terminal device according to claim 10, wherein the processor unit determines a stroke with an incorrect stroke type in the writing script according to a character writing rule and the determined writing sequence and stroke type of each stroke;
    and controlling the display of the handwriting on the display screen, and marking the stroke with the incorrect stroke type by using a second mark symbol.
  13. The terminal device according to claim 9, wherein the contact data includes contact coordinates, contact generation time, and contact pressure values, the text writing rule includes a tip rule of a hard-tipped character, and the processor unit obtains a font type corresponding to the writing script;
    when the font type corresponding to the writing handwriting is a hard-tipped pen font, determining the stroke type of each stroke in the writing handwriting according to the contact coordinates and the contact generation time;
    determining that the stroke front in the writing handwriting wrote incorrect strokes according to the stroke front rule, the contact point pressure value and the determined stroke type of each stroke;
    and controlling the display of the handwriting on the display screen, and marking the strokes with incorrect writing with the stroke front by using a third marking symbol.
  14. The terminal device according to claim 13, wherein the processor unit further obtains a contact reference pressure value corresponding to a stroke with an incorrect writing style of the tip, and corrects the tip of the stroke with the incorrect writing style of the tip according to the contact reference pressure value; and
    and controlling to display the standard strokes of each hard pen stroke in the handwriting on the display screen.
  15. The terminal device of claim 9, wherein the contact data includes contact coordinates, contact generation time, and contact pressure values, and wherein the processor unit is specifically configured to:
    converting the contact coordinates into screen coordinates of terminal equipment, and determining the size of a contact according to the contact pressure value;
    and controlling the writing handwriting to be displayed on the display screen according to the screen coordinates, the contact point generation time and the contact point size.
  16. A storage medium having stored therein a text-writing error detection instruction, which when executed on a computer, causes the computer to execute a text-writing error detection method according to any one of claims 1 to 8.
CN201880094170.7A 2018-09-19 2018-09-19 Character writing error detection method, terminal equipment and storage medium Pending CN112639712A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/106461 WO2020056619A1 (en) 2018-09-19 2018-09-19 Method for error detection in text writing, terminal device, and storage medium

Publications (1)

Publication Number Publication Date
CN112639712A true CN112639712A (en) 2021-04-09

Family

ID=69888073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880094170.7A Pending CN112639712A (en) 2018-09-19 2018-09-19 Character writing error detection method, terminal equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112639712A (en)
WO (1) WO2020056619A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510158A (en) * 2021-12-08 2022-05-17 深圳市康冠商用科技有限公司 Electronic stroke error correction method and device, touch screen device and storage medium
CN115061621A (en) * 2022-05-25 2022-09-16 山东蓝贝思特教装集团股份有限公司 Writing handwriting display control method and system for bistable liquid crystal writing device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551724A (en) * 2008-03-31 2009-10-07 联想(北京)有限公司 Method and device for writing characters on touch screen
CN103390358A (en) * 2013-07-03 2013-11-13 广东小天才科技有限公司 Method and device for performing standardability judgment of character writing operation of electronic device
CN105094381A (en) * 2015-07-21 2015-11-25 网易(杭州)网络有限公司 Writing processing method and device
CN107240330A (en) * 2017-06-27 2017-10-10 北京新国人智慧科技股份有限公司 System that handwriting display method and system, the intelligence of practising handwriting practise handwriting terminal and intelligence is practised handwriting
CN107798717A (en) * 2017-09-13 2018-03-13 深圳市创易联合科技有限公司 Electronic brush writing method, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930757A (en) * 2011-08-08 2013-02-13 高静敏 Digital method for tracing characters in red and practicing penmanship

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551724A (en) * 2008-03-31 2009-10-07 联想(北京)有限公司 Method and device for writing characters on touch screen
CN103390358A (en) * 2013-07-03 2013-11-13 广东小天才科技有限公司 Method and device for performing standardability judgment of character writing operation of electronic device
CN105094381A (en) * 2015-07-21 2015-11-25 网易(杭州)网络有限公司 Writing processing method and device
CN107240330A (en) * 2017-06-27 2017-10-10 北京新国人智慧科技股份有限公司 System that handwriting display method and system, the intelligence of practising handwriting practise handwriting terminal and intelligence is practised handwriting
CN107798717A (en) * 2017-09-13 2018-03-13 深圳市创易联合科技有限公司 Electronic brush writing method, device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510158A (en) * 2021-12-08 2022-05-17 深圳市康冠商用科技有限公司 Electronic stroke error correction method and device, touch screen device and storage medium
CN115061621A (en) * 2022-05-25 2022-09-16 山东蓝贝思特教装集团股份有限公司 Writing handwriting display control method and system for bistable liquid crystal writing device

Also Published As

Publication number Publication date
WO2020056619A1 (en) 2020-03-26

Similar Documents

Publication Publication Date Title
KR101417286B1 (en) Character recognition for overlapping textual user input
KR100359961B1 (en) Handwriting information processing system with character segmentation user interface
CN107391016B (en) Handwriting input handwriting calibration method and system
US20140368453A1 (en) Handwriting input apparatus, non-transitory computer-readable storage medium and control method
CN105488544A (en) Method and system for identifying trace copy handwriting
CN103778818A (en) Method and device for prompting spelling errors
CN106445386B (en) A kind of handwriting display method and device
US20150035778A1 (en) Display control device, display control method, and computer program product
CN112639712A (en) Character writing error detection method, terminal equipment and storage medium
US20120078505A1 (en) Map generating device, and memory medium storing map generating program
US8913043B2 (en) Electronic writing apparatus, non-transitory recording medium, and electronic writing system
CN101763216B (en) Hand input method for Linux operational system
JP5708113B2 (en) Computer apparatus and program thereof
US9229608B2 (en) Character display apparatus, character display method, and computer readable medium
WO2022160330A1 (en) Handwriting recognition method and apparatus
CN105260089A (en) User interface display method and electronic device
CN107563456A (en) The hand-written method of correcting mistakes of Chinese language, readable storage medium storing program for executing
JP2016075976A (en) Image processing apparatus, image processing method, image communication system, and program
CN106648171A (en) Interactive system and method based on writing pens
US6973214B1 (en) Ink display for multi-stroke hand entered characters
KR100901870B1 (en) Method and System for Improving the Character Recognition Performance of Electronic Pen
US20160012286A1 (en) Electronic apparatus, method and storage medium
CN111144192A (en) Information processing apparatus, information processing method, and storage medium
CN114241090B (en) OCR-based electronic whiteboard straight line drawing method, system, equipment and medium
CN110348427A (en) A kind of face hand-written input system and method based on Image Acquisition

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210409