WO2020056619A1 - Method for error detection in text writing, terminal device, and storage medium - Google Patents

Method for error detection in text writing, terminal device, and storage medium Download PDF

Info

Publication number
WO2020056619A1
WO2020056619A1 PCT/CN2018/106461 CN2018106461W WO2020056619A1 WO 2020056619 A1 WO2020056619 A1 WO 2020056619A1 CN 2018106461 W CN2018106461 W CN 2018106461W WO 2020056619 A1 WO2020056619 A1 WO 2020056619A1
Authority
WO
WIPO (PCT)
Prior art keywords
writing
stroke
handwriting
contact
touch point
Prior art date
Application number
PCT/CN2018/106461
Other languages
French (fr)
Chinese (zh)
Inventor
张宏雷
Original Assignee
深圳市柔宇科技有限公司
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 深圳市柔宇科技有限公司 filed Critical 深圳市柔宇科技有限公司
Priority to CN201880094170.7A priority Critical patent/CN112639712A/en
Priority to PCT/CN2018/106461 priority patent/WO2020056619A1/en
Publication of WO2020056619A1 publication Critical patent/WO2020056619A1/en

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

Definitions

  • the present invention relates to the technical field of data processing, and in particular, to a method for detecting writing errors, a terminal device, and a storage medium.
  • writing boards came into being, and have been widely used in users' daily learning and work. For example, a user can use a writing pad for writing exercises. Because there is currently no way to detect errors in writing strokes, it is impossible to determine whether there are stroke writing errors during the writing process. Therefore, how to detect errors in the strokes when writing text is an urgent problem that needs to be solved at present.
  • Embodiments of the present invention provide a method for detecting writing errors, a terminal device, and a storage medium, which can detect errors in writing strokes and mark and display incorrect strokes.
  • a first aspect of the embodiments of the present invention provides a method for error detection in writing, the method includes:
  • the touch point data includes one or more of touch point coordinates, touch point generation time, and touch pressure value;
  • the control displays the writing handwriting on a display screen and marks the incorrectly written stroke.
  • a second aspect of the embodiments of the present invention provides a terminal device, including: a processor unit and a display screen, where the processor unit is configured to:
  • the touch point data includes one or more of touch point coordinates, touch point generation time, and touch pressure value;
  • a storage medium stores text writing error detection instructions.
  • the computer is caused to execute the foregoing text writing error detection method. .
  • FIG. 1 is a schematic architecture diagram of a writing system according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for detecting writing errors in text writing according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a writing handwriting provided by 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.
  • FIG. 1 is a schematic structural diagram of a writing system according to an embodiment of the present invention.
  • the writing system includes a tablet 101 and a terminal device 102, and 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.
  • a communication connection may also be established between the tablet 101 and the terminal device 102 through other communication methods, which is not limited herein.
  • the writing system may further include a writing pen capable of writing on the writing pad 101.
  • the terminal device 102 may be a terminal configured with a display screen and a data processing function, such as a smart phone, a tablet computer, and a mobile Internet device (MID).
  • MID mobile Internet device
  • the tablet 101 includes a display screen, and the display screen is disposed on the tablet 101 for displaying writing handwriting generated when a user writes text.
  • 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 having data receiving and transmitting functions.
  • the processor of the tablet 101 acquires the contact data of the writing handwriting generated when the 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 device 102 receives the contact data.
  • the processor of the terminal device 102 obtains the contact data, and performs error detection on the writing handwriting according to the contact data.
  • the processor of the terminal device 102 controls the display screen to display the writing handwriting, and marks incorrectly written strokes in the writing handwriting.
  • the writing handwriting may also be directly detected by the tablet 101, and the display screen may be controlled to display the writing handwriting, and the incorrect writing strokes in the writing handwriting may be marked.
  • FIG. 2 is a schematic flowchart of a text writing error detection method according to an embodiment of the present invention.
  • the text writing error detection method runs on a terminal device 102 or a tablet 101 as shown in FIG. 1.
  • the text writing error detection method includes the following steps:
  • Step S201 Acquire touch data of a writing handwriting when a user writes a character on a tablet.
  • step S201 is specifically: the tablet 101 directly obtains the touch point data of the writing handwriting generated by the user when writing the text. That is, the contact data of the writing handwriting is collected by the tablet 101.
  • step S201 is specifically: the terminal device 102 receives the text sent by the tablet 101 when the user writes the text when the user writes the text.
  • the touch point data of the writing handwriting that is, the terminal device 102 is the contact point data of the writing handwriting generated when the user writes text from the tablet 101.
  • the writing handwriting includes one or more strokes, and each stroke includes multiple touch points.
  • the tablet 101 collects contact data of each contact in the writing handwriting.
  • the contact data includes one or more of contact coordinates, contact generation time, and contact pressure values.
  • the contact coordinates refer to the coordinates of pixels in a dot matrix formed on the tablet 101 by the center of the contact, for example, (30pixel, 40pixel).
  • the writing board 101 can send the collected contact data of each contact in the writing handwriting to the terminal device 102.
  • the terminal device 102 receives contact data of each contact in the writing handwriting sent by the tablet 101.
  • Step S202 Determine an incorrectly written stroke in the writing handwriting according to the character writing rule and the touch point data.
  • the character writing rule includes a stroke writing rule and a stroke order rule, and the character writing rule is stored in the memory of the terminal device 102 or the tablet 101 in advance.
  • a stroke in writing handwriting refers to a writing handwriting formed from the process of starting writing with a writing pen or a finger on the writing pad 101 to lifting the pen to suspend writing. That is to say, the writing of the same stroke in the writing stroke is continuous, and the generation time interval between multiple contacts in the same stroke is short. However, there is a certain time interval between the writing of different strokes in the writing handwriting, and the generation time interval between the contacts of different strokes is relatively long.
  • the terminal device 102 or the tablet 101 can determine the generation time interval between different contacts according to the contact generation time in the contact data, and determine each stroke in the writing handwriting according to the generation time interval between different contacts.
  • the touch points included in a stroke that is, determining which touch points belong to the same stroke. Specifically, when the generation time interval between two adjacent contacts is less than or equal to a preset value, the terminal device 102 or the tablet 101 determines that the adjacent two contacts are contacts in the same stroke; When the generation time interval between the points is greater than the preset value, the terminal device 102 or the tablet 101 determines that the two adjacent contacts are contacts in two different strokes, that is, there are at least two strokes in the writing handwriting.
  • the terminal device 102 or the tablet 101 determines the writing order of each stroke in the writing handwriting according to the generation time of each contact in each stroke.
  • the writing order may refer to a position where each stroke starts and ends and a sequence from the start to the end. In another embodiment, the writing order may refer to a writing order between each stroke in the writing handwriting.
  • the terminal device 102 or the tablet 101 determines the stroke trajectory of each stroke in the writing stroke according to the coordinates and generation time of the touch point in each stroke; and then according to the stroke writing rule and the stroke of each stroke Track to determine the stroke type of each stroke in the writing handwriting.
  • the stroke writing rule may be a stroke writing rule for Chinese characters.
  • the stroke writing rules include: stroke horizontal (1), the stroke trajectory is increasing along the positive direction of the X axis, and the included angle formed by the stroke trajectory and the X axis is within plus or minus 10 degrees.
  • the stroke is vertical ( ⁇ ), the stroke trajectory is increasing along the negative direction of the Y axis, and the included angle formed by the stroke trajectory and the Y axis is within plus or minus 10 degrees.
  • Stroke skimming ( ⁇ ), the stroke trajectory is increasing along the negative direction of the X-axis, and increasing along the negative direction of the Y-axis, and the included angle formed by the stroke trajectory and the X-axis is within negative 125 degrees to negative 145 degrees.
  • Stroke points ( ⁇ ), the stroke trajectory is increasing along the positive direction of the X axis, and increasing along the negative direction of the Y axis, and the angle formed by the stroke trajectory and the X axis is within the range of negative 35 degrees to negative 55 degrees. The distance of the end point coordinates is less than 90pixel.
  • the terminal device 102 or the tablet 101 judges the change trend of the stroke trajectory of each stroke along the X-axis and Y-axis, respectively, and determines the angle between the stroke trajectory of each stroke and the X-axis and Y-axis, respectively; The change trend and the included angle are compared with the stroke writing rule to determine the stroke type of each stroke in the writing handwriting.
  • the terminal device 102 or the tablet 101 determines strokes with incorrect writing order in the writing handwriting according to the stroke order rule and the writing order and stroke type of each of the writing handwriting.
  • the stroke order rule is the writing order of each stroke, and the incorrect writing order means that the order of starting and finishing of a certain stroke in the writing handwriting is incorrect.
  • the stroke order rule may also be a stroke order rule for Chinese characters pre-stored in a memory; the incorrect writing order means that the writing order between at least two strokes in the writing handwriting is incorrect .
  • Table 1 shows the pre-stored rules for the writing order of Chinese character strokes, that is, the correct writing order between strokes when writing Chinese characters.
  • the stroke order rules when writing Chinese characters include: horizontal first, vertical first, left first, then left, right from top to bottom, left to right, first outside then inside, first outside then inside, then sealing, first middle and then Wait on both sides.
  • the terminal device 102 or the tablet 101 first determines the standard writing order of each stroke in the writing handwriting according to the stroke order rule and the stroke type of each stroke in the writing handwriting; then, each stroke in the writing handwriting.
  • the standard writing order of the strokes is compared with the actual writing order of each stroke to determine the strokes in which the writing order is incorrect in the writing handwriting.
  • FIG. 3 is a schematic diagram of a writing handwriting.
  • the writing handwriting shown in Fig. 3 is "car".
  • the standard writing order of each stroke in the character "car” is horizontal, skimming, horizontal, and vertical.
  • the actual writing order is horizontal, fold-off, vertical, and horizontal.
  • the terminal device 102 or the tablet 101 can determine that in the actual writing handwriting corresponding to the word "car”, the writing order of the last two strokes is not vertical correct.
  • the terminal device 102 Or, according to the standard writing order of the horizontal strokes of the handwriting tablet 101, it can be determined that in the actual writing handwriting corresponding to the character "car", the writing order of the horizontal strokes is incorrect.
  • the terminal device 102 or the tablet determines the first stroke in the writing order in which the writing order is incorrect according to the stroke order rule and the writing order and stroke type of each stroke in the writing handwriting,
  • the strokes in which the writing order is arranged after the strokes are judged, and the strokes are directly determined as the strokes with incorrect writing order in the writing handwriting.
  • the terminal device 102 or the tablet 101 may further determine the strokes in the writing handwriting according to the text formed by the writing handwriting, the writing rules of the text, and the writing order and stroke type of each stroke in the writing handwriting. Incorrect strokes.
  • the writing rules of the text are used to indicate the standard writing order and correct stroke type of each stroke in the text corresponding to the writing handwriting.
  • the terminal device 102 or the tablet 101 After determining the actual writing order and actual stroke type of each stroke in the writing handwriting, the terminal device 102 or the tablet 101 first detects whether the actual writing order between each stroke in the writing handwriting is correct.
  • the terminal device 102 or the tablet 101 determines a standard writing order between each stroke in the text corresponding to the writing handwriting according to the writing rule of the text, and then compares the standard writing order of the text with the writing handwriting. The actual writing order between each of the strokes is compared to check whether the writing order between each stroke in the writing handwriting is correct.
  • the terminal device 102 or the tablet 101 determines the correct stroke type of each stroke in the text corresponding to the writing handwriting according to the writing rules of the text; then The correct stroke type is compared with the type of each actual stroke of the writing handwriting to obtain a stroke with an incorrect stroke type in the writing handwriting. For example, suppose that when a user writes a "wooden" character, the actual writing order of each stroke and the actual stroke type are horizontal, vertical lifting, skimming, and ⁇ . According to the rules for writing Chinese characters, the standard writing order and correct stroke type of each stroke in "Mu” is horizontal, vertical, skimming, and ⁇ . Based on the correct stroke type of each stroke in the "wood” character, the terminal device 102 or the tablet 101 can determine that the actual stroke type of the second stroke in the actual writing handwriting corresponding to the "wood” character is incorrect.
  • the terminal device 102 or the tablet 101 If there are strokes in which the writing order between strokes is incorrect in the writing handwriting, the terminal device 102 or the tablet 101 first writes in the writing handwriting according to the standard writing order between each stroke in the text corresponding to the writing handwriting. The writing order of strokes with incorrect order is adjusted to obtain the writing handwriting after the stroke writing order is adjusted. Further, the terminal device 102 or the tablet 101 determines the correct stroke type of each stroke in the text corresponding to the writing handwriting according to the writing rules of the text; and corrects the stroke of each stroke in the text corresponding to the writing handwriting.
  • the type is compared with the actual stroke type of the strokes corresponding to the writing order in the writing handwriting adjusted after the stroke writing order is adjusted, and the stroke with the incorrect stroke type in the writing handwriting after the stroke writing order adjustment is obtained, that is, in the actual writing handwriting Stroke type is incorrect.
  • the actual writing order of each stroke and the actual stroke type are horizontal, vertical lifting, ⁇ , and skimming.
  • the standard writing order and correct stroke type of each stroke in the "wood” characters are horizontal, vertical, skimming, and ⁇ .
  • the terminal device 102 or the tablet 101 can determine the writing order of the third and fourth strokes in the actual writing handwriting corresponding to the "wood" character according to the standard writing order of each stroke in the "wood” character Incorrect; first adjust the writing order of the strokes with incorrect writing order to get the writing handwriting after adjusting the writing order of the strokes; the writing order and stroke type of each stroke in the writing handwriting after adjusting the writing order of the strokes For horizontal, vertical lifting, skimming, ⁇ . Further, according to the correct stroke type of each stroke in the "wood” character, the terminal device 102 or the tablet 101 can determine the second stroke in the writing handwriting after the stroke order corresponding to the "wood” character is adjusted. The stroke type of the vertical stroke is incorrect, that is, the stroke type of the vertical stroke of the second stroke in the actual writing handwriting is incorrect.
  • the terminal device 102 or the tablet 101 acquires a font type corresponding to the writing handwriting.
  • the font type corresponding to the writing handwriting is a hard pen font
  • the terminal device 102 or the tablet 101 may further determine according to the pen tip rule, the contact pressure value in the contact data, and the stroke type of each stroke in the writing handwriting.
  • the stroke rule may be a stroke rule of a hard pen character in Chinese characters, that is, a sharp edge that a stroke should have when writing a hard pen character; the stroke rule is stored in the memory of the terminal device 102 or the tablet 101 in advance.
  • the rules of strokes include: heavy strokes and light strokes.
  • the stroke is horizontal with a stroke at the head and tail, that is, the pressure value of the contact at the head and tail should be larger, and the pressure of the contact at the middle portion should be smaller;
  • the stroke is a stroke with a stroke at the head, that is, the head
  • the pressure value of the contact should be large, and the pressure value of the contact should gradually decrease from beginning to end.
  • the terminal device 102 or the tablet 101 determines the actual contact pressure change of the contact included in each stroke according to the generation time and the contact pressure value of the contact included in each stroke; The stroke type of each stroke in the writing handwriting, and the change of the reference contact pressure value of the stroke type is obtained. The terminal device 102 or the tablet 101 then compares the change in the actual contact pressure value with the change in the reference contact pressure value to determine the incorrect strokes written by the pen in the writing handwriting. For example, the change of the reference contact pressure value of the stroke horizontally changes from large to small, and then from small to large. It is assumed that the actual contact pressure value of the strokes in the writing stroke changes only from large to small. Then the terminal device 102 or the tablet 101 can determine the actual contact pressure change of the stroke horizontal in the writing stroke, and the reference contact pressure value corresponding to the stroke horizontal does not match, and determine the stroke horizontal in the writing stroke as Strokes written incorrectly.
  • the display interface of the tablet 101 or the terminal device 102 further includes a font option, and the font option includes a hard pen font option and a soft pen font option.
  • the tablet 101 or the terminal device 102 receives a selection instruction input by the user for the font option, and determines the type of font selected by the user according to the selection instruction.
  • the selected font type is the font type corresponding to the handwriting when the user writes characters on the tablet 101.
  • the terminal device 102 or the tablet 101 may obtain a font type corresponding to a writing handwriting according to a font type selected by a user.
  • Step S203 controlling the writing handwriting to be displayed on a display screen, and marking the incorrectly written strokes.
  • the strokes with incorrect writing include one or more of strokes with incorrect writing order, strokes with incorrect writing type, and strokes with incorrect stroke edge.
  • the terminal device 102 when the terminal device 102 needs to display the above writing handwriting, the terminal device 102 converts the touch point coordinates of each contact point in the writing handwriting into the screen coordinates of the terminal device 102. Then, the terminal device 102 determines the contact size of each contact in the writing handwriting according to the contact pressure value in the contact data.
  • the contact size refers to the number of pixels occupied by the contact in a dot matrix formed on the display screen of the terminal device 102.
  • the terminal device 102 displays the writing handwriting on the display screen of the terminal device 102 according to the screen coordinates, contact generation time, and contact size corresponding to each contact in the writing handwriting.
  • the contacts in the writing handwriting collected by the tablet 101 become sparse. If the terminal device 102 or the tablet 101 displays the writing handwriting, only sparse contacts are connected by line segments, the curved strokes in the writing handwriting are prone to corners, which will cause the writing displayed on the terminal device 102 or the tablet 101 The handwriting is less reproducible than the actual writing handwriting.
  • the terminal device 102 or the tablet 101 may use Bezier difference values to fit the touch points in the writing handwriting.
  • the terminal device 102 or the tablet 101 first determines the midpoint between each two contacts, then uses each contact as the control point, and uses the two midpoints adjacent to the contacts as the secondary Bezier difference, respectively.
  • the starting and ending points and ending points of the value determine the quadratic Bezier curve between the contact and two midpoints adjacent to the contact to achieve fitting of the contact in the writing handwriting.
  • the terminal device 102 or the tablet 101 acquires screen coordinates corresponding to the fitted touch points.
  • the terminal device 102 or the handwriting tablet 101 enlarges the fitted writing handwriting to a target factor (for example, 1.2 times) on the display screen according to the screen coordinates corresponding to the fitted contacts, the generation time of the contacts, and the size of the contacts. Display. Fitting the contacts in this writing handwriting with Bezier difference can optimize radian for strokes with radian, which can simulate the real writing effect of writing handwriting and improve the writing handwriting displayed by terminal device 102 or tablet 101 The degree of reduction relative to the actual handwriting.
  • a specific mark may be used to display the incorrectly written stroke.
  • the incorrectly written stroke is displayed by a specific color mark.
  • the terminal device 102 or the tablet 101 may mark the strokes in which the writing order is incorrect in the writing handwriting with a first marking symbol.
  • the first marker symbol may be a first target color, and the first target color may be red, gray, or the like.
  • the terminal device 102 or the tablet 101 may display bold strokes with incorrect writing order in the writing handwriting, or may display the strokes with incorrect writing order in a blinking manner, which is not limited herein. For example, please refer to FIG. 3 together.
  • the terminal device 102 or the tablet 101 may mark the The strokes in the wrong writing order are vertical and horizontal.
  • the strokes in the correct writing order in the figure are marked in black. In the above manner, the writing order of the strokes in the writing handwriting can be detected, and the strokes with incorrect writing order can be marked and displayed.
  • the terminal device 102 or the tablet 101 may mark a stroke with an incorrect stroke type in the writing handwriting with a second marking symbol.
  • the second marker symbol may be a second target color, and the second target color may be yellow or orange.
  • the terminal device 102 or the tablet 101 may also display bold strokes with incorrect stroke types in the writing handwriting, or flash display the strokes with incorrect stroke types, which is not limited herein.
  • the second marker symbol is different from the first marker symbol, that is, the terminal device 102 or the tablet 101 displays the markers of the strokes whose type is incorrect, and the markers of the strokes whose writing order is incorrect. The display is different.
  • the terminal device 102 or the tablet 101 may mark a stroke that is incorrectly written by a pen in the writing handwriting with a third marking symbol.
  • the third mark symbol may be a third target color, and the third target color may be purple or blue.
  • the terminal device 102 or the tablet 101 may also display bold strokes in which the writing edge is incorrectly written in the writing handwriting, or may display blinking strokes in which the writing edge is incorrectly written, which is not limited herein.
  • the third mark symbol is different from the first mark symbol and the second mark symbol, that is, the terminal device 102 or the tablet 101 displays the marks of the strokes that are incorrectly written by the pen, and the writing order of the strokes. Marks for incorrect strokes are displayed differently, as are marks for strokes that are incorrect for the stroke type.
  • the terminal device 102 or the tablet 101 further adjusts the writing order of the strokes in which the writing order is incorrect in the writing handwriting according to the stroke order rule and the stroke type of each stroke in the writing handwriting to obtain The standard writing order for each stroke in the writing handwriting.
  • the terminal device 102 or the tablet 101 replaces the strokes of the incorrect stroke type in the writing handwriting according to the correct stroke type of each stroke in the text corresponding to the writing handwriting indicated by the writing rule, and the stroke types are correct.
  • Writing handwriting The terminal device 102 or the tablet 101 obtains the contact reference pressure value corresponding to the incorrect stroke of the pen writing in the writing handwriting, and the contact reference pressure value is obtained according to the rules of the writing point.
  • 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 can be a specific value or a range of values.
  • the terminal device 102 or the tablet 101 determines the correction pressure value of each contact according to the contact coordinates and contact generation time of each contact in the incorrect writing stroke of the pen, and the reference pressure value of the contact;
  • the correction pressure value of each contact point is used to correct the stroke of an incorrectly written stroke of the pen to obtain a correct stroke of the stroke.
  • the terminal device 102 or the tablet 101 is based on the screen coordinates of the contacts in the writing handwriting, the contact generation time, each correct stroke in the writing handwriting, and the correct writing order of each stroke, and the tip of each stroke.
  • the standard writing process of each stroke in the writing handwriting is displayed on its display screen.
  • the standard writing process includes standard writing order, correct stroke type, and correct stroke.
  • the writing order of the strokes in the writing handwriting can be detected when writing the text, the strokes whose writing order does not satisfy the rules of the stroke order can be detected, and the strokes with the wrong writing order can be marked to show the user to follow the correct text Writing rules, develop good writing habits. It is also possible to perform error detection on strokes with incorrect stroke types when writing text, and mark and display strokes with incorrect stroke types to prompt the user that the stroke types are incorrect. It is also possible to perform error detection on strokes that do not satisfy the rule of the pen tip when writing the text, and mark the strokes that do not satisfy the rule of the pen tip to indicate to the user that the stroke of the pen is incorrect.
  • the standard writing process of each stroke in the writing handwriting can also be simulated and reproduced to remind the user of the correct writing process of the writing handwriting, thereby correcting the wrong stroke when writing the text and improving the user's calligraphy level. Writing text correctly can improve the user's writing efficiency.
  • the tablet 101 collects the contact data of the current writing handwriting, it displays the current writing handwriting in real time, and sends the contact data of the current writing handwriting to the terminal device 102.
  • the terminal device 102 After receiving the touch point data of the current writing handwriting, the terminal device 102 displays the current writing handwriting on its screen. In the above manner, the terminal device 102 and the tablet 101 can realize synchronous display of the current writing handwriting.
  • the touchpad 101 collects the touch data of the current writing handwriting
  • the current writing handwriting is displayed in real time, and when it is detected that the user pauses writing for a period longer than a preset time threshold (for example, 2s), the current acquired writing handwriting is detected. All contact data is sent to the terminal device 102 together. After receiving all the touch point data of the writing handwriting, the terminal device 102 displays the writing handwriting on its screen. In the above manner, the tablet 101 can synchronously display the current writing handwriting, and the terminal device 102 displays the writing handwriting after the writing handwriting is completed.
  • a preset time threshold for example, 2s
  • 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 screen 402, a processor unit 403, and a memory 404.
  • the communication unit 401, the display screen 402, the processor unit 403, and the memory 404 may be connected through a bus, or may be connected in other ways.
  • 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 Microcontroller Unit (MCU), or a Graphics Processing Unit (GPU).
  • the processing unit 403 may also be a core used in a multi-core CPU, a multi-core GPU, or a multi-core MCU for implementing communication identification binding.
  • the above-mentioned communication unit 401 may be used for receiving and transmitting information or signaling, and receiving and transmitting signals.
  • the communication unit 401 may be a transceiver.
  • the display screen 402 may be used to display information input by the user or provided to the user and various menus of the control device, and the display screen 402 may also be used to display the writing track.
  • the display screen 402 may be configured by using an LCD (Liquid Crystal Display) or an OLED (Organic Light-Emitting Diode).
  • the above memory 404 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system and a storage program (such as a text storage function, a location storage function, etc.) required by at least one function; the storage data area may store data according to The data (such as image data and text data) created by the use of the terminal device may include a user interface module, an application storage program, and the like.
  • the storage program area may store an operating system and a storage program (such as a text storage function, a location storage function, etc.) required by at least one function; the storage data area may store data according to
  • the data (such as image data and text data) created by the use of the terminal device may include a user interface module, an application storage program, and the like.
  • 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 a method for detecting writing errors as shown in FIG. 2.
  • the present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores text writing error detection instructions, and when the text writing error detection instructions are run on a computer, the computer is caused to execute the above method embodiment.
  • the method of text writing error detection is described.
  • the steps in the method of the embodiment of the present invention may be adjusted, combined, and deleted according to actual needs.
  • the functional units in the device according to the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
  • the program may be stored in a computer-readable storage medium.
  • the storage medium may include: Flash disk, Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk, etc.

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 method for error detection in text writing, a terminal device, and a storage medium. The method comprises: obtaining contact data of a handwriting of text writing when a user writes text on a writing board, the contact data comprising one or more of contact coordinates, a contact generation time, and a contact pressure value; determining an incorrectly-written stroke in the handwriting according to a text writing rule and the contact data; and controlling to display the handwriting on a display screen, and marking the incorrectly-written stroke. In embodiments of the present invention, error detection can be performed for a stroke in a handwriting, and a wrong stroke can be marked and displayed.

Description

文字书写检错方法、终端设备及存储介质Text writing error detection method, terminal equipment and storage medium 技术领域Technical field
本发明涉及数据处理技术领域,尤其涉及一种文字书写检错方法、终端设备及存储介质。The present invention relates to the technical field of data processing, and in particular, to a method for detecting writing errors, a terminal device, and a storage medium.
背景技术Background technique
随着电子技术的发展,写字板应运而生,且已广泛应用于用户的日常学习和工作中。例如,用户可以利用写字板进行文字书写练习。由于目前还没有一种对文字书写时的笔画进行检错的方式,从而导致不能确定在文字书写过程中是否有笔画书写错误。因此,如何对文字书写时的笔画进行检错是目前亟需解决的问题。With the development of electronic technology, writing boards came into being, and have been widely used in users' daily learning and work. For example, a user can use a writing pad for writing exercises. Because there is currently no way to detect errors in writing strokes, it is impossible to determine whether there are stroke writing errors during the writing process. Therefore, how to detect errors in the strokes when writing text is an urgent problem that needs to be solved at present.
发明内容Summary of the Invention
本发明实施例提供了一种文字书写检错方法、终端设备及存储介质,可以对书写笔迹中的笔画进行检错,并标记显示错误笔画。Embodiments of the present invention provide a method for detecting writing errors, a terminal device, and a storage medium, which can detect errors in writing strokes and mark and display incorrect strokes.
本发明实施例第一方面提供了一种文字书写检错方法,所述方法包括:A first aspect of the embodiments of the present invention provides a method for error detection in writing, the method includes:
获取用户在写字板上进行文字书写时书写所述文字时的书写笔迹的触点数据,所述触点数据包括触点坐标、触点生成时间和触点压力值中的一种或者多种;Acquiring touch point data of a handwriting when a user writes a text when writing on a writing board, the touch point data includes one or more of touch point coordinates, touch point generation time, and touch pressure value;
根据文字书写规则以及所述触点数据,确定所述书写笔迹中书写不正确的笔画;Determining incorrectly written strokes in the writing handwriting according to the writing rules of the text and the touch point data;
控制在显示屏上显示所述书写笔迹,并标记所述书写不正确的笔画。The control displays the writing handwriting on a display screen and marks the incorrectly written stroke.
本发明实施例第二方面提供了一种终端设备,包括:处理器单元和显示屏,所述处理器单元用于:A second aspect of the embodiments of the present invention provides a terminal device, including: a processor unit and a display screen, where the processor unit is configured to:
获取用户在写字板上进行文字书写时书写所述文字时的书写笔迹的触点数据,所述触点数据包括触点坐标、触点生成时间和触点压力值中的一种或者多种;Acquiring touch point data of a handwriting when a user writes a text when writing on a writing board, the touch point data includes one or more of touch point coordinates, touch point generation time, and touch pressure value;
根据文字书写规则以及所述触点数据,确定所述书写笔迹中书写不正确的 笔画;Determining incorrectly written strokes in the writing handwriting according to the writing rules of the text and the touch point data;
控制在所述显示屏上显示所述书写笔迹,并标记所述书写不正确的笔画。And controlling the display of the writing handwriting on the display screen and marking the incorrectly written stroke.
本发明实施例第三方面提供了一种存储介质,所述存储介质中存储有文字书写检错指令,当所述文字书写检错指令在计算机上运行时,使得计算机执行上述文字书写检错方法。According to a third aspect of the embodiments of the present invention, a storage medium is provided. The storage medium stores text writing error detection instructions. When the text writing error detection instructions are run on a computer, the computer is caused to execute the foregoing text writing error detection method. .
本发明实施例中,首先获取用户在写字板上进行文字书写时的书写笔迹的触点数据,并根据文字书写规则以及触点数据确定书写笔迹中书写不正确的笔画,然后在显示屏上显示书写笔迹,并标记书写不正确的笔画,从而可以对书写笔迹中的笔画进行检错,并标记显示错误笔画。In the embodiment of the present invention, first, contact data of a writing handwriting when a user writes text on a tablet is obtained, and the incorrect strokes written in the writing handwriting are determined according to the writing rules and the contact data, and then displayed on the display Writing handwriting and marking incorrectly written strokes, so that the strokes in the writing handwriting can be checked for errors, and the wrong strokes can be marked and displayed.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings according to these drawings without paying creative labor.
图1是本发明一实施例提供的书写系统的架构示意图;FIG. 1 is a schematic architecture diagram of a writing system according to an embodiment of the present invention;
图2是本发明一实施例提供的文字书写检错方法的流程图;FIG. 2 is a flowchart of a method for detecting writing errors in text writing according to an embodiment of the present invention; FIG.
图3是本发明一实施例提供的一文字书写笔迹的示意图;3 is a schematic diagram of a writing handwriting provided by an embodiment of the present invention;
图4是本发明一实施例提供的终端设备的硬件结构的示意图。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 solutions 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.
请一并参阅图1,图1为本发明一实施例提供的书写系统的架构示意图。该书写系统包括:写字板101和终端设备102,该写字板101和该终端设备102之间建立有通信连接。该写字板101和该终端设备102之间可以是建立有蓝牙(Bluetooth)通信连接。该写字板101和该终端设备102之间还可以是通过其他通信方式建立通信连接,此处不作限定。该书写系统还可以包括能够在该写字板101上进行书写的写字笔。该终端设备102可以是智能手机、平板电脑、移动 互联网设备(Mobile Internet Devices,MID)等配置显示屏和具备数据处理功能的终端。Please refer to FIG. 1 together. FIG. 1 is a schematic structural diagram of a writing system according to an embodiment of the present invention. The writing system includes a tablet 101 and a terminal device 102, and 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. A communication connection may also be established between the tablet 101 and the terminal device 102 through other communication methods, which is not limited herein. The writing system may further include a writing pen capable of writing on the writing pad 101. The terminal device 102 may be a terminal configured with a display screen and a data processing function, such as a smart phone, a tablet computer, and a mobile Internet device (MID).
在一实施方式中,写字板101包括显示屏,该显示屏设置在该手写板101上,用于显示用户书写文字时所生成的书写笔迹。写字板101还包括处理器和收发器。终端设备102包括处理器、显示屏和收发器。其中,所述收发器为具有数据接收与发送功能的器件。写字板101的处理器获取用户在写字板101上进行文字书写时所生成的书写笔迹的触点数据,并通过写字板101的收发器将触点数据发送给该终端设备102。相应地,终端设备102的收发器接收该触点数据。终端设备102的处理器获取该触点数据,并根据该触点数据对该书写笔迹进行检错。终端设备102的处理器控制显示屏显示该书写笔迹,并标记该书写笔迹中书写不正确的笔画。在一实施方式中,也可由写字板101直接对该书写笔迹进行检错,并控制其显示屏显示该书写笔迹,且标记该书写笔迹中书写不正确的笔画。以下分别进行详细说明。In one embodiment, the tablet 101 includes a display screen, and the display screen is disposed on the tablet 101 for displaying writing handwriting generated when a user writes text. The tablet 101 also includes a processor and a transceiver. The terminal device 102 includes a processor, a display screen, and a transceiver. Wherein, the transceiver is a device having data receiving and transmitting functions. The processor of the tablet 101 acquires the contact data of the writing handwriting generated when the 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 device 102 receives the contact data. The processor of the terminal device 102 obtains the contact data, and performs error detection on the writing handwriting according to the contact data. The processor of the terminal device 102 controls the display screen to display the writing handwriting, and marks incorrectly written strokes in the writing handwriting. In an embodiment, the writing handwriting may also be directly detected by the tablet 101, and the display screen may be controlled to display the writing handwriting, and the incorrect writing strokes in the writing handwriting may be marked. Each of them will be described in detail below.
请参阅图2,图2为本发明一实施例提供的文字书写检错方法的流程示意图。该文字书写检错方法运行于如图1所示的终端设备102上或手写板101上。该文字书写检错方法包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a text writing error detection method according to an embodiment of the present invention. The text writing error detection method runs on a terminal device 102 or a tablet 101 as shown in FIG. 1. The text writing error detection method includes the following steps:
步骤S201,获取用户在写字板上进行文字书写时书写所述文字时的书写笔迹的触点数据。Step S201: Acquire touch data of a writing handwriting when a user writes a character on a tablet.
在一实施方式中,该文字书写检错方法运行于手写板101上时,步骤S201具体为:手写板101直接获取用户在进行文字书写时所生成的书写笔迹的触点数据。也即该书写笔迹的触点数据是写字板101采集到的。In one embodiment, when the text writing error detection method is run on the tablet 101, step S201 is specifically: the tablet 101 directly obtains the touch point data of the writing handwriting generated by the user when writing the text. That is, the contact data of the writing handwriting is collected by the tablet 101.
具体的,当该文字书写检错方法运行于终端设备102上时,步骤S201具体为:终端设备102接收手写板101发送的用户在进行文字书写时手写板101所获取到的书写该文字时的书写笔迹的触点数据,也即,该终端设备102是从手写板101上获取到用户书写文字时所生成的书写笔迹的触点数据。Specifically, when the text writing error detection method is run on the terminal device 102, step S201 is specifically: the terminal device 102 receives the text sent by the tablet 101 when the user writes the text when the user writes the text. The touch point data of the writing handwriting, that is, the terminal device 102 is the contact point data of the writing handwriting generated when the user writes text from the tablet 101.
其中,该书写笔迹包括一笔或多笔笔画,每笔笔画包括多个触点。在用户进行文字书写的过程中,该写字板101采集该书写笔迹中每个触点的触点数据。触点数据包括触点坐标、触点生成时间和触点压力值中的一种或者多种。其中, 触点坐标是指触点中心在写字板101上形成的点阵中的像素(pixel)坐标,例如(30pixel,40pixel)。该写字板101可将采集得到的该书写笔迹中每个触点的触点数据发送给终端设备102。终端设备102接收写字板101发送的该书写笔迹中每个触点的触点数据。The writing handwriting includes one or more strokes, and each stroke includes multiple touch points. During the user's writing process, the tablet 101 collects contact data of each contact in the writing handwriting. The contact data includes one or more of contact coordinates, contact generation time, and contact pressure values. The contact coordinates refer to the coordinates of pixels in a dot matrix formed on the tablet 101 by the center of the contact, for example, (30pixel, 40pixel). The writing board 101 can send the collected contact data of each contact in the writing handwriting to the terminal device 102. The terminal device 102 receives contact data of each contact in the writing handwriting sent by the tablet 101.
步骤S202,根据文字书写规则以及所述触点数据,确定所述书写笔迹中书写不正确的笔画。Step S202: Determine an incorrectly written stroke in the writing handwriting according to the character writing rule and the touch point data.
本发明实施例中,该文字书写规则包括笔画书写规则和笔画顺序规则,该文字书写规则预先存储在终端设备102或手写板101的存储器中。其中,书写笔迹中的一笔笔画指的是,从利用写字笔或手指在写字板101上下笔开始书写至抬笔暂停书写过程中形成的书写笔迹。也即是说,书写笔迹中同一笔笔画的书写是连续的,同一笔笔画中的多个触点之间的生成时间间隔很短。而书写笔迹中不同笔画之间的书写会有一定的时间间隔,不同笔画的触点之间的生成时间间隔相对较长。终端设备102或手写板101可以根据触点数据中的触点生成时间,确定不同触点之间的生成时间间隔,并根据不同触点之间的生成时间间隔确定出该书写笔迹中每一笔笔画所包括的触点,也即是确定出哪些触点属于同一笔笔画。具体的,当相邻两触点之间的生成时间间隔小于或等于预设值时,终端设备102或手写板101判断该相邻两触点为同一笔画中的触点;当相邻两触点之间的生成时间间隔大于该预设值时,终端设备102或手写板101判断该相邻两触点为两不同笔画中的触点,也即,该书写笔迹中存在至少两笔笔画。终端设备102或手写板101然后根据每一笔笔画中的各触点的生成时间,确定出该书写笔迹中每一笔笔画的书写顺序。在一实施方式中,该书写顺序可以是指该每一笔笔画的起笔和终笔所在的位置以及起笔至终笔的顺序。在另一实施方式中,该书写顺序可以是指该书写笔迹中每一笔笔画之间的书写先后顺序。In the embodiment of the present invention, the character writing rule includes a stroke writing rule and a stroke order rule, and the character writing rule is stored in the memory of the terminal device 102 or the tablet 101 in advance. Among them, a stroke in writing handwriting refers to a writing handwriting formed from the process of starting writing with a writing pen or a finger on the writing pad 101 to lifting the pen to suspend writing. That is to say, the writing of the same stroke in the writing stroke is continuous, and the generation time interval between multiple contacts in the same stroke is short. However, there is a certain time interval between the writing of different strokes in the writing handwriting, and the generation time interval between the contacts of different strokes is relatively long. The terminal device 102 or the tablet 101 can determine the generation time interval between different contacts according to the contact generation time in the contact data, and determine each stroke in the writing handwriting according to the generation time interval between different contacts. The touch points included in a stroke, that is, determining which touch points belong to the same stroke. Specifically, when the generation time interval between two adjacent contacts is less than or equal to a preset value, the terminal device 102 or the tablet 101 determines that the adjacent two contacts are contacts in the same stroke; When the generation time interval between the points is greater than the preset value, the terminal device 102 or the tablet 101 determines that the two adjacent contacts are contacts in two different strokes, that is, there are at least two strokes in the writing handwriting. The terminal device 102 or the tablet 101 then determines the writing order of each stroke in the writing handwriting according to the generation time of each contact in each stroke. In an implementation manner, the writing order may refer to a position where each stroke starts and ends and a sequence from the start to the end. In another embodiment, the writing order may refer to a writing order between each stroke in the writing handwriting.
进一步地,终端设备102或手写板101根据每一笔笔画中的触点的坐标和生成时间,确定该书写笔迹中每一笔笔画的笔画轨迹;然后根据笔画书写规则以及每一笔笔画的笔画轨迹,判断该书写笔迹中每一笔笔画的笔画类型。其中,该笔画书写规则可以是汉字的笔画书写规则。该笔画书写规则包括:笔画横(一),笔画轨迹为沿X轴正向方向递增,且笔画轨迹与X轴形成的夹角在正负10度之内。笔画竖(丨),笔画轨迹为沿Y轴负向方向递增,且笔画轨迹与 Y轴形成的夹角在正负10度之内。笔画撇(丿),笔画轨迹为沿X轴负向方向递增,沿Y轴负向方向递增,且笔画轨迹与X轴形成的夹角在负125度至负145度之内。笔画点(丶),笔画轨迹为沿X轴正向方向递增,沿Y轴负向方向递增,且笔画轨迹与X轴形成的夹角在负35度至负55度之内,起始点坐标与终止点坐标的距离小于90pixel。笔画提
Figure PCTCN2018106461-appb-000001
笔画轨迹为沿X轴与Y轴正向方向递增,且笔画轨迹与X轴形成的夹角在35度至55度之内。笔画折
Figure PCTCN2018106461-appb-000002
笔画轨迹为沿X轴正向方向递增后,沿Y轴负向方向递增。笔画钩(亅),笔画轨迹为沿Y轴负向方向递增后向左上方提起。
Further, the terminal device 102 or the tablet 101 determines the stroke trajectory of each stroke in the writing stroke according to the coordinates and generation time of the touch point in each stroke; and then according to the stroke writing rule and the stroke of each stroke Track to determine the stroke type of each stroke in the writing handwriting. The stroke writing rule may be a stroke writing rule for Chinese characters. The stroke writing rules include: stroke horizontal (1), the stroke trajectory is increasing along the positive direction of the X axis, and the included angle formed by the stroke trajectory and the X axis is within plus or minus 10 degrees. The stroke is vertical (丨), the stroke trajectory is increasing along the negative direction of the Y axis, and the included angle formed by the stroke trajectory and the Y axis is within plus or minus 10 degrees. Stroke skimming (丿), the stroke trajectory is increasing along the negative direction of the X-axis, and increasing along the negative direction of the Y-axis, and the included angle formed by the stroke trajectory and the X-axis is within negative 125 degrees to negative 145 degrees. Stroke points (、), the stroke trajectory is increasing along the positive direction of the X axis, and increasing along the negative direction of the Y axis, and the angle formed by the stroke trajectory and the X axis is within the range of negative 35 degrees to negative 55 degrees. The distance of the end point coordinates is less than 90pixel. Stroke mention
Figure PCTCN2018106461-appb-000001
The stroke trajectory is increasing along the positive direction of the X axis and the Y axis, and the included angle formed by the stroke trajectory and the X axis is within 35 degrees to 55 degrees. Stroke fold
Figure PCTCN2018106461-appb-000002
The stroke trajectory increases in the positive direction of the X axis and then increases in the negative direction of the Y axis. The stroke hook (亅), the stroke trajectory is increased in the negative direction of the Y-axis and lifted to the upper left.
终端设备102或手写板101判断每一笔笔画的笔画轨迹分别沿X轴和Y轴的变化趋势,并确定每一笔笔画的笔画轨迹分别与X轴和Y轴之间的夹角角度;然后将该变化趋势以及该夹角角度与笔画书写规则进行对比,确定出该书写笔迹中每一笔笔画的笔画类型。The terminal device 102 or the tablet 101 judges the change trend of the stroke trajectory of each stroke along the X-axis and Y-axis, respectively, and determines the angle between the stroke trajectory of each stroke and the X-axis and Y-axis, respectively; The change trend and the included angle are compared with the stroke writing rule to determine the stroke type of each stroke in the writing handwriting.
在一实施方式中,终端设备102或手写板101根据笔画顺序规则以及该书写笔迹中每一笔笔画的书写顺序和笔画类型,确定该书写笔迹中书写顺序不正确的笔画。在一实施方式中,该笔画顺序规则为每一笔笔画的书写顺序,该书写顺序不正确是指该书写笔迹中的某一笔画的起笔和终笔的顺序有误。在另一实施方式中,该笔画顺序规则还可以是预存于存储器中的汉字的笔画书写顺序规则;该书写顺序不正确是指该书写笔迹中的至少两笔笔画之间的书写先后顺序有误。请一并参阅表1,所示为预存的汉字笔画书写顺序规则,也即是书写汉字时各笔画之间的正确书写顺序。In one embodiment, the terminal device 102 or the tablet 101 determines strokes with incorrect writing order in the writing handwriting according to the stroke order rule and the writing order and stroke type of each of the writing handwriting. In one embodiment, the stroke order rule is the writing order of each stroke, and the incorrect writing order means that the order of starting and finishing of a certain stroke in the writing handwriting is incorrect. In another embodiment, the stroke order rule may also be a stroke order rule for Chinese characters pre-stored in a memory; the incorrect writing order means that the writing order between at least two strokes in the writing handwriting is incorrect . Please refer to Table 1 together, which shows the pre-stored rules for the writing order of Chinese character strokes, that is, the correct writing order between strokes when writing Chinese characters.
如表1所示,汉字书写时的笔画顺序规则包括:先横后竖,先撇后捺,从上到下,从左到右,先外后里,先外后里再封口,先中间后两边等。终端设备102或手写板101首先根据该笔画顺序规则以及该书写笔迹中每一笔笔画的笔画类型,确定出该书写笔迹中每一笔笔画的标准书写顺序;然后将该书写笔迹中每一笔笔画的标准书写顺序,与该每一笔笔画的实际书写顺序进行对比,确定出该书写笔迹中书写顺序不正确的笔画。As shown in Table 1, the stroke order rules when writing Chinese characters include: horizontal first, vertical first, left first, then left, right from top to bottom, left to right, first outside then inside, first outside then inside, then sealing, first middle and then Wait on both sides. The terminal device 102 or the tablet 101 first determines the standard writing order of each stroke in the writing handwriting according to the stroke order rule and the stroke type of each stroke in the writing handwriting; then, each stroke in the writing handwriting The standard writing order of the strokes is compared with the actual writing order of each stroke to determine the strokes in which the writing order is incorrect in the writing handwriting.
Figure PCTCN2018106461-appb-000003
Figure PCTCN2018106461-appb-000003
表1、汉字笔画顺序规则Table 1. Chinese stroke order rules
举例来说,请一并参阅图3,图3为一文字书写笔迹的示意图。如图3所示的文字书写笔迹为“车”字。按照汉字笔画顺序规则,“车”字中的每一笔笔画的标准书写顺序为横、撇折、横、竖。假设用户书写该“车”字时,实际书写顺序为横、撇折、竖、横。则终端设备102或手写板101根据“车”字中的每一笔笔画的标准书写顺序,可以判断出该“车”字对应的实际书写笔迹中,最后两笔笔画竖和横的书写顺序不正确。又例如,假设用户书写该“车”字中的笔画横时,是从右起笔至左终笔的顺序;而笔画横的标准书写顺序为从左起笔至右终笔的顺序;则终端设备102或手写板101根据笔画横的标准书写顺序,可以判断出该“车”字对应的实际书写笔迹中,笔画横的书写顺序不正确。For example, please refer to FIG. 3 together. FIG. 3 is a schematic diagram of a writing handwriting. The writing handwriting shown in Fig. 3 is "car". According to the stroke order rules of Chinese characters, the standard writing order of each stroke in the character "car" is horizontal, skimming, horizontal, and vertical. Assume that when the user writes the word "car", the actual writing order is horizontal, fold-off, vertical, and horizontal. Then, according to the standard writing order of each stroke in the word "car", the terminal device 102 or the tablet 101 can determine that in the actual writing handwriting corresponding to the word "car", the writing order of the last two strokes is not vertical correct. As another example, suppose that when the user writes the strokes in the "car" character horizontally, the order is from the right to the last stroke; and the standard writing order of the strokes is the order from the left to the right; then the terminal device 102 Or, according to the standard writing order of the horizontal strokes of the handwriting tablet 101, it can be determined that in the actual writing handwriting corresponding to the character "car", the writing order of the horizontal strokes is incorrect.
在一实施方式中,终端设备102或手写板根据笔画顺序规则以及书写笔迹中每一笔笔画的书写顺序和笔画类型,确定出书写笔迹中第一笔书写顺序不正确的笔画后,不再对书写顺序排在该笔画后的笔画进行判断,直接将该笔画确定为书写笔迹中书写顺序不正确的笔画。In an implementation manner, after the terminal device 102 or the tablet determines the first stroke in the writing order in which the writing order is incorrect according to the stroke order rule and the writing order and stroke type of each stroke in the writing handwriting, The strokes in which the writing order is arranged after the strokes are judged, and the strokes are directly determined as the strokes with incorrect writing order in the writing handwriting.
在一实施方式中,终端设备102或手写板101还可以根据书写笔迹所形成的文字、该文字的书写规则以及该书写笔迹中每一笔笔画的书写顺序和笔画类型,确定该书写笔迹中笔画类型不正确的笔画。其中,该文字的书写规则用于指示该书写笔迹所对应文字中每一笔笔画的标准书写顺序以及正确笔画类型。在确定出该书写笔迹中每一笔笔画的实际书写顺序和实际笔画类型之后,终端设备102或手写板101首先检测该书写笔迹中每一笔笔画之间的实际书写顺序是否正确。具体地,终端设备102或手写板101根据该文字的书写规则确定出该书写笔迹所对应文字中每一笔笔画之间的标准书写顺序,然后通过将该文字的标准书写顺序,与该书写笔迹中每一笔笔画之间的实际书写顺序进行对比,检测该书写笔迹中每一笔笔画之间的书写顺序是否正确。In an embodiment, the terminal device 102 or the tablet 101 may further determine the strokes in the writing handwriting according to the text formed by the writing handwriting, the writing rules of the text, and the writing order and stroke type of each stroke in the writing handwriting. Incorrect strokes. The writing rules of the text are used to indicate the standard writing order and correct stroke type of each stroke in the text corresponding to the writing handwriting. After determining the actual writing order and actual stroke type of each stroke in the writing handwriting, the terminal device 102 or the tablet 101 first detects whether the actual writing order between each stroke in the writing 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 handwriting according to the writing rule of the text, and then compares the standard writing order of the text with the writing handwriting. The actual writing order between each of the strokes is compared to check whether the writing order between each stroke in the writing handwriting is correct.
若该书写笔迹中每一笔笔画之间的书写顺序均正确,终端设备102或手写板101再根据该文字的书写规则确定出该书写笔迹所对应文字中每一笔笔画的正确笔画类型;然后将该正确的笔画类型,与该书写笔迹每一实际笔画的类型进行比较,得到该书写笔迹中笔画类型不正确的笔画。举例来说,假设用户书写“木”字时,每一笔笔画的实际书写顺序以及实际笔画类型为横、竖提、撇、捺。按照汉字书写规则,“木”字中的每一笔笔画的标准书写顺序以及正确笔画类型为横、竖、撇、捺。终端设备102或手写板101根据“木”字中的每一笔笔画的正确笔画类型,可以判断出该“木”字对应的实际书写笔迹中,第二笔笔画竖提的笔画类型不正确。If the writing order between each stroke in the writing handwriting is correct, the terminal device 102 or the tablet 101 determines the correct stroke type of each stroke in the text corresponding to the writing handwriting according to the writing rules of the text; then The correct stroke type is compared with the type of each actual stroke of the writing handwriting to obtain a stroke with an incorrect stroke type in the writing handwriting. For example, suppose that when a user writes a "wooden" character, the actual writing order of each stroke and the actual stroke type are horizontal, vertical lifting, skimming, and 捺. According to the rules for writing Chinese characters, the standard writing order and correct stroke type of each stroke in "Mu" is horizontal, vertical, skimming, and 捺. Based on the correct stroke type of each stroke in the "wood" character, the terminal device 102 or the tablet 101 can determine that the actual stroke type of the second stroke in the actual writing handwriting corresponding to the "wood" character is incorrect.
若该书写笔迹中存在笔画之间书写顺序不正确的笔画,终端设备102或手写板101则先根据该书写笔迹所对应文字中每一笔笔画之间的标准书写顺序,对该书写笔迹中书写顺序不正确的笔画的书写顺序进行调整,得到笔画书写顺序调整后的书写笔迹。进一步地,终端设备102或手写板101根据该文字的书写规则确定出该书写笔迹所对应文字中每一笔笔画的正确笔画类型;并将该书写笔迹所对应文字中每一笔笔画的正确笔画类型,与笔画书写顺序调整后的书写笔迹中相应书写顺序的笔画的实际笔画类型进行比较,得到该笔画书写顺序调整后的书写笔迹中笔画类型不正确的笔画,也即是该实际书写笔迹中笔画类型不正确的笔画。举例来说,假设用户书写“木”字时,每一笔笔画的实际书写顺序以及实际笔画类型为横、竖提、捺、撇。按照汉字书写规则,“木”字中 的每一笔笔画的标准书写顺序以及正确笔画类型为横、竖、撇、捺。终端设备102或手写板101根据“木”字中的每一笔笔画的标准书写顺序,可以判断出该“木”字对应的实际书写笔迹中,第三笔笔画和第四笔笔画的书写顺序不正确;则先对该书写顺序不正确的笔画的书写顺序进行调整,得到笔画书写顺序调整后的书写笔迹中;该笔画书写顺序调整后的书写笔迹中每一笔笔画的书写顺序以及笔画类型为横、竖提、撇、捺。进一步地,终端设备102或手写板101根据“木”字中的每一笔笔画的正确笔画类型,可以判断出该“木”字对应的笔画书写顺序调整后的书写笔迹中,第二笔笔画竖提的笔画类型不正确,也即是该实际书写笔迹中第二笔笔画竖提的笔画类型不正确。If there are strokes in which the writing order between strokes is incorrect in the writing handwriting, the terminal device 102 or the tablet 101 first writes in the writing handwriting according to the standard writing order between each stroke in the text corresponding to the writing handwriting. The writing order of strokes with incorrect order is adjusted to obtain the writing handwriting after the stroke writing order is adjusted. Further, the terminal device 102 or the tablet 101 determines the correct stroke type of each stroke in the text corresponding to the writing handwriting according to the writing rules of the text; and corrects the stroke of each stroke in the text corresponding to the writing handwriting. The type is compared with the actual stroke type of the strokes corresponding to the writing order in the writing handwriting adjusted after the stroke writing order is adjusted, and the stroke with the incorrect stroke type in the writing handwriting after the stroke writing order adjustment is obtained, that is, in the actual writing handwriting Stroke type is incorrect. For example, suppose that when a user writes a "wood" character, the actual writing order of each stroke and the actual stroke type are horizontal, vertical lifting, 捺, and skimming. According to the rules for writing Chinese characters, the standard writing order and correct stroke type of each stroke in the "wood" characters are horizontal, vertical, skimming, and 捺. The terminal device 102 or the tablet 101 can determine the writing order of the third and fourth strokes in the actual writing handwriting corresponding to the "wood" character according to the standard writing order of each stroke in the "wood" character Incorrect; first adjust the writing order of the strokes with incorrect writing order to get the writing handwriting after adjusting the writing order of the strokes; the writing order and stroke type of each stroke in the writing handwriting after adjusting the writing order of the strokes For horizontal, vertical lifting, skimming, 捺. Further, according to the correct stroke type of each stroke in the "wood" character, the terminal device 102 or the tablet 101 can determine the second stroke in the writing handwriting after the stroke order corresponding to the "wood" character is adjusted. The stroke type of the vertical stroke is incorrect, that is, the stroke type of the vertical stroke of the second stroke in the actual writing handwriting is incorrect.
在一实施方式中,终端设备102或手写板101获取该书写笔迹所对应的字体类型。当该书写笔迹所对应的字体类型为硬笔字体时,终端设备102或手写板101还可以根据笔锋规则、触点数据中的触点压力值以及该书写笔迹中每一笔笔画的笔画类型,确定该书写笔迹中笔锋书写不正确的笔画。其中,该笔锋规则可以是汉字中硬笔字的笔锋规则,也即是硬笔字书写时笔画应有的锋芒;该笔锋规则预先存储在终端设备102或手写板101的存储器中。一般来说,在进行汉字书写时,笔锋规则包括:起笔较重,行笔较轻等。例如:笔画横是头尾处有笔锋,也即头尾部的触点的压力值应较大,中间部分的触点的压力值应较小;笔画撇是头处有笔锋,也即头部的触点的压力值应较大,触点的压力值应从头到尾逐渐变小。In one embodiment, the terminal device 102 or the tablet 101 acquires a font type corresponding to the writing handwriting. When the font type corresponding to the writing handwriting is a hard pen font, the terminal device 102 or the tablet 101 may further determine according to the pen tip rule, the contact pressure value in the contact data, and the stroke type of each stroke in the writing handwriting. In the writing handwriting, the stroke was written incorrectly. The stroke rule may be a stroke rule of a hard pen character in Chinese characters, that is, a sharp edge that a stroke should have when writing a hard pen character; the stroke rule is stored in the memory of the terminal device 102 or the tablet 101 in advance. Generally speaking, when writing Chinese characters, the rules of strokes include: heavy strokes and light strokes. For example: The stroke is horizontal with a stroke at the head and tail, that is, the pressure value of the contact at the head and tail should be larger, and the pressure of the contact at the middle portion should be smaller; the stroke is a stroke with a stroke at the head, that is, the head The pressure value of the contact should be large, and the pressure value of the contact should gradually decrease from beginning to end.
终端设备102或手写板101根据每一笔笔画包括的触点的生成时间和触点压力值,确定出每一笔笔画包括的触点的实际触点压力值变化情况;并根据笔锋规则以及该书写笔迹中每一笔笔画的笔画类型,获取该笔画类型的参考触点压力值变化情况。终端设备102或手写板101然后将该实际触点压力值变化情况,与该参考触点压力值变化情况进行比较,确定出该书写笔迹中笔锋书写不正确的笔画。举例来说,笔画横的参考触点压力值变化情况是由大变小,再由小变大。假设书写笔迹中笔画横的实际触点压力值变化情况只是由大变小。则终端设备102或手写板101可以判断出书写笔迹中笔画横的实际触点压力值变化情况,与笔画横对应的参考触点压力值变化情况不匹配,并将书写笔迹中的笔画横确定为笔锋书写不正确的笔画。The terminal device 102 or the tablet 101 determines the actual contact pressure change of the contact included in each stroke according to the generation time and the contact pressure value of the contact included in each stroke; The stroke type of each stroke in the writing handwriting, and the change of the reference contact pressure value of the stroke type is obtained. The terminal device 102 or the tablet 101 then compares the change in the actual contact pressure value with the change in the reference contact pressure value to determine the incorrect strokes written by the pen in the writing handwriting. For example, the change of the reference contact pressure value of the stroke horizontally changes from large to small, and then from small to large. It is assumed that the actual contact pressure value of the strokes in the writing stroke changes only from large to small. Then the terminal device 102 or the tablet 101 can determine the actual contact pressure change of the stroke horizontal in the writing stroke, and the reference contact pressure value corresponding to the stroke horizontal does not match, and determine the stroke horizontal in the writing stroke as Strokes written incorrectly.
在一实施方式中,写字板101或者终端设备102的显示界面上还包括字体选项,该字体选项包括硬笔字体选项和软笔字体选项等。在用户在写字板101上进行文字书写之前,写字板101或者终端设备102接收用户针对该字体选项输入的选择指令,并根据该选择指令确定用户所选择的字体类型。该选择的字体类型也即是用户在写字板101上进行文字书写时书写笔迹所对应的字体类型。其中,终端设备102或手写板101可以根据用户所选择的字体类型得到书写笔迹所对应的字体类型。In an embodiment, the display interface of the tablet 101 or the terminal device 102 further includes a font option, and the font option includes a hard pen font option and a soft pen font option. Before the user writes text on the tablet 101, the tablet 101 or the terminal device 102 receives a selection instruction input by the user for the font option, and determines the type of font selected by the user according to the selection instruction. The selected font type is the font type corresponding to the handwriting when the user writes characters on the tablet 101. The terminal device 102 or the tablet 101 may obtain a font type corresponding to a writing handwriting according to a font type selected by a user.
步骤S203,控制在显示屏上显示所述书写笔迹,并标记所述书写不正确的笔画。Step S203, controlling the writing handwriting to be displayed on a display screen, and marking the incorrectly written strokes.
其中,所述书写不正确的笔画包括书写顺序不正确的笔画、书写类型不正确的笔画和笔锋不正确的笔画中的一种或者多种。The strokes with incorrect writing include one or more of strokes with incorrect writing order, strokes with incorrect writing type, and strokes with incorrect stroke edge.
本发明实施例中,当终端设备102需显示上述书写笔迹时,终端设备102将该书写笔迹中每个触点的触点坐标,转换为终端设备102的屏幕坐标。然后,终端设备102根据该触点数据中的触点压力值,确定出该书写笔迹中每个触点的触点大小。触点大小是指触点在终端设备102的显示屏上形成的点阵中占据的像素数量。最后,终端设备102根据该书写笔迹中每个触点对应的屏幕坐标、触点生成时间和触点大小,在终端设备102的显示屏上显示该书写笔迹。In the embodiment of the present invention, when the terminal device 102 needs to display the above writing handwriting, the terminal device 102 converts the touch point coordinates of each contact point in the writing handwriting into the screen coordinates of the terminal device 102. Then, the terminal device 102 determines the contact size of each contact in the writing handwriting according to the contact pressure value in the contact data. The contact size refers to the number of pixels occupied by the contact in a dot matrix formed on the display screen of the terminal device 102. Finally, the terminal device 102 displays the writing handwriting on the display screen of the terminal device 102 according to the screen coordinates, contact generation time, and contact size corresponding to each contact in the writing handwriting.
在一实施方式中,终端设备102或写字板101根据该书写笔迹中每一笔笔画中触点的触点压力值,确定出该每一笔笔画的笔画宽度。其中,笔画宽度=预设笔画宽度*触点压力值/压力值常数。终端设备102或写字板101然后根据该书写笔迹中每个触点对应的屏幕坐标、触点生成时间和该每一笔笔画的笔画宽度,在其显示屏上显示该书写笔迹。In one embodiment, the terminal device 102 or the writing board 101 determines a stroke width of each stroke according to a contact pressure value of a contact in each stroke in the writing handwriting. Among them, the stroke width = preset stroke width * contact pressure value / pressure constant. The terminal device 102 or the tablet 101 then displays the writing handwriting on its display screen according to the screen coordinates corresponding to each contact point in the writing handwriting, the contact generation time, and the stroke width of each stroke.
在一实施方式中,当利用写字笔或手指在写字板101上书写较快时,写字板101采集到的该书写笔迹中的触点会变得稀疏。如果终端设备102或手写板101在显示该书写笔迹时,仅通过线段连接稀疏的触点,则该书写笔迹中有弧度的笔画容易出现棱角,会导致终端设备102或手写板101显示的该书写笔迹相对实际的书写笔迹还原度较差。终端设备102或手写板101可以采用贝塞尔差值对该书写笔迹中的触点进行拟合。In one embodiment, when writing on the tablet 101 is faster with a stylus or a finger, the contacts in the writing handwriting collected by the tablet 101 become sparse. If the terminal device 102 or the tablet 101 displays the writing handwriting, only sparse contacts are connected by line segments, the curved strokes in the writing handwriting are prone to corners, which will cause the writing displayed on the terminal device 102 or the tablet 101 The handwriting is less reproducible than the actual writing handwriting. The terminal device 102 or the tablet 101 may use Bezier difference values to fit the touch points in the writing handwriting.
终端设备102或手写板101首先确定出每两个触点之间的中点,然后将每个 触点作为控制点,将与触点相邻的两个中点分别作为二次贝塞尔差值的起止点和终止点,确定出该触点以及与该触点相邻的两个中点之间的二次贝塞尔曲线,以实现对该书写笔迹中触点的拟合。终端设备102或手写板101获取拟合后的触点对应的屏幕坐标。最后,终端设备102或手写板101根据拟合后的触点对应的屏幕坐标、触点生成时间和触点大小,将拟合后的书写笔迹放大目标倍数(例如1.2倍)后在其显示屏上进行显示。采用贝塞尔差值对该书写笔迹中的触点进行拟合,可以对有弧度的笔画进行弧度优化,从而可以模拟书写笔迹的真实书写效果,提高终端设备102或手写板101显示的书写笔迹相对实际书写笔迹的还原度。The terminal device 102 or the tablet 101 first determines the midpoint between each two contacts, then uses each contact as the control point, and uses the two midpoints adjacent to the contacts as the secondary Bezier difference, respectively. The starting and ending points and ending points of the value determine the quadratic Bezier curve between the contact and two midpoints adjacent to the contact to achieve fitting of the contact in the writing handwriting. The terminal device 102 or the tablet 101 acquires screen coordinates corresponding to the fitted touch points. Finally, the terminal device 102 or the handwriting tablet 101 enlarges the fitted writing handwriting to a target factor (for example, 1.2 times) on the display screen according to the screen coordinates corresponding to the fitted contacts, the generation time of the contacts, and the size of the contacts. Display. Fitting the contacts in this writing handwriting with Bezier difference can optimize radian for strokes with radian, which can simulate the real writing effect of writing handwriting and improve the writing handwriting displayed by terminal device 102 or tablet 101 The degree of reduction relative to the actual handwriting.
本发明实施例中,终端设备102或手写板101在其显示屏上显示该书写笔迹时,可以采用特定的标记显示该书写不正确的笔画。例如,通过特定的颜色标记显示该书写不正确的笔画。其中,终端设备102或手写板101可以将该书写笔迹中书写顺序不正确的笔画用第一标记符号进行标记。第一标记符号可以是第一目标颜色,第一目标颜色可以是红色或灰色等。在一实施方式中,终端设备102或手写板101也可以将该书写笔迹中书写顺序不正确的笔画加粗显示,还可以是将该书写顺序不正确的笔画进行闪烁显示,在此不作限定。举例来说,请一并参阅图3,假设图3“车”字中的最后两笔笔画(笔画竖和笔画横)的书写顺序不正确,则终端设备102或手写板101可以用灰色标记该书写顺序不对的笔画竖和笔画横。而图中书写顺序正确的笔画用黑色标记。采用上述方式,可以对书写笔迹中笔画的书写顺序进行检错,并标记显示书写顺序不正确的笔画。In the embodiment of the present invention, when the terminal device 102 or the tablet 101 displays the writing handwriting on its display screen, a specific mark may be used to display the incorrectly written stroke. For example, the incorrectly written stroke is displayed by a specific color mark. The terminal device 102 or the tablet 101 may mark the strokes in which the writing order is incorrect in the writing handwriting with a first marking symbol. The first marker symbol may be a first target color, and the first target color may be red, gray, or the like. In one embodiment, the terminal device 102 or the tablet 101 may display bold strokes with incorrect writing order in the writing handwriting, or may display the strokes with incorrect writing order in a blinking manner, which is not limited herein. For example, please refer to FIG. 3 together. Assuming that the writing order of the last two strokes (stroke vertical and stroke horizontal) in the word “car” in FIG. 3 is incorrect, the terminal device 102 or the tablet 101 may mark the The strokes in the wrong writing order are vertical and horizontal. The strokes in the correct writing order in the figure are marked in black. In the above manner, the writing order of the strokes in the writing handwriting can be detected, and the strokes with incorrect writing order can be marked and displayed.
其中,终端设备102或手写板101可以将该书写笔迹中笔画类型不正确的笔画用第二标记符号进行标记。第二标记符号可以是第二目标颜色,该第二目标颜色可以是黄色或者橙色等。在一实施方式中,终端设备102或手写板101也可以将该书写笔迹中笔画类型不正确的笔画加粗显示,还可以是将该笔画类型不正确的笔画进行闪烁显示,在此不作限定。需要说明的是,第二标记符号与第一标记符号不同,或者说,终端设备102或手写板101对该笔画类型不正确的笔画的标记显示方式,与对该书写顺序不正确的笔画的标记显示方式不同。采用上述方式,可以对书写笔迹中笔画的类型进行检错,并标记显示笔画类型不正确的笔画。The terminal device 102 or the tablet 101 may mark a stroke with an incorrect stroke type in the writing handwriting with a second marking symbol. The second marker symbol may be a second target color, and the second target color may be yellow or orange. In one embodiment, the terminal device 102 or the tablet 101 may also display bold strokes with incorrect stroke types in the writing handwriting, or flash display the strokes with incorrect stroke types, which is not limited herein. It should be noted that the second marker symbol is different from the first marker symbol, that is, the terminal device 102 or the tablet 101 displays the markers of the strokes whose type is incorrect, and the markers of the strokes whose writing order is incorrect. The display is different. By adopting the above manner, the type of strokes in writing handwriting can be detected, and strokes with incorrect stroke types can be marked and displayed.
其中,终端设备102或手写板101可以将该书写笔迹中笔锋书写不正确的笔画用第三标记符号进行标记。第三标记符号可以是第三目标颜色,该第三目标颜色可以是紫色或者蓝色等。在一实施方式中,终端设备102或手写板101也可以将该书写笔迹中笔锋书写不正确的笔画加粗显示,还可以是将该笔锋书写不正确的笔画进行闪烁显示,在此不作限定。需要说明的是,第三标记符号与第一标记符号以及第二标记符号均不同,或者说,终端设备102或手写板101对该笔锋书写不正确的笔画的标记显示方式,与对该书写顺序不正确的笔画的标记显示方式不同,与对该笔画类型不正确的笔画的标记显示方式也不同。采用上述方式,可以对书写笔迹中笔画的笔锋进行检错,并标记显示笔锋书写不正确的笔画。Wherein, the terminal device 102 or the tablet 101 may mark a stroke that is incorrectly written by a pen in the writing handwriting with a third marking symbol. The third mark symbol may be a third target color, and the third target color may be purple or blue. In an embodiment, the terminal device 102 or the tablet 101 may also display bold strokes in which the writing edge is incorrectly written in the writing handwriting, or may display blinking strokes in which the writing edge is incorrectly written, which is not limited herein. It should be noted that the third mark symbol is different from the first mark symbol and the second mark symbol, that is, the terminal device 102 or the tablet 101 displays the marks of the strokes that are incorrectly written by the pen, and the writing order of the strokes. Marks for incorrect strokes are displayed differently, as are marks for strokes that are incorrect for the stroke type. By adopting the above manner, the stroke of the stroke in the writing handwriting can be detected, and the incorrect stroke written by the stroke can be marked and displayed.
在一实施方式中,终端设备102或手写板101还根据上述笔画顺序规则以及该书写笔迹中每一笔笔画的笔画类型,对该书写笔迹中书写顺序不正确的笔画的书写顺序进行调整,得到该书写笔迹中每一笔笔画的标准书写顺序。终端设备102或手写板101根据该文字书写规则所指示的该书写笔迹所对应文字中每一笔笔画的正确笔画类型,对该书写笔迹中笔画类型不正确的笔画进行替换,得到笔画类型均正确的书写笔迹。终端设备102或手写板101获取该书写笔迹中笔锋书写不正确的笔画对应的触点参考压力值,该触点参考压力值是根据笔锋规则得到的书写该笔锋书写不正确的笔画时各个触点的标准压力值,该各个触点的标准压力值与触点在该笔画中的位置有关。该触点参考压力值可以存储在终端设备102或写字板101的存储器中。该触点参考压力值可以是具体的值,也可以是一个取值范围。终端设备102或手写板101然后根据该笔锋书写不正确的笔画中各个触点的触点坐标和触点生成时间,以及该触点参考压力值,确定出各个触点的修正压力值;并利用各个触点的修正压力值,对该笔锋书写不正确的笔画的笔锋进行修正,得到笔锋书写正确的笔画。In an embodiment, the terminal device 102 or the tablet 101 further adjusts the writing order of the strokes in which the writing order is incorrect in the writing handwriting according to the stroke order rule and the stroke type of each stroke in the writing handwriting to obtain The standard writing order for each stroke in the writing handwriting. The terminal device 102 or the tablet 101 replaces the strokes of the incorrect stroke type in the writing handwriting according to the correct stroke type of each stroke in the text corresponding to the writing handwriting indicated by the writing rule, and the stroke types are correct. Writing handwriting. The terminal device 102 or the tablet 101 obtains the contact reference pressure value corresponding to the incorrect stroke of the pen writing in the writing handwriting, and the contact reference pressure value is obtained according to the rules of the writing point. 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 can be a specific value or a range of values. The terminal device 102 or the tablet 101 then determines the correction pressure value of each contact according to the contact coordinates and contact generation time of each contact in the incorrect writing stroke of the pen, and the reference pressure value of the contact; The correction pressure value of each contact point is used to correct the stroke of an incorrectly written stroke of the pen to obtain a correct stroke of the stroke.
进一步地,终端设备102或手写板101根据该书写笔迹中触点的屏幕坐标、触点生成时间、该书写笔迹中每一正确的笔画及每一笔画的正确书写顺序、以及每笔笔画的笔锋,在其显示屏上显示该书写笔迹中每一笔笔画的标准书写过程。该标准书写过程包括标准书写顺序、正确笔画类型以及正确笔锋。Further, the terminal device 102 or the tablet 101 is based on the screen coordinates of the contacts in the writing handwriting, the contact generation time, each correct stroke in the writing handwriting, and the correct writing order of each stroke, and the tip of each stroke. , The standard writing process of each stroke in the writing handwriting is displayed on its display screen. The standard writing process includes standard writing order, correct stroke type, and correct stroke.
采用上述方式,可以在进行文字书写时检测书写笔迹中笔画的书写顺序, 对书写顺序不满足笔画顺序规则的笔画进行检错,并标记显示该书写顺序错误的笔画,以提醒用户遵循正确的文字书写规则,培养良好的书写习惯。还可以在进行文字书写时对笔画类型不正确的笔画进行检错,并标记显示该笔画类型不正确的笔画,以提示用户笔画类型不正确的笔画。还可以在进行文字书写时对笔锋不满足笔锋规则的笔画进行检错,并标记显示该笔锋不满足笔锋规则的笔画,以提示用户笔锋不正确的笔画。还可以模拟重现该书写笔迹中每一笔笔画的标准书写过程,以提示用户该书写笔迹的正确书写过程,从而对文字书写时的错误笔画进行纠正,提高用户的书法水平。正确书写文字,可以提高用户的书写效率。In the above manner, the writing order of the strokes in the writing handwriting can be detected when writing the text, the strokes whose writing order does not satisfy the rules of the stroke order can be detected, and the strokes with the wrong writing order can be marked to show the user to follow the correct text Writing rules, develop good writing habits. It is also possible to perform error detection on strokes with incorrect stroke types when writing text, and mark and display strokes with incorrect stroke types to prompt the user that the stroke types are incorrect. It is also possible to perform error detection on strokes that do not satisfy the rule of the pen tip when writing the text, and mark the strokes that do not satisfy the rule of the pen tip to indicate to the user that the stroke of the pen is incorrect. The standard writing process of each stroke in the writing handwriting can also be simulated and reproduced to remind the user of the correct writing process of the writing handwriting, thereby correcting the wrong stroke when writing the text and improving the user's calligraphy level. Writing text correctly can improve the user's writing efficiency.
在一实施方式中,在用户利用写字笔或手指在写字板101上进行文字书写的过程中。写字板101采集到当前书写笔迹的触点数据之后,实时显示当前书写笔迹,并将当前书写笔迹的触点数据发送给终端设备102。终端设备102接收到当前书写笔迹的触点数据之后,在其屏幕上显示当前书写笔迹。采用上述方式,终端设备102和写字板101可以实现对当前书写笔迹的同步显示。In one embodiment, during the process of writing text on the tablet 101 by a user using a writing pen or a finger. After the tablet 101 collects the contact data of the current writing handwriting, it displays the current writing handwriting in real time, and sends the contact data of the current writing handwriting to the terminal device 102. After receiving the touch point data of the current writing handwriting, the terminal device 102 displays the current writing handwriting on its screen. In the above manner, the terminal device 102 and the tablet 101 can realize synchronous display of the current writing handwriting.
在一实施方式中,在用户利用写字笔或手指在写字板101上进行文字书写的过程中。写字板101采集到当前书写笔迹的触点数据之后,实时显示当前书写笔迹,并在检测到用户抬笔暂停书写的时长超过预设时长阈值(例如2s)时,将当前获取到的书写笔迹的所有触点数据一并发送给终端设备102。终端设备102接收到该书写笔迹的所有触点数据之后,在其屏幕上显示该书写笔迹。采用上述方式,写字板101可以对当前书写笔迹进行同步显示,而终端设备102在该书写笔迹书写完成后,再显示该书写笔迹。In one embodiment, during the process of writing text on the tablet 101 by a user using a writing pen or a finger. After the touchpad 101 collects the touch data of the current writing handwriting, the current writing handwriting is displayed in real time, and when it is detected that the user pauses writing for a period longer than a preset time threshold (for example, 2s), the current acquired writing handwriting is detected. All contact data is sent to the terminal device 102 together. After receiving all the touch point data of the writing handwriting, the terminal device 102 displays the writing handwriting on its screen. In the above manner, the tablet 101 can synchronously display the current writing handwriting, and the terminal device 102 displays the writing handwriting after the writing handwriting is completed.
本发明实施例中,首先获取用户在写字板上进行文字书写时的书写笔迹的触点数据,并根据文字书写规则以及触点数据确定书写笔迹中书写不正确的笔画,然后在显示屏上显示书写笔迹,并标记书写不正确的笔画,从而可以对书写笔迹中的笔画进行检错,并标记显示错误笔画。In the embodiment of the present invention, first, contact data of a writing handwriting when a user writes text on a tablet is obtained, and the incorrect strokes written in the writing handwriting are determined according to the writing rules and the contact data, and then displayed on the display Writing handwriting and marking incorrectly written strokes, so that the strokes in the writing handwriting can be checked for errors, and the wrong strokes can be marked and displayed.
请参阅图4,图4为本发明一实施例提供的一种终端设备的硬件结构示意图。本发明实施例中所描述的终端设备,包括:通信单元401,显示屏402,处理器单元403和存储器404。上述通信单元401,显示屏402,处理器单元403以 及存储器404可以通过总线连接,也可以以其他方式连接。该终端设备可为手写板101或设备102。Please refer to FIG. 4, which 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 screen 402, a processor unit 403, and a memory 404. The communication unit 401, the display screen 402, the processor unit 403, and the memory 404 may be connected through a bus, or may be connected in other ways. The terminal device may be a tablet 101 or a device 102.
上述处理器单元403可以是中央处理器单元(Central Processing Unit,CPU),微控制单元(Microcontroller Unit,MCU)或图形处理器(Graphics Processing Unit,GPU)中的一种。处理单元403也可以是多核CPU、多核GPU或多核MCU中用于实现通信标识绑定的核。The processor unit 403 may be one of a Central Processing Unit (CPU), a Microcontroller Unit (MCU), or a Graphics Processing Unit (GPU). The processing unit 403 may also be a core used in a multi-core CPU, a multi-core GPU, or a multi-core MCU for implementing communication identification binding.
上述通信单元401可用于收发信息或信令的交互,以及信号的接收和传递,通信单元401可以是收发器。上述显示屏402可用于显示由用户输入的信息或提供给用户的信息以及控制设备的各种菜单,上述显示屏402还可用于显示书写轨迹。上述显示屏402可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置。The above-mentioned communication unit 401 may be used for receiving and transmitting information or signaling, and receiving and transmitting signals. The communication unit 401 may be a transceiver. The display screen 402 may be used to display information input by the user or provided to the user and various menus of the control device, and the display screen 402 may also be used to display the writing track. The display screen 402 may be configured by using an LCD (Liquid Crystal Display) or an OLED (Organic Light-Emitting Diode).
上述存储器404可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的存储程序(比如文字存储功能、位置存储功能等);存储数据区可存储根据终端设备的使用所创建的数据(比如图像数据、文字数据)等,并可以包括用户接口模块,应用存储程序等。The above memory 404 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system and a storage program (such as a text storage function, a location storage function, etc.) required by at least one function; the storage data area may store data according to The data (such as image data and text data) created by the use of the terminal device may include a user interface module, an application storage program, and the like.
上述存储器404还用于存储程序指令,上述处理器单元403可以调用上述存储器404存储的程序指令,实现如图2所示的文字书写检错方法。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 a method for detecting writing errors as shown in FIG. 2.
本发明还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有文字书写检错指令,当所述文字书写检错指令在计算机上运行时,使得计算机执行上述方法实施例所述的文字书写检错方法。The present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores text writing error detection instructions, and when the text writing error detection instructions are run on a computer, the computer is caused to execute the above method embodiment. The method of text writing error detection is described.
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某一些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all described as a series of action combinations. However, those skilled in the art should know that the present invention is not limited by the described action sequence. Because according to the present invention, some steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。本发明实施例装置中的功能单元可以根据实际需要进行合并、划分和删减。The steps in the method of the embodiment of the present invention may be adjusted, combined, and deleted according to actual needs. The functional units in the device according to the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读 存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the foregoing embodiments may be implemented by a program instructing related hardware. The program may be stored in a computer-readable storage medium. The storage medium may include: Flash disk, Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk, etc.
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What has been disclosed above is only a preferred embodiment of the present invention, and of course, the scope of rights of the present invention cannot be limited by this. Those of ordinary skill in the art can understand all or part of the process of implementing the above embodiments and follow the rights of the present invention Equivalent changes required are still within the scope of the invention.

Claims (16)

  1. 一种文字书写检错方法,其特征在于,所述方法包括:A text writing error detection method, characterized in that the method includes:
    获取用户在写字板上进行文字书写时书写所述文字时的书写笔迹的触点数据,所述触点数据包括触点坐标、触点生成时间和触点压力值中的一种或者多种;Acquiring touch point data of a handwriting when a user writes a text when writing on a writing board, the touch point data includes one or more of touch point coordinates, touch point generation time, and touch pressure value;
    根据文字书写规则以及所述触点数据,确定所述书写笔迹中书写不正确的笔画;Determining incorrectly written strokes in the writing handwriting according to the writing rules of the text and the touch point data;
    控制在显示屏上显示所述书写笔迹,并标记所述书写不正确的笔画。The control displays the writing handwriting on a display screen and marks the incorrectly written stroke.
  2. 根据权利要求1所述的方法,其特征在于,所述触点数据包括触点坐标和触点生成时间,所述文字书写规则包括笔画顺序规则,所述根据文字书写规则以及所述触点数据,确定所述书写笔迹中书写不正确的笔画,包括:The method according to claim 1, wherein the touch point data includes touch point coordinates and touch point generation time, the text writing rule includes a stroke order rule, the text writing rule and the touch point data To determine that an incorrectly written stroke in the writing handwriting includes:
    根据所述触点生成时间确定所述书写笔迹中每一笔笔画的书写顺序;Determining a writing order of each stroke in the writing handwriting according to the contact generation time;
    根据所述触点坐标和所述触点生成时间确定所述每一笔笔画的笔画类型;Determining a stroke type of each stroke according to the touch point coordinates and the touch point generation time;
    根据所述笔画顺序规则以及所确定的所述每一笔笔画的书写顺序和笔画类型,确定所述书写笔迹中书写顺序不正确的笔画;Determining, according to the stroke order rule and the determined writing order and stroke type of each stroke, a stroke in which the writing order is incorrect in the writing handwriting;
    控制在显示屏上显示所述书写笔迹,并将所述书写顺序不正确的笔画用第一标记符号进行标记。And controlling the writing handwriting to be displayed on a display screen, and marking the strokes in which the writing order is incorrect with a first marking symbol.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, further comprising:
    根据所述笔画顺序规则和所述每一笔笔画的笔画类型对所述书写顺序不正确的笔画的书写顺序进行调整;以及Adjusting the writing order of the strokes with incorrect writing order according to the stroke order rule and the stroke type of each stroke; and
    控制在显示屏上显示所述书写笔迹中每一笔笔画的标准书写顺序。Controls the standard writing order for displaying each stroke in the writing handwriting on the display screen.
  4. 根据权利要求2所述的方法,其特征在于,所述根据文字书写规则以及所述触点数据,确定所述书写笔迹中书写不正确的笔画,包括:The method according to claim 2, wherein the determining, according to the writing rules of the text and the touch point data, an incorrectly written stroke in the writing handwriting comprises:
    根据文字书写规则以及所确定的所述每一笔笔画的书写顺序和笔画类型,确定所述书写笔迹中笔画类型不正确的笔画;Determining, according to the writing rules of the text and the determined writing order and stroke type of each stroke, a stroke with an incorrect stroke type in the writing stroke;
    控制在显示屏上显示所述书写笔迹,并将所述笔画类型不正确的笔画用第 二标记符号进行标记。The control displays the writing handwriting on the display screen, and marks the stroke with an incorrect stroke type with a second marking symbol.
  5. 根据权利要求1所述的方法,其特征在于,所述触点数据包括触点坐标、触点生成时间和触点压力值,所述文字书写规则包括硬笔字的笔锋规则;所述根据文字书写规则以及所述触点数据,确定所述书写笔迹中书写不正确的笔画,包括:The method according to claim 1, wherein the contact data includes contact coordinates, contact generation time, and contact pressure values, the text writing rule includes a stylus rule for hard pen characters, and the writing according to text Rules and the touch point data to determine incorrectly written strokes in the writing handwriting include:
    获取所述书写笔迹所对应的字体类型;Obtaining a font type corresponding to the writing handwriting;
    当所述书写笔迹所对应的字体类型为硬笔字体时,根据所述触点坐标和所述触点生成时间确定所述书写笔迹中每一笔笔画的笔画类型;When the type of the font corresponding to the writing handwriting is a hard pen font, determining a stroke type of each stroke in the writing handwriting according to the touch point coordinates and the touch point generation time;
    根据所述笔锋规则、所述触点压力值以及所确定的所述每一笔笔画的笔画类型,确定所述书写笔迹中笔锋书写不正确的笔画;Determining, according to the stroke rule, the contact pressure value, and the determined stroke type of each stroke, an incorrect stroke written by the stroke in the writing handwriting;
    控制在显示屏上显示所述书写笔迹,并将所述笔锋书写不正确的笔画用第三标记符号进行标记。And controlling the writing handwriting to be displayed on the display screen, and marking the stroke that is incorrectly written by the pen tip with a third marking symbol.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, further comprising:
    获取所述笔锋书写不正确的笔画对应的触点参考压力值,并根据所述触点参考压力值对所述笔锋书写不正确的笔画的笔锋进行修正;以及Obtaining a contact reference pressure value corresponding to the stroke with which the pen is writing incorrectly, and correcting the stroke of the stroke with which the pen is writing incorrectly according to the contact reference pressure value; and
    控制在显示屏上显示所述书写笔迹中每一硬笔笔画的标准笔画。A standard stroke of each hard stroke in the writing handwriting is displayed on the display screen.
  7. 根据权利要求1所述的方法,其特征在于,所述触点数据包括触点坐标、触点生成时间和触点压力值,所述显示屏为终端设备上的显示屏,所述在显示屏上显示所述书写笔迹,具体包括:The method according to claim 1, wherein the contact data includes contact coordinates, contact generation time, and contact pressure value, the display screen is a display screen on a terminal device, and the on-screen display The writing handwriting displayed on the screen includes:
    将所述触点坐标转换为所述终端设备的屏幕坐标,并根据所述触点压力值确定触点大小;Converting the touch point coordinates into screen coordinates of the terminal device, and determining a touch point size according to the touch point pressure value;
    根据所述屏幕坐标、所述触点生成时间和所述触点大小,控制在所述显示屏上显示所述书写笔迹。And controlling the display of the writing handwriting on the display screen according to the screen coordinates, the contact generation time, and the contact size.
  8. 根据权利要求1所述的方法,其特征在于,所述显示屏为手写板上的显示屏。The method according to claim 1, wherein the display screen is a display screen on a tablet.
  9. 一种终端设备,其特征在于,包括:处理器单元和显示屏,所述处理器单元用于:A terminal device includes: a processor unit and a display screen, where the processor unit is configured to:
    获取用户在写字板上进行文字书写时书写所述文字时的书写笔迹的触点数据,所述触点数据包括触点坐标、触点生成时间和触点压力值中的一种或者多种;Acquiring touch point data of a handwriting when a user writes a text when writing on a writing board, the touch point data includes one or more of touch point coordinates, touch point generation time, and touch pressure value;
    根据文字书写规则以及所述触点数据,确定所述书写笔迹中书写不正确的笔画;Determining incorrectly written strokes in the writing handwriting according to the writing rules of the text and the touch point data;
    控制在所述显示屏上显示所述书写笔迹,并标记所述书写不正确的笔画。And controlling the display of the writing handwriting on the display screen and marking the incorrectly written stroke.
  10. 根据权利要求9所述的终端设备,其特征在于,所述触点数据包括触点坐标和触点生成时间,所述文字书写规则包括笔画顺序规则,所述处理器单元根据所述触点生成时间确定所述书写笔迹中每一笔笔画的书写顺序;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 generates according to the contact Time to determine the writing order of each stroke in the writing handwriting;
    根据所述触点坐标和所述触点生成时间确定所述每一笔笔画的笔画类型;Determining a stroke type of each stroke according to the touch point coordinates and the touch point generation time;
    根据所述笔画顺序规则以及所确定的所述每一笔笔画的书写顺序和笔画类型,确定所述书写笔迹中书写顺序不正确的笔画;Determining, according to the stroke order rule and the determined writing order and stroke type of each stroke, a stroke in which the writing order is incorrect in the writing handwriting;
    控制在所述显示屏上显示所述书写笔迹,将所述书写顺序不正确的笔画用第一标记符号进行标记。Controlling the writing handwriting to be displayed on the display screen, and marking the strokes in which the writing order is incorrect with a first marking symbol.
  11. 根据权利要求10所述的终端设备,其特征在于,所述处理器单元还根据所述笔画顺序规则和所述每一笔笔画的笔画类型对所述书写顺序不正确的笔画的书写顺序进行调整;以及The terminal device according to claim 10, wherein the processor unit further adjusts the writing order of the strokes in which the writing order is incorrect according to the stroke order rule and the stroke type of each stroke. ;as well as
    控制在所述显示屏上显示所述书写笔迹中每一笔笔画的标准书写顺序。And controlling a standard writing order of each stroke in the writing handwriting to be displayed on the display screen.
  12. 根据权利要求10所述的终端设备,其特征在于,所述处理器单元根据文字书写规则以及所确定的所述每一笔笔画的书写顺序和笔画类型,确定所述书写笔迹中笔画类型不正确的笔画;The terminal device according to claim 10, wherein the processor unit determines that the stroke type in the writing handwriting is incorrect according to the writing rule of the text and the determined writing order and stroke type of each stroke. Strokes
    控制在所述显示屏上显示所述书写笔迹,将所述笔画类型不正确的笔画用第二标记符号进行标记。And controlling the writing handwriting to be displayed on the display screen, and marking the stroke with an incorrect stroke type with a second marking symbol.
  13. 根据权利要求9所述的终端设备,其特征在于,所述触点数据包括触点坐标、触点生成时间和触点压力值,所述文字书写规则包括硬笔字的笔锋规则,所述处理器单元获取所述书写笔迹所对应的字体类型;The terminal device according to claim 9, wherein the contact data includes contact coordinates, contact generation time, and contact pressure value, the text writing rule includes a stylus rule for hard pen characters, and the processor The unit obtains a font type corresponding to the writing handwriting;
    当所述书写笔迹所对应的字体类型为硬笔字体时,根据所述触点坐标和所述触点生成时间确定所述书写笔迹中每一笔笔画的笔画类型;When the type of the font corresponding to the writing handwriting is a hard pen font, determining a stroke type of each stroke in the writing handwriting according to the touch point coordinates and the touch point generation time;
    根据所述笔锋规则、所述触点压力值以及所确定的所述每一笔笔画的笔画类型,确定所述书写笔迹中笔锋书写不正确的笔画;Determining, according to the stroke rule, the contact pressure value, and the determined stroke type of each stroke, an incorrect stroke written by the stroke in the writing handwriting;
    控制在所述显示屏上显示所述书写笔迹,将所述笔锋书写不正确的笔画用第三标记符号进行标记。Control the display of the writing handwriting on the display screen, and mark the stroke that is incorrectly written by the pen tip with a third marking symbol.
  14. 根据权利要求13所述的终端设备,其特征在于,所述处理器单元还获取所述笔锋书写不正确的笔画对应的触点参考压力值,根据所述触点参考压力值对所述笔锋书写不正确的笔画的笔锋进行修正;以及The terminal device according to claim 13, wherein the processor unit further acquires a contact reference pressure value corresponding to a stroke that is incorrectly written by the pen, and writes the pen edge according to the contact reference pressure value Correction of incorrect strokes; and
    控制在所述显示屏上显示所述书写笔迹中每一硬笔笔画的标准笔画。Controlling the display of a standard stroke of each hard stroke in the writing handwriting on the display screen.
  15. 根据权利要求9所述的终端设备,其特征在于,所述触点数据包括触点坐标、触点生成时间和触点压力值,所述处理器单元具体用于:The terminal device according to claim 9, wherein the contact data includes contact coordinates, contact generation time, and contact pressure values, and the processor unit is specifically configured to:
    将所述触点坐标转换为终端设备的屏幕坐标,并根据所述触点压力值确定触点大小;Converting the coordinates of the touch point into screen coordinates of a terminal device, and determining the size of the touch point according to the pressure value of the touch point;
    根据所述屏幕坐标、所述触点生成时间和所述触点大小,控制在所述显示屏上显示所述书写笔迹。And controlling the display of the writing handwriting on the display screen according to the screen coordinates, the contact generation time, and the contact size.
  16. 一种存储介质,其特征在于,所述存储介质中存储有文字书写检错指令,当所述文字书写检错指令在计算机上运行时,使得计算机执行如权利要求1至8中任一项所述的文字书写检错方法。A storage medium, wherein the storage medium stores a text writing error detection instruction, and when the text writing error detection instruction is run on a computer, the computer causes the computer to execute the device according to any one of claims 1 to 8. The method of text writing error detection is described.
PCT/CN2018/106461 2018-09-19 2018-09-19 Method for error detection in text writing, terminal device, and storage medium WO2020056619A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880094170.7A CN112639712A (en) 2018-09-19 2018-09-19 Character writing error detection method, terminal equipment and storage medium
PCT/CN2018/106461 WO2020056619A1 (en) 2018-09-19 2018-09-19 Method for error detection in text writing, terminal device, and storage medium

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
WO2020056619A1 true WO2020056619A1 (en) 2020-03-26

Family

ID=69888073

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114022885A (en) * 2021-10-13 2022-02-08 深圳腾千里科技有限公司 Intelligent pen, method, device and medium for handwriting scoring

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113947078A (en) * 2021-10-22 2022-01-18 安徽淘云科技股份有限公司 Newspaper dictation method and device, electronic equipment and storage medium
CN114510158B (en) * 2021-12-08 2022-12-30 深圳市康冠商用科技有限公司 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 (3)

* 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
CN105094381A (en) * 2015-07-21 2015-11-25 网易(杭州)网络有限公司 Writing processing method and device
CN107798717A (en) * 2017-09-13 2018-03-13 深圳市创易联合科技有限公司 Electronic brush writing method, device, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551724B (en) * 2008-03-31 2014-03-12 联想(北京)有限公司 Method and device for writing characters on touch screen
CN103390358B (en) * 2013-07-03 2015-08-19 广东小天才科技有限公司 Method and device for judging normativity of character writing operation of electronic equipment
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

Patent Citations (3)

* 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
CN105094381A (en) * 2015-07-21 2015-11-25 网易(杭州)网络有限公司 Writing processing method and device
CN107798717A (en) * 2017-09-13 2018-03-13 深圳市创易联合科技有限公司 Electronic brush writing method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114022885A (en) * 2021-10-13 2022-02-08 深圳腾千里科技有限公司 Intelligent pen, method, device and medium for handwriting scoring

Also Published As

Publication number Publication date
CN112639712A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
WO2020056619A1 (en) Method for error detection in text writing, terminal device, and storage medium
US11687233B2 (en) Handwriting processing method, touch display device, computer device and storage medium
KR101417286B1 (en) Character recognition for overlapping textual user input
US11107254B2 (en) Calligraphy-painting device, calligraphy-painting apparatus, and auxiliary method for calligraphy painting
US20140368453A1 (en) Handwriting input apparatus, non-transitory computer-readable storage medium and control method
KR102410724B1 (en) Presentation of representation of handwriting input on display
US20120218227A1 (en) Information processing apparatus and computer-readable storage medium
EP3610361B1 (en) Multi-stroke smart ink gesture language
US20130215045A1 (en) Stroke display method of handwriting input and electronic device
US20150035778A1 (en) Display control device, display control method, and computer program product
CN106445386A (en) Handwriting display method and device
CN107797752A (en) Handwriting presenting method and device, interactive intelligent panel and storage medium
US20230394721A1 (en) Information processing apparatus, program, and system
CN103514779B (en) Point line calligraphy practicing method and device
KR102622349B1 (en) Electronic device and control method thereof
US9146625B2 (en) Apparatus and method to detect coordinates in a penbased display device
KR20130112410A (en) Method and apparatus for detecting coordinates in a pen-based display device
CN107357430A (en) The method and apparatus of automatic record reading position
CN103761043A (en) Method and device for correcting handwritten characters
US9229608B2 (en) Character display apparatus, character display method, and computer readable medium
WO2022160330A1 (en) Handwriting recognition method and apparatus
US9483171B1 (en) Low latency touch input rendering
WO2022252821A1 (en) Method and medium for recognizing edit handwriting of stylus, and electronic device
US11789604B2 (en) Handwriting processing method, handwriting processing device and non-transitory storage medium
CN115188001A (en) Handwritten text recognition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18933796

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18933796

Country of ref document: EP

Kind code of ref document: A1