CN114092943B - Method and device for displaying and training text writing - Google Patents

Method and device for displaying and training text writing Download PDF

Info

Publication number
CN114092943B
CN114092943B CN202111424001.5A CN202111424001A CN114092943B CN 114092943 B CN114092943 B CN 114092943B CN 202111424001 A CN202111424001 A CN 202111424001A CN 114092943 B CN114092943 B CN 114092943B
Authority
CN
China
Prior art keywords
stroke order
track
user
writing
training
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111424001.5A
Other languages
Chinese (zh)
Other versions
CN114092943A (en
Inventor
王主龙
张洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yiyan Technology Co ltd
Original Assignee
Beijing Yiyan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yiyan Technology Co ltd filed Critical Beijing Yiyan Technology Co ltd
Priority to CN202111424001.5A priority Critical patent/CN114092943B/en
Publication of CN114092943A publication Critical patent/CN114092943A/en
Application granted granted Critical
Publication of CN114092943B publication Critical patent/CN114092943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/243Classification techniques relating to the number of classes
    • G06F18/24323Tree-organised classifiers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The application relates to a method and a device for displaying and training text writing, electronic equipment and a computer readable medium. The method for displaying and training the writing of the characters comprises the following steps: setting a display area outline display control layer and a display area guide line display layer, and displaying the outline of the target characters on the display area outline display control layer; obtaining a standard stroke order track of the target text from a database; dynamically displaying color blocks on the display layer of the display area guide line according to the standard stroke order track along with time; acquiring a user writing track of a user writing target text through acquiring screen input of the user; dynamically displaying the color blocks along with time according to the writing track of the user; and comparing the standard stroke order track with the user writing track to obtain the training score. The standard writing process for dynamically displaying the characters is very visual, is beneficial to enhancing the learning ability of a user on the writing of the characters and improves the learning efficiency of the user on learning language characters.

Description

Method and device for displaying and training text writing
Technical Field
The present application relates to the field of computer information processing, and in particular, to a method and apparatus for displaying and training text writing, an electronic device, and a computer readable medium.
Background
Writing of characters is a difficulty in learning foreign language by students.
At present, the emphasis of many foreign language learning software is on hearing training and reading training, but training is less aiming at writing of characters, so that students feel that the students learn themselves when 'seeing' foreign language, but find that the students are not familiar with writing to be irregular or even writing when writing manually.
Disclosure of Invention
In view of the above, the present application provides a method and apparatus for displaying and training text writing, an electronic device, and a computer readable medium, which dynamically display a standard writing process of text, so as to be very intuitive, and help to enhance the learning ability of a user for text writing, and improve the learning efficiency of the user for learning language and text.
Other features and advantages of the application will be apparent from the following detailed description, or may be learned by the practice of the application.
According to an aspect of the present application, there is provided a method for displaying and training text writing, the method comprising: step one: dividing the screen into a display area and a training area; step two: executing in the display area: setting a display area outline display control layer and a display area guide line display layer, wherein the display area guide line display layer is positioned below the display area outline display control layer, the outline of the target characters is displayed on the display area outline display control layer, the part occupied by the target characters is transparent, and the rest part is optionally opaque; obtaining a standard stroke order track of the target text from a database, and optionally displaying the standard stroke order track in a guide line form on a guide line display layer of the display area; dynamically displaying color blocks on the display layer of the display area guide line according to the standard stroke order track, so that a standard writing process of the target characters is dynamically displayed on a screen; step three: performing in the training area: optionally displaying an outline of the target text; acquiring a user writing track of the target text written by the user through acquiring screen input of the user; dynamically displaying color blocks along with time according to the user writing track, so that the user writing process of the target characters is dynamically displayed on a screen; step four: and (3) comparing the standard stroke order track in the second step with the user writing track in the third step to obtain a training score, and optionally displaying the training score.
In an exemplary embodiment of the application, the scoring of the training comprises: scoring a training of a stroke order and/or scoring a training of the target text as a whole.
In an exemplary embodiment of the present application, the scoring of the training includes scoring of a training of a stroke order, and step four includes: selecting n points from the standard stroke order track, determining the positions of the n points, wherein n is a natural number; selecting n corresponding points from the user writing track, and determining the positions of the n points; and comparing the positions of the n points selected from the standard stroke order track with the positions of the corresponding n points selected from the user writing track to obtain the score of the training of the stroke order.
In an exemplary embodiment of the present application, the positions of the points are represented by coordinates, and the positions of the n points selected from the standard pen-order track are compared with the positions of the corresponding n points selected from the user writing track, so as to obtain a score for training of the pen-order, including: respectively calculating a transverse deviation value and a longitudinal deviation value between the writing track of the user and the standard stroke order track according to a formula (1) and a formula (2);
Sx={[(x1-X1)2+(x2-X2)2+……+(xn-Xn)2]/n}1/2 Formula (1),
Sy={[(y1-Y1)2+(y2-Y2)2+……+(yn-Yn)2]/n}1/2 Formula (2),
S x represents a lateral deviation value between the user writing track and the standard stroke track, S y represents a longitudinal deviation value between the user writing track and the standard stroke track, n is a natural number, X 1 is an abscissa of a1 st point selected from the standard stroke track, Y 1 is the ordinate of the 1 st point selected from the standard pen-order trajectory, x 1 is the abscissa of the 1 st point selected from the user writing trajectory, and Y 1 is the ordinate of the 1 st point selected from the user writing trajectory; X 2 is the abscissa of the 2 nd point selected from the standard pen-order trajectory, Y 2 is the ordinate of the 2 nd point selected from the standard pen-order trajectory, X 2 is the abscissa of the 2 nd point selected from the user writing trajectory, y 2 is the ordinate of the 2 nd point selected from the user writing trace; X n is the abscissa of the nth point selected from the standard pen-order trajectory, Y n is the ordinate of the nth point selected from the standard pen-order trajectory, X n is the abscissa of the nth point selected from the user writing trajectory, y n is the ordinate of the nth point selected from the user writing trace. and determining the score of the training of the stroke order according to the transverse deviation value and the longitudinal deviation value, wherein the score of the training of the stroke order is in a negative correlation relationship with the transverse deviation value and the longitudinal deviation value.
In an exemplary embodiment of the application, the method further comprises: determining a weight value of each stroke order of the target text after determining a score for training of each stroke order according to the transverse deviation value and the longitudinal deviation value; and calculating the training score of the whole target character according to the weight value of each stroke order of the target character and the training score of each stroke order.
In an exemplary embodiment of the application, the method further comprises: acquiring a stroke order set to be reviewed corresponding to a user; determining a recommendation index corresponding to each stroke order in the stroke order set to be reviewed based on the memory curve, the current time, the time stamp corresponding to the stroke order and the score of the last training of the stroke order; determining the emotion type of the user; and adjusting a recommendation index corresponding to the stroke order based on the emotion type and the writing difficulty of the stroke order, and determining the stroke order/characters to be displayed according to the adjusted recommendation index.
In an exemplary embodiment of the present application, the dynamically displaying color blocks on the display area guide line display layer according to the standard pen order track over time includes: selecting a point on the standard stroke order track at intervals of a preset step length; determining the tangential direction of the standard stroke order track at a kth point, wherein k sequentially takes natural numbers from 1 to m, and m is the number of points selected on the standard stroke order track; determining a target direction in the tangential direction of the kth point according to the standard stroke order track; and displaying the color blocks along the target direction dynamically by the display layer of the display area guide line along with time.
In an exemplary embodiment of the present application, the outline of the text displayed on the outline display control layer of the display area has a certain width D, and the lateral dimension of the color block is greater than or equal to the width D, and the lateral dimension of the color block is the length of the projection of the color block in the direction perpendicular to the target direction.
In an exemplary embodiment of the application, the method further comprises: step five: judging whether the score of the training of the stroke order is smaller than a preset score; if the score of the training of the stroke order is smaller than the preset score, searching the target text containing the stroke order from a database, and displaying the target text.
According to one aspect of the present application, a method for displaying text writing is provided, including: setting a display area outline display control layer and a display area guide line display layer, wherein the display area guide line display layer is positioned below the display area outline display control layer, the outline of the target characters is displayed on the display area outline display control layer, the part occupied by the target characters is transparent, and the rest part is optionally opaque; obtaining a standard stroke order track of the target text from a database, and optionally displaying the standard stroke order track in a guide line form on a guide line display layer of the display area; and dynamically displaying color blocks on the display layer of the display area guide line according to the standard stroke order track, so that the standard writing process of the target characters is dynamically displayed on a screen.
According to an aspect of the present application, there is provided a text writing display and training device, the device comprising: a dividing unit for: dividing the screen into a display area and a training area; a first execution unit for: executing in the display area: setting a display area outline display control layer and a display area guide line display layer, wherein the display area guide line display layer is positioned below the display area outline display control layer, the outline of the target characters is displayed on the display area outline display control layer, the part occupied by the target characters is transparent, and the rest part is optionally opaque; obtaining a standard stroke order track of the target text from a database, and optionally displaying the standard stroke order track in a guide line form on a guide line display layer of the display area; dynamically displaying color blocks on the display layer of the display area guide line according to the standard stroke order track, so that a standard writing process of the target characters is dynamically displayed on a screen; a second execution unit for: performing in the training area: optionally displaying an outline of the target text; acquiring a user writing track of the target text written by the user through acquiring screen input of the user; dynamically displaying color blocks along with time according to the user writing track, so that the user writing process of the target characters is dynamically displayed on a screen; a contrast unit for: comparing the standard stroke order track with the user writing track to obtain a training score, and optionally displaying the training score.
In an exemplary embodiment of the application, the scoring of the training comprises: scoring a training of a stroke order and/or scoring a training of the target text as a whole.
In an exemplary embodiment of the present application, the comparison unit includes: a first selecting subunit, configured to select n points from the standard stroke order track, determine positions of the n points, and n is a natural number; a second selecting subunit, configured to select n points from the writing track of the user, and determine positions of the n points; and the comparison subunit is used for comparing the positions of the n points selected from the standard stroke order track with the positions of the corresponding n points selected from the user writing track to obtain the score of the training of the stroke order.
In an exemplary embodiment of the application, the positions of the points are represented by coordinates, and the comparison subunit is configured to: respectively calculating a transverse deviation value and a longitudinal deviation value between the writing track of the user and the standard stroke order track according to a formula (1) and a formula (2);
Sx={[(x1-X1)2+(x2-X2)2+……+(xn-Xn)2]/n}1/2 Formula (1),
Sy={[(y1-Y1)2+(y2-Y2)2+……+(yn-Yn)2]/n}1/2 Formula (2),
S x represents a lateral deviation value between the user writing track and the standard stroke track, S y represents a longitudinal deviation value between the user writing track and the standard stroke track, n is a natural number, X 1 is an abscissa of a1 st point selected from the standard stroke track, Y 1 is the ordinate of the 1 st point selected from the standard pen-order trajectory, x 1 is the abscissa of the 1 st point selected from the user writing trajectory, and Y 1 is the ordinate of the 1 st point selected from the user writing trajectory; X 2 is the abscissa of the 2 nd point selected from the standard pen-order trajectory, Y 2 is the ordinate of the 2 nd point selected from the standard pen-order trajectory, X 2 is the abscissa of the 2 nd point selected from the user writing trajectory, y 2 is the ordinate of the 2 nd point selected from the user writing trace; X n is the abscissa of the nth point selected from the standard pen-order trajectory, Y n is the ordinate of the nth point selected from the standard pen-order trajectory, X n is the abscissa of the nth point selected from the user writing trajectory, y n is the ordinate of the nth point selected from the writing track of the user, and the score of the training of the stroke order is determined according to the transverse deviation value and the longitudinal deviation value, wherein the score of the training of the stroke order is in a negative correlation relationship with the transverse deviation value and the longitudinal deviation value.
In an exemplary embodiment of the application, the apparatus further comprises: a determining unit, configured to determine a weight value of each stroke order of the target text after determining a score for training of each stroke order according to the lateral deviation value and the longitudinal deviation value; and the calculation unit is used for calculating the training score of the whole target character according to the weight value of each stroke order of the target character and the training score of each stroke order.
In an exemplary embodiment of the application, the apparatus further comprises: the to-be-reviewed stroke order set acquisition unit is used for acquiring a to-be-reviewed stroke order set corresponding to a user; the recommendation index determining unit is used for determining a recommendation index corresponding to each stroke order in the stroke order set to be reviewed based on the memory curve, the current time, the time stamp corresponding to the stroke order and the score of the last training of the stroke order; an emotion type determining unit configured to determine an emotion type of a user; and the recommendation index adjustment unit is used for adjusting the recommendation index corresponding to the stroke order based on the emotion type and the writing difficulty of the stroke order, and determining the stroke order/text to be displayed according to the adjusted recommendation index.
In an exemplary embodiment of the present application, the first execution unit includes: a third selecting subunit, configured to select a point on the standard stroke order track at intervals of a preset step length; a first determining subunit, configured to determine that the standard stroke order track is in a tangential direction of a kth point, where k sequentially takes a natural number between 1 and m, and m is a number of points selected on the standard stroke order track; a second determining subunit, configured to determine a target direction in a tangential direction of a kth point according to the standard pen order trajectory; and the display subunit is used for displaying the color blocks along the target direction along the time of the display layer on the display area guide line.
In an exemplary embodiment of the present application, the outline of the text displayed on the outline display control layer of the display area has a certain width D, and the lateral dimension of the color block is greater than or equal to the width D, and the lateral dimension of the color block is the length of the projection of the color block in the direction perpendicular to the target direction.
In an exemplary embodiment of the application, the apparatus further comprises: the judging unit is used for judging whether the score of the training of the stroke order is smaller than a preset score; and the searching unit is used for searching the target characters containing the stroke orders from the database and displaying the target characters if the score of the training of the stroke orders is smaller than the preset score.
According to an aspect of the present application, there is provided a display device for writing text, including: the display device comprises a setting unit, a display area outline display control layer and a display area guide line display layer, wherein the display area guide line display layer is positioned below the display area outline display control layer, outlines of target characters are displayed on the display area outline display control layer, the occupied parts of the target characters are transparent, and optionally the rest parts are opaque; the acquisition unit is used for acquiring the standard stroke order track of the target text from a database, and optionally displaying the standard stroke order track in a guide line form on the display area guide line display layer; and the display unit is used for dynamically displaying the color blocks on the display layer of the display area guide line according to the standard stroke order track along with time, so that the standard writing process of the target characters is dynamically displayed on a screen.
According to an aspect of the present application, there is provided an electronic device including: one or more processors; a storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods as described above.
According to an aspect of the application, a computer-readable medium is proposed, on which a computer program is stored, which program, when being executed by a processor, implements a method as described above.
In the embodiment of the application, the part occupied by the target characters on the display control layer of the outline display control layer is transparent, so that the color blocks on the layer below the part occupied by the target characters can be seen by a user, thereby achieving the effect of dynamically displaying the color blocks along with time, so that the standard writing process of the target characters on the screen is dynamically displayed, the user writes in the training area, and can write by pressing the screen with a finger or a touch pen (or other touch objects), the software detects the pressing point of the user pressing the screen, the user writing track of the target characters written by the user is obtained according to the change of the pressing point along with time, and the color blocks are dynamically displayed along with time according to the user writing track, so that the training area of the screen dynamically displays the user writing process of the target characters, and the effect of recording and playing back the user writing process is achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are only some embodiments of the present application and other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a flow chart illustrating a method of presentation of text writing according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of presentation and training of text writing according to an exemplary embodiment.
Fig. 3-1 to 3-3 are schematic views showing a screen divided into a presentation area and a training area according to another exemplary embodiment.
Fig. 3-4 are schematic diagrams of the text displayed in the display area of fig. 3-3, enlarged.
Fig. 3-5 are schematic diagrams of points of intersection of two orders of strokes of the text of fig. 3-4 with dashed circles.
Fig. 4 is a flow chart illustrating a method of presentation and training of text writing according to another exemplary embodiment.
Fig. 5 is a flow chart illustrating a presentation apparatus for writing text according to another exemplary embodiment.
Fig. 6 is a block diagram of a word writing presentation and training device, according to another exemplary embodiment.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
Fig. 8 is a block diagram of a computer-readable medium shown according to an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the application may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another element. Accordingly, a first component discussed below could be termed a second component without departing from the teachings of the present inventive concept. As used herein, the term "and/or" includes any one of the associated listed items and all combinations of one or more.
Those skilled in the art will appreciate that the drawings are schematic representations of example embodiments and that the modules or flows in the drawings are not necessarily required to practice the application and therefore should not be taken to limit the scope of the application.
The embodiment of the application provides character learning software which is suitable for learning characters in multiple languages, such as Chinese (Chinese characters), japanese, english and the like.
FIG. 1 is a flow chart illustrating a method of presentation of text writing, according to an exemplary embodiment, comprising:
Step S101: and setting a display area outline display control layer and a display area guide line display layer, wherein the display area guide line display layer is positioned below the display area outline display control layer, and displaying the outline of the target characters on the display area outline display control layer, wherein the part occupied by the target characters is transparent, and optionally the rest part is opaque.
Step S102: the standard stroke track of the target text is obtained from the database, and the standard stroke track is optionally displayed in the form of a guide line on a display area guide line display layer.
Step S103: and dynamically displaying the color blocks on the display layer of the display area guide line according to the standard stroke order track, so that the standard writing process of the target characters is dynamically displayed on the screen.
Strokes exist for various languages.
The stroke order rule of the Chinese characters is as follows: first transverse and then vertical (e.g. "dry"), first skim and then press (e.g. "eight"), top to bottom (e.g. "main"), left to right (e.g. "forest"), first and then close (e.g. "field"), first middle and then two sides (e.g. "water"), and from outside to inside (e.g. "return"). Such as "walking on the same strokes as the first, second, third, and fourth strokes. The order of strokes is related to the writing speed and the quality of the character pattern to a certain extent.
The standard stroke order trajectory is pre-stored in a database. The database stores standard strokes of a large number of words.
The color blocks are dynamically displayed on the display layer of the display area guide line according to the standard stroke order track along with time, so that the standard writing process of the target characters is dynamically displayed on the screen, and the display method is very visual. Thus, the user can learn the text by watching the standard writing process of the text presented in the presentation area of the screen.
As an alternative embodiment, the standard pen order trajectory is displayed in the form of a guide line on the display area guide line display layer.
The display area guide line display layer is positioned below the display area outline display control layer. Whether the color blocks displayed on the display area guide display layer are visible to the user depends on whether the display area outline display control layer is transparent. If the whole display control layer of the outline display control area is opaque, the color blocks on the layer below the outline display control layer cannot be seen by a user, so that the effect of dynamically displaying the color blocks along with time, thereby dynamically displaying the standard writing process of the target characters on the screen, cannot be achieved. In the embodiment of the application, the part occupied by the target characters on the display control layer of the outline display control of the display area is transparent, so that the color blocks on the layer below the part occupied by the target characters can be seen by a user, thereby achieving the effect of dynamically displaying the color blocks along with time, and dynamically displaying the standard writing process of the target characters on the screen.
As an alternative implementation, the display layer dynamically displays color blocks along time according to the standard pen order track and the guide line of the display area, which can be specifically: selecting a point on the standard stroke order track at intervals of a preset step length; determining the tangential direction of a standard stroke order track at a kth point, wherein k sequentially takes natural numbers between 1 and m, and m is the number of points selected on the standard stroke order track; determining a target direction in the tangential direction of the kth point according to the standard stroke order track; the display layer is dynamically displayed along the target direction over time along the display area guide line display layer. The effect of the standard writing process of dynamically displaying the target characters on the screen is achieved.
As another alternative implementation, the display layer dynamically displays color blocks along time according to the standard pen order track and the guide line of the display area, which can be specifically: selecting a point on the standard stroke order track at intervals of a preset step length; the display layer is guided on lines in the display area to dynamically display color blocks at selected points over time. The effect of the standard writing process of dynamically displaying the target characters on the screen is achieved.
FIG. 2 is a flow chart illustrating a method of presentation and training of text writing, according to an exemplary embodiment, including:
Step S201: the screen is separated into a presentation area and a training area (as shown in fig. 3-1 to 3-3).
Step S202: executing in a display area: setting a display area outline display control layer and a display area guide line display layer, wherein the display area guide line display layer is positioned below the display area outline display control layer, and displaying the outline of the target characters on the display area outline display control layer, wherein the part occupied by the target characters is transparent, and optionally the rest part is opaque; obtaining standard stroke order tracks of target characters from a database, and optionally displaying the standard stroke order tracks in the form of guide lines on a display area guide line display layer; and dynamically displaying the color blocks on the display layer of the display area guide line according to the standard stroke order track, so that the standard writing process of the target characters is dynamically displayed on the screen.
The standard stroke order trajectory is pre-stored in a database. The database stores standard strokes of a large number of words.
The color blocks are dynamically displayed on the display layer of the display area guide line according to the standard stroke order track along with time, so that the standard writing process of the target characters is dynamically displayed on the screen, and the display method is very visual. Thus, the user can learn the text by watching the standard writing process of the text presented in the presentation area of the screen.
As an alternative embodiment, the standard pen order trajectory is displayed in the form of a guide line on the display area guide line display layer.
The display area guide line display layer is positioned below the display area outline display control layer. Whether the color blocks displayed on the display area guide display layer are visible to the user depends on whether the display area outline display control layer is transparent. If the whole display control layer of the outline display control area is opaque, the color blocks on the layer below the outline display control layer cannot be seen by a user, so that the effect of dynamically displaying the color blocks along with time, thereby dynamically displaying the standard writing process of the target characters on the screen, cannot be achieved. In the embodiment of the application, the part occupied by the target characters on the display control layer of the outline display control of the display area is transparent, so that the color blocks on the layer below the part occupied by the target characters can be seen by a user, thereby achieving the effect of dynamically displaying the color blocks along with time, and dynamically displaying the standard writing process of the target characters on the screen.
The shape of the color block can be rectangular (including square), circular, elliptical, polygonal, etc., and the embodiment of the application does not excessively limit the shape of the color block. The outline of the target text displayed on the outline display control layer has a certain width D, the transverse dimension of the color block is larger than or equal to the width D, and the transverse dimension of the color block is the projection length of the color block in the direction perpendicular to the target direction. In the embodiment shown in fig. 3-4, the lateral dimension of the color block is greater than the width D of the target text outline, as can be seen from the portion encircled by the dashed line. Only when the transverse dimension of the color block is larger than or equal to the width D of the outline of the target character, the color block can be paved with the outline of the target character, so that the effect of attractive appearance is achieved. If the transverse dimension of the color block is smaller than the width D of the outline of the target character, the color block cannot be paved with the outline of the target character, so that the problem that some parts of the outline of the target character have colors and some parts have no color can occur, and the display effect on the character is poor.
Step S203: in the training area: optionally displaying the outline of the target text; acquiring a user writing track of a user writing target text through acquiring screen input of the user; and dynamically displaying the color blocks along with time according to the writing track of the user, so that the user writing process of the target characters is dynamically displayed on the screen.
In step S203, the outline of the target text may or may not be displayed. The advantages of displaying the outline of the target text are: the user can write according to the outline (just like drawing) and even if the user is unfamiliar with the text, the user can write. The outline of the target character may not be displayed, and in this case, the user may write in the training area while looking at the outline of the target character displayed in the display area.
The user writes in the training area and can press the screen to write by a finger or a stylus (or other touching object). The learning software provided by the embodiment of the application detects the pressing point of the screen pressed by the user, and obtains the user writing track of the target text written by the user according to the change of the pressing point along with the time position. And dynamically displaying the color blocks along with time according to the writing track of the user, so that the training area of the screen dynamically displays the user writing process of the target characters.
The embodiment of the application records and plays back the writing process of the user, so that the user can review the writing process of the user and compare with the standard writing process, the user can know the defects of the user and the places needing improvement more easily, the learning efficiency of the user for learning the characters is improved, and the user can write and learn the characters more pertinently.
Step S204: the "standard stroke order track" in step S202 is compared with the "user writing track" in step S203, and a training score is obtained, and optionally the training score is displayed. The scoring of the training includes: scoring a training of a stroke order, and/or scoring a training of the target text as a whole.
The ideal state of the user writing the text is that the "user writing track" in step S203 is identical to the "standard stroke track" in step S202. But in practice this is very difficult. Therefore, the writing track of a character written by a user is deviated from the standard stroke order track of the character, and the larger the deviation is, the worse the writing level of the user is, and the larger the improvement space of the written character is; the smaller the deviation, the higher the user's writing level. In the embodiment of the application, the deviation of the user writing track and the standard stroke track is obtained by comparing the user writing track in the step S203 with the standard stroke track in the step S202, and the score for the stroke training is determined according to the deviation, so that the process of writing characters by the user can be trained in a targeted manner, and the grasping degree of the user on the characters is improved. Specifically, the method comprises the following steps A to C.
Step A: and selecting n points from the standard stroke order track, determining the positions of the n points, wherein n is a natural number.
And (B) step (B): and selecting the corresponding n points from the writing track of the user, and determining the positions of the n points.
Step C: and comparing the positions of the n points selected from the standard stroke order track with the positions of the corresponding n points selected from the user writing track to obtain the score of the training of the stroke order.
The value of n may be different for different orders of strokes. For a simpler stroke order, the value of n can be smaller; for more complex orders of strokes, the value of n may be relatively large. Among a plurality of strokes constituting the same character, the value of n of the complex stroke is larger than that of n of the simple stroke. The same stroke order, and the values of n in different words can be different.
The step C specifically comprises the following steps:
Respectively calculating a transverse deviation value and a longitudinal deviation value between a writing track of a user and a standard stroke order track according to a formula (1) and a formula (2);
Sx={[(x1-X1)2+(x2-X2)2+……+(xn-Xn)2]/n}1/2 Formula (1),
Sy={[(y1-Y1)2+(y2-Y2)2+……+(yn-Yn)2]/n}1/2 Formula (2),
S x represents a lateral deviation value between the user writing track and the standard stroke track, S y represents a longitudinal deviation value between the user writing track and the standard stroke track, n is a natural number, X 1 is an abscissa of a 1 st point selected from the standard stroke track, Y 1 is an ordinate of a 1 st point selected from the standard stroke track, X 1 is an abscissa of a 1 st point selected from the user writing track, and Y 1 is an ordinate of a 1 st point selected from the user writing track; x 2 is the abscissa of the 2 nd point selected from the standard pen-order trajectory, Y 2 is the ordinate of the 2 nd point selected from the standard pen-order trajectory, X 2 is the abscissa of the 2 nd point selected from the user writing trajectory, and Y 2 is the ordinate of the 2 nd point selected from the user writing trajectory; x n is the abscissa of the nth point selected from the standard pen-order trajectory, Y n is the ordinate of the nth point selected from the standard pen-order trajectory, X n is the abscissa of the nth point selected from the user writing trajectory, and Y n is the ordinate of the nth point selected from the user writing trajectory.
And determining a training score L of the stroke order according to the transverse deviation value S x and the longitudinal deviation value S y, wherein the training score L and the transverse deviation value S x and the longitudinal deviation value S y are in a negative correlation relation.
As an alternative embodiment, the formula of the score L of the training of the stroke order may be a piecewise function, and in some independent variable intervals, the stroke order written by the user is too far from the standard stroke order, so that the user is very irregular, and the user can be directly given a lower score (for example, 0 score). In other independent variable intervals, although the writing stroke orders of the user deviate from the standard stroke orders, the deviation is not too large, and the stroke orders of the user writing can be scored according to the function expression. Three calculation formulas are exemplarily listed in formulas (3) to (5).
When S x 2+Sy 2 < d is satisfied, l= [1- (S x 2+Sy 2)/d ] ×100; in the rest of the cases, l=c. Formula (3)
When S x+Sy < d is satisfied, l= [1- (S x+Sy)/d ] ×100; in the rest of the cases, l=c. Formula (4)
When S x < d/2 and S y < d/2 are satisfied, l= [1- (S x+Sy)/d ] ×100; in the rest of the cases, l=c. Formula (5)
In the formulas (3) to (5), c and d are constants. c may take a value of 0.d can be selected according to actual needs.
As an alternative implementation manner, after scoring the stroke order written by the user, judging whether the score is smaller than a preset score; if the score is smaller than the preset score, the user is not skilled in writing the stroke order, and the exercise needs to be continued. Then the target text containing the stroke order is looked up from the database and the target text is presented.
For example, after the user scores the "skim" stroke order of the writing, if the score is less than the preset score, it is indicated that the user is unskilled in not standardizing the "skim" stroke order of the writing, and the exercise needs to be continued. Then the text containing the "skim" stroke order is looked up from the database and the looked up text is presented.
As an alternative embodiment, the training score of each stroke order of the text is calculated according to any one of formulas (3) to (5), and then the training score P of the entire text is calculated according to formula (6) below.
P=l (1) ×w (1) +l (2) ×w (2) + … … +l (t) ×w (t) formula (6),
T is a natural number, t is the number of strokes contained in the text, L (1) represents the score of the 1 st stroke training, and w (1) represents the weight of the 1 st stroke; l (2) represents the score of the 2 nd stroke training, w (2) represents the weight of the 2 nd stroke; l (t) represents the score of the t-th stroke training, and w (t) represents the weight of the t-th stroke. The weight of the stroke order is determined by at least one of: difficulty in writing the order of strokes and frequency of use of the order of strokes. The difficulty of writing the order of strokes can be obtained by counting the scores of a large number of users writing the order of strokes. If the scores of the writing orders of a large number of users are lower, the writing difficulty of the writing orders is higher; if the scores of the orders written by a large number of users are higher, the difficulty of writing the orders is smaller. The use frequency of the stroke order refers to the frequency of the stroke order in the text. Taking Chinese as an example, a method for calculating the use frequency of the stroke order will be briefly described. Counting the number of times of occurrence of each stroke order in 3000 commonly used Chinese characters, counting the number of times of occurrence of the stroke order of the transverse stroke, and dividing the number of times of occurrence of the stroke order of the transverse stroke by the total number of times of occurrence of each stroke order to obtain the use frequency of the stroke order of the transverse stroke; counting the frequency of occurrence of the stroke order of the transverse folding hook, dividing the frequency of occurrence of the stroke order of the transverse folding hook by the total frequency of occurrence of each stroke order, and obtaining the use frequency of the stroke order of the transverse folding hook; counting the number of times of occurrence of the "skim" stroke order, and dividing the number of times of occurrence of the "skim" stroke order by the total number of times of occurrence of each stroke order to obtain the frequency of use of the "skim" stroke order. Further, by taking English as an example, a simple description will be given of a method for calculating the frequency of use of the stroke order. And counting the occurrence frequency of each English letter in 26 English letters in 5000 common English words. Dividing the frequency of occurrence of the letter "a" by the total frequency of occurrence of 26 English letters to obtain the use frequency of the stroke order of the letter "a"; dividing the frequency of occurrence of the letter 'b' by the total frequency of occurrence of 26 English letters to obtain the use frequency of the stroke order of the letter 'b'; … …; the frequency of use of the letter "z" is obtained by dividing the number of occurrences of the letter "z" by the total number of occurrences of 26 English letters.
The higher the frequency of use of a stroke order, the more important the stroke order. If the writing difficulty of a stroke order is higher and the use frequency is higher, the weight of the stroke order can be set higher; if the difficulty of writing a stroke order is small and the frequency of use is low, the weight of the stroke order can be set to be lower.
If the score of the training of the whole text is lower than a certain preset threshold value, the user is not skilled in writing the text, and the text can be displayed again after a certain time so as to be used for the exercise of the user, so that the user is vivid.
For example, the "ten thousand" word contains 3 strokes (t=3), first writing a horizontal (1 st stroke), then writing a horizontal folding hook (2 nd stroke), and then writing a left-hand (3 rd stroke). Of the three orders, the 1 st order has the smallest writing difficulty and the 3 rd order has the largest writing difficulty. Therefore, for the values of n in the above formulas (1) and (2), the number of points selected from the standard stroke track of the 1 st stroke < the number of points selected from the standard stroke track of the 2 nd stroke < the number of points selected from the standard stroke track of the 3 rd stroke.
For the 1 st stroke order of the ten thousand, 50 (n=50) points are selected from the standard stroke order track, and the abscissa and the ordinate of the 50 points are determined; and selecting 50 corresponding points from the writing track of the user, and determining the abscissa and the ordinate of the 50 points. Substituting the coordinate values into the formulas (1) and (2) can obtain a transverse deviation value S x (1) between the user writing track with the 1 st stroke order and the standard stroke order track and a longitudinal deviation value S y (1) between the user writing track with the 1 st stroke order and the standard stroke order track. Substituting the lateral deviation value S x (1) and the longitudinal deviation value S y (1) of the 1 st stroke order into any one of formulas (3) to (5), and calculating a score L (1) of training of the 1 st stroke order.
For the 2 nd stroke order of the ten thousand, 70 (n=70) points are selected from the standard stroke order track, and the abscissa and the ordinate of the 70 points are determined; and selecting the corresponding 70 points from the writing track of the user, and determining the abscissa and the ordinate of the 70 points. Substituting the coordinate values into the formulas (1) and (2) can obtain a transverse deviation value S x (2) between the user writing track with the 2 nd stroke order and the standard stroke order track and a longitudinal deviation value S y (2) between the user writing track with the 2 nd stroke order and the standard stroke order track. Substituting the lateral deviation value S x (2) and the longitudinal deviation value S y (2) of the 2 nd stroke order into one of the formulas (3) to (5) (the formula is the same as the formula selected when calculating the training score L (1) of the 1 st stroke order), and calculating the training score L (2) of the 2 nd stroke order.
For the 3 rd stroke order of the ten thousand, 100 (n=100) points are selected from the standard stroke order track, and the abscissa and the ordinate of the 100 points are determined; and selecting 100 corresponding points from the writing track of the user, and determining the abscissa and the ordinate of the 100 points. Substituting the coordinate values into the formulas (1) and (2) can obtain a transverse deviation value S x (3) between the user writing track with the 3 rd stroke order and the standard stroke order track, and a longitudinal deviation value S y (3) between the user writing track with the 3 rd stroke order and the standard stroke order track. Substituting the 3 rd stroke order lateral deviation value S x (3) and the 3 rd stroke order longitudinal deviation value S y (3) into one of the formulas (3) to (5) (the formula is the same as the formula selected when calculating the 1 st stroke order training score L (1)), and calculating the 3 rd stroke order training score L (3).
As an alternative embodiment, when the present software is used to learn chinese, after calculating the score for training of the stroke order of the text, the score for training of the components or radicals may also be calculated from the score for training of the stroke order.
The components are character forming components of the combined character. The left side of the combined character with the left-right structure is called as 'bias', the right side is called as 'side', and the components of each part of the combined character are commonly called as components.
The Chinese characters are mostly shape and pronunciation characters and are composed of shape and pronunciation sides, so the character components mainly comprise shape and pronunciation sides. For example, the word "language" is composed of two components of "language" and "wu"; the basin-shaped character is composed of two components of a 'sub' character and a 'dish-shaped character bottom'; the "question" word is composed of two components of "door" and "mouth".
In primary school chinese teaching, the term "radical" has two meanings depending on the use. The term "radicals" in literacy teaching generally refers to the meaning components of the character, and the "three-point water" (san), "hand-held" four-point base "( ) and the like often referred to in character analysis are the radicals. The radicals are word forming parts of the combined words, can help students know word meaning, and can be called as word learning radicals.
Both the Xinhua dictionary and the modern Chinese dictionary have a "radical look-up table". The term "radical" is also used when teaching students to look up dictionaries with radical-looking-up methods, in which case the radicals may be called "word-looking radicals".
The character-learning radicals are mostly coincident with the character-checking radicals, such as "word-lifting", the character-learning radicals are "" word "(called" side of handle "), and the character-checking radicals are" word "(called" word-turning ").
Radical enumeration
01 Painting: first fall
02 Drawing: ten plants 匚 controlling
03 Drawing: dried plum Zhong
Radical examples
Two points of water: secondary, cold and quasi-
Word side: meter, theory and knowledge
Three-point water: jiang and Wang Huo
Wang Xieyu side: playing, precious and working
As an alternative embodiment, the score of the training of the stroke order of the text is calculated, and then the score Q of the training of the radical or the radical is calculated according to the following formula (7).
Q=L (1) ×w (1) +L (2) ×w (2) + … … +L (b) ×w (b) equation (7),
B is a natural number, and b is the number of strokes contained in a radical or a radical. L (1) represents the score of the 1 st stroke training, w (1) represents the weight of the 1 st stroke; l (2) represents the score of the 2 nd stroke training, w (2) represents the weight of the 2 nd stroke; l (b) represents the score of the b-th stroke training, w (b) represents the weight of the b-th stroke.
For example, calculating a score of the word side "the" training according to the two strokes order of the word side "the" and judging whether the score is smaller than a preset score; if the score is less than the predetermined score, it is indicated that the user is unskilled in writing the component/radical, and the exercise needs to be continued. Then the text containing the word "kanji" is looked up from the database and the text is presented.
For example, the screen is divided into a presentation area and a training area, and the display area is executed: the method comprises the steps of setting a display area outline display control layer and a display area guide line display layer, wherein the display area guide line display layer is positioned below the display area outline display control layer, displaying the outline of the character 'river' on the display area outline display control layer, setting the part occupied by the 'river' character to be transparent, and the rest part to be opaque.
The river-shaped character has 8 strokes, the 1 st stroke to the 3 rd stroke form a three-point water 'A', and the 4 th stroke to the 8 th stroke form a side of the character.
Obtaining standard stroke order tracks of the 'river' character from a database, wherein each stroke order in 8 stroke orders of the 'river' character corresponds to one standard stroke order track; and dynamically displaying color blocks on the display layer of the display area guide line according to the standard stroke order track of the river character, so that the standard writing process of the river character is dynamically displayed on a screen.
In the training area: acquiring a user writing track of a user writing a river word through acquiring screen input of the user; and dynamically displaying the color blocks along with time according to the writing track of the user, so that the user writing process of the 'river' word is dynamically displayed on the screen.
Detecting a pressing point of a screen pressed by a user, and acquiring a user writing track of 8 strokes of the user writing the river word according to the change of the pressing point along with the time position, wherein each stroke of the 8 strokes of the river word corresponds to one user writing track.
And comparing the standard stroke track of each stroke of the 8 stroke sequences of the river character with the user writing track to obtain the score of the stroke training. Specifically, a lateral deviation value and a longitudinal deviation value between a user writing track of each of 8 strokes and a standard stroke track are calculated according to formulas (1) and (2), and a training score of each stroke is determined according to the lateral deviation value and the longitudinal deviation value (formulas (3) to (5) can be adopted, and other formulas can also be adopted), if the score is low, the fact that the user is unskilled in writing the strokes is indicated, and the training needs to be continued is indicated. Then the text containing the stroke order is looked up from the database and the text is presented.
Substituting the training scores from the 1 st stroke order to the 3 rd stroke order of the river character into the formula (7), and calculating the three-point water 'S' training scores. If the score is low, the user is not skilled in the writing of the three-point water 'san', and the user needs to continue to exercise. Words containing a three-point water "san" such as "river", "lake", "sea" and the like are searched from the database and displayed so that the user enhances the practice of the component/radical.
Substituting the training scores from the 4 th stroke order to the 8 th stroke order of the 'river' word into the formula (7), and calculating the score capable of being trained beside the word. If the score is low, the user is not skilled in writing the character side, and the exercise needs to be continued. Then the words containing the character string such as "yawning", "what" etc. are looked up from the database and presented so that the user enhances the practice of the character string/radical.
Substituting the training scores from the 1 st stroke order to the 8 th stroke order of the 'river' character into the formula (6), and obtaining the training scores of the whole character of the 'river' character.
FIG. 4 is a flowchart illustrating a method of presentation and training of text writing, according to an exemplary embodiment, including:
Step S401: the screen is separated into a display area and a training area.
Executing in a display area: step S402 to step S405.
Step S402: and setting a display area outline display control layer and a display area guide line display layer.
The display area guide line display layer is positioned below the display area outline display control layer.
Step S403: and displaying the outline of the target text on the outline display control layer of the display area.
The portion occupied by the target text is set to be transparent, optionally the remaining portion is opaque.
Step S404: and obtaining the standard stroke order track of the target text from the database.
The standard stroke order trajectory is pre-stored in a database. The database stores standard strokes of a large number of words.
The standard pen order trajectory is optionally displayed in the form of a guide line on the display area guide line display layer.
Step S405: and dynamically displaying the color blocks on the display layer of the display area guide line according to the standard stroke order track, so that the standard writing process of the target characters is dynamically displayed on the screen.
Thus, the user can learn the text by watching the standard writing process of the text presented in the presentation area of the screen.
The display area guide line display layer is positioned below the display area outline display control layer. Whether the color blocks displayed on the display area guide display layer are visible to the user depends on whether the display area outline display control layer is transparent. If the whole display control layer of the outline display control area is opaque, the color blocks on the layer below the outline display control layer cannot be seen by a user, so that the effect of dynamically displaying the color blocks along with time, thereby dynamically displaying the standard writing process of the target characters on the screen, cannot be achieved. The part occupied by the target characters on the outline display control layer of the display area is transparent, so that the color blocks on the layer below the part occupied by the target characters can be seen by a user, and the effect of dynamically displaying the color blocks along with time, so that the standard writing process of dynamically displaying the target characters on the screen is achieved.
The shape of the color block can be rectangular (including square), circular, elliptical, polygonal, etc., and the embodiment of the application does not excessively limit the shape of the color block.
In the training area: step S406 to step S408.
Step S406: optionally displaying the outline of the target text.
The outline of the target text may or may not be displayed. The advantages of displaying the outline of the target text are: the user can write according to the outline (just like drawing) and even if the user is unfamiliar with the text, the user can write. The outline of the target character may not be displayed, and in this case, the user may write in the training area while looking at the outline of the target character displayed in the display area.
Step S407: and acquiring a user writing track of the user writing target characters through acquiring screen input of the user.
The user writes in the training area and can press the screen to write by a finger or a stylus (or other touching object). The software detects a pressing point of a screen pressed by a user, and obtains a user writing track of a target text written by the user according to the change of the pressing point along with the time position.
Step S408: and dynamically displaying the color blocks along with time according to the writing track of the user, so that the user writing process of the target characters is dynamically displayed on the screen.
The writing process of the user is recorded and played back, so that the user can review the writing process of the user and compare with the standard writing process, and the user can know the defects of the user and the needs of improvement more easily.
The ideal state of writing words by a user is that the 'user writing track' is identical to the 'standard stroke order track'. But in practice this is very difficult. Therefore, the writing track of a character written by a user is deviated from the standard stroke order track of the character, and the larger the deviation is, the larger the improvement space for explaining the writing level of the user is; the smaller the deviation, the higher the user's writing level. In the embodiment of the application, the deviation of the user writing track and the standard stroke order track is obtained by comparing the user writing track with the standard stroke order track, and the score for the stroke order training is determined according to the deviation.
Step S409: and selecting n points from the standard stroke order track, and determining the position coordinates of the n points.
The value of n may be different for different orders of strokes. For a simpler stroke order, the value of n can be smaller; for more complex orders of strokes, the value of n may be relatively large. Among a plurality of strokes constituting the same character, the value of n of the complex stroke is larger than that of n of the simple stroke. The same stroke order, and the values of n in different words can be different.
Step S410: and selecting the corresponding n points from the writing track of the user, and determining the position coordinates of the n points.
Step S411: and calculating a transverse deviation value and a longitudinal deviation value between the user writing track and the standard stroke track according to the position coordinates of n points selected from the standard stroke track and the position coordinates of the corresponding n points selected from the user writing track.
Respectively calculating a transverse deviation value and a longitudinal deviation value between a writing track of a user and a standard stroke order track according to a formula (1) and a formula (2);
Sx={[(x1-X1)2+(x2-X2)2+……+(xn-Xn)2]/n}1/2 Formula (1),
Sy={[(y1-Y1)2+(y2-Y2)2+……+(yn-Yn)2]/n}1/2 Formula (2),
S x represents a lateral deviation value between the user writing track and the standard stroke track, S y represents a longitudinal deviation value between the user writing track and the standard stroke track, n is a natural number, X 1 is an abscissa of a 1 st point selected from the standard stroke track, Y 1 is an ordinate of a 1 st point selected from the standard stroke track, X 1 is an abscissa of a 1 st point selected from the user writing track, and Y 1 is an ordinate of a 1 st point selected from the user writing track; x 2 is the abscissa of the 2 nd point selected from the standard pen-order trajectory, Y 2 is the ordinate of the 2 nd point selected from the standard pen-order trajectory, X 2 is the abscissa of the 2 nd point selected from the user writing trajectory, and Y 2 is the ordinate of the 2 nd point selected from the user writing trajectory; x n is the abscissa of the nth point selected from the standard pen-order trajectory, Y n is the ordinate of the nth point selected from the standard pen-order trajectory, X n is the abscissa of the nth point selected from the user writing trajectory, and Y n is the ordinate of the nth point selected from the user writing trajectory.
Step S412: and determining the score of the training of the stroke order according to the transverse deviation value and the longitudinal deviation value between the writing track of the user and the standard stroke order track.
The trained score L is inversely related to the lateral deviation value S x and the longitudinal deviation value S y. Two formulas for determining the training score L of the stroke order from the lateral deviation value S x, the longitudinal deviation value S y are given below.
As an alternative implementation, the formula of the score L of the training of the stroke order can be a piecewise function, and in some independent variable intervals, the stroke order written by the user is too far from the standard stroke order, the user writing is very irregular, and the user can be directly given a lower score. In other independent variable intervals, although the writing order of the user deviates from the standard writing order, the deviation is not too large, and the writing order of the user can be scored. Three calculation formulas are exemplarily listed in formulas (3) to (5).
When S x 2+Sy 2 < d is satisfied, l= [1- (S x 2+Sy 2)/d ] ×100; in the rest of the cases, l=c. Formula (3)
When S x+Sy < d is satisfied, l= [1- (S x+Sy)/d ] ×100; in the rest of the cases, l=c. Formula (4)
When S x < d/2 and S y < d/2 are satisfied, l= [1- (S x+Sy)/d ] ×100; in the rest of the cases, l=c. Formula (5)
In the formulas (3) to (5), c and d are constants. c may take a value of 0.d can be selected according to actual needs.
As an alternative implementation manner, after scoring the stroke order written by the user, judging whether the score is smaller than a preset score; if the score is smaller than the preset score, the user is not skilled in writing the stroke order, and the exercise needs to be continued. Then the target text containing the stroke order is looked up from the database and the target text is presented.
For example, after the user scores the "skim" stroke order of the writing, if the score is less than the preset score, it is indicated that the user is unskilled in not standardizing the "skim" stroke order of the writing, and the exercise needs to be continued. Then the text containing the "skim" stroke order is looked up from the database and the looked up text is presented.
Step S413: and determining the score of the training of the target characters according to the score of the training of each stroke order of the target characters and the weight value of each stroke order.
As an alternative embodiment, the training score of each stroke order of the text is calculated according to any one of formulas (3) to (5), and then the training score P of the entire text is calculated according to formula (6) below.
P=l (1) ×w (1) +l (2) ×w (2) + … … +l (t) ×w (t) formula (6),
T is a natural number, t is the number of strokes contained in the text, L (1) represents the score of the 1 st stroke training, and w (1) represents the weight of the 1 st stroke; l (2) represents the score of the 2 nd stroke training, w (2) represents the weight of the 2 nd stroke; l (t) represents the score of the t-th stroke training, and w (t) represents the weight of the t-th stroke.
As an alternative embodiment, the method further comprises the step of determining the text to be displayed before displaying the text. The specific steps of determining the text to be displayed include steps S501 to S505.
Step S501: and acquiring a stroke order set to be reviewed corresponding to the user, wherein the stroke order set to be reviewed comprises the stroke order and the corresponding timestamp thereof.
Wherein the set of strokes to be reviewed may be generated from strokes that were not written to be standardized by the user in the past when the user was practicing (e.g., the score of the training was below a preset threshold). The to-be-reviewed stroke order set comprises a plurality of stroke orders and a time stamp of the last exercise time corresponding to each stroke order.
Step S502: and determining a recommendation index corresponding to each stroke order in the stroke order set to be reviewed based on the memory curve, the current time, the time stamp corresponding to the stroke order and the score of the last training of the stroke order.
The memory curve is also called a forgetting curve, and the forgetting curve describes the rule of forgetting new things by the human brain. People can grasp the forgetting rule from the forgetting curve and use the forgetting rule, so that the self-memory capacity is improved. The function of the more common memory curve is as follows:
Assuming that x hours have passed after the initial memory, then the memory rate y approximately satisfies y=1-0.56 x 0.06.
The recommended index corresponding to the stroke order is in negative correlation with the score of the last training of the stroke order. The higher the score of the last training of the stroke order is, the better the grasping degree of the user on the stroke order is, and the lower the recommendation index corresponding to the stroke order is; the lower the score of the last training of the stroke order is, the lower the grasping degree of the user on the stroke order is, and the higher the recommendation index corresponding to the stroke order is.
Step S503: a mood category of the user is determined. Determining the emotional category of the user may be based on, for example, real-time images of the user; the emotional category of the user may also be determined, for example, based on real-time speech of the user.
In one embodiment, the emotion classification may be determined by a plurality of intervals in the emotion curve. Further, in the course of a day, the emotion curve reflecting the emotion wave fluctuation of the user is divided into a plurality of stages such as severe fluctuation, smooth adjustment, recovery rising, slow falling, fluctuation adjustment, small rising, fluctuation falling and the like. Of course, the person varies from work environment to work environment. Since the emotion is fluctuated and the fluctuation of the emotion is the result of the coordination of various external factors and internal factors, the emotion curve of the user is known, and the emotion of the user is assisted to be adjusted to a state adapting to learning knowledge, so that the learning effect can be improved, the learning efficiency can be improved, and the efficiency of half effort can be achieved.
The emotion classification of the user can be determined in an auxiliary manner in a plurality of ways, in one embodiment, for example, real-time voice of the user in a learning state can be obtained, the real-time voice can be voice of the user reading the text, voice data of the user belongs to a pre-trained voice emotion recognition model, and the current emotion classification of the user is obtained through model calculation.
Furthermore, voice data of a plurality of users with different ages, nationalities and sexes in a learning state can be obtained, different emotion type labels are set for the voice data, then a gradient lifting decision tree model is trained according to the data to generate a voice emotion recognition model, and the voice emotion recognition model can output the current emotion type of the user.
In one embodiment, for example, a real-time image of the user in the learning state may be obtained, where the real-time image may be a facial image of the user in the learning state, and the facial image of the user belongs to a pre-trained facial emotion recognition model, and the current emotion classification of the user is obtained through model calculation.
Furthermore, facial images of users with different ages, nationalities and sexes in a learning state can be obtained, different emotion type labels are set for the facial images, then a gradient lifting decision tree model is trained according to the facial images to generate a facial emotion recognition model, and the facial emotion recognition model can analyze the facial images of the current user to output the current emotion type of the user.
Specifically, when training the facial emotion recognition model and the voice emotion recognition model, an adjustment model can be respectively constructed for each sample set, information of each sample in the sample set is input into the adjustment model to obtain a prediction label, the prediction label is compared with a corresponding real label, whether the prediction label is consistent with the real label is judged, the number of the prediction labels consistent with the real label is counted, the proportion of the number of the prediction labels consistent with the real label in the number of all the prediction labels is calculated, if the proportion is larger than or equal to a preset proportion, the adjustment model is converged, the trained facial emotion recognition model and voice emotion recognition model are obtained, if the proportion is smaller than the preset proportion, parameters in the adjustment model are adjusted, and the prediction labels of each sample are predicted again through the adjusted adjustment model until the proportion is larger than or equal to the preset proportion. The method for adjusting the parameters in the adjustment model can be performed by adopting a random gradient descent algorithm, a gradient descent algorithm or a normal equation.
If the number of times of adjusting the parameters of the adjustment model exceeds the preset number of times, the model used for constructing the adjustment model can be replaced, so that the model training efficiency is improved.
In one embodiment, the current intelligent terminal of the user can be connected with other external devices, for example, the intelligent watch or the intelligent sphygmomanometer can be connected through Bluetooth, and the emotion type of the user can be determined according to the current heart rate data, blood pressure data, body temperature data and the like of the user acquired from the other external devices.
Step S504: and adjusting a recommendation index corresponding to the stroke order based on the emotion type and the writing difficulty of the stroke order, and determining the stroke order/characters to be displayed according to the adjusted recommendation index.
In some embodiments, the emotional categories of the users are distinguished according to how the emotion affects learning concentration. The emotion categories can be classified as: active state, normal state, passive state, fatigue state, tired state, and the like. The higher the emotion is, the higher the concentration degree of learning is, and the more suitable for the difficult stroke order of learning is; the lower the emotion, the more suitable it is to learn a simple stroke order. The user exercises the strokes suitable for different emotion states under different emotion states, thereby being beneficial to stabilizing emotion, improving concentration, keeping the interest in exercise words and improving learning efficiency.
In a specific embodiment, if the emotion type of the user is positive, the recommendation index of the strokes with higher writing difficulty is increased so as to enhance the recommendation of the strokes with higher writing difficulty; if the emotion type of the user is in a negative state, the recommendation index of the strokes with lower writing difficulty is increased so as to enhance the recommendation of the strokes with lower writing difficulty.
In a specific embodiment, the current state of the user is a fatigue state, and the fatigue is caused by long-time learning, so that the learning effect is not good, and at the moment, the generation of reminding information can be considered to prompt the user to rest, or other messages are inserted to interrupt the current learning state of the user, so that the user can recover from the fatigue state.
In a specific embodiment, the text to be displayed is determined according to the adjusted recommendation index, and the specific steps are as follows: determining a plurality of strokes with higher recommendation indexes from the strokes to be reviewed according to the adjusted recommendation indexes; and determining the characters containing the strokes with higher recommendation indexes, and taking the characters containing the strokes with higher recommendation indexes as characters to be displayed.
The method of the embodiment of the application can not only determine the characters to be displayed based on the stroke order, and display the characters for the user to practice, but also directly display the stroke order for the user to practice the stroke order, thereby achieving the effect of being exquisite.
The embodiment of the application can recommend the words/strokes to be exercised for the user on the basis of considering the learning progress, the emotion state and the memory characteristics of the user, thereby improving the learning experience of the user, assisting in improving the concentration of the user and improving the learning efficiency of the user.
The embodiment of the application also provides a display device for the text writing, which can execute the display method for the text writing. As shown in fig. 5, the apparatus includes: a setting unit 51, an acquisition unit 52, a display unit 53.
The setting unit 51 is configured to set a display area outline display control layer and a display area guide line display layer, where the display area guide line display layer is located below the display area outline display control layer, and an outline of the target text is displayed on the display area outline display control layer, and a portion occupied by the target text is set to be transparent, and optionally the rest is opaque.
An obtaining unit 52, configured to obtain, from the database, a standard pen-order trajectory of the target text, and optionally display the standard pen-order trajectory in the form of a guide line on the display area guide line display layer.
And a display unit 53 for dynamically displaying color blocks on the display area guide line display layer according to the standard stroke order track, so that the standard writing process of the target text is dynamically displayed on the screen.
The embodiment of the application also provides a device for displaying and training the text writing, which can execute the method for displaying and training the text writing. As shown in fig. 6, the apparatus includes: a dividing unit 61, a first executing unit 62, a second executing unit 63, a comparing unit 64.
A dividing unit 61 for: the screen is separated into a display area and a training area.
A first execution unit 62 for: executing in a display area: setting a display area outline display control layer and a display area guide line display layer, wherein the display area guide line display layer is positioned below the display area outline display control layer, and displaying the outline of the target characters on the display area outline display control layer, wherein the part occupied by the target characters is transparent, and optionally the rest part is opaque; obtaining standard stroke order tracks of target characters from a database, and optionally displaying the standard stroke order tracks in the form of guide lines on a display area guide line display layer; and dynamically displaying the color blocks on the display layer of the display area guide line according to the standard stroke order track, so that the standard writing process of the target characters is dynamically displayed on the screen.
A second execution unit 63 for: in the training area: optionally displaying the outline of the target text; acquiring a user writing track of a user writing target text through acquiring screen input of the user; and dynamically displaying the color blocks along with time according to the writing track of the user, so that the user writing process of the target characters is dynamically displayed on the screen.
A comparison unit 64 for: comparing the standard stroke order track with the user writing track to obtain a training score, and optionally displaying the training score.
As an alternative embodiment, the scoring of the training comprises: scoring a training of a stroke order, and/or scoring a training of the target text as a whole.
As an alternative embodiment, the comparison unit 64 includes: the first selecting subunit, the second selecting subunit and the comparing subunit.
And the first selection subunit is used for selecting n points from the standard stroke order track, determining the positions of the n points and determining n as a natural number.
And the second selection subunit is used for selecting the corresponding n points from the writing track of the user and determining the positions of the n points.
And the comparison subunit is used for comparing the positions of the n points selected from the standard stroke order track with the positions of the corresponding n points selected from the user writing track to obtain the score of the training of the stroke order.
As an alternative embodiment, the position of the point is represented by coordinates, and the contrast subunit is configured to:
Respectively calculating a transverse deviation value and a longitudinal deviation value between a writing track of a user and a standard stroke order track according to a formula (1) and a formula (2);
Sx={[(x1-X1)2+(x2-X2)2+……+(xn-Xn)2]/n}1/2 Formula (1),
Sy={[(y1-Y1)2+(y2-Y2)2+……+(yn-Yn)2]/n}1/2 Formula (2),
S x represents a lateral deviation value between the user writing track and the standard stroke track, S y represents a longitudinal deviation value between the user writing track and the standard stroke track, n is a natural number, X 1 is an abscissa of a 1 st point selected from the standard stroke track, Y 1 is an ordinate of a 1 st point selected from the standard stroke track, X 1 is an abscissa of a 1 st point selected from the user writing track, and Y 1 is an ordinate of a 1 st point selected from the user writing track; x 2 is the abscissa of the 2 nd point selected from the standard pen-order trajectory, Y 2 is the ordinate of the 2 nd point selected from the standard pen-order trajectory, X 2 is the abscissa of the 2 nd point selected from the user writing trajectory, and Y 2 is the ordinate of the 2 nd point selected from the user writing trajectory; x n is the abscissa of the nth point selected from the standard pen-order trajectory, Y n is the ordinate of the nth point selected from the standard pen-order trajectory, X n is the abscissa of the nth point selected from the user writing trajectory, and Y n is the ordinate of the nth point selected from the user writing trajectory.
And determining the score of the training of the stroke order according to the transverse deviation value and the longitudinal deviation value, wherein the score of the training of the stroke order is in a negative correlation relationship with the transverse deviation value and the longitudinal deviation value.
As an alternative embodiment, the apparatus further comprises: a determining unit and a calculating unit.
And the determining unit is used for determining the weight value of each stroke order of the target text after determining the score of the training of each stroke order according to the transverse deviation value and the longitudinal deviation value.
And the calculation unit is used for calculating the training score of the whole target character according to the weight value of each stroke order of the target character and the training score of each stroke order.
As an alternative embodiment, the apparatus further comprises: the device comprises a to-be-reviewed stroke order set acquisition unit, a recommendation index determination unit, an emotion type determination unit and a recommendation index adjustment unit.
The to-be-reviewed stroke order set acquisition unit is used for acquiring the to-be-reviewed stroke order set corresponding to the user.
The recommendation index determining unit is used for determining a recommendation index corresponding to each stroke order in the stroke order set to be reviewed based on the memory curve, the current time, the time stamp corresponding to the stroke order and the score of the last training of the stroke order.
And the emotion type determining unit is used for determining the emotion type of the user.
And the recommendation index adjustment unit is used for adjusting the recommendation index corresponding to the stroke order based on the emotion type and the writing difficulty of the stroke order, and determining the stroke order/text to be displayed according to the adjusted recommendation index.
As an alternative embodiment, the first execution unit 62 includes: the display device comprises a third selection subunit, a first determination subunit, a second determination subunit and a display subunit.
And the third selecting subunit is used for selecting a point on the standard stroke order track at intervals of a preset step length.
And the first determination subunit is used for determining the tangential direction of the standard stroke order track at the kth point, k sequentially takes natural numbers between 1 and m, and m is the number of points selected on the standard stroke order track.
And the second determination subunit is used for determining the target direction in the tangential direction of the kth point according to the standard stroke order track.
And the display subunit is used for displaying the image layer on the display area guide line and dynamically displaying the color blocks along the target direction along with time.
As an alternative implementation mode, the outline of the characters displayed on the outline display control layer of the display area has a certain width D, the transverse dimension of the color block is larger than or equal to the width D, and the transverse dimension of the color block is the length of projection of the color block in the direction perpendicular to the target direction.
As an alternative embodiment, the apparatus further comprises: the device comprises a judging unit and a searching unit.
And the judging unit is used for judging whether the score of the training of the stroke order is smaller than a preset score.
And the searching unit is used for searching the target characters containing the stroke orders from the database and displaying the target characters if the score of the training of the stroke orders is smaller than the preset score.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
An electronic device 700 according to this embodiment of the application is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 7, the electronic device 700 is embodied in the form of a general purpose computing device. Components of electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one memory unit 720, a bus 730 connecting the different system components (including the memory unit 720 and the processing unit 710), a display unit 740, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 710 such that the processing unit 710 performs steps according to various exemplary embodiments of the present application described in the present specification. For example, the processing unit 710 may perform the steps as shown in fig. 2,3, 4, 5.
The memory unit 720 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 7201 and/or cache memory 7202, and may further include Read Only Memory (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 730 may be a bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 700' (e.g., keyboard, pointing device, bluetooth device, etc.), devices that enable a user to interact with the electronic device 700, and/or any devices (e.g., routers, modems, etc.) with which the electronic device 700 can communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 750. Also, electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 760. Network adapter 760 may communicate with other modules of electronic device 700 via bus 730. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, as shown in fig. 8, the technical solution according to the embodiment of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to the embodiment of the present application.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The computer-readable medium carries one or more programs, which when executed by one of the devices, cause the computer-readable medium to perform the functions of: setting a display area outline display control layer and a display area guide line display layer, wherein the display area guide line display layer is positioned below the display area outline display control layer, and displaying the outline of the target characters on the display area outline display control layer, wherein the part occupied by the target characters is transparent, and optionally the rest part is opaque; obtaining standard stroke order tracks of target characters from a database, and optionally displaying the standard stroke order tracks in the form of guide lines on a display area guide line display layer; and dynamically displaying the color blocks on the display layer of the display area guide line according to the standard stroke order track, so that the standard writing process of the target characters is dynamically displayed on the screen.
Those skilled in the art will appreciate that the modules may be distributed throughout several devices as described in the embodiments, and that corresponding variations may be implemented in one or more devices that are unique to the embodiments. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
The exemplary embodiments of the present application have been particularly shown and described above. It is to be understood that this application is not limited to the precise arrangements, instrumentalities and instrumentalities described herein; on the contrary, the application is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. A method for displaying and training text writing, comprising:
step one: dividing the screen into a display area and a training area;
Step two: executing in the display area: setting a display area outline display control layer and a display area guide line display layer, wherein the display area guide line display layer is positioned below the display area outline display control layer, the outline of the target characters is displayed on the display area outline display control layer, the part occupied by the target characters is transparent, and the rest part is opaque; obtaining a standard stroke order track of the target text from a database, and displaying the standard stroke order track in a guide line form on a guide line display layer of the display area; dynamically displaying color blocks on the display layer of the display area guide line according to the standard stroke order track, so that a standard writing process of the target characters is dynamically displayed on a screen;
step three: performing in the training area: displaying the outline of the target text; acquiring a user writing track of the target text written by the user through acquiring screen input of the user; dynamically displaying color blocks along with time according to the user writing track, so that the user writing process of the target characters is dynamically displayed on a screen;
step four: comparing the standard stroke order track in the second step with the user writing track in the third step to obtain a training score, displaying the training score,
The method further comprises the steps of:
acquiring a stroke order set to be reviewed corresponding to a user;
Determining a recommendation index corresponding to each stroke order in the stroke order set to be reviewed based on the memory curve, the current time, the time stamp corresponding to the stroke order and the score of the last training of the stroke order;
Determining emotion categories of the users, and distinguishing the emotion categories of the users according to the influence condition of the emotion on learning concentration;
adjusting a recommendation index corresponding to the stroke order based on the emotion type and the writing difficulty of the stroke order, determining the stroke order/characters to be displayed according to the adjusted recommendation index,
The dynamic display of color blocks over time on the display area guide line display layer according to the standard pen order trajectory comprises:
Selecting a point on the standard stroke order track at intervals of a preset step length;
Determining the tangential direction of the standard stroke order track at a kth point, wherein k sequentially takes natural numbers from 1 to m, and m is the number of points selected on the standard stroke order track;
Determining a target direction in the tangential direction of the kth point according to the standard stroke order track;
the display layer is dynamically displayed along the target direction along with time by the guide line in the display area,
And step two, the outline of the characters displayed on the outline display control layer of the display area has a certain width D, the transverse dimension of the color block is larger than the width D, the transverse dimension of the color block is the projection length of the color block in the direction perpendicular to the target direction, and the shape of the color block is selected from rectangle, circle, ellipse and polygon.
2. The method of claim 1, wherein the scoring of the training comprises: scoring a training of a stroke order, and/or scoring a training of the target text as a whole, a training of components or radicals.
3. The method of claim 2, wherein the training scoring comprises scoring a training of a stroke order, step four comprising:
Selecting n points from the standard stroke order track, and determining the positions of the n points, wherein n is a natural number, and the n values of the n points are different for different stroke orders, and are larger than those of the n points of a simple stroke order in a plurality of stroke orders forming the same character;
selecting n corresponding points from the user writing track, and determining the positions of the n points;
And comparing the positions of the n points selected from the standard stroke order track with the positions of the corresponding n points selected from the user writing track to obtain the score of the training of the stroke order.
4. A method as claimed in claim 3, wherein representing the positions of the points in coordinates, comparing the positions of n points selected from the standard pen-order trajectory with the positions of the corresponding n points selected from the user-written trajectory, obtaining a score for training of pen-order, comprising:
Respectively calculating a transverse deviation value and a longitudinal deviation value between the writing track of the user and the standard stroke order track according to a formula (1) and a formula (2);
Sx={[(x1-X1)2+(x2-X2)2+……+(xn-Xn)2]/n}1/2 Formula (1),
Sy={[(y1-Y1)2+(y2-Y2)2+……+(yn-Yn)2]/n}1/2 Formula (2),
S x represents a lateral deviation value between the user writing track and the standard stroke track, S y represents a longitudinal deviation value between the user writing track and the standard stroke track, n is a natural number, X 1 is an abscissa of a 1 st point selected from the standard stroke track, Y 1 is an ordinate of a 1 st point selected from the standard stroke track, X 1 is an abscissa of a 1 st point selected from the user writing track, and Y 1 is an ordinate of a 1 st point selected from the user writing track; x 2 is the abscissa of the 2 nd point selected from the standard pen-order trajectory, Y 2 is the ordinate of the 2 nd point selected from the standard pen-order trajectory, X 2 is the abscissa of the 2 nd point selected from the user writing trajectory, and Y 2 is the ordinate of the 2 nd point selected from the user writing trajectory; x n is the abscissa of the nth point selected from the standard pen trace, Y n is the ordinate of the nth point selected from the standard pen trace, X n is the abscissa of the nth point selected from the user writing trace, Y n is the ordinate of the nth point selected from the user writing trace,
And determining the score of the training of the stroke order according to the transverse deviation value and the longitudinal deviation value, wherein the score of the training of the stroke order is in a negative correlation relationship with the transverse deviation value and the longitudinal deviation value.
5. The method of claim 4, wherein the method further comprises:
After determining a score for training each stroke order according to the lateral deviation value and the longitudinal deviation value, determining a weight value of each stroke order of the target text, wherein the weight of each stroke order is determined by at least one of the following: the writing difficulty of the stroke order and the use frequency of the stroke order are obtained by counting scores of a large number of users writing the stroke order, and the use frequency of the stroke order refers to the frequency of the stroke order in the characters;
And calculating the training score of the whole target character according to the weight value of each stroke order of the target character and the training score of each stroke order.
6. The method of any one of claims 1 to 5, further comprising:
The emotion categories include: the method comprises the following steps of (1) adjusting a recommendation index of a stroke order with higher writing difficulty to be high if the emotion type of a user is positive, so as to enhance the recommendation of the stroke order with higher writing difficulty; if the emotion type of the user is in a negative state, the recommendation index of the strokes with lower writing difficulty is increased so as to enhance the recommendation of the strokes with lower writing difficulty.
7. The method of claim 2, wherein after step four, the method further comprises:
Step five: judging whether the score of the training of the stroke order is smaller than a preset score; if the score of the training of the stroke order is smaller than the preset score, searching the target text containing the stroke order from a database, and displaying the target text.
8. A display and training device for writing characters, comprising:
A dividing unit for: dividing the screen into a display area and a training area;
A first execution unit for: executing in the display area: setting a display area outline display control layer and a display area guide line display layer, wherein the display area guide line display layer is positioned below the display area outline display control layer, the outline of the target characters is displayed on the display area outline display control layer, the part occupied by the target characters is transparent, and the rest part is opaque; obtaining a standard stroke order track of the target text from a database, and displaying the standard stroke order track in a guide line form on a guide line display layer of the display area; dynamically displaying color blocks on the display layer of the display area guide line according to the standard stroke order track, so that a standard writing process of the target characters is dynamically displayed on a screen;
A second execution unit for: performing in the training area: displaying the outline of the target text; acquiring a user writing track of the target text written by the user through acquiring screen input of the user; dynamically displaying color blocks along with time according to the user writing track, so that the user writing process of the target characters is dynamically displayed on a screen;
A contrast unit for: comparing the standard stroke order track with the user writing track to obtain a training score, displaying the training score,
The apparatus further comprises: a to-be-reviewed stroke order set acquisition unit, a recommendation index determination unit, an emotion category determination unit and a recommendation index adjustment unit,
The to-be-reviewed stroke order set acquisition unit is used for acquiring a to-be-reviewed stroke order set corresponding to a user;
the recommendation index determining unit is used for determining a recommendation index corresponding to each stroke order in the stroke order set to be reviewed based on the memory curve, the current time, the time stamp corresponding to the stroke order and the score of the last training of the stroke order;
the emotion type determining unit is used for determining emotion types of the users, and the emotion types of the users are distinguished according to the influence condition of the emotion on learning concentration;
A recommendation index adjustment unit for adjusting a recommendation index corresponding to the stroke order based on the emotion type and the writing difficulty of the stroke order, determining the stroke order/text to be displayed according to the adjusted recommendation index,
The dynamic display of color blocks over time on the display area guide line display layer according to the standard pen order trajectory comprises:
Selecting a point on the standard stroke order track at intervals of a preset step length;
Determining the tangential direction of the standard stroke order track at a kth point, wherein k sequentially takes natural numbers from 1 to m, and m is the number of points selected on the standard stroke order track;
Determining a target direction in the tangential direction of the kth point according to the standard stroke order track;
the display layer is dynamically displayed along the target direction along with time by the guide line in the display area,
The outline of the characters displayed on the outline display control layer of the display area has a certain width D, the transverse dimension of the color block is larger than the width D, the transverse dimension of the color block is the projected length of the color block in the direction perpendicular to the target direction, and the shape of the color block is selected from rectangle, circle, ellipse and polygon.
9. An electronic device, comprising:
one or more processors;
A storage means for storing one or more programs;
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
10. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-7.
CN202111424001.5A 2021-10-13 2021-10-13 Method and device for displaying and training text writing Active CN114092943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111424001.5A CN114092943B (en) 2021-10-13 2021-10-13 Method and device for displaying and training text writing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111424001.5A CN114092943B (en) 2021-10-13 2021-10-13 Method and device for displaying and training text writing
CN202111194412.XA CN113627408B (en) 2021-10-13 2021-10-13 Display method of character writing, display and training method and device of character writing

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202111194412.XA Division CN113627408B (en) 2021-10-13 2021-10-13 Display method of character writing, display and training method and device of character writing

Publications (2)

Publication Number Publication Date
CN114092943A CN114092943A (en) 2022-02-25
CN114092943B true CN114092943B (en) 2024-07-02

Family

ID=78391276

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202111424001.5A Active CN114092943B (en) 2021-10-13 2021-10-13 Method and device for displaying and training text writing
CN202111194412.XA Active CN113627408B (en) 2021-10-13 2021-10-13 Display method of character writing, display and training method and device of character writing

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202111194412.XA Active CN113627408B (en) 2021-10-13 2021-10-13 Display method of character writing, display and training method and device of character writing

Country Status (1)

Country Link
CN (2) CN114092943B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123044A (en) * 2007-09-13 2008-02-13 无敌科技(西安)有限公司 Chinese writing and learning method
CN101369382A (en) * 2007-08-17 2009-02-18 英业达股份有限公司 Chinese character writing validation system and method

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AUPQ051699A0 (en) * 1999-05-21 1999-06-17 Revelation Computing Pty Limited Apparatus for teaching handwriting
CN1232900C (en) * 2002-12-30 2005-12-21 文鼎科技开发股份有限公司 System and method for producing stroke and character
CN102339535A (en) * 2010-07-27 2012-02-01 英业达股份有限公司 System and method for learning text
CN104573747B (en) * 2013-10-17 2019-03-08 北大方正集团有限公司 Word evaluation method and device
CN103632169A (en) * 2013-12-10 2014-03-12 步步高教育电子有限公司 Method and equipment for automatic character writing error correction
CN103810507A (en) * 2014-02-13 2014-05-21 步步高教育电子有限公司 Automatic error correction equipment and method for word writing
CN104346125A (en) * 2014-09-30 2015-02-11 福建扬航电子技术有限公司 On-screen area display method and device
CN104361776A (en) * 2014-11-14 2015-02-18 河南大学 Visualization display method for historical development of Chinese character patterns
US10579868B2 (en) * 2017-03-30 2020-03-03 Myscript System and method for recognition of objects from ink elements
CN107622710A (en) * 2017-08-30 2018-01-23 中南出版传媒集团股份有限公司湖南教育出版社分公司 Digitize writing practising method and system
CN107871410A (en) * 2017-11-24 2018-04-03 南宁市远才教育咨询有限公司 A kind of Fast Learning Chinese character servicing unit
CN113093938B (en) * 2018-01-31 2022-07-12 海信视像科技股份有限公司 Method and device for realizing writing and erasing simultaneously and terminal equipment
CN110766997A (en) * 2018-07-26 2020-02-07 腾讯数码(天津)有限公司 Copy display method, device and storage medium
CN208903473U (en) * 2018-08-14 2019-05-24 刘丽娜 A kind of Korean word writing practicing board
CN109272805A (en) * 2018-11-13 2019-01-25 段星宇 A kind of calligraphy training method, apparatus, electronic equipment and storage medium
CN110532864B (en) * 2019-07-19 2023-01-31 中科君胜(深圳)智能数据科技发展有限公司 Soft pen calligraphy copy similarity evaluation method
TWI723481B (en) * 2019-07-31 2021-04-01 黃雅靖 Calligraphy copybook copying authenticity detection device
CN111626297A (en) * 2020-04-13 2020-09-04 小船出海教育科技(北京)有限公司 Character writing quality evaluation method and device, electronic equipment and recording medium
CN111312014A (en) * 2020-04-14 2020-06-19 青岛真水堂教育咨询有限公司 A high accuracy intelligence interconnection pen for calligraphy exercise
CN113176834B (en) * 2021-03-15 2023-03-24 华能国际电力股份有限公司上海石洞口第一电厂 Screen writing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369382A (en) * 2007-08-17 2009-02-18 英业达股份有限公司 Chinese character writing validation system and method
CN101123044A (en) * 2007-09-13 2008-02-13 无敌科技(西安)有限公司 Chinese writing and learning method

Also Published As

Publication number Publication date
CN113627408B (en) 2021-12-14
CN114092943A (en) 2022-02-25
CN113627408A (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN106940788B (en) Intelligent scoring method and device, computer equipment and computer readable medium
Beilock et al. Embodied preference judgments: Can likeability be driven by the motor system?
CN111833853B (en) Voice processing method and device, electronic equipment and computer readable storage medium
US10909880B2 (en) Language learning system adapted to personalize language learning to individual users
CN107076567A (en) Multilingual image question and answer
WO2016137797A1 (en) Empathetic user interface, systems, and methods for interfacing with empathetic computing device
CN107748784B (en) Method for realizing structured data search through natural language
WO2016044879A1 (en) Teaching systems and methods
WO2018106703A1 (en) System and method for automated literacy assessment
CN109902187A (en) Method and device for constructing characteristic knowledge graph and terminal equipment
CN110275987A (en) Intelligent tutoring consultant generation method, system, equipment and storage medium
CN109858009A (en) Device, method and its computer storage medium of control instruction are generated according to text
Logan et al. Different (key) strokes for different folks: How standard and nonstandard typists balance Fitts’ law and Hick’s law.
US10915819B2 (en) Automatic real-time identification and presentation of analogies to clarify a concept
CN113505786A (en) Test question photographing and judging method and device and electronic equipment
US20120323556A1 (en) System and method for using pinyin and a dynamic memory state for modifying a hanyu vocabulary test
CN115936944A (en) Virtual teaching management method and device based on artificial intelligence
CN102592480A (en) Electronic equipment interactive dictation teaching system and method
CN109871430A (en) A kind of method, apparatus, electronic equipment and the storage medium of intelligent recognition text
CN114092943B (en) Method and device for displaying and training text writing
WO2020036011A1 (en) Information processing device, information processing method, and program
CN113990351A (en) Sound correction method, sound correction device and non-transient storage medium
JP7131518B2 (en) Electronic device, pronunciation learning method, server device, pronunciation learning processing system and program
CN112230875B (en) Artificial intelligent follow-up reading method and follow-up reading robot
CN113658609B (en) Method and device for determining keyword matching information, electronic equipment and medium

Legal Events

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