[0016] Example one
[0017] figure 1 It shows a schematic flow chart of a method for generating notes based on handwriting handwriting provided in the first embodiment of the present invention, which is used to extract the core knowledge points marked in the process of reading the e-book by the user. Such as figure 1 As shown, the note generation method based on handwriting includes:
[0018] In step S101, extract each original text abstract from the e-book according to the handwriting of the user in the process of reading the e-book.
[0019] The handwriting includes at least one or more of circle, line, abstract identifier, and handwritten text. For handwriting as circle or line, the original content of the user's circle or line can be directly used as the original text; for handwriting as handwritten text, the content of the handwritten text is recognized and based on the original content of the handwritten text and e-book The relative position determines that the original content associated with the handwritten text is the original abstract; for handwriting as the abstract identifier, if it is detected that the abstract identifier is drawn in the e-book, the text located at the abstract identifier will be used as the original abstract, where The abstract identifier can be a triangle symbol, a star symbol, etc., and based on preset rules, different abstract identifiers can represent the importance of the original text abstract, so that the typesetting information of each original abstract can be determined according to the importance. . In this way, by extracting the original text abstract corresponding to the handwriting, it can be ensured that all the core knowledge points of the e-book that the user thinks are extracted, so that the user will not miss the knowledge points when learning through the extracted original text abstract later.
[0020] Step S102: Determine the hierarchical relationship between the original text abstracts, and determine the typesetting information of each original text abstract.
[0021] Exemplarily, when determining the hierarchical relationship between the original text abstracts, the hierarchical relationship of the chapters of each original text abstract in the e-book may be based on the detailed catalog of the e-book as the hierarchical relationship of each original text abstract. Further, the number of pages and paragraphs of the original abstract can also be used as a supplement, and also as a hierarchical relationship of the original abstract. In addition, since the abstract identifiers are all associated with levels, the hierarchical relationship of the abstract identifiers associated with each abstract original text can be used as the hierarchical relationship of each abstract original text. Therefore, by determining the hierarchical relationship between the original text abstracts, the relevance between the original text abstracts can be ensured, and thus the user can be more organized in learning.
[0022] Before determining the typesetting information of each original text abstract, the association relationship between the candidate identifier and the candidate typesetting information is determined in advance, where the typesetting information includes at least one of the font, font size, bolding and color of the text. Exemplarily, candidate identifiers are divided into multiple levels according to their importance, and each level corresponds to different typesetting information. For example, the typesetting information of the first-level candidate identifier is "No. 3 Song Ti, bold, and red", except for this. For more important candidate identifiers, the corresponding typesetting information can optionally include highlighting in different colors.
[0023] When determining the typesetting information of each original text abstract, the abstract identifier associated with each original text abstract is matched with the association relationship between the candidate identifier and the candidate typesetting information to determine the typesetting information of the original text abstract. That is, the abstract identifier associated with any original text abstract is matched with the candidate identifier, and the typesetting information corresponding to the candidate identifier that matches the abstract identifier is used as the typesetting information of the original text abstract. By displaying the original text abstracts in different layouts, it is convenient for users to clarify the importance of each original text abstract when learning, and then learn more specifically.
[0024] Step S103, according to the hierarchical relationship between the original text abstracts and the typesetting information of each original text abstract, an abstract note including the content of the original text abstract is generated.
[0025] Based on the above steps, a summary note including the content of the original abstract can be generated directly according to the hierarchical relationship between the original abstracts and the typesetting information of each original abstract, and displayed on the abstract note display interface for users to view.
[0026] Further, there may be original text abstracts with parallel hierarchical relationships in the determined original text abstracts, such as the original text abstracts corresponding to the abstract identifiers "①, ②, ③...". Therefore, before generating summary notes, it is necessary to check the parallel hierarchical relationships. The original abstract is processed as follows:
[0027] S1: If at least two original text abstracts are in a parallel hierarchical relationship, determine the parent title of the at least two original text abstracts.
[0028] Exemplarily, if the at least two original text abstracts belong to the same chapter, then the chapter name is used as the parent title; otherwise, text processing technology and content recognition technology can be used to extract the public key from the at least two original text abstracts Words, using a common keyword as the parent title; or, recognizing handwriting text from the handwriting associated with the at least two original text abstracts, and using the recognized handwriting text as the parent title.
[0029] S2, using the at least two original text abstracts as the node content of the parallel connector, and using typesetting information to typeset the node content.
[0030] The typesetting information of the node content can be determined according to the above step S102, which will not be repeated here.
[0031] S3. Use the parent title as the name of the parallel connector.
[0032] After the original text summaries of the parallel hierarchical relationship are processed through steps S1-S3, the hierarchical relationship in the generated summary notes generated according to step S103 is clear, and the readability and organization of the summary notes are increased.
[0033] According to the handwriting-based note generation method of the present invention, on the basis of obtaining the original text abstract by using the handwriting handwriting, an abstract note is generated for the user according to the determined hierarchical relationship and typesetting information of the original text abstract. As a result, it is possible to extract the marked core content from the e-book read by the user and present it to the user in the form of summary notes, so that the user can learn through the summary notes to improve the user's learning efficiency.