Image processing method, device, equipment, storage medium and computer program

By automatically designing an image processing method that matches the document content, it solves the problems of low image generation efficiency and complex operations in the existing technology, achieves the effect of quickly obtaining the central content of the document, and improves user reading efficiency.

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

Patent Information

Application Number
CN202111351245.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-15
Publication Date
2024-09-10
Estimated Expiration
2041-11-15

AI Technical Summary

Technical Problem

In the existing technology, generating images that match document content is inefficient and user operations are complex. Users need to have a certain graphic design foundation, and it takes a long time to obtain beautiful images.

Method used

An image processing method is provided. By displaying the document editing interface, when there is a trigger event to generate an image, a matching image that matches the target document is automatically designed to reflect the semantic information and content of the document and simplify user operations.

Benefits of technology

It achieves quick and intuitive acquisition of document center content, improves the user's efficiency in document reading, simplifies the user operation process, and reduces the time and complexity of image generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116127054B
    Figure CN116127054B
Patent Text Reader

Abstract

The embodiment of the present application discloses an image processing method, device, equipment, storage medium and computer program, wherein the method includes: displaying a document editing interface, the document editing interface is used to edit a target document; when there is a trigger event for generating an image, displaying a matching image that matches the target document, the image appearance attributes of the matching image are consistent with the semantic information of the target document, and the image content attributes of the matching image are consistent with the relevant information of the document content in the target document. By using the embodiment of the present application, the operation of generating an image is simplified, and the efficiency of image generation is improved.
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 an image processing method, apparatus, device, storage medium and computer program. Background Art

[0002] With the development of Internet technology, people's lives are becoming more and more convenient. Traditionally, when users read a document, they may need to carefully or seriously read all the text or core text of the document to obtain the theme or central content of the document. At present, in order to provide convenience to users, an image that matches the document can usually be generated, so that users can intuitively and quickly obtain the subject content of the document through the image. For example, when users fill out a collection form or write a document, they often need to add a header image (or it can also be called a theme image) to the collection form so that users can see the theme of the collection form at a glance, and when sharing, they also need a cover graphic that can highlight the theme to help other users see the central content of the collection form at a glance.

[0003] In the prior art, usually in an image generation application, an image template is determined according to a theme selected by the user, and then the user designs an image on the image template according to the document content, and finally generates an image that matches the document. The user's own image design requires the user to have a certain graphic design foundation, and it takes a long time to obtain a beautiful image. It can be seen that the image generation method of the prior art is inefficient and the user operation is complicated. Therefore, how to generate an image that matches the document content has become one of the hot issues in current research. Summary of the invention

[0004] The embodiments of the present application provide an image processing method, an apparatus, a device, a storage medium and a computer program, which automatically generate an image that matches a target document, simplify the image generation operation, and the image can reflect the semantic information and document content of the target document. Through the image, the user can quickly and intuitively grasp the core content of the target document, thereby improving the user's reading efficiency of the target document.

[0005] On the one hand, an embodiment of the present application provides an image processing method, including:

[0006] Display a document editing interface, where the document editing interface is used to edit the target document;

[0007] When there is a triggering event for generating an image, a matching image matching the target document is displayed, the image appearance attributes of the matching image are consistent with the semantic information of the target document, and the image content attributes of the matching image are consistent with the relevant information of the document content in the target document.

[0008] On the one hand, an embodiment of the present application further provides an image processing device, including:

[0009] A display unit, used to display a document editing interface, wherein the document editing interface is used to edit the target document;

[0010] The display unit is also used to display a matching image that matches the target document when there is a triggering event for generating an image, wherein the image appearance attributes of the matching image are consistent with the semantic information of the target document, and the image content attributes of the matching image are consistent with the relevant information of the document content in the target document.

[0011] In one aspect, an embodiment of the present application provides an image processing device, comprising: a processor, adapted to implement one or more computer programs; a computer storage medium, wherein the computer storage medium stores one or more computer programs, wherein the one or more computer programs are adapted to be loaded and executed by the processor:

[0012] A document editing interface is displayed, wherein the document editing interface is used to edit a target document; when there is a triggering event for generating an image, a matching image that matches the target document is displayed, wherein the image appearance attributes of the matching image are consistent with the semantic information of the target document, and the image content attributes of the matching image are consistent with the relevant information of the document content in the target document.

[0013] In one aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, is used to perform:

[0014] A document editing interface is displayed, wherein the document editing interface is used to edit a target document; when there is a triggering event for generating an image, a matching image that matches the target document is displayed, wherein the image appearance attributes of the matching image are consistent with the semantic information of the target document, and the image content attributes of the matching image are consistent with the relevant information of the document content in the target document.

[0015] In one aspect, an embodiment of the present application provides a computer program product or a computer program, wherein the computer program product includes a computer program, which may refer to a computer program, and the computer program is stored in a computer storage medium; a processor of an image processing device reads the computer program from the computer storage medium, and the processor executes the computer program, so that the image processing device performs:

[0016] A document editing interface is displayed, wherein the document editing interface is used to edit a target document; when there is a triggering event for generating an image, a matching image that matches the target document is displayed, wherein the image appearance attributes of the matching image are consistent with the semantic information of the target document, and the image content attributes of the matching image are consistent with the relevant information of the document content in the target document.

[0017] In the embodiment of the present application, a document editing interface is displayed, and the document editing interface can be used to edit the target document; if there is a trigger event for generating an image, the matching image appearance attributes can be designed according to the semantic information of the target document in the document editing interface, and the matching image content attributes can be designed according to the relevant information of the document content in the target document, and finally the image appearance attributes and the image content attributes are typeset to generate a matching image that matches the target document. It can be seen that the matching image is automatic and does not require user participation, which simplifies user operations compared to the prior art, and the design of the matching image refers to the semantic information of the target document and the document content in the target document. The user can intuitively and quickly obtain the core content of the target document through the matching image, which improves the user's reading efficiency of the target document. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 is a structural schematic diagram of an image processing system provided in an embodiment of the present application;

[0020] Figure 2 It is a flowchart of an image processing method provided in an embodiment of the present application;

[0021] Figure 3a is a schematic diagram of a document editing interface provided in an embodiment of the present application;

[0022] Figure 3b is a schematic diagram of another document editing interface provided in an embodiment of the present application;

[0023] Figure 3c is a schematic diagram of displaying an invitation window provided in an embodiment of the present application;

[0024] Figure 3d is a schematic diagram of an invitation window provided in an embodiment of the present application;

[0025] Figure 3eThis is a schematic diagram of setting the operation authority of a collaborator provided in an embodiment of the present application;

[0026] Figure 4a is a schematic diagram of an input sharing operation provided in an embodiment of the present application;

[0027] Figure 4b is a schematic diagram of a shared target document provided in an embodiment of the present application;

[0028] Figure 4c is a schematic diagram of an insertion operation of inserting an image provided by an embodiment of the present application;

[0029] Figure 5a is a schematic diagram of displaying a matching image provided by an embodiment of the present application;

[0030] Figure 5b is another schematic diagram showing a matching image provided by the implementation of the present application;

[0031] Figure 6 is a flowchart of another image processing method provided in an embodiment of the present application;

[0032] Figure 7a is a schematic diagram of a playback waiting animation provided by an embodiment of the present application;

[0033] Figure 7b is a schematic diagram of displaying a matching image provided by an embodiment of the present application;

[0034] Figure 7c is a schematic diagram of sharing a matching image provided by an embodiment of the present application;

[0035] Figure 8 It is a flowchart of another image processing method provided in an embodiment of the present application;

[0036] Figure 9a It is a schematic diagram of specifying a subject for a target document condition provided by an embodiment of the present application;

[0037] Figure 9b It is a schematic diagram of disassembling a target document provided by an embodiment of the present application;

[0038] Fig.9c This is a schematic diagram of performing face recognition on content pictures provided by the implementation of this application;

[0039] Fig.10 It is a schematic diagram of an architecture for generating a matching image provided by an embodiment of the present application;

[0040] Fig.11 is a structural schematic diagram of an image processing device provided in an embodiment of the present application;

[0041] Fig.12 It is a structural schematic diagram of an image processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0043] The embodiment of the present application provides an image processing scheme, which is mainly used to generate a matching image for a target document, and the target document can be a pure text document, a collection table document, or a document including text and pictures. The target document can be edited through a document editing interface. When there is a trigger event for generating an image, the target document can be semantically analyzed to obtain the semantic information of the target document. Furthermore, matching image appearance attributes are designed based on the semantic information of the target document, and image content attributes are designed based on the document content in the target document. Finally, the image appearance attributes and image content attributes are typeset to obtain a matching image that matches the target document.

[0044] The image processing solution can be executed by an image processing device, and a document application can be run in the image processing device, and the document application can be used to edit or read documents, and the target document is edited in the document editing interface of the document application. The image processing device can be a terminal device, such as a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, car terminal, smart home appliance, smart voice interaction device, etc.; or, the image processing device can also be a server, such as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0045] The matching image that matches the target document may be generated by the image processing device, or the matching image may be generated by a document server corresponding to the document application. The document server provides support for the operation of the document application in the image processing device. Assuming that the matching image is generated by the document server, see Figure 1 , is a schematic diagram of the structure of an image processing system provided for the implementation of this application. Figure 1 In FIG. 1 , 101 represents an image processing device, 102 represents a document application program running in the image processing device, and 103 represents a document server. The image processing device 101 displays a document editing interface in the document application program so that a user can edit a target document through the document editing interface.

[0046] When the image processing device 101 detects the existence of a trigger event for generating an image, the trigger event is notified to the document server 103, and the document server 103 obtains the current target document in the document application 102, and then performs semantic analysis on the target document to obtain the semantic information of the target document. Further, the image appearance attributes are determined based on the image attribute reference information and the semantic information, and the image content attributes are determined based on the relevant information of the document content in the target document. Finally, the image appearance attributes and the image content attributes are typeset to generate a matching image that matches the target document. The document server 103 returns the generated matching image to the image processing device 101, and the image processing device 101 displays the matching image.

[0047] The relevant information of the document content in the target document may include the document content and the document layout, the document content includes text and pictures, and the document layout may have a chapter structure or no chapter structure. The image attribute reference information includes the association relationship between multiple image appearance attributes and semantic information.

[0048] Based on the above-mentioned image processing scheme and image processing system, the present application embodiment provides an image processing method, see Figure 2 , is a flow chart of an image processing method provided in an embodiment of the present application. Figure 2 The image processing method shown is executed by an image processing device, and specifically can be executed by a processor of the image processing device. Figure 2 The image processing method may include the following steps:

[0049] Step S201: display the document editing interface.

[0050] Optionally, the document editing interface may be an interface in a document application for editing a target document, and the target document may be a text document such as Figure 3a As shown, or the target document can also be a table document such as xx information collection form as shown Figure 3b shown.

[0051] Optionally, the target document can be a collaborative document. A collaborative document means that the collaborators selected by the creator can view or edit the target document (viewing or editing can be regarded as the collaborators' operation rights on the target document). Figure 3a In the document editing interface, the invitation option 31 is included. If the creator of the target document selects the invitation option 31, a collaboration window is displayed in the document editing interface. Figure 3c As shown in FIG. 32, the collaboration window 32 may include an option 33 for adding collaboration users. By triggering the option 33 for adding collaboration users, a selection window is displayed as shown in FIG. Figure 3dAs shown in 34, in 34, users who can read or edit the target document can be selected. Assuming that user A is selected as a collaborator, the identification information of user A is displayed in the collaboration window as shown in FIG. Figure 3d As shown in 311, user A can view or edit the target document.

[0052] In one embodiment, the operation authority of user A on the target document can be set by the creator through the collaboration window 32. For example, after user A is selected as a collaborative user, the identification information 311 of user A is displayed in the collaboration window 32. The identification information 311 corresponds to an operation authority setting option 322. By triggering the operation authority setting option, the operation authority of user A on the target document can be set, such as "viewable", "editable", or user A can be deleted from the collaborators of the target document. Figure 3e shown.

[0053] It should be understood that the above only uses text documents as an example to introduce how to set collaborators and collaborators' operating permissions. For spreadsheet documents and presentation documents, how to set collaborators and set collaborators' operating permissions is similar to the above text documents, and this application will not go into details one by one.

[0054] Step S202: When there is a triggering event for generating an image, a matching image that matches the target document is displayed.

[0055] Optionally, the trigger event for generating an image may be input through the document editing interface. In one embodiment, the trigger event may refer to a sharing operation of sharing the target document in the form of an image. Figure 3a The document editing interface includes a sharing option 402. When the sharing option 402 is triggered, a sharing window is displayed. Figure 4a As shown in 403, the sharing window 403 may include buttons corresponding to multiple sharing methods, such as sharing through a first social application 41, sharing through a second social application 42, sharing in the form of an image 43, and sharing in the form of an information code (such as a QR code) 44. If the button 43 corresponding to sharing in the form of an image is selected, it is determined that there is a sharing operation of sharing the target document in the form of an image.

[0056] In another embodiment, the trigger event may also refer to an operation of adding a cover to the target document. As an optional implementation, if the target document is a table document, the relevant information of the document content in the target document includes text content, and the text content includes the document title, for example, Figure 3b As shown, it is a table document, which includes a document title, which is represented as "xx Heavy Rain Emergency Help Channel", and the target document includes the option of adding a header image, such as Figure 3bAs shown in 401; the adding operation of adding a cover to the target document can be: the option of adding a header image to the target document is triggered, that is, if Figure 3b If the option 401 of adding a header image is triggered, it is determined that there is a triggering event for generating an image.

[0057] As another optional implementation, the operation of adding a cover to the target document may also refer to: sharing the target document in the form of an online document to users in a social application. For example, by triggering the share option 402, a share window 403 may be displayed, and the share window 403 includes a first social application 41 and a second social application 42. When any social application is triggered, a corresponding user selection window is displayed, and the user selection window includes at least one identifier of a friend user in the corresponding social application. When the identifier of any friend user is selected and it is determined that the share button is triggered, it is determined that the target document is shared in the form of an online document to the selected user in the social application. For example, see Figure 4b In the sharing window 403, the first social application is triggered and the friend selection window 411 is displayed. If the logo of Guo Moumou is selected in the friend selection window 411 and the sharing button 412 is triggered, it is determined that the target document is shared with users in the social application in the form of an online document.

[0058] In another embodiment, the trigger event may also refer to an insertion operation of inserting an image into the target document. Figure 3a As shown, the document editing interface includes an insert data option 404. When the target content of the target document is selected, such as "New Coronavirus Special Period", and the insert data option is triggered, an insert data window is displayed as shown in FIG. Figure 4c As shown in 405, if "Picture" in the Insert Data window is selected, it is determined that there is a trigger event.

[0059] Optionally, the trigger event may also be generated by operating a physical component of the image processing device, such as double-clicking the screen of the image processing device, pressing a physical button of the image processing device, and so on.

[0060] In one embodiment, when the image processing device detects the presence of a triggering event for generating an image, a matching image that matches the target document is displayed, including: querying whether a matching image that matches the target document has been stored locally, and if so, obtaining the matching image from the local and displaying it; if not, performing semantic analysis on the target document to determine the semantic information of the target document; determining image appearance attributes based on image attribute reference information and the semantic information of the target document, and determining image content attributes based on relevant information of the document content in the target document; typeset processing the image appearance attributes and image content attributes to generate a matching image, and displaying the matching image.

[0061] Among them, matching images and documents corresponding to the matching images can be stored locally. After detecting the existence of a trigger event for generating an image, if a matching image is found from the local storage; the document corresponding to the matching image in the local storage can be compared with the current target document for similarity. If the similarity between the two is greater than a similarity threshold, the found matching image can be displayed as a matching image matching the target document; if the similarity between the two is less than or equal to a similarity threshold, a matching image can be regenerated for the target document. It should be understood that if the similarity between the two documents is greater than a similarity threshold, it indicates that the two documents are very similar, then the matching image corresponding to the existing document can also be used to reflect the central content of the target document. At this time, in order to save the power consumption of generating the image, the matching image of the existing document can be directly used as the matching image matching the target document; on the contrary, if the similarity between the two documents is less than or equal to a similarity threshold, it indicates that the two documents are not very similar. At this time, the matching image of the existing document cannot accurately reflect the content and theme of the target document, so a matching image matching the target document needs to be regenerated.

[0062] The image attribute reference information may specify various image appearance attributes and semantic information corresponding to each image appearance attribute. Therefore, based on the image attribute reference information and the semantic information, some image appearance attributes matching the target document may be determined. In other words, the determined image appearance attributes are consistent with the semantic information of the target document. In a specific implementation, the image appearance attribute may include any one or more of the first attribute and the image color scheme. The first attribute may include any one or more of the following: sticker elements, text style, image size, image shape, and image background. The semantic information of the target document may include any one or more of the following: the image theme corresponding to the target document and the target emotion reflected by the target document. The target emotion specifically refers to the emotion of the user who edits the target document, such as excitement, joy, sadness, anger, etc. The image theme corresponding to the target document refers to the image style that should be met when generating a matching image matching the target document. The image style may include luxury, fashion, cute, fresh, cool, festive, retro, formal, etc.

[0063] In one embodiment, if the image appearance attribute includes a first attribute, and the image attribute reference information specifies that the first attribute corresponds to a subject tag, and assuming that the semantic information of the target document includes the image subject corresponding to the target document, then the image appearance attribute is consistent with the semantic information of the target document, which means that the subject tag corresponding to the first attribute is a target subject tag that matches the image subject corresponding to the target document. For example, if the subject tag corresponding to the first attribute is fashion, and the image subject corresponding to the target document is trend, then it can be considered that the subject tag of the first attribute matches the image subject of the target document.

[0064] In another embodiment, if the image appearance attribute includes image color matching, and the image attribute reference information indicates that the image color matching corresponds to an emotion, assuming that the semantic information of the target document includes the target emotion reflected by the target document, then the consistency between the image appearance attribute and the semantic information of the target document means that the emotion corresponding to the image color matching matches the target emotion reflected by the target document. For example, assuming that the emotion corresponding to the image color matching is happy, and the target emotion reflected by the target document is happy, the emotion corresponding to the image color matching matches the target emotion reflected by the target document. Optionally, the correspondence between the image color matching indicated in the image attribute reference information and the emotion can be represented by Table 1:

[0065] Table 1

[0066]

[0067]

[0068] As can be seen from Table 1 above, an image color matching includes several color attributes, such as hue, lightness and chroma. Hue is divided into warm, neutral and cold colors, lightness is divided into light, medium and dark, and chroma is divided into high, medium and low; each color attribute can correspond to one or more colors, such as warm colors can include red, orange and yellow, neutral colors can include green and purple, and cold colors can include cyan, cyan and cyan purple; the color corresponding to light in lightness can be white, the color corresponding to medium can be gray, the color corresponding to dark can be black, the color corresponding to higher chroma can be vermilion, the color corresponding to middle chroma can be pink, and the color corresponding to lower chroma can be brown. Each color can correspond to one or more emotions, such as red corresponds to excitement, anger and joy, pink corresponds to cuteness or gentleness, and green corresponds to calmness, relaxation or tranquility. As can be seen from Table 1, an image color matching can correspond to at least one emotion.

[0069] The relevant information of the document content in the target document may include the document content and the document layout. The document content includes text and pictures. The document layout includes chapter structure and non-chapter structure. The image content attribute may include any one or more of matching text, image body and image structure. The image body may be the image content that should be displayed in the matching image. The image structure may include a long image structure and a short image structure.

[0070] In a specific implementation, if the image content attribute includes matching text, the relevant information of the document content in the target document includes the document content, and the document content includes text and a picture, then the image content attribute is consistent with the relevant information of the document content in the target document means that the matching text includes text in the target document, and the matching text includes text contained in a picture in the target document;

[0071] If the image content attribute includes an image body, the relevant information of the document content in the target document includes the document content, and the document content includes a picture, then the consistency between the image content attribute and the relevant information of the document content in the target document means that the image body includes the target object in the picture; if the image content attribute includes an image structure, and the image structure corresponds to a document layout, then the consistency between the image content attribute and the relevant information of the document content in the target document means that the document layout corresponding to the image structure is the same as the document layout of the target document. The target object in the picture can be a face, or any object.

[0072] After determining the image appearance attribute and the image content attribute, the image processing device typeset the two attributes to obtain a matching image that matches the target document, and displays the matching image. As an optional implementation, the number of matching images can be one or more, and the implementation of displaying matching images can include: when there is a trigger event for generating an image, an image selection window is displayed in the document editing interface, and the image selection window can include at least one matching image and a determination selection option; if there is a selected matching image in the image selection window and the determination selection option is triggered, the selected matching image is displayed in the document editing interface.

[0073] For example, suppose the document editing interface is Figure 3b As shown, when Figure 3b When the 401 in is triggered, an image selection window pops up in the document editing interface. Figure 5a As shown in 501, it is assumed that 501 includes 4 matching images and a confirmation selection option 502; if the matching image 51 is selected and the confirmation selection option 502 is triggered, the selected matching image 51 is displayed on the document editing interface as shown in FIG. Figure 5aAs shown in 503. Optionally, due to limited display space, all matching images generated by the image processing device that match the target document may not be displayed in the image selection window at once, and the first N matching images may be displayed in the image selection window in descending order of their matching degree, where N is a positive integer greater than or equal to 1, and N is less than the total number of all matching images. The image selection window may include an option to switch matching images, such as option 53 in 501, and the user can view other matching images by triggering option 53.

[0074] In another embodiment, if the trigger event refers to an operation of adding a cover to a target document, and the operation of adding a cover to a target document refers to sharing the target document in the form of an online document to a user in a social application, assuming that the target document is created by a first user and the user in the social application is a second user, displaying a matching image that matches the target document may include: displaying a trigger mark of entering the target document in a conversation window between the first user and the second user of the social application, and displaying the matching image as the cover of the target document at the trigger mark. Figure 5b , is another schematic diagram of displaying a matching image provided in an embodiment of the present application, in Figure 5b A conversation window between the first user and the second user in a social application is displayed on the terminal of the first user, 520 represents a trigger mark for entering a target document, which, when selected, opens the target document and displays a document editing interface of the target document, and 521 represents a matching image that matches the target document.

[0075] In the embodiment of the present application, a document editing interface is displayed, and the document editing interface can be used to edit the target document; if there is a trigger event for generating an image, the matching image appearance attributes can be designed according to the semantic information of the target document in the document editing interface, and the matching image content attributes can be designed according to the relevant information of the document content in the target document, and finally the image appearance attributes and the image content attributes are typeset to generate a matching image that matches the target document. It can be seen that the matching image is automatic and does not require user participation, which simplifies user operations compared to the prior art, and the design of the matching image refers to the semantic information of the target document and the document content in the target document. The user can intuitively and quickly obtain the core content of the target document through the matching image, which improves the user's reading efficiency of the target document.

[0076] Based on the above image processing method, the present application embodiment provides another image processing method, see Figure 6 , which is a flow chart of another image processing method provided in an embodiment of the present application. Figure 6 The image processing method can be executed by an image processing device. Figure 6 The image processing device may include the following steps:

[0077] Step S601: display the document editing interface.

[0078] Optionally, some feasible implementations of step S601 can be found in Figure 2 The relevant description in step S201 of the embodiment will not be repeated here.

[0079] Step S602: When there is a triggering event for generating an image, a waiting animation is displayed during the generation of the matching image.

[0080] In order to avoid the boredom of users while waiting for the matching image to be generated, a waiting animation can be displayed during the image generation process to consume the waiting time. The waiting animation can be determined according to the core content of the target document. For example, multiple waiting animations are stored in the image processing device, and each waiting animation corresponds to a core content, such as a propaganda animation for epidemic prevention and control, a guidance animation for work reports, or a funny waiting animation, or it can also include a new function recommendation animation for the document application.

[0081] In a specific implementation, when a trigger event for generating an image is detected, the image processing device generates a matching image based on the semantic information of the target document and the image attribute reference information. In the process of generating the image, the image processing device simultaneously obtains the core content of the target document, and then searches for a waiting animation that matches the core content from the local storage and plays the waiting animation.

[0082] Optionally, searching for a waiting animation that matches the core content from local storage includes: searching for a waiting animation that matches the core content of the target document from local storage according to the search priority. Among them, the search priorities from high to low can be: a waiting animation with the same core content as the target document, a funny waiting animation, a public welfare propaganda waiting animation, and a waiting animation for a new function introduction. Alternatively, the search priorities from high to low can be: a waiting animation with the same core content as the target document, a waiting animation for a new function promotion, a public welfare propaganda waiting animation, and a funny waiting animation. It should be understood that the above are only two possible search priorities listed in the embodiments of the present application. In actual applications, the search priority can be set according to the specific application scenario, and the embodiments of the present application do not make specific limitations.

[0083] In one embodiment, searching for a waiting animation matching the core content from the local storage and playing the waiting animation may include: estimating a target time required to generate a matching image; cutting the matching waiting animation according to the target time; and playing the cut waiting animation. In this way, it is ensured that the matching image is displayed in time after the matching image is generated.

[0084] For example, suppose that Figure 4a 43 is detected to be triggered, that is, there is a trigger event for generating an image, then the core content of the target document is obtained. The core content of the target document is about online learning guidance, that is, it is related to learning. Then the image processing device searches for the waiting animation related to learning from the local storage, and starts playing the waiting animation after finding it. Figure 7a 701 means the waiting animation is playing.

[0085] Step S603: When the matching image generation is completed, the matching image is displayed in the image generation window, and the image generation window includes a sharing operation option.

[0086] The waiting animation is to relieve the boredom of waiting for the matching image to be generated. Once it is detected that the matching image has been generated, the display of the waiting animation is switched to the display of the matching image. Optionally, both the waiting animation and the matching image can be displayed in the image generation window, and the image generation window can be superimposed on the document editing interface or can be independent.

[0087] For example, suppose the triggering event is Figure 4a 43 is triggered, and the image processing device starts to generate a matching image after detecting that 43 is triggered. During the generation of the matching image, a waiting animation is displayed in the image generation window 71. As time goes by, the generation of the matching image is completed, and the matching image is displayed in the image generation window 71. Figure 7b As shown in 702. It should be understood that the matching image may be a long image structure, and the entire matching image cannot be displayed in the image generation window at once, and only a part of the matching image may be displayed. Figure 7b Click 73 to view other matching images.

[0088] As can be seen from the above, in order to display the generated matching image in time, the displayed waiting animation may be cropped, that is, the image processing device may not have played the completed waiting animation, but it is not ruled out that some users are interested in the played waiting animation and want to continue viewing it. Therefore, in order to facilitate users to continue viewing the waiting animation later, the historical playback information of the waiting animation can be displayed when displaying the matching image, such as Figure 7b As shown in 703; the historical playback information may include the name of the waiting animation such as xx animation, the storage path such as / / c:user, and the shortcut key 733 for playing the complete waiting animation; if the user wants to continue viewing the waiting animation, the user may select the shortcut key 733, or find the storage location of the waiting animation through the storage path, and click the waiting animation in the storage location to start playing.

[0089] Step S604: When the sharing operation option is triggered, a selection interface for a sharing object is displayed, the selection interface including multiple user identifiers and a confirmation sharing option.

[0090] Step S605: If any user identification is selected and it is determined that the sharing option is triggered, the matching image is shared with the user corresponding to the user identification.

[0091] Optionally, the image generation window may also include a sharing option, such as Figure 7b As shown in 744, the user can directly share the generated matching image by triggering the sharing option 744. Figure 7b When the share option is triggered, the selection interface of the sharing object is displayed. The selection interface can be expressed as follows Figure 7c As shown in Figure 071, the selection interface may include multiple user identifiers such as Guo and Guo's avatar in the first social application such as QQ, Ai and Ai's avatar in the first social application. The selection interface may also include a confirmation sharing option, such as Figure 7c As shown in 072, assuming that the user identification of Ai Moumou is selected and the sharing option is determined to be triggered, the matching image will be sent to Ai Moumou through the first social application. In the existing sharing method, usually after generating a matching image, the user manually saves the matching image, then finds the matching image from the storage path of the matching image, and opens a social application. Through the social application, the matching image is sent to a user through the conversation window with a certain user. It can be seen that compared with the existing sharing method, the present application can share the matching image to a certain user with one click while displaying the matching image after generating the matching image. The user's sharing operation is simple, which improves the sharing efficiency.

[0092] In the embodiment of the present application, a document editing interface is displayed, and the document editing interface can be used to edit the target document; if there is a trigger event for generating an image, the matching image appearance attributes can be designed according to the semantic information of the target document in the document editing interface, and the matching image content attributes can be designed according to the relevant information of the document content in the target document, and finally the image appearance attributes and the image content attributes are typeset to generate a matching image that matches the target document. It can be seen that the matching image is automatic and does not require user participation, which simplifies user operations compared to the prior art, and the design of the matching image refers to the semantic information of the target document and the document content in the target document. The user can intuitively and quickly obtain the core content of the target document through the matching image, which improves the user's reading efficiency of the target document.

[0093] Moreover, during the generation of the matching image, the waiting time can be consumed by playing the waiting animation, thereby improving the user experience, so as to further enhance the user's attention and love for the document application. In addition, after obtaining the matching image, the matching image can be shared with the designated user with one click, realizing quick sharing and improving sharing efficiency.

[0094] Based on the above image processing method, the present application embodiment also provides another image processing method, see Figure 8 , is a flow chart of another image processing method provided by an embodiment of the present application. The image processing method described in the figure is executed by an image processing device, specifically, by a processor of the image processing device. Figure 8 The image processing method may include the following steps:

[0095] Step S801: display the document editing interface.

[0096] In one embodiment, some feasible implementations included in step S801 can be found in Figure 2 The relevant description in step S201 in the embodiment will not be repeated here.

[0097] Step S802: when there is a triggering event for generating an image, semantic analysis is performed on the target document to obtain semantic information of the target document, and based on the image attribute reference information and the semantic information, image appearance attributes matching the semantic information are determined.

[0098] As can be seen from the above, the semantic information of the target document may include the image theme corresponding to the target document and the target emotion reflected by the target document. Optionally, natural language processing (NLP) technology is used to perform semantic analysis on the target document to obtain the semantic information of the target document. Natural language processing technology is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language used by people in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.

[0099] Optionally, if the semantic information of the target document includes an image theme corresponding to the target document, natural language processing technology is used to perform semantic analysis on the target document to obtain the semantic information of the target document, which may include: performing text preprocessing on the text in the target document to obtain some sentence sets (or grouped sentences), and the sentences in each sentence set express the same or similar semantics; performing semantic analysis on the N sentence sets, and predicting a first sub-image theme based on the results of the semantic analysis; performing semantic reasoning on the N sentence sets, and predicting a second sub-image theme based on the results of the semantic reasoning; and determining the image theme corresponding to the target document based on the first sub-image theme and the second sub-image theme.

[0100] Among them, determining the image theme corresponding to the target document based on the first sub-image theme and the second sub-image theme may include: taking the first sub-image theme and the second sub-image theme with a higher confidence as the image theme corresponding to the target document; or taking both the first sub-image theme and the second sub-image theme as the image theme corresponding to the target document.

[0101] It should be understood that when a trigger event occurs, an image theme adding window may be output so that the user can set a specified theme for the target document through the image theme adding window. Figure 9a , which is a schematic diagram of setting a specified topic provided in an embodiment of the present application, assuming that by triggering Figure 4a The trigger event is input in step 43, and then the image processing device begins to enter the process of generating a matching image. At this time, the image processing device can also display an image theme adding window such as Figure 9a As shown in 901, the image theme adding window 901 may display multiple theme tags specified in the image attribute reference information, such as luxury, cute, fashion, retro, fresh, etc.; the image theme adding window 901 may also include an input area, through which the user may input a new theme tag. After selecting the specified theme, click the confirmation option in the image theme adding window 901, and the image processing device determines that there is a specified theme corresponding to the target document.

[0102] If there is a designated theme corresponding to the target document, the designated theme can be used as the image theme of the target document, and there is no need to execute the above-mentioned steps of determining the image theme based on the first image sub-theme and the second image sub-theme; if there is no designated theme corresponding to the target document, the steps of determining the image theme based on the first image sub-theme and the second image sub-theme can continue to be executed.

[0103] It should be understood that the document content of the target document includes text and content graphics. The text content includes the document title and body text. The target document may also include a chapter structure. In summary, a target document may be composed of a document title, a chapter structure, a body text, and content graphics. For example, see Figure 9b , is a schematic diagram of a target document provided in an embodiment of the present application, Figure 9b The target document includes a document title 91 , a chapter structure 92 , a main text 93 , and content illustrations 94 .

[0104] Optionally, preprocessing the text content of the target document to obtain N sentence sets may include: segmenting the main text into words and sentences to obtain segmentation results; further, performing sentence classification processing on the segmentation results and the document title to obtain multiple sentence sets.

[0105] Optionally, if the semantic information of the target document includes the target emotion reflected by the target document, natural language processing technology is used to perform semantic analysis on the target document to obtain the semantic information of the target document, which may include: performing sentiment analysis on a set of N sentences to obtain sentiment analysis results, and determining the target emotion reflected by the document based on the sentiment analysis results.

[0106] In one embodiment, if the image appearance attribute includes a first attribute, the first attribute includes any one or more of the following: sticker elements, text styles, and image backgrounds, the image attribute reference information includes multiple first attributes and a subject tag corresponding to each first attribute; the semantic information includes an image subject corresponding to the target document; determining the image appearance attribute that matches the semantic information based on the image attribute reference information and the semantic information includes: performing similarity matching processing on the image subject and multiple subject tags in the image attribute reference information to determine a target subject tag; determining the first attribute corresponding to the target subject tag as the first attribute that matches the target document.

[0107] Wherein, assuming that determining the image theme corresponding to the target document based on the first sub-image theme and the second sub-image theme means determining the first sub-image theme and the second sub-image theme as the image theme corresponding to the target document, then performing similarity matching processing on the image theme and the multiple theme tags in the image attribute reference information to determine the target theme tag includes: determining a first theme tag matching the first sub-image theme from the multiple theme tags, and determining the matching degree corresponding to the first theme tag; determining a second theme tag matching the second sub-image theme from the multiple theme tags, and determining the matching degree corresponding to the first theme tag; determining the target theme tag from the first theme tag and the second theme tag based on the matching degree corresponding to the first theme tag and the matching degree corresponding to the second theme tag. Specifically, a theme tag with a higher matching degree can be selected from the first theme tag and the second theme tag as the target theme tag.

[0108] Step S803: Determine the image content attribute based on the relevant information of the document content in the target document.

[0109] As can be seen from the foregoing, the relevant information of the document content in the target document includes the document content and the document layout, and the document content can include the text content and the content illustration; if the image content attribute can include the matching text, then the image content attribute is determined based on the relevant information of the document content in the target document, including: performing word and sentence segmentation on the text content to obtain the segmentation result, adding the segmentation result to the matching text, and performing text recognition on the content illustration, and adding the recognition result to the matching text. Among them, the text content can include the main text and the document title, and performing word and sentence segmentation on the text content can actually refer to performing word and sentence segmentation on the main text. Usually, the text recognition of the content illustration can be performed by the OCR (Optical Character Recognition) technology in computer vision. OCR refers to the process in which an electronic device examines the characters printed on paper, determines their shapes by detecting dark and light patterns, and then translates the shapes into computer text using a character recognition method.

[0110] If the image content attribute may include the image body, determining the image content attribute based on the relevant information of the document content in the target document may include: performing object recognition on the content image in the target document to obtain an object recognition result; if the object recognition result indicates that the content image includes the target object, cutting out the target object image from the content image; adding the target object image to the image body. The target object may refer to any object, such as a face, any object, etc. It should be understood that the object recognition of the content image here may be performed by calling a pre-trained image recognition model, and the image recognition model may be constructed based on computer vision technology and trained with a large number of training images to achieve convergence. The converged image recognition model can accurately identify the specified object from an image. Computer Vision Technology (Computer Vision, CV) Computer vision is a science that studies how to make machines "see". To put it more concretely, it refers to machine vision such as using cameras and computers to replace human eyes to identify, track and measure targets, and further perform image processing to make the computer processing into an image that is more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision studies related theories and technologies, attempting to build an artificial intelligence system that can obtain information from images or multi-dimensional data. Computer vision technology usually includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and mapping, autonomous driving, smart transportation and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition.

[0111] For example, assuming the target object is a human face, see Fig.9c A schematic diagram of a content picture provided in an embodiment of the present application, 091 represents a content picture, face recognition processing is performed on the content picture 091, and it is determined that the content picture includes a face. The contour position coordinates of the face are marked in the content picture as shown in 092 to crop out the face image.

[0112] As can be seen from the foregoing, image content attributes may also include image structure, which may include a long image structure or a short image structure. The relevant information of the document content in the target document may include a document layout, which may include a chapter structure or a non-chapter structure. Determining the image content attributes based on the relevant information of the document content in the target document may include: if the document layout of the target document is a chapter structure, determining the image structure to be a long image structure; if the document layout of the target document is a non-chapter structure, determining the image structure to be a short image structure.

[0113] Step S804: Layout the image appearance attributes and the image content attributes to generate and display a matching image.

[0114] As can be seen from the foregoing, the first attribute is determined based on the semantic information of the target document, and the first attribute may include an image background, which may be pre-set, but in order to make the target document and the matching image more matched, after the content picture is subjected to object recognition processing, if it is determined according to the object recognition result that the target object is not included in the content picture, the content picture may also be added to the image background. However, if there are too many words in the content picture, using it as the image background will cause the matching image generated at last to be more chaotic, so when it is determined that the content picture does not include the target object, it is further determined whether the number of words included in the content picture is within the quantity threshold range, if so, the content picture is added to the image background, and if the number of words included in the content picture is greater than the quantity threshold, the content picture cannot be used as the image background. In the embodiment of the present application, the image background may also specifically include a background atmosphere, and the background atmosphere is to express an atmosphere through some decorative elements such as stickers or pictures, such as expressing some festive atmospheres through blessing stickers, and expressing a serious or tense atmosphere through exclamation mark-shaped stickers.

[0115] Based on the description of step S803 and step S804, the schematic diagram of the architecture for generating a matching image provided by the embodiment of the present application is shown in FIG. Fig.10 shown. Fig.10 The architecture diagram may include a raw material disassembly module 1001 , a computer vision module 1002 , a natural language processing module 1003 and an image generation module 1004 .

[0116] Among them, the raw material disassembly module 1001 refers to disassembling the target document, such as disassembling the document title, chapter structure, main text, content illustrations and designated themes in the target document; the computer vision module 1002 is mainly used to process the content illustrations in the target document. In a specific implementation, OCR technology can be used to recognize the text in the content illustrations, and the recognition results can be added to the matching text of the image content attribute, and the content illustrations can be classified and recognized to determine whether the content illustrations include faces; if faces are included, the face images are segmented from the content illustrations, and the segmented face images are added to the image body of the image content attribute; if faces are not included, the content illustrations are added to the image background in the image appearance attribute.

[0117] The natural language processing module 1003 is mainly used to process the text content in the target document. The text content includes the document title and the body text. In the specific implementation, the body text is segmented into words and sentences to obtain the segmentation results; then the segmentation results and the document title are classified together to obtain some grouped sentences; further, the grouped sentences are respectively subjected to semantic analysis and semantic reasoning to determine the first sub-image theme and the second sub-image theme of the target document, and the target theme label is determined according to the matching of the first sub-image theme and the second sub-image theme with each theme label in the image attribute reference information; then based on the correspondence between the target theme label and the first attribute, a first attribute is determined, and the first attribute may include sticker elements, text styles and image backgrounds; sentiment analysis is performed on the grouped sentences, and a suitable image color matching is determined for the target document according to the sentiment analysis results and the correspondence between the sentiment and the image color matching included in the image attribute reference information.

[0118] After the image appearance attributes and image content attributes are determined by the above-mentioned natural language processing module and computer vision module, the picture generation module 1004 performs typesetting processing based on the image appearance attributes and image content attributes to generate a matching image.

[0119] In the prior art, when editing a target document, if the target document is a table document, we may need to add a beautiful cover image to the table; or, when we want to share the target document in the form of an image, we also need to generate a beautiful image that matches the document content. In the prior art, the process of generating an image according to the target document is relatively complicated. First, the user needs to find a suitable image template in the image design software, and then modify the image template based on the target document. It usually takes 1-2 hours to typeset and match colors, design an image, download and save the designed image, and share or insert the image into the target document. However, due to the limited aesthetic taste of the user, it is difficult to get a beautiful image if it is not a professional image maker. And the user needs to repeatedly download and upload pictures. In the embodiment of the present application, a document editing interface is displayed, which can be used to edit the target document; if there is a trigger event for generating an image, the matching image appearance attributes can be designed according to the semantic information of the target document in the document editing interface, and the matching image content attributes can be designed according to the relevant information of the document content in the target document. Finally, the image appearance attributes and image content attributes are typeset to generate a matching image that matches the target document. It can be seen that the matching image is automatically generated based on the semantic information of the target document without the need for user participation, which simplifies user operations compared to the prior art. In addition, the design of the matching image refers to the semantic information of the target document and the document content in the target document. Through the matching image, the user can intuitively and quickly obtain the core content of the target document, thereby improving the user's reading efficiency of the target document.

[0120] Based on the above-mentioned image processing method embodiment, the present application embodiment provides an image processing device, see Fig.11 , is a structural schematic diagram of an image processing device provided in an embodiment of the present application. Fig.11 The image processing device shown can run the following units:

[0121] The display unit 1101 is used to display a document editing interface, where the document editing interface is used to edit the target document;

[0122] The display unit 1101 is also used to display a matching image that matches the target document when there is a triggering event for generating an image, wherein the image appearance attributes of the matching image are consistent with the semantic information of the target document, and the image content attributes of the matching image are consistent with the relevant information of the document content in the target document.

[0123] In one embodiment, the image appearance attribute includes any one or more of the first attribute and the image color, the first attribute includes any one or more of the following: sticker elements, text style, and image background; the image content attribute includes any one or more of the following: matching text, image body, and image structure;

[0124] The semantic information of the target document includes any one or more of the following contents: the image theme corresponding to the target document and the target emotion reflected by the target document; the relevant information of the document content in the target document includes any one or more of the document content and the document layout, and the document content includes any one or more of the text content and the content illustration.

[0125] In one embodiment, if the image appearance attribute includes the first attribute, the first attribute corresponds to a topic tag, and the semantic information of the target document includes the image topic corresponding to the target document, then the image appearance attribute is consistent with the semantic information of the target document means that the topic tag corresponding to the first attribute is a target topic tag that matches the image topic corresponding to the target document;

[0126] If the image appearance attribute includes the image color scheme, the image color scheme corresponds to at least one emotion, and the semantic information of the target document includes the target emotion reflected by the target document, then the image appearance attribute is consistent with the semantic information of the target document means that there is an emotion in the at least one emotion corresponding to the image color scheme that matches the target emotion reflected by the target document;

[0127] If the image content attribute includes matching text, the relevant information about the document content in the target document includes the document content, and the document content includes text content and content matching pictures, then the image content attribute is consistent with the relevant information about the document content in the target document means that the matching text includes the text content in the target document, and the matching text includes the text contained in the content matching pictures;

[0128] If the image content attributes include an image body, the relevant information about the document content in the target document includes the document content, and the document content includes a content illustration, then the image content attributes being consistent with the relevant information about the document content in the target document means that the image body includes a target object in the content illustration; if the image content attributes include an image structure, and the image structure corresponds to a document layout, then the image content attributes being consistent with the relevant information about the document content in the target document means that the document layout corresponding to the image structure is the same as the document layout of the target document.

[0129] In one embodiment, the triggering event includes any one or more of the following: an adding operation of adding a cover to the target document, a sharing operation of sharing the target document in the form of an image, and an inserting operation of inserting an image into the target document.

[0130] In one embodiment, when there is a triggering event for generating an image, the display unit 1101 specifically performs the following steps when displaying a matching image that matches the target document:

[0131] When there is a triggering event for generating an image, an image selection window is displayed in the document editing interface, and the image selection window includes at least one matching image that matches the target document and a confirmation selection option; if there is a selected matching image in the image selection window and the confirmation selection option is triggered, the selected matching image is displayed in the document editing interface.

[0132] In one embodiment, the display unit 1101 performs the following steps when displaying a matching image that matches the target document: during the generation process of the matching image, displaying a waiting animation; and when the generation of the matching image is completed, switching from displaying the waiting animation to displaying the matching image that matches the target document.

[0133] In one embodiment, the image processing device also includes a sharing unit 1102; if the triggering event includes a sharing operation of sharing the target document in the form of an image, the matching image is displayed in an image generation window, and the image generation window includes a sharing operation option; the display unit 1101 is also used to display a selection interface for a sharing object when the sharing operation option is triggered, and the selection interface includes multiple user identifiers and a confirmed sharing option; the sharing unit 1102 is used to share the matching image with the user corresponding to any user identifier if any user identifier is selected and the confirmed sharing option is triggered.

[0134] In one embodiment, when there is a trigger event for generating an image, the display unit 1101 performs the following steps when displaying a matching image that matches the target document:

[0135] When there is a triggering event for generating an image, semantic analysis is performed on the target document to obtain semantic information of the target document, and image appearance attributes are determined based on image attribute reference information and the semantic information; image content attributes are determined based on relevant information of the document content in the target document; the image appearance attributes and the image content attributes are typeset to generate and display a matching image.

[0136] In one embodiment, when the semantic information of the target document includes the image theme corresponding to the target document and the semantic information of the target document is obtained by performing semantic analysis on the target document, the display unit 1101 performs the following steps:

[0137] Acquire text content from the document content of the target document, and preprocess the text content to obtain N sentence sets; each sentence set includes one or more sentences, and the one or more sentences included in each sentence set have the same or similar semantics; perform semantic analysis processing on the N sentence sets, and predict a first sub-image theme based on the result of the semantic analysis processing; perform semantic reasoning processing on the N sentence sets, and predict a second sub-image theme based on the result of the semantic reasoning processing; determine an image theme corresponding to the target document based on the first sub-image theme and the second sub-image theme.

[0138] In one embodiment, the semantic information of the target document also includes the target emotion reflected by the target document; when the display unit 1101 performs semantic analysis on the target document to obtain the semantic information of the target document, it executes the following steps: performs sentiment analysis on the set of N sentences to obtain the sentiment analysis result; and determines the target emotion reflected by the target document based on the sentiment analysis result.

[0139] In one embodiment, the image processing device also includes a determination unit 1103; the determination unit 1103 is used to, after obtaining a trigger event, if the specified subject corresponding to the target document is obtained, determine the specified subject as the image subject of the target document; after obtaining a trigger event, if the specified subject corresponding to the target document is not obtained, execute the step of determining the image subject corresponding to the target document based on the first sub-image subject and the second sub-image subject.

[0140] In one embodiment, the image appearance attributes include a first attribute, and the first attribute includes any one or more of the following: sticker elements, text styles, and image backgrounds; the image attribute reference information includes multiple first attributes and a subject tag corresponding to each first attribute; the semantic information includes the image subject corresponding to the target document; the display unit 1101 performs the following steps when determining the image appearance attributes based on the image attribute reference information and the semantic information: performing similarity matching processing on the image subject and multiple subject tags in the image attribute reference information to determine the target subject tag; and determining the first attribute corresponding to the target subject tag as the first attribute matching the target document.

[0141] In one embodiment, the determining of the image theme corresponding to the target document based on the first sub-image theme and the second sub-image theme may refer to taking both the first sub-image theme and the second sub-image theme as the image theme corresponding to the target document; when the display unit 1101 performs similarity matching processing on the image theme and multiple theme tags in the image attribute reference information to determine the target theme tag, the display unit 1101 performs the following steps:

[0142] Determine a first topic tag that matches the first sub-image topic from the multiple topic tags, and determine the matching degree corresponding to the first topic tag; determine a second topic tag that matches the second sub-image topic from the multiple topic tags, and determine the matching degree corresponding to the first topic tag; determine a target topic tag from the first topic tag and the second topic tag based on the matching degree corresponding to the first topic tag and the matching degree corresponding to the second topic tag.

[0143] In one embodiment, the display unit 1101 is further configured to display an image theme adding window when there is a triggering event for generating an image, wherein the image theme adding window is used to set the designated theme.

[0144] In one embodiment, the image appearance attributes also include image color matching, the image attribute reference information includes the correspondence between the image color matching and emotions, the semantic information of the target document includes the target emotion reflected by the target document, and the display unit 1101 performs the following steps when determining the image appearance attributes based on the image attribute reference information and the semantic information: based on the correspondence between the image color matching and emotions, obtaining the image color matching that matches the target emotion.

[0145] In one embodiment, the relevant information of the document content in the target document includes the document content, the document content includes text content and content pictures, and the image content attributes include matching text. When the display unit 1101 determines the image content attributes based on the relevant information of the document content in the target document, it performs the following steps: performing word and sentence segmentation on the text content to obtain a segmentation result; performing text recognition on the content pictures to obtain a recognition result; and adding the segmentation result and the recognition result to the matching text.

[0146] In one embodiment, the relevant information of the document content in the target document includes the document content, the document content includes a content illustration, and the image content attributes include an image body. When the display unit 1101 determines the image content attributes based on the relevant information of the document content in the target document, it executes the following steps: performing object recognition processing on the content illustration to obtain an object recognition result; if the object recognition result indicates that the content illustration includes a target object, cropping the target object image from the content illustration, and adding the target object image to the image body.

[0147] In one embodiment, if the object recognition result indicates that the content image does not include the target object, the content image is added to the image background.

[0148] In one embodiment, if the object recognition result indicates that the target object is not included in the content picture, the content picture is added to the image background, including: if the number of words included in the content picture is less than a quantity threshold, the content picture is added to the image background.

[0149] According to one embodiment of the present application, Figure 2 , Figure 6 as well as Figure 8 The various steps involved in the image processing method shown can be Fig.11 The image processing device shown in FIG. 1 is executed by each unit in the image processing device shown in FIG. Figure 2 The steps S201 and S202 can be performed by Fig.11 The display unit 1101 in the image processing device shown in FIG. Figure 6 Steps S601 to S604 can be performed by Fig.11 The image processing device shown in the figure is executed by the display unit 1101, Figure 6 Step S605 can be performed by Fig.11 The sharing unit 1102 in the image processing device shown in the figure is executed; for example, Figure 8 Step S801 and step S804 can be obtained by Fig.11 The display unit 1101 in the image processing device shown in FIG. 1 is used to perform the steps S802 and S803. Fig.11 The determination unit 1103 in the image processing device shown is executed.

[0150] According to another embodiment of the present application, Fig.11The various units in the image processing device shown can be separately or completely combined into one or several other units to constitute, or one (some) of the units can also be split into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, other units can also be included based on the image processing device. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0151] According to another embodiment of the present application, the program can be executed by running on a general computing device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 2 , Figure 6 as well as Figure 8 A computer program (including program code) for each step involved in the corresponding method shown in FIG. Fig.11 The image processing apparatus shown in and the image processing method of the embodiment of the present application are implemented. The computer program can be recorded on, for example, a computer-readable storage medium, and loaded into the image processing device through the computer-readable storage medium and run therein.

[0152] In the embodiment of the present application, a document editing interface is displayed, and the document editing interface can be used to edit the target document; if there is a trigger event for generating an image, the matching image appearance attributes can be designed according to the semantic information of the target document in the document editing interface, and the matching image content attributes can be designed according to the relevant information of the document content in the target document, and finally the image appearance attributes and the image content attributes are typeset to generate a matching image that matches the target document. It can be seen that the matching image is automatic and does not require user participation, which simplifies user operations compared to the prior art, and the design of the matching image refers to the semantic information of the target document and the document content in the target document. The user can intuitively and quickly obtain the core content of the target document through the matching image, which improves the user's reading efficiency of the target document.

[0153] Based on the above-mentioned embodiments of the image processing method and the embodiments of the image processing apparatus, the present application provides an image processing device, see Fig.12 , is a structural schematic diagram of an image processing device provided in an embodiment of the present application. Fig.12The image processing device shown may include a processor 1201, an input interface 1202, an output interface 1203, and a computer storage medium 1204. The processor 1201, the input interface 1202, the output interface 1203, and the computer storage medium 1204 may be connected via a bus or other means.

[0154] The computer storage medium 1204 may be stored in the memory of the image processing device, the computer storage medium 1204 is used to store computer programs, and the processor 1201 is used to execute the computer programs stored in the computer storage medium 1204. The processor 1201 (or CPU (Central Processing Unit)) is the computing core and control core of the image processing device, which is suitable for implementing one or more computer programs, and is specifically suitable for loading and executing:

[0155] A document editing interface is displayed, wherein the document editing interface is used to edit a target document; when there is a triggering event for generating an image, a matching image that matches the target document is displayed, wherein the image appearance attributes of the matching image are consistent with the semantic information of the target document, and the image content attributes of the matching image are consistent with the relevant information of the document content in the target document.

[0156] In the embodiment of the present application, a document editing interface is displayed, and the document editing interface can be used to edit the target document; if there is a trigger event for generating an image, the matching image appearance attributes can be designed according to the semantic information of the target document in the document editing interface, and the matching image content attributes can be designed according to the relevant information of the document content in the target document, and finally the image appearance attributes and the image content attributes are typeset to generate a matching image that matches the target document. It can be seen that the matching image is automatic and does not require user participation, which simplifies user operations compared to the prior art, and the design of the matching image refers to the semantic information of the target document and the document content in the target document. The user can intuitively and quickly obtain the core content of the target document through the matching image, which improves the user's reading efficiency of the target document.

[0157] The embodiment of the present application also provides a computer storage medium (Memory), which is a memory device of an image processing device for storing programs and data. It is understandable that the computer storage medium here can include both the built-in storage medium of the image processing device and the extended storage medium supported by the image processing device. The computer storage medium provides a storage space, which stores the operating system of the image processing device. In addition, one or more computer programs suitable for being loaded and executed by the processor 1201 are also stored in the storage space. It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory, such as at least one disk storage; optionally, it can also be at least one computer storage medium located away from the aforementioned processor.

[0158] In one embodiment, one or more computer programs stored in the computer storage medium can be loaded and executed by the processor 901: displaying a document editing interface, which is used to edit a target document; when there is a triggering event for generating an image, displaying a matching image that matches the target document, the image appearance attributes of the matching image are consistent with the semantic information of the target document, and the image content attributes of the matching image are consistent with the relevant information of the document content in the target document.

[0159] In one embodiment, the image appearance attribute includes any one or more of the first attribute and the image color, the first attribute includes any one or more of the following: sticker elements, text style, and image background; the image content attribute includes any one or more of the following: matching text, image body, and image structure;

[0160] The semantic information of the target document includes any one or more of the following contents: the image theme corresponding to the target document and the target emotion reflected by the target document; the relevant information of the document content in the target document includes any one or more of the document content and the document layout, and the document content includes any one or more of the text content and the content illustration.

[0161] In one embodiment, if the image appearance attribute includes the first attribute, the first attribute corresponds to a topic tag, and the semantic information of the target document includes the image topic corresponding to the target document, then the image appearance attribute is consistent with the semantic information of the target document means that the topic tag corresponding to the first attribute is a target topic tag that matches the image topic corresponding to the target document;

[0162] If the image appearance attribute includes the image color scheme, the image color scheme corresponds to at least one emotion, and the semantic information of the target document includes the target emotion reflected by the target document, then the image appearance attribute is consistent with the semantic information of the target document means that there is an emotion in the at least one emotion corresponding to the image color scheme that matches the target emotion reflected by the target document;

[0163] If the image content attribute includes matching text, the relevant information about the document content in the target document includes the document content, and the document content includes text content and content matching pictures, then the image content attribute is consistent with the relevant information about the document content in the target document means that the matching text includes the text content in the target document, and the matching text includes the text contained in the content matching pictures;

[0164] If the image content attributes include an image body, the relevant information about the document content in the target document includes the document content, and the document content includes a content illustration, then the image content attributes being consistent with the relevant information about the document content in the target document means that the image body includes a target object in the content illustration; if the image content attributes include an image structure, and the image structure corresponds to a document layout, then the image content attributes being consistent with the relevant information about the document content in the target document means that the document layout corresponding to the image structure is the same as the document layout of the target document.

[0165] In one embodiment, the triggering event includes any one or more of the following: an adding operation of adding a cover to the target document, a sharing operation of sharing the target document in the form of an image, and an inserting operation of inserting an image into the target document.

[0166] In one embodiment, when there is a triggering event for generating an image, the processor 1201 performs the following steps when displaying a matching image that matches the target document:

[0167] When there is a triggering event for generating an image, an image selection window is displayed in the document editing interface, and the image selection window includes at least one matching image that matches the target document and a confirmation selection option; if there is a selected matching image in the image selection window and the confirmation selection option is triggered, the selected matching image is displayed in the document editing interface.

[0168] In one embodiment, the processor 1201 performs the following steps when displaying a matching image that matches the target document: during the generation of the matching image, display a waiting animation; when the generation of the matching image is completed, switch from displaying the waiting animation to displaying the matching image that matches the target document.

[0169] In one embodiment, if the triggering event includes a sharing operation of sharing the target document in the form of an image, the matching image is displayed in an image generation window, and the image generation window includes a sharing operation option; the processor 1201 is also used to execute: when the sharing operation option is triggered, a selection interface for a sharing object is displayed, and the selection interface includes multiple user identifiers and a determination sharing option; if any user identifier is selected and the determination sharing option is triggered, the matching image is shared with the user corresponding to the any user identifier.

[0170] In one embodiment, when there is a triggering event for generating an image, the processor 1201 performs the following steps when displaying a matching image that matches the target document:

[0171] When there is a triggering event for generating an image, semantic analysis is performed on the target document to obtain semantic information of the target document, and image appearance attributes are determined based on image attribute reference information and the semantic information; image content attributes are determined based on relevant information of the document content in the target document; the image appearance attributes and the image content attributes are typeset to generate and display a matching image.

[0172] In one embodiment, the semantic information of the target document includes the image theme corresponding to the target document. When the processor 1201 performs semantic analysis on the target document to obtain the semantic information of the target document, the processor 1201 performs the following steps:

[0173] Acquire text content from the document content of the target document, and preprocess the text content to obtain N sentence sets; each sentence set includes one or more sentences, and the one or more sentences included in each sentence set have the same or similar semantics; perform semantic analysis processing on the N sentence sets, and predict a first sub-image theme based on the result of the semantic analysis processing; perform semantic reasoning processing on the N sentence sets, and predict a second sub-image theme based on the result of the semantic reasoning processing; determine an image theme corresponding to the target document based on the first sub-image theme and the second sub-image theme.

[0174] In one embodiment, the semantic information of the target document also includes the target emotion reflected by the target document. When the processor 1201 performs semantic analysis on the target document to obtain the semantic information of the target document, it executes the following steps: performing sentiment analysis on the set of N sentences to obtain the sentiment analysis result; and determining the target emotion reflected by the target document based on the sentiment analysis result.

[0175] In one embodiment, before determining the image theme corresponding to the target document based on the first sub-image theme and the second sub-image theme, the processor 1201 is further used to execute: after obtaining a trigger event, if a specified theme corresponding to the target document is obtained, then determining the specified theme as the image theme of the target document; after obtaining a trigger event, if the specified theme corresponding to the target document is not obtained, executing the step of determining the image theme corresponding to the target document based on the first sub-image theme and the second sub-image theme.

[0176] In one embodiment, the image appearance attribute includes a first attribute, the first attribute includes any one or more of the following: sticker elements, text styles, and image backgrounds, the image attribute reference information includes multiple first attributes and a subject label corresponding to each first attribute; the semantic information includes an image subject corresponding to the target document; when determining the image appearance attribute based on the image attribute reference information and the semantic information, the processor 1201 performs the following steps:

[0177] The image subject is matched with a plurality of subject tags in the image attribute reference information to determine a target subject tag; and a first attribute corresponding to the target subject tag is determined as a first attribute matching the target document.

[0178] In one embodiment, when the processor 1201 determines the image theme corresponding to the target document based on the first sub-image theme and the second sub-image theme, the processor 1201 performs the following steps: taking both the first sub-image theme and the second sub-image theme as the image theme corresponding to the target document; when the processor 1201 performs similarity matching processing on the image theme and multiple theme tags in the image attribute reference information to determine the target theme tag, the processor 1201 performs the following steps:

[0179] Determine a first topic tag that matches the first sub-image topic from the multiple topic tags, and determine the matching degree corresponding to the first topic tag; determine a second topic tag that matches the second sub-image topic from the multiple topic tags, and determine the matching degree corresponding to the first topic tag; determine a target topic tag from the first topic tag and the second topic tag based on the matching degree corresponding to the first topic tag and the matching degree corresponding to the second topic tag.

[0180] In one embodiment, the processor 1201 is further configured to execute: when there is a triggering event for generating an image, display an image theme adding window, wherein the image theme adding window is used to set the designated theme.

[0181] In one embodiment, the image appearance attributes also include image color matching, the image attribute reference information includes the correspondence between the image color matching and emotions, the semantic information of the target document includes the target emotion reflected by the target document, and the processor 1201 performs the following steps when determining the image appearance attributes based on the image attribute reference information and the semantic information: based on the correspondence between the image color matching and emotions, obtaining the image color matching that matches the target emotion.

[0182] In one embodiment, the relevant information of the document content in the target document includes the document content, the document content includes text content and content pictures, and the image content attributes include matching text. When the processor 1201 determines the image content attributes based on the relevant information of the document content in the target document, it executes the following steps: performing word and sentence segmentation on the text content to obtain a segmentation result; performing text recognition on the content pictures to obtain a recognition result; and adding the segmentation result and the recognition result to the matching text.

[0183] In one embodiment, the relevant information of the document content in the target document includes the document content, the document content includes a content illustration, and the image content attributes include an image body. When the processor 1201 determines the image content attributes based on the relevant information of the document content in the target document, it executes the following steps: performing object recognition processing on the content illustration to obtain an object recognition result; if the object recognition result indicates that the content illustration includes a target object, cropping the target object image from the content illustration, and adding the target object image to the image body.

[0184] In one embodiment, the image appearance attribute includes the first attribute, and the first attribute includes the image background; the processor 1201 is also used to execute: if the object recognition result indicates that the content illustration does not include the target object, then the content illustration is added to the image background.

[0185] In one embodiment, if the object recognition result indicates that the target object is not included in the picture, the processor 1201 adds the picture to the image background and performs the following steps: if the number of words included in the content picture is less than a quantity threshold, the content picture is added to the image background.

[0186] In the embodiment of the present application, a document editing interface is displayed, and the document editing interface can be used to edit the target document; if there is a trigger event for generating an image, the matching image appearance attributes can be designed according to the semantic information of the target document in the document editing interface, and the matching image content attributes can be designed according to the relevant information of the document content in the target document, and finally the image appearance attributes and the image content attributes are typeset to generate a matching image that matches the target document. It can be seen that the matching image is automatic and does not require user participation, which simplifies user operations compared to the prior art, and the design of the matching image refers to the semantic information of the target document and the document content in the target document. The user can intuitively and quickly obtain the core content of the target document through the matching image, which improves the user's reading efficiency of the target document.

[0187] The present application embodiment provides a computer program product or a computer program, wherein the computer program product includes a computer program, and when the computer program is executed by the processor 1201, it is used to load and execute:

[0188] A document editing interface is displayed, wherein the document editing interface is used to edit a target document; when there is a triggering event for generating an image, a matching image that matches the target document is displayed, wherein the image appearance attributes of the matching image are consistent with the semantic information of the target document, and the image content attributes of the matching image are consistent with the relevant information of the document content in the target document.

[0189] In the embodiment of the present application, a document editing interface is displayed, and the document editing interface can be used to edit the target document; if there is a trigger event for generating an image, the matching image appearance attributes can be designed according to the semantic information of the target document in the document editing interface, and the matching image content attributes can be designed according to the relevant information of the document content in the target document, and finally the image appearance attributes and the image content attributes are typeset to generate a matching image that matches the target document. It can be seen that the matching image is automatic and does not require user participation, which simplifies user operations compared to the prior art, and the design of the matching image refers to the semantic information of the target document and the document content in the target document. The user can intuitively and quickly obtain the core content of the target document through the matching image, which improves the user's reading efficiency of the target document.

Claims

1. An image processing method, characterized in that: include: Display a document editing interface, where the document editing interface is used to edit the target document; When there is a triggering event for generating an image, the image appearance attributes are determined according to the semantic information of the target document in the document editing interface, the image content attributes are determined according to the relevant information of the document content in the target document, and the image appearance attributes and the image content attributes are typeset to generate a matching image that matches the target document and display it; the semantic information of the target document includes the image theme corresponding to the target document and the target emotion reflected by the target document, the relevant information of the document content in the target document includes the document content and the document layout, the document content includes text content and content matching pictures, the document layout includes chapter structure and non-chapter structure, the image appearance attributes include a first attribute and image color matching, the first attribute includes sticker elements, text style, image size, image shape and image background, the image content attributes include matching text, image body and image structure, and the image structure includes a long image structure and a short image structure; the image appearance attributes of the matching image are consistent with the semantic information of the target document, and the image content attributes of the matching image are consistent with the relevant information of the document content in the target document; During the generation process of the matching image, the target time required to generate the matching image is estimated, and a waiting animation is processed and displayed according to the target time, wherein the waiting animation is determined according to the core content of the target document; when the generation of the matching image is completed, the display of the matching image matching the target document is switched from the display of the waiting animation; The performing typesetting processing on the image appearance attributes and the image content attributes to generate a matching image that matches the target document includes: performing object recognition processing on the content image to obtain an object recognition result, and if the object recognition result indicates that the content image includes a target object, cropping the target object image from the content image, and adding the target object image to the image body; If the object recognition result indicates that the content picture does not include the target object, and the number of characters included in the content picture is less than a number threshold, the content picture is added to the image background.

2. The method according to claim 1, characterized in that The method further comprises: If the image appearance attribute includes the first attribute, the first attribute corresponds to a topic label, and the semantic information of the target document includes the image theme corresponding to the target document, then the image appearance attribute is consistent with the semantic information of the target document means that the topic label corresponding to the first attribute is a target topic label that matches the image theme corresponding to the target document; If the image appearance attribute includes the image color scheme, the image color scheme corresponds to at least one emotion, and the semantic information of the target document includes the target emotion reflected by the target document, then the image appearance attribute is consistent with the semantic information of the target document means that among the at least one emotion corresponding to the image color scheme, there is an emotion that matches the target emotion reflected by the target document; If the image content attribute includes matching text, the relevant information about the document content in the target document includes the document content, and the document content includes text content and content matching pictures, then the image content attribute is consistent with the relevant information about the document content in the target document means that the matching text includes the text content in the target document, and the matching text includes the text contained in the content matching pictures; If the image content attributes include an image body, the relevant information of the document content in the target document includes the document content, and the document content includes a content illustration, then the image content attributes being consistent with the relevant information of the document content in the target document means that: the image body includes the target object in the content illustration; if the image content attributes include an image structure, and the image structure corresponds to a document layout, then the image content attributes being consistent with the relevant information of the document content in the target document means that: the document layout corresponding to the image structure is the same as the document layout of the target document.

3. The method according to claim 1, characterized in that The triggering event includes any one or more of the following: an adding operation of adding a cover to the target document, a sharing operation of sharing the target document in the form of an image, and an inserting operation of inserting an image into the target document.

4. The method according to claim 3, characterized in that If the target document is a table document, the relevant information of the document content in the target document includes the text content, the text content includes the document title, and the target document includes an option to add a header image, then the operation of adding a cover to the target document means that the option to add a header image in the target document is triggered; the image content attribute of the matching image that matches the target document is consistent with the document title in the target document; Alternatively, the operation of adding a cover to the target document refers to: sharing the target document in the form of an online document to users in a social application.

5. The method according to claim 1, characterized in that When there is a trigger event for generating an image, displaying a matching image that matches the target document includes: When there is a trigger event for generating an image, displaying an image selection window on the document editing interface, the image selection window including at least one matching image that matches the target document and a confirmation selection option; If there is a selected matching image in the image selection window and the confirm selection option is triggered, the selected matching image is displayed in the document editing interface.

6. The method according to claim 3, characterized in that If the trigger event includes a sharing operation of sharing the target document in the form of an image, the matching image is displayed in an image generation window, the image generation window includes a sharing operation option, and the method further includes: When the sharing operation option is triggered, a selection interface for a sharing object is displayed, wherein the selection interface includes multiple user identifiers and a confirmation sharing option; If any user identification is selected and the determining sharing option is triggered, the matching image is shared with the user corresponding to the any user identification.

7. The method according to claim 1, characterized in that When there is a trigger event for generating an image, displaying a matching image that matches the target document includes: When there is a triggering event for generating an image, semantic analysis is performed on the target document to obtain semantic information of the target document, and image appearance attributes are determined based on image attribute reference information and the semantic information.

8. The method according to claim 7, characterized in that The semantic information of the target document includes an image theme corresponding to the target document, and the performing semantic analysis on the target document to obtain the semantic information of the target document includes: Acquire text content from the document content of the target document, and preprocess the text content to obtain N sentence sets; each sentence set includes one or more sentences, and the one or more sentences included in each sentence set have the same or similar semantics; Performing semantic analysis on the N sentence sets, and predicting the first sub-image theme according to the result of the semantic analysis; Performing semantic reasoning processing on the N sentence sets, and predicting the second sub-image theme according to the result of the semantic reasoning processing; An image theme corresponding to the target document is determined based on the first sub-image theme and the second sub-image theme.

9. The method according to claim 8, characterized in that The semantic information of the target document also includes the target emotion reflected by the target document. The semantic analysis of the target document to obtain the semantic information of the target document includes: Performing sentiment analysis on the N sentence sets to obtain sentiment analysis results; The target emotion reflected by the target document is determined according to the emotion analysis result.

10. The method according to claim 8, characterized in that Before determining the image theme corresponding to the target document based on the first sub-image theme and the second sub-image theme, the method further includes: After the trigger event is acquired, if the designated subject corresponding to the target document is acquired, the designated subject is determined as the image subject of the target document; After the trigger event is obtained, if the designated subject corresponding to the target document is not obtained, a step of determining the image subject corresponding to the target document based on the first sub-image subject and the second sub-image subject is performed.

11. The method according to claim 7, characterized in that The image appearance attribute includes a first attribute, the first attribute includes any one or more of the following: sticker elements, text style, and image background, and the image attribute reference information includes a plurality of first attributes and a theme tag corresponding to each first attribute; The semantic information includes the image theme corresponding to the target document; and determining the image appearance attribute based on the image attribute reference information and the semantic information includes: Performing similarity matching processing on the image subject and multiple subject tags in the image attribute reference information to determine a target subject tag; A first attribute corresponding to the target topic tag is determined as a first attribute matching the target document.

12. The method according to claim 8, characterized in that The determining the image theme corresponding to the target document based on the first sub-image theme and the second sub-image theme includes: taking both the first sub-image theme and the second sub-image theme as the image theme corresponding to the target document; The performing similarity matching processing on the image subject and the plurality of subject labels in the image attribute reference information to determine the target subject label includes: Determine a first topic tag that matches the first sub-image theme from the plurality of topic tags, and determine a matching degree corresponding to the first topic tag; Determine a second topic tag that matches the topic of the second sub-image from the plurality of topic tags, and determine a matching degree corresponding to the first topic tag; Based on the matching degree corresponding to the first topic tag and the matching degree corresponding to the second topic tag, a target topic tag is determined from the first topic tag and the second topic tag.

13. The method according to claim 10, characterized in that The method further comprises: When there is a triggering event for generating an image, an image theme adding window is displayed, wherein the image theme adding window is used to set the designated theme.

14. The method according to claim 7, characterized in that The image appearance attribute further includes image color matching, the image attribute reference information includes a correspondence between image color matching and emotion, the semantic information of the target document includes a target emotion reflected by the target document, and determining the image appearance attribute based on the image attribute reference information and the semantic information includes: Based on the correspondence between the image color matching and the emotion, an image color matching that matches the target emotion is acquired.

15. The method according to claim 7, characterized in that The relevant information about the document content in the target document includes the document content, the document content includes text content and content matching pictures, the image content attributes include matching text, and determining the image content attributes based on the relevant information about the document content in the target document includes: Performing word and sentence segmentation on the text content to obtain a segmentation result; Performing text recognition on the content image to obtain a recognition result; The segmentation result and the recognition result are added to the matching text.

16. An image processing device, characterized in that: include: A display unit, used to display a document editing interface, wherein the document editing interface is used to edit the target document; The display unit is further used for, when there is a triggering event for generating an image, determining the image appearance attribute according to the semantic information of the target document in the document editing interface, determining the image content attribute according to the relevant information of the document content in the target document, performing typeset processing on the image appearance attribute and the image content attribute to generate a matching image matching the target document and displaying the matching image; the semantic information of the target document includes the image theme corresponding to the target document and the target emotion reflected by the target document, the relevant information of the document content in the target document includes the document content and the document layout, the document content includes the text content and the content matching picture, the document layout includes the chapter structure and the non-chapter structure, the image appearance attribute includes the first attribute and the image color matching, the first attribute includes the sticker element, the text style, the image size, the image shape and the image background, the image content attribute includes the matching text, the image body and the image structure, the image structure includes the long image structure and the short image structure; the image appearance attribute of the matching image is consistent with the semantic information of the target document, and the image content attribute of the matching image is consistent with the relevant information of the document content in the target document; The display unit is further used to estimate the target time required to generate the matching image during the generation process of the matching image, process and display the waiting animation according to the target time, and the waiting animation is determined according to the core content of the target document; when the generation of the matching image is completed, switch from displaying the waiting animation to displaying the matching image matching the target document; The display unit is further configured to perform object recognition processing on the content image to obtain an object recognition result, and if the object recognition result indicates that the content image includes a target object, crop the target object image from the content image, and add the target object image to the image body; If the object recognition result indicates that the content picture does not include the target object, and the number of characters included in the content picture is less than a number threshold, the content picture is added to the image background.

17. An image processing device, characterized in that: include: a processor adapted to implement one or more computer programs; A computer storage medium storing one or more computer programs, wherein the one or more computer programs are suitable for being loaded by the processor and executing the image processing method according to any one of claims 1 to 15.

18. A computer storage medium, characterized in that The computer storage medium stores a computer program, and when the computer program is executed by a processor, it is used to load and execute the image processing method according to any one of claims 1 to 15.

19. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program is used to load and execute the image processing method according to any one of claims 1 to 15.