Content processing method, device, computer equipment and computer readable storage medium

By displaying text illustrations and background images on the e-book reading page, combined with dynamic sound effects, it solves the problem of a single e-book reading experience and achieves a multi-dimensional improvement in the reading experience.

CN114580349BActive Publication Date: 2024-10-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210192650.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-01
Publication Date
2024-10-15
Estimated Expiration
2042-03-01

AI Technical Summary

Technical Problem

Electronic books only provide simple text reading, resulting in a single reading experience for readers and a lack of multi-dimensional experience.

Method used

By responding to horizontal reading instructions on the text reading page, the target text and text illustrations generated based on the text content are displayed, combined with background images and dynamic sound effects, to provide a multi-dimensional reading experience.

Benefits of technology

It improves readers' reading experience, provides an immersive reading experience through the combination of vision and hearing, and enriches the electronic reading model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114580349B_ABST
    Figure CN114580349B_ABST
Patent Text Reader

Abstract

The present application discloses a content processing method, apparatus, computer equipment and computer-readable storage medium. The method displays a target text on a text reading page; in response to a horizontal screen reading instruction, the target text is displayed in a first display area of ​​the text reading page, and a text illustration is displayed in a second display area of ​​the text reading page. Thus, the content processing method provided by the present application can display not only the text to be read on the text reading page displayed horizontally when a horizontal screen display instruction is detected during text reading, but also the text illustration corresponding to the text content, so that when the reader is reading electronically, he can not only experience the content of the text but also the visual impact brought by the illustration, which can greatly enhance the reader's reading experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a content processing method, apparatus, computer equipment, and computer-readable storage medium. Background Art

[0002] With the development of mobile terminal technology and the reduction of traffic costs, various Internet applications have developed rapidly. Among them, e-books are a new online publishing method created by using Internet technology, which realizes the traditional book publishing and distribution method on electronic terminals. Compared with traditional paper media publications, e-books have the advantages of lower cost, richer content and easier to carry. At present, electronic reading has replaced traditional paper book reading and has become the most mainstream reading method in today's Internet society.

[0003] At present, e-books can only provide pure text reading, resulting in a monotonous reading experience for readers. Summary of the invention

[0004] The embodiments of the present application provide a content processing method, apparatus, computer device and computer-readable storage medium. The method can automatically generate corresponding illustrations based on the text, provide a multi-dimensional reading format, and thus enhance the reader's reading experience.

[0005] The first aspect of the present application provides a content processing method, the method comprising:

[0006] Display the target text on the text reading page;

[0007] In response to a horizontal screen reading instruction, the target text is displayed in a first display area of ​​the text reading page, and a text illustration is displayed in a second display area of ​​the text reading page, wherein the text illustration is an image generated according to the text content of the target text.

[0008] Accordingly, a second aspect of the present application provides a content processing device, the device comprising:

[0009] A first display unit, used for displaying a target text on a text reading page;

[0010] The second display unit is used to display the target text in the first display area of ​​the text reading page and display a text illustration in the second display area of ​​the text reading page in response to a horizontal screen reading instruction, wherein the text illustration is an image generated according to the text content of the target text.

[0011] In some embodiments, the content processing device provided by the present application further includes:

[0012] The third display unit displays a background image on the text reading page, where the background image is an image generated according to the scene information in the target text.

[0013] In some embodiments, the content processing device provided by the present application further includes:

[0014] The fourth display unit is used to display a dynamic image corresponding to the text illustration in response to a trigger operation on the text illustration.

[0015] In some embodiments, the content processing device provided by the present application further includes:

[0016] The playing unit is used to synchronously play the sound effect corresponding to the dynamic image when displaying the dynamic image corresponding to the text illustration.

[0017] In some embodiments, the second display unit includes:

[0018] The first display subunit is used to display a horizontal screen reading switch control;

[0019] The second display subunit is used to display the target text in the first display area of ​​the text reading page and display a text illustration in the second display area of ​​the text reading page in response to a triggering operation on the horizontal screen reading switch control, wherein the text illustration is an image generated according to the text content of the target text.

[0020] In some embodiments, the second display unit includes:

[0021] An analysis subunit, configured to perform text analysis on the target text in response to the horizontal screen reading instruction, and determine a target sentence contained in the target text, wherein the target sentence is a sentence that complies with a preset illustration generation rule;

[0022] A generating subunit, configured to generate a text illustration corresponding to the target text according to the target sentence;

[0023] The third display subunit is used to display the target text in the first display area of ​​the text reading page and to display the text illustration in the second display area of ​​the text reading page.

[0024] In some embodiments, the analysis subunit comprises:

[0025] A recognition module, used for recognizing preset symbols in the target text, wherein the preset symbols indicate onomatopeia or target character dialogue in the target text;

[0026] The first determination module is used to determine the target sentence according to the preset symbol.

[0027] In some embodiments, the generating subunit comprises:

[0028] A first acquisition module, used to acquire an illustration template corresponding to the target sentence;

[0029] An updating module is used to update the illustration template according to the target sentence to obtain a text illustration corresponding to the target text.

[0030] In some embodiments, the third display unit includes:

[0031] An acquisition subunit, used to acquire the subject type and tag information of the target text;

[0032] A second determining subunit, configured to determine a background image set according to the subject matter type and the tag information;

[0033] a third determination subunit, configured to identify scene information of the target text, and determine a target background image in the background image set according to the scene information;

[0034] The fourth display subunit is used to display the background image on the text reading page.

[0035] In some embodiments, the third determining subunit includes:

[0036] A second acquisition module is used to acquire a target paragraph describing scene information in a chapter corresponding to the target text;

[0037] A query module, used to query scene words in the target paragraph to obtain target scene words, where the scene words are words in a preset scene whitelist;

[0038] The second determination module is used to determine a target background image corresponding to the target scene word in the background image set.

[0039] The third aspect of the present application further provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps in the content processing method provided in the first aspect of the present application.

[0040] The fourth aspect of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the content processing method provided in the first aspect of the present application when executing the computer program.

[0041] A fifth aspect of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps in the content processing method provided in the first aspect.

[0042] The content processing method provided in the embodiment of the present application displays the target text on a text reading page; in response to a horizontal screen reading instruction, the target text is displayed in a first display area of ​​the text reading page, and a text illustration is displayed in a second display area of ​​the text reading page, wherein the text illustration is an image generated according to the text content of the target text.

[0043] Therefore, the content processing method provided by the present application can detect a horizontal screen display instruction during the text reading process, and can not only display the read text on the text reading page displayed in horizontal screen, but also recognize the displayed text content and generate corresponding text illustrations for display. In this way, when readers are reading electronically, they can not only experience the content of the text but also experience the visual impact brought by the illustrations, which can greatly enhance the reader's reading experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0045] Figure 1 It is a schematic diagram of a scenario of content processing in this application;

[0046] Figure 2 It is a flowchart of the content processing method provided by this application;

[0047] Figure 3 This is another flowchart of the content processing method provided by this application:

[0048] Figure 4A is a schematic diagram of the illustration template provided in this application;

[0049] Figure 4B is a schematic diagram of the text illustrations provided in this application;

[0050] Figure 4C is another schematic diagram of the text illustration provided by this application;

[0051] Figure 4D is another scenario schematic diagram of the content processing method provided by this application;

[0052] Figure 4E This is another scenario diagram of the content processing method provided by this application;

[0053] Figure 4F This is another scenario diagram of the content processing method provided by this application;

[0054] Figure 5 It is another flowchart of the content processing method provided by this application;

[0055] Figure 6 It is a structural diagram of the content processing device provided by the present application;

[0056] Figure 7 It is a structural schematic diagram of the computer device provided by this application. DETAILED DESCRIPTION

[0057] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0058] The embodiments of the present invention provide a content processing method, device, computer equipment and computer-readable storage medium. Among them, the content processing method can be used in a content processing device. The content processing device can be integrated in a computer device, and the computer device can be a terminal or a server. Among them, the terminal can be a mobile phone, a tablet computer, a laptop computer, a smart TV, a wearable smart device, a personal computer (PC, Personal Computer) and a vehicle-mounted terminal and other devices. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. Among them, the server can be a node in a blockchain.

[0059] See also Figure 1 , which is a schematic diagram of a scenario of the content processing method provided by the present application. As shown in the figure, in response to the reader opening the text reading application, the computer device displays the target text on the text reading page, and then the computer device A recognizes the target text and displays a text illustration on the text reading page, and the text illustration is an image generated according to the recognition result of the target text.

[0060] It should be noted that Figure 1The content processing scenario diagram shown is only an example. The content processing scenario described in the embodiment of the present application is to more clearly illustrate the technical solution of the present application and does not constitute a limitation on the technical solution provided by the present application. It is known to those skilled in the art that with the evolution of content processing scenarios and the emergence of new business scenarios, the technical solution provided by the present application is also applicable to similar technical problems.

[0061] Based on the above implementation scenarios, detailed descriptions are given below.

[0062] In the related art, when readers use electronic reading applications to read electronic books, the electronic reading applications can often only provide a pure text reading experience, making the reading experience of readers relatively simple. In this regard, this application provides a content processing method, in order to enrich the reading mode of readers, thereby improving the reading experience of readers.

[0063] The embodiments of the present application will be described from the perspective of a content processing device, which can be integrated into a computer device. The computer device can be a terminal or a server. The terminal can be a mobile phone, a tablet computer, a laptop computer, a smart TV, a wearable smart device, a personal computer (PC), a vehicle-mounted terminal and other devices. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as basic cloud computing services such as big data and artificial intelligence platforms. Figure 2 FIG. 1 is a flow chart of a content processing method provided by the present application, and the method includes:

[0064] Step 101: The text reading page displays the target text.

[0065] The text reading page may be a page for reading text content in a text reading application (application, APP), or may be a page for reading text content in a browser.

[0066] The target text may be a part of a long text in a book, or a part of a short text, such as a part of text information or text advertisement, etc. Since the display size of the content processing device is limited, when there are many text contents to be displayed, the display of the content processing device may not be able to display all the text at the same time, but can only display a part of it, which corresponds to the aforementioned target text.

[0067] Therefore, the target text is the text related to the reading status or reading progress of the text reader. For example, when a reader reads a novel in a text reading application, the target text can be a part of the first chapter of the novel. When a reader reads an ancient poem in a text reading application, the target text can be the entire content of the ancient poem or part of the content of the ancient poem.

[0068] In some embodiments, displaying the target text on the text reading page includes:

[0069] The target text is displayed in the first display area of ​​the text reading page.

[0070] Among them, in the embodiment of the present application, the text reading page may include multiple display areas, where the multiple may be two or more than two, and then the target text may be displayed in one of the multiple display areas. In this way, while the text is displayed in one display area, other content may be displayed in other display areas of the text reading page, where the other content may be text content or multimedia content such as images or video content. In this way, the types of readers' reading modes can be enriched, thereby improving the readers' reading experience.

[0071] In some embodiments, displaying the target text in the first display area of ​​the text reading page includes:

[0072] 1. Detect the current reading mode;

[0073] 2. When the reading mode is the preset reading mode, the target text is displayed in the first display area of ​​the text reading page.

[0074] Among them, in the embodiment of the present application, the text reading application can set the reading mode, and different content can be displayed for different reading modes. For example, when the content processing device is a smart phone, the reading mode of text reading can be a vertical reading mode or a horizontal reading mode. Readers can set according to their preferences that when the current reading mode is detected as a vertical reading mode, no split-screen display will be performed, that is, at this time the text reading page has only one complete display page; when the current reading mode is detected as a horizontal reading mode, split-screen display can be performed, that is, at this time the text reading page can have multiple independent display areas, and different display areas can display different content respectively. Of course, the horizontal screen mode and the vertical screen mode here are just example modes in different reading modes. The reading mode can also be divided into day mode and night mode, manual control reading progress mode and automatic control reading progress mode, etc. For each type of different reading mode, readers can set the corresponding full-screen / split-screen display mode.

[0075] In an embodiment of the present application, displaying the target text on the text reading page may specifically be displaying the reading content in a vertical screen display mode, wherein the reading content may only include text content, that is, displaying the target text corresponding to the text content on the text reading page.

[0076] Step 102, in response to the horizontal screen reading instruction, display the target text in the first display area of ​​the text reading page, and display the text illustration in the second display area of ​​the text reading page.

[0077] Among them, in an embodiment of the present application, after the target text corresponding to the current reading progress is displayed on the text reading page, the content processing device can identify the currently displayed target text, and then perform text recognition on the identified target text to obtain a recognition result. Text recognition can be to perform keyword extraction, text semantic recognition, etc. on the target text to obtain a text recognition result. Then, the content processing device can further generate an image corresponding to the recognition result based on the recognition result of the text recognition of the target text, and display the image as a text illustration corresponding to the target text on the text reading page. That is, in an embodiment of the present application, not only the target text is displayed on the text reading page, but also the text illustration corresponding to the target text. In this way, while reading the target text, the reader can also view the text illustration corresponding to the target text, and can experience the content of the target text from multiple dimensions, thereby enhancing the reader's reading experience.

[0078] Among them, in the embodiment of the present application, the content processing device performs text recognition on the target text, which can be text recognition performed in response to the received horizontal screen display instruction. That is, when the content processing device switches from the vertical screen display mode to the horizontal screen display mode, the content processing device will display the target text content currently displayed in the vertical screen in the first display area of ​​the text reading page displayed in the horizontal screen, and the content processing device can further perform text recognition on the target text content currently displayed in the vertical screen, and then generate a text illustration according to the recognition result of the text recognition, and display the text illustration in the second display area of ​​the text reading page displayed in the horizontal screen.

[0079] In some embodiments, the content processing method provided by the present application further includes:

[0080] The background image is displayed on the text reading page. The background image is an image generated based on the scene information in the target text.

[0081] Among them, in the embodiment of the present application, not only can the text illustration corresponding to the target text be displayed on the text reading page, but the content processing device can also further identify the scene information in the target text, and then generate a scene image according to the scene information, and display the scene image as the background image of the target text on the text reading page. In this way, the scene of the target text content can be further rendered and displayed using the background image, thereby providing readers with an immersive reading experience, further enhancing the reader's reading experience.

[0082] In some embodiments, the content processing method provided by the present application may also include:

[0083] In response to a trigger operation on a text illustration, a dynamic image corresponding to the text illustration is displayed.

[0084] In the embodiment of the present application, the content processing device may further generate a dynamic image based on the target text, and the aforementioned text illustration may be a frame image in the dynamic image.

[0085] After the text illustration is displayed on the text reading page according to the target text, the reader can further trigger the text illustration to display the dynamic image corresponding to the text illustration. Triggering the text illustration to display its corresponding dynamic image can be to click on the text illustration displayed on the text reading page, or to double-click anywhere on the text reading page.

[0086] In some embodiments, the content processing method provided by the present application may also include:

[0087] When the dynamic image corresponding to the text illustration is displayed, the sound effect corresponding to the dynamic image is played synchronously.

[0088] Among them, in the embodiment of the present application, when the dynamic image corresponding to the text illustration is displayed in the text reading page, the content processing device can simultaneously play the sound effect content corresponding to the dynamic image. Specifically, for example, when the target text describes a fighting scene, the dynamic image can be an image of a fighting collision and the accompanying onomatopoeia. Then, at this time, the sound effect corresponding to the dynamic image can be playing these onomatopoeias, and the onomatopoeias can be the sound of weapons colliding or the shouting of the characters, etc.

[0089] That is, in this embodiment, the reader can not only watch the target text and the dynamic image corresponding to the target text from a visual perspective, but also feel the scene described by the target text from an auditory perspective, thereby providing the reader with a multi-sensory reading experience, greatly improving the reader's reading experience of text reading.

[0090] In some embodiments, in response to the horizontal screen reading instruction, the target text is displayed in the first display area of ​​the text reading page, and the text illustration is displayed in the second display area of ​​the text reading page, where the text illustration is an image generated according to the text content of the target text, including:

[0091] a. Display horizontal screen reading switch controls;

[0092] b. In response to a trigger operation on a horizontal screen reading switch control, a target text is displayed in a first display area of ​​the text reading page, and a text illustration is displayed in a second display area of ​​the text reading page, wherein the text illustration is an image generated based on the text content of the target text.

[0093] In an embodiment of the present application, when the text processing device is currently in a portrait display mode, a horizontal screen reading switch control for switching the display mode to a horizontal screen display can be displayed in the display interface of the text processing device. In this way, when the display mode of the content processing device needs to be switched to a horizontal screen display, the display mode can be switched by touching the horizontal screen reading switch control.

[0094] In some embodiments, the target text is recognized and a text illustration is displayed on a text reading page. The text illustration is an image generated according to the recognition result of the target text, including:

[0095] 1. Perform text analysis on the target text to determine the target sentences contained in the target text. The target sentences are sentences that meet the preset illustration generation rules;

[0096] 2. Generate text illustrations corresponding to the target text based on the target sentence;

[0097] 3. Display the target text in a first display area of ​​a text reading page, and display the text illustration in a second display area of ​​the text reading page.

[0098] Among them, in the embodiment of the present application, the generation standard of the text illustration can be preset, that is, not every text can display the corresponding text illustration, but only the target text that meets the preset requirements can display the text illustration. Specifically, when a reader reads a fairy tale novel in a text reading application, as the reader's reading progress advances, the text content displayed on the text reading page of the text reading application is constantly changing, that is, the content of the target text is also changing with the reader's reading progress. While the target text changes, the content processing device constantly identifies the text content in the target text to identify whether there is a target sentence in the target text, where the target sentence can be a sentence that meets the preset illustration generation rules. When there is a target sentence in the target text, the target sentence is extracted from the target text, and then a text illustration corresponding to the target text is generated according to the target sentence, and then the text illustration is displayed in the text reading page; when there is no target sentence in the target text, there is no need to generate a text illustration, and the target text can be directly displayed.

[0099] In some embodiments, when there is a target sentence in the target text and a text illustration can be generated based on the target text, the text reading page displayed in landscape mode can be divided into a first display area and a second display area, where the first display area and the second display area can be displayed side by side or in two rows. Then, the target text is displayed in the first display area and the text illustration is displayed in the second display area.

[0100] In some embodiments, text analysis is performed on the target text to determine a target sentence contained in the target text, where the target sentence is a sentence that complies with a preset illustration generation rule, including:

[0101] 1.1. Identify the preset symbols in the target text;

[0102] 1.2. Determine the target sentence based on the preset symbols.

[0103] Among them, in the embodiment of the present application, the target sentence in the target text can be identified specifically according to the punctuation marks contained in the text. Specifically, for example, the dialogue between the characters, repeated dialogues and onomatopoeia in the target text can be determined as the target sentence, and then the target sentence in the target text can be determined according to the double quotation marks in the target text. Specifically, the position of the double quotation marks can be determined in the target text first, and then the sentence contained in the double quotation marks can be determined as the target sentence, and a text illustration can be generated according to the target sentence.

[0104] In some embodiments, generating a text illustration corresponding to a target text according to a target sentence includes:

[0105] 2.1. Obtain the illustration template corresponding to the target sentence;

[0106] 2.2. Update the illustration template according to the target sentence to obtain the text illustration corresponding to the target text.

[0107] In the embodiment of the present application, a text illustration corresponding to the target text can be generated according to a preset illustration template and a target sentence. Specifically, an illustration template corresponding to the target sentence can be first obtained from a template library containing a plurality of illustration templates. The illustration template can include a static template or a dynamic template. For example, an illustration template for a text displaying onomatopoeia can adopt a static template, and a template for displaying action changes can adopt a dynamic template, that is, the illustration template can be determined and obtained according to the content of the target sentence.

[0108] After obtaining the illustration template corresponding to the text illustration, the illustration template can be updated according to the specific content in the target sentence, that is, specific parameters are input into the template to obtain a specific text illustration. For example, the area in the illustration unit showing the onomatopoeia is filled with the target onomatopoeia in the target sentence to obtain the text illustration.

[0109] In some embodiments, scene information in the target text is recognized, and a background image is displayed on the text reading page. The background image is an image generated according to the scene information, including:

[0110] A. Obtain the subject type and label information of the target text;

[0111] B. Determine the background image set according to the subject type and label information;

[0112] C. Identify the scene information of the target text, and determine the target background image in the background image set according to the scene information;

[0113] D. Display background image on text reading page.

[0114] In the embodiment of the present application, a specific background image corresponding to the target text can be determined from the background image library according to the target text. Specifically, the subject type of the target text and the label information of the target text can be obtained first. The subject type of the target text can be novels, essays, poems, etc. When the subject type of the target text is a novel, the label information corresponding to the target text can be further obtained, that is, the novel label corresponding to the target text can be obtained. The novel label corresponding to the target text can be martial arts, fairy tales, fantasy, and classical, etc. For each combination of subject type and label type, a background image set can be set to store the commonly used background images corresponding to the subject type and label type. In the background image set, each background image can also have a separate label, which can correspond to different scene information. The scene information can be a spatial environment, such as in the mountains, deserts, and streets; the scene information can also be climate information, such as cloudy days, sunny days, rain and snow, etc.; the scene information can also be time information, such as early morning, midnight, early spring, and midsummer.

[0115] In this way, after determining the background image set corresponding to the target text, the scene information of the target text can be further obtained, and the scene information of the target text can be matched with the scene label of each background image in the background image set, and then the target background image in the background image set that matches the scene information of the target text can be determined. Furthermore, the target background image can be displayed as the background of the text reading page.

[0116] In some embodiments, identifying scene information of the target text and determining a target background image from a set of background images according to the scene information includes:

[0117] C1. Obtain the target paragraph describing the scene information in the chapter corresponding to the target text;

[0118] C2. Search for scene words in the target paragraph to obtain target scene words, where the scene words are words in the preset scene whitelist;

[0119] C3. Determine the target background image corresponding to the target scene word in the background image set.

[0120] Among them, in the embodiment of the present application, when the subject matter corresponding to the target text is a novel, the target background image can be determined by the scene words in the target paragraph corresponding to the target text. Specifically, the target paragraph corresponding to the target text can be determined first. Generally, the author will introduce the scene of the novel in the first paragraph or the last paragraph of each chapter of the novel. Therefore, when determining the target paragraph corresponding to the target text, the target chapter corresponding to the target text can be determined first, and then the first paragraph and the last paragraph in the target chapter can be determined as the target paragraph.

[0121] Then, the target paragraph may be further searched for scene words to obtain the target scene words. The search for scene words in the target paragraph may be to search whether there is a preset scene word in the target paragraph, and the preset scene word may be a word in a preset scene whitelist.

[0122] After the target scene word is determined, the target background image matching the target scene word can be searched in the aforementioned determined background image set according to the target scene word, and the target background image can be obtained.

[0123] According to the above description, the content processing method provided in the embodiment of the present application displays the target text on the text reading page; in response to the horizontal screen reading instruction, the target text is displayed in the first display area of ​​the text reading page, and the text illustration is displayed in the second display area of ​​the text reading page, and the text illustration is an image generated according to the text content of the target text.

[0124] Therefore, the content processing method provided by the present application can detect a horizontal screen display instruction during the text reading process, and can not only display the read text on the text reading page displayed in horizontal screen, but also recognize the displayed text content and generate corresponding text illustrations for display. In this way, when readers are reading electronically, they can not only experience the content of the text but also experience the visual impact brought by the illustrations, which can greatly enhance the reader's reading experience.

[0125] The present application also provides a content processing method, which can be used in a computer device, and the computer device can be a terminal. Figure 3 FIG. 1 is another flow chart of the content processing method provided by the present application, and the method specifically includes:

[0126] Step 201: In response to a received text display instruction, a computer device determines a target text to be displayed in a text display interface.

[0127] Among them, in the embodiment of the present application, the received text display instruction can be a click instruction for the target book received in the text reading application. For example, posters of multiple books can be displayed in the bookshelf interface of the text reading application, and the reader can click on any poster to jump to the specific content of the target book corresponding to the poster. When the reader clicks on a book for the first time, the beginning of the book can be displayed so that the reader can read the book from the beginning. When the reader does not click on a book for the first time, the progress of the reader's last reading can be recorded and the part corresponding to the last reading progress can be displayed so that the reader can continue to read the text.

[0128] Regardless of whether the reader clicks on the target book for the first time, when the computer device receives the text display instruction for the target book input by the reader, the computer device can determine the target text of the target book that should be displayed in the text display interface. In the embodiment of the present application, the target book can be described in detail by taking the target novel as an example. That is, when the reader's reading instruction for the target novel is received, the target text in the target novel to be displayed on the display screen of the computer device can be determined.

[0129] Step 202: The computer device obtains the novel type corresponding to the target text, and determines a candidate background image library according to the novel type.

[0130] After receiving the reading instruction for the target novel from the reader, the computer device can also obtain the novel type of the target novel according to the information of the target novel contained in the instruction. Specifically, the novel type of the target novel can be a fairy tale novel. Then, the candidate background image library corresponding to the fairy tale novel can be found in the background image library.

[0131] The background image library may be a pre-set novel background image library, in which a plurality of sub-background image libraries corresponding to novel types are included, wherein each novel type may correspond to a sub-background image library. The novel background image library may be a manually set image library, or may be a novel background image library automatically collected and generated by a computer. The materials of the background image library are generally images corresponding to scenes, seasons, weather, etc.

[0132] The novel type of the target novel can be obtained according to the novel tag included in the information of the target novel. After the novel type of the target novel is obtained, a sub-background image library matching the novel type of the target novel can be determined in the novel background image library according to the novel type of the target novel, and the sub-background image library can be determined as the candidate background image library.

[0133] Step 203: The computer device determines a target chapter corresponding to the target text, and determines a target paragraph according to the target chapter.

[0134] Among them, the background images included in the candidate background image library are only background images that match the novel type of the novel, but may not match the current scene. Therefore, it is necessary to further determine the target background image that matches the target text that should be displayed currently in the candidate background image library according to the scene corresponding to the target text.

[0135] Generally, a novel will introduce the main scene information of a chapter in the first or last paragraph. Therefore, we can first determine the chapter where the target text is located, and then determine the first and last paragraphs of the chapter as the target paragraphs corresponding to the target text. In this way, the efficiency of determining the target background image can be improved.

[0136] In some embodiments, the novel may not introduce the scene information of a chapter in the first or last paragraph of the chapter. In this case, the text of each paragraph in the chapter can be obtained, and text associated with geographical location, season, weather and other features can be searched in each paragraph. Then, each paragraph can be scored based on the text found in each paragraph, and the paragraph with the highest score can be determined as the target paragraph. The target paragraph contains more scene information, which can be used to determine the scene of this chapter, and can also be used to determine the background image corresponding to this chapter.

[0137] In step 204, the computer device searches for a target scene word in the target paragraph, and determines a target background image in a candidate background image library based on the target scene word.

[0138] Among them, in the embodiment of the present application, the target scene word can be a pre-set word that describes the scene. These pre-set words can constitute a scene word whitelist. Searching for the target scene word in the aforementioned target paragraph can be done by searching for the words in the scene word whitelist in the target paragraph. Each word in the scene word whitelist corresponds to a background image in the aforementioned candidate background image library. When a scene word in the scene word whitelist is found in the target paragraph, it can be determined that the background image corresponding to the scene word is the target background image corresponding to the target text.

[0139] When no words matching any scene word in the scene word whitelist are found in the target paragraph, the similarity between the target paragraph and each scene word in the scene word whitelist can be calculated to obtain the similarity between each scene word in the scene word whitelist and the target paragraph. Then the scene word with the highest similarity to the target paragraph is determined as the target scene word, and the background image corresponding to the target scene word is further determined as the target background image corresponding to the target text. Among them, the similarity between each scene word in the scene word whitelist and the target paragraph can be calculated by embedding each scene word to obtain the scene word feature corresponding to each scene word; then the target paragraph is segmented, and the multiple words obtained by segmentation are embedded to obtain multiple word features, and then the multiple word features are spliced ​​to obtain the paragraph feature corresponding to the target paragraph. Further, the similarity between the vectors corresponding to the scene word feature and the paragraph feature is calculated to obtain the similarity between each scene word and the target paragraph.

[0140] In some embodiments, multiple scene words in a whitelist of scene words can be found in the target paragraph. At this time, the similarities between the multiple scene words and the target paragraph can also be calculated respectively, and the scene word with the highest similarity to the target paragraph among the multiple scene words can be determined as the target scene word, and then the background image corresponding to the target scene word can be further determined as the target background image. Alternatively, the background images corresponding to the multiple scene words can be determined respectively, and then the multiple background images can be fused to obtain the target background image corresponding to the target text. Among them, the image fusion of the multiple background images can be performed to extract the features matching the scene words in each background image, and then the extracted multiple features can be fused into one image to obtain the target background image corresponding to the target text. This method can obtain a background image of the scene that better fits the target text.

[0141] Step 205: The computer device obtains the illustration text from the target text.

[0142] The illustration text may be a text that satisfies a preset illustration generation rule. Specifically, in the embodiment of the present application, the illustration generation rule may be set according to the following methods:

[0143] 1. Obtaining the dialogue of the main character. In this rule, the dialogue in the target text can be determined by double quotes and colons. After obtaining the dialogue in the target text, it can be further determined whether it is the dialogue of the main character. Specifically, the natural language processing method can be used to perform artificial intelligence analysis on the dialogue in the target text to obtain the information of the character corresponding to the dialogue and the number of times it appears in the full text of the novel. Then, the number of times the character appears in the full text of the novel is used to determine whether the character is the main character. If the character is the main character, then the dialogue can be determined as an illustration text, and the corresponding text illustration can be generated based on the dialogue. Among them, whether the character is the main character is determined based on the number of times the character appears in the full text of the novel, and whether the number of times the character appears in the full text is ranked before the preset number, and the preset number can be set to 2.

[0144] 2. Duplicate dialogue acquisition. In this rule, in the dialogues determined by double quotes and colons in Rule 1, if the text content contained in the dialogues is the same and the dialogues are located adjacent to each other, then the two dialogues can be determined to be duplicate dialogues. At this time, it can be determined that the text in the dialogue is an illustration text, and a text illustration corresponding to the target text can be generated based on the illustration text in the dialogue.

[0145] 3. Acquisition of onomatopoeia. In this rule, the text content in the dialogue body determined by double quotation marks and colons in Rule 1 can be further subjected to part-of-speech analysis. If the text content in the dialogue body is determined to be onomatopoeia, the text contained in the dialogue body is determined to be illustration text, and a text illustration corresponding to the target text can be generated based on the illustration text in the dialogue body.

[0146] The above are just a few examples of obtaining illustration text. In this application, other rules can also be used to obtain illustration text from the target text, which is not limited here.

[0147] Step 206: The computer device obtains an illustration template according to the illustration text.

[0148] After obtaining the illustration text in the target text, an illustration template can be further obtained according to the illustration text. The illustration template can be preset, and the illustration template can be composed of multiple templates. Different illustration texts can correspond to the same illustration template or different illustration templates.

[0149] Different illustration templates can include different dialog box shapes, different text colors, different font styles, etc. Moreover, corresponding to different novel types, illustration templates can also correspond to different visual styles. Figure 4A Shown is a schematic diagram of different illustration templates provided in the present application. As shown in the figure, the first illustration template 10 and the second illustration template 20 have different dialog box shapes and different font styles. Similarly, the two may also have different text colors and different visual styles.

[0150] In this way, when obtaining the illustration template corresponding to the target text, the novel type of the target novel corresponding to the target text can be obtained first, and the visual style corresponding to the target text can be determined according to the novel type. Then, the target illustration template corresponding to the target text is determined from the multiple illustration templates corresponding to the visual style. Specifically, the target illustration template corresponding to the target text is determined from the multiple illustration templates corresponding to the visual style. The type of the illustration text can be analyzed to determine whether it is a specific type of the main character dialogue, repeated dialogue or onomatopoeia, and then the specific illustration template is determined according to the mapping relationship between the illustration text type and the illustration template.

[0151] in, Figure 4A The illustration template shown is only one type of illustration template, and the illustration template may also be other types of illustration templates. Specifically, the illustration template may include a static illustration template and a dynamic illustration template. Figure 4A The illustration templates shown are two examples of static illustration templates.

[0152] The template of the static illustration can be a psd format template, where psd is a special image file format for Photoshop. Photoshop, referred to as PS, is an image processing software. The template of the dynamic illustration can be a GIF format template, where GIF is a Graphics Interchange Format (GIF), which is used to display indexed color images in a hypertext markup language format and is widely used on the Internet and other online service systems. GIF is a public image file format standard.

[0153] Step 207: The computer device generates a text illustration corresponding to the target text according to the illustration template and the illustration text.

[0154] As mentioned above, the illustration template corresponding to the target text only provides a style template for the illustration and cannot be used as a text illustration corresponding to the target text. After determining the illustration template corresponding to the target text, the illustration text in the target text can be further integrated into the illustration template to generate a text illustration corresponding to the target text.

[0155] Specifically, the illustration text in the target text is integrated into the illustration template by replacing the template text in the illustration template with the text of the illustration text, and the font style and color of the illustration text in the replaced text illustration are the same as the template text.

[0156] like Figure 4B As shown in the figure, it is a schematic diagram of the text illustration provided by the present application. As shown in the figure, in the first text illustration 30, the template text is replaced by the illustration text 31. The text content "Big Brother has figured out the secret technique" in the illustration text 31 can be the text content corresponding to the aforementioned main character dialogue. When "Big Brother has figured out the secret technique" is the aforementioned repeated dialogue text, the following can be generated: Figure 4C Specifically, Figure 4C As shown, it is another schematic diagram of the text illustration provided by the present application. Among them, in the second text illustration 40, the template text is replaced by "Big Brother has figured out the secret technique".

[0157] Among them, the above Figure 4B and Figure 4C The text illustrations shown are only two examples of text illustrations, and text illustrations may also include other types of text illustrations. Specifically, the text illustration may contain text content or not, and the text illustration may be a static illustration or a dynamic illustration. There is no specific limitation here.

[0158] Step 208 , the computer device sets the target background image as the background of the text reading page, displays the target text in the first display area and displays the text illustration in the second display area.

[0159] Among them, the computer device determines the target text to be displayed in response to the received text display instruction, determines the target background image corresponding to the target text according to the target text, and generates the text illustration corresponding to the target text. The target text, the target background image and the text illustration corresponding to the target text can be displayed simultaneously. In this way, readers can view the scene background corresponding to the text content and the text illustration corresponding to the current text content while reading the text content, which can display the text content more vividly and enhance the reading experience of readers.

[0160] Among them, in some embodiments, the text illustration corresponding to the aforementioned target text can be displayed on the same screen as the aforementioned target text, and the two can also be displayed on a split screen.

[0161] Specifically, Figure 4D As shown, another scenario schematic diagram of the content processing method provided by the present application. As shown in the figure, a first target text 51 and a first text illustration 52 corresponding to the target text are displayed in a first text reading page 50. In this example, the text illustration corresponding to the target text is displayed on the same screen as the target text. Specifically, the text illustration corresponding to the target text can be displayed interspersed in the target text, or it can be displayed on one side of the target text, which side can be the upper side or the lower side. Among them, at this time, the computer device can be a smart phone, and the current text reading mode can be a vertical screen reading mode.

[0162] In some embodiments, when the computer device is still a smart phone, when the text reading mode is switched to the horizontal reading mode, the target text and the text illustration corresponding to the target text can be switched to split-screen display. Figure 4EAs shown, it is another scene schematic diagram of the content processing method provided by the present application. As shown in the figure, a first display area 61 and a second display area 62 are displayed in the second text reading page 60. A second target text 611 is displayed in the first display area 61, and a second text illustration 621 is displayed in the second display area 62. Among them, the display position of the text illustration in the second display area can be set by default in the middle position of the second display area, or it can be set according to the reader's preference, such as being set at the top of the second display area or at the bottom of the second display area. In some embodiments, the computer device can also automatically identify the display position of the text illustration based on the image content information of the background image. For example, when it is recognized that there is a face image in the partial image of the background image in the second display area, the text illustration is displayed in a position other than the face image in the second display area, such as being displayed below the face image. If the space below the face image is small, the computer device can also automatically reduce the size of the text illustration to display the text illustration below the face image. When there is no face image in the partial image of the background image in the second display area, the grayscale information of each pixel in the background image can be obtained, and the grayscale information can be used to determine which parts of the background image contain displayed objects and which parts are blank, and then the text illustrations are displayed in the blank parts. This can avoid the color conflict between the text illustrations and the background image, resulting in unclear content and affecting the reader's reading experience.

[0163] Among them, it is understandable that Figure 4D and Figure 4E is an example in which no target background image is added. In some embodiments, the target text, the target background image, and the text illustration corresponding to the target text can be displayed simultaneously in the text reading page. Specifically, Figure 4F As shown, it is another scenario schematic diagram of the content processing method provided by the present application. As shown in the figure, in the third text reading page 70, a background image 72, a third target text 71 and a third text illustration 73 are displayed.

[0164] Among them, in some embodiments, when the illustration text that meets the preset text illustration generation conditions is not found in the target text, the text illustration may not be generated. That is, in this case, only the target text and the target background image are displayed in the text reading page, and the text illustration corresponding to the target text is not displayed. Among them, when the target text and the text illustration corresponding to the target text are displayed on the same screen, that is, corresponding to the aforementioned vertical screen reading mode, if the illustration text that meets the preset text illustration generation conditions is not found in the target text, the target text is displayed full screen in the text reading page. That is, at this time, only the text is displayed, and the text illustration is not displayed. Of course, it can be understood that the presence or absence of text illustrations has no effect on the display of the background image. That is, in the vertical screen reading mode, if the text illustration is not generated, only the text content and the background image can be displayed.

[0165] When the reading mode is horizontal screen reading, the display areas of the target text and text illustrations have been clearly divided. That is, the target text is only displayed in the display area corresponding to the target text, and the text illustration is displayed in the display area corresponding to the text illustration. At this time, regardless of whether the illustration text that meets the preset text illustration generation conditions can be found in the target text, the target text is only displayed in the display area corresponding to the target text. When the illustration text that meets the preset text illustration generation conditions can be found in the target text, the corresponding text illustration is generated and displayed in the display area corresponding to the text illustration; when the illustration text that meets the preset text illustration generation conditions cannot be found in the target text, the text illustration is not generated. At this time, the display area corresponding to the text illustration does not display content, that is, the target text will not be filled in the display area corresponding to the text illustration.

[0166] In some embodiments, as the reader's reading progress progresses, the target text that should be displayed in the text reading page is also changing all the time. As the target text changes, the background image that should be displayed in the text reading page and the corresponding text illustration should also change synchronously. However, in some cases, the reader may not be interested in a certain section of the novel plot. At this time, the reader may speed up the text reading rate or directly skip a part of the text or even directly skip some chapters. At this time, since the target text changes very quickly, if the corresponding background image and text illustration are still updated synchronously with the change of the target text, the screen will flash due to the short display time of the image. Therefore, in an embodiment of the present application, after the computer device generates the background image and text illustration according to the target text and displays it, the display time of the background image and text illustration can be further recorded. If the display time is lower than the preset time, the background image and text illustration do not change when the target text changes.

[0167] In some embodiments, when the generated text illustration is a dynamic image, the dynamic text illustration can be directly displayed, or a representative frame of the text illustration can be captured and displayed. Then, when a reader clicks on the frame of the image, the dynamic illustration can be further displayed, which can further enhance the interactive fun of reading.

[0168] In some embodiments, the content processing method provided by the present application can also obtain the full text of the target novel and generate multiple illustrations corresponding to the target novel in batches. Specifically, the computer device can perform semantic analysis on the content of the novel one by one, and then lock specific sentences in the content of the novel, and generate illustrations corresponding to each locked sentence in combination with multiple illustration templates in the illustration template library. Compared with the illustrations corresponding to the novel manually generated, this method can greatly improve the efficiency of illustration generation. After the multiple illustrations corresponding to the novel are generated in batches, the aforementioned specific sentences can be associated and matched with the corresponding generated illustrations. In this way, when the reader is reading the target novel, the text of the currently displayed novel can be identified to determine whether it contains the aforementioned locked specific sentence. If the text of the currently displayed novel contains the aforementioned specific sentence, the target text illustration corresponding to the sentence can be obtained from the illustration library, and then the target text illustration is displayed; if the currently displayed novel text does not contain the aforementioned specific sentence, the text illustration is not displayed.

[0169] Furthermore, if Figure 5 FIG. 1 is another flow chart of the content processing method provided by the present application. As shown in the figure, the method includes the following steps:

[0170] Step 301, obtaining the text content of the target novel.

[0171] The target novel may be a novel for which text illustrations need to be generated, or may be a novel to be read. Acquiring the text content of the target novel may be acquiring part of the text content of the target novel, or may be acquiring all of the text content of the target novel.

[0172] Step 302, searching for dialogue in the text content.

[0173] After obtaining the text content of the target novel, the dialogue in the text content can be obtained according to the double quotation marks and colons in the text content. Specifically, the dialogue can be the text content in the double quotation marks.

[0174] Step 303, obtaining the dialogues of the main characters in the dialogue body and obtaining the illustration text.

[0175] Among them, in the embodiment of the present application, the following three methods can be used to determine the illustration text, where the illustration text is the text that can generate text illustrations. First, the main character dialogue can be determined in the dialogue body, and the illustration text is determined based on the main character dialogue. When using this method to determine the illustration text, it is first necessary to determine the main character of the target novel. Among them, the main character corresponding to the target novel can be found according to the title of the novel, or the main character of the target novel can be judged by the frequency of the character name appearing in the full text. After determining the main character, the character dialogue corresponding to the main character in the dialogue body can be further determined, and these character dialogues can be determined as illustration text.

[0176] Step 304, obtaining onomatopoeia in the dialogue body and obtaining illustration text.

[0177] The illustration text can also be determined based on the onomatopoeia in the dialogue. That is, the onomatopoeia in the dialogue can be obtained by performing part-of-speech analysis on the text in the dialogue. Part-of-speech analysis on the text in the dialogue can be performed by using python (a computer programming language) or jieba (a natural language processing tool) library to perform part-of-speech analysis on the dialogue. When the dialogue is determined to be an onomatopoeia, the illustration text can be determined based on the onomatopoeia.

[0178] Step 305, obtaining repeated dialogues in the dialogue body to obtain illustration text.

[0179] In this embodiment, the illustration text can also be determined based on repeated dialogues. To search for repeated dialogues, the dialogues can be sorted in the order in which they are obtained, that is, in the order in which they appear in the text content. Then, the similarity of two consecutive dialogues can be determined. If the texts contained in the two consecutive dialogues are the same, it can be determined that the two consecutive dialogues are repeated dialogues, and the illustration text can be determined based on the texts in the two consecutive dialogues.

[0180] Step 306, determining the illustration template of the illustration text.

[0181] After the illustration texts are determined in the dialogue body according to the above three methods, the illustration templates of each illustration text are determined one by one. Different illustration texts may correspond to different illustration templates, and the illustration templates may be templates in picture format or templates in dynamic picture format.

[0182] Step 307, generating a text illustration according to the illustration template and the illustration text.

[0183] After the illustration template corresponding to each illustration text is determined, the content of the illustration template can be updated according to the illustration text, for example, the text in the illustration template can be replaced with the text corresponding to the illustration text.

[0184] Step 308, displaying corresponding text illustrations when displaying the novel text content.

[0185] After the full text analysis and illustration generation of the target novel's corresponding text content, the generated illustrations can be stored in association with the corresponding text content. In this way, when reading a certain part of the target novel, the text content and the text illustrations corresponding to the text content can be displayed simultaneously in the reading interface.

[0186] According to the above description, the content processing method provided by the present application displays the target text on a text reading page; in response to a horizontal screen reading instruction, the target text is displayed in a first display area of ​​the text reading page, and a text illustration is displayed in a second display area of ​​the text reading page, wherein the text illustration is an image generated based on the text content of the target text.

[0187] Therefore, the content processing method provided by the present application can detect a horizontal screen display instruction during the text reading process, and can not only display the read text on the text reading page displayed in horizontal screen, but also recognize the displayed text content and generate corresponding text illustrations for display. In this way, when readers are reading electronically, they can not only experience the content of the text but also experience the visual impact brought by the illustrations, which can greatly enhance the reader's reading experience.

[0188] Moreover, the intelligent batch generation solution for novel illustrations can greatly improve the efficiency of illustration generation and save labor costs. Displaying the background image and text illustrations corresponding to the text content at the same time can differentiate the novel reading experience, provide readers with an immersive reading experience, and further enhance the readers' reading experience.

[0189] In order to better implement the above content processing methods, the embodiment of the present application also provides a content processing device, which can be integrated in a terminal or a server.

[0190] For example, Figure 6 As shown, it is a schematic diagram of the structure of the content processing device provided in the embodiment of the present application. The content processing device may include a first display unit 401 and a second display unit 402, as follows:

[0191] A first display unit 401, used to display the target text on the text reading page;

[0192] The second display unit 402 is used to recognize the target text and display a text illustration on the text reading page. The text illustration is an image generated according to the recognition result of the target text.

[0193] In some embodiments, the content processing device provided by the present application further includes:

[0194] The third display unit is used to identify the scene information in the target text and display a background image on the text reading page, where the background image is an image generated according to the scene information.

[0195] In some embodiments, the content processing device provided by the present application further includes:

[0196] The fourth display unit is used to display a dynamic image corresponding to the text illustration in response to a trigger operation on the text illustration.

[0197] In some embodiments, the content processing device provided by the present application further includes:

[0198] The playback unit is used to synchronously play the sound effects corresponding to the dynamic images when displaying the dynamic images corresponding to the text illustrations.

[0199] In some embodiments, the second display unit includes:

[0200] A first determination subunit is used to perform text analysis on the target text to determine a target sentence contained in the target text, where the target sentence is a sentence that complies with a preset illustration generation rule;

[0201] A generating subunit, used for generating a text illustration corresponding to a target text according to a target sentence;

[0202] The first display subunit is used to display text illustrations on the text reading page.

[0203] In some embodiments, determining a subunit includes:

[0204] A recognition module, used to recognize preset symbols in the target text;

[0205] The first determination module is used to determine the target sentence according to the preset symbols.

[0206] In some embodiments, generating a subunit comprises:

[0207] A first acquisition module is used to acquire an illustration template corresponding to a target sentence;

[0208] The updating module is used to update the illustration template according to the target sentence to obtain the text illustration corresponding to the target text.

[0209] In some embodiments, the third display unit includes:

[0210] The acquisition subunit is used to obtain the subject type and label information of the target text;

[0211] A second determining subunit is used to determine a background image set according to the subject type and the tag information;

[0212] A third determination subunit is used to identify scene information of the target text and determine a target background image in the background image set according to the scene information;

[0213] The second display subunit is used to display a background image on the text reading page.

[0214] In some embodiments, the third determining subunit includes:

[0215] The second acquisition module is used to acquire a target paragraph describing scene information in a chapter corresponding to the target text;

[0216] A query module is used to query scene words in a target paragraph to obtain target scene words, where the scene words are words in a preset scene whitelist;

[0217] The second determination module is used to determine a target background image corresponding to the target scene word in the background image set.

[0218] In some embodiments, the first display unit is further used for:

[0219] Displaying the target text in the first display area of ​​the text reading page;

[0220] The second display unit is further used for:

[0221] A text illustration is displayed in the secondary display area of ​​the text page.

[0222] In some embodiments, the first display unit includes:

[0223] A detection subunit, used for detecting a current reading mode;

[0224] The third display subunit is used to display the target text in the first display area of ​​the text reading page when the reading mode is the preset reading mode.

[0225] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0226] According to the above description, it can be known that the content processing device provided in the embodiment of the present application displays the target text on the text reading page through the first display unit 401; the second display unit 402 responds to the horizontal screen reading instruction, displays the target text in the first display area of ​​the text reading page, and displays the text illustration in the second display area of ​​the text reading page, and the text illustration is an image generated according to the text content of the target text.

[0227] Therefore, the content processing method provided by the present application can detect a horizontal screen display instruction during the text reading process, and can not only display the read text on the text reading page displayed in horizontal screen, but also recognize the displayed text content and generate corresponding text illustrations for display. In this way, when readers are reading electronically, they can not only experience the content of the text but also experience the visual impact brought by the illustrations, which can greatly enhance the reader's reading experience.

[0228] The present application also provides a computer device, which may be a terminal or a server. Figure 7 The figure is a schematic diagram of the structure of the computer device provided by this application. Specifically:

[0229] The computer device may include components such as a processing unit 501 of one or more processing cores, a storage unit 502 of one or more storage media, a power module 503, and an input module 504. Those skilled in the art will appreciate that Figure 7 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0230] The processing unit 501 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. It executes various functions of the computer device and processes data by running or executing software programs and / or modules stored in the storage unit 502 and calling data stored in the storage unit 502. Optionally, the processing unit 501 may include one or more processing cores; preferably, the processing unit 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the reader interface and the application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processing unit 501.

[0231] The storage unit 502 can be used to store software programs and modules. The processing unit 501 executes various functional applications and data processing by running the software programs and modules stored in the storage unit 502. The storage unit 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, and web page access, etc.); the data storage area may store data created according to the use of the computer device, etc. In addition, the storage unit 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the storage unit 502 may also include a memory controller to provide the processing unit 501 with access to the storage unit 502.

[0232] The computer device also includes a power module 503 for supplying power to various components. Preferably, the power module 503 can be logically connected to the processing unit 501 through a power management system, so as to achieve functions such as management of charging, discharging, and power consumption management through the power management system. The power module 503 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0233] The computer device may also include an input module 504, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to reader settings and function control.

[0234] Although not shown, the computer device may also include a display unit, etc., which will not be described in detail herein. Specifically, in this embodiment, the processing unit 501 in the computer device will load the executable files corresponding to the processes of one or more application programs into the storage unit 502 according to the following instructions, and the processing unit 501 will run the application programs stored in the storage unit 502, thereby realizing various functions, as follows:

[0235] Display the target text on the text reading page; in response to the horizontal screen reading instruction, display the target text in the first display area of ​​the text reading page, and display a text illustration in the second display area of ​​the text reading page, the text illustration being an image generated based on the text content of the target text.

[0236] It should be noted that the computer device provided in the embodiment of the present application and the method in the above embodiment belong to the same concept, and the specific implementation of the above operations can be referred to the previous embodiment, which will not be repeated here.

[0237] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0238] To this end, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any method provided in the embodiment of the present invention. For example, the instructions can execute the following steps:

[0239] The target text is displayed on the text reading page; the target text is recognized and a text illustration is displayed on the text reading page, where the text illustration is an image generated according to the recognition result of the target text.

[0240] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0241] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0242] Since the instructions stored in the computer-readable storage medium can execute the steps in any method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0243] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a storage medium. A processor of a computer device reads the computer instructions from the storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in various optional implementations of the above-mentioned content processing method.

[0244] The content processing method, device, computer equipment and computer-readable storage medium provided in the embodiments of the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A content processing method, It is characterized in that The method comprises: Display the target text on the text reading page; In response to the horizontal screen reading instruction, the target text is displayed in the first display area of ​​the text reading page, and a text illustration is displayed in the second display area of ​​the text reading page, wherein the text illustration is an image generated according to the text content of the target text, including: In response to the horizontal screen reading instruction, the target text is analyzed to determine a target sentence contained in the target text, wherein the target sentence is a sentence that complies with a preset illustration generation rule; and a text illustration corresponding to the target text is generated according to the target sentence; The step of generating a text illustration corresponding to the target text according to the target sentence includes: Determine the visual style corresponding to the target text; determine the illustration template corresponding to the target text from multiple illustration templates corresponding to the visual style; update the illustration template corresponding to the target text according to the target sentence to obtain the text illustration corresponding to the target text.

2. The method according to claim 1, It is characterized in that The method further comprises: A background image is displayed on the text reading page, wherein the background image is an image generated according to scene information in the target text.

3. The method according to claim 1, It is characterized in that The method further comprises: In response to a trigger operation on the text illustration, a dynamic image corresponding to the text illustration is displayed.

4. The method according to claim 3, It is characterized in that The method further comprises: When the dynamic image corresponding to the text illustration is displayed, the sound effect corresponding to the dynamic image is played synchronously.

5. The method according to claim 1, It is characterized in that In response to the horizontal screen reading instruction, the target text is displayed in the first display area of ​​the text reading page, and a text illustration is displayed in the second display area of ​​the text reading page, wherein the text illustration is an image generated according to the text content of the target text, including: Display horizontal screen reading switch controls; In response to a triggering operation on the horizontal screen reading switch control, the target text is displayed in a first display area of ​​the text reading page, and a text illustration is displayed in a second display area of ​​the text reading page, wherein the text illustration is an image generated based on the text content of the target text.

6. The method according to claim 1, It is characterized in that The step of performing text analysis on the target text to determine a target sentence contained in the target text, wherein the target sentence is a sentence that complies with a preset illustration generation rule, includes: Recognizing a preset symbol in the target text, wherein the preset symbol indicates an onomatopoeia or a target character dialogue in the target text; A target sentence is determined according to the preset symbol.

7. The method according to claim 1, It is characterized in that The step of generating a text illustration corresponding to the target text according to the target sentence includes: Obtaining an illustration template corresponding to the target sentence; The illustration template is updated according to the target sentence to obtain a text illustration corresponding to the target text.

8. The method according to claim 2, It is characterized in that The background image is displayed on the text reading page, and the background image is an image generated according to the scene information in the target text, including: Obtaining the subject type and tag information of the target text; Determine a background image set according to the subject type and the tag information; Identifying scene information of the target text, and determining a target background image in the background image set according to the scene information; The background image is displayed on the text reading page.

9. The method according to claim 8, It is characterized in that The identifying the scene information of the target text and determining the target background image in the background image set according to the scene information includes: Obtain a target paragraph describing scene information in a chapter corresponding to the target text; Searching for scene words in the target paragraph to obtain target scene words, where the scene words are words in a preset scene whitelist; A target background image corresponding to the target scene word is determined in the background image set.

10. A content processing device, It is characterized in that The device comprises: A first display unit, used for displaying a target text on a text reading page; A second display unit, configured to display the target text in the first display area of ​​the text reading page and display a text illustration in the second display area of ​​the text reading page in response to a horizontal screen reading instruction, wherein the text illustration is an image generated according to the text content of the target text; The second display unit comprises: The analyzing subunit is used to perform text analysis on the target text in response to the horizontal screen reading instruction, and determine the target sentence contained in the target text, wherein the target sentence is a sentence that conforms to the preset illustration generation rule; the generating subunit is used to generate the text illustration corresponding to the target text according to the target sentence; The generating subunit comprises: Determine the visual style corresponding to the target text; determine the illustration template corresponding to the target text from multiple illustration templates corresponding to the visual style; update the illustration template corresponding to the target text according to the target sentence to obtain the text illustration corresponding to the target text.

11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the content processing method according to any one of claims 1 to 9.

12. A computer device, It is characterized in that The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the content processing method according to any one of claims 1 to 9 when executing the computer program.

13. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the steps in the content processing method according to any one of claims 1 to 9 are implemented.