Image processing method and system, electronic equipment and computer readable storage medium
By enlarging product images and adding text description information, the problem of low conversion rate of product image materials for white-label and factory-type merchants is solved, and the information density and conversion rate are improved.
Patent Information
- Application Number
- CN202410438305.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2024-09-03
AI Technical Summary
The conversion rate of product image materials from white-label and factory-type merchants is low, mainly due to the large subject size and lack of textual benefits, resulting in low information density, difficulty in displaying product features, and lower than average click-through rates.
By expanding the initial image material and adding text description information to the expanded image, the information density is increased and the conversion rate of the image material is improved.
By expanding the image and adding text description information, the information density of the product image is increased, the conversion rate is improved, and the problem of low conversion rate of product image materials of white brand and factory-type merchants is solved.
Smart Images

Figure CN118587693A
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing, specifically to technical fields such as image recognition and image filling, and more specifically to an image processing method, system, electronic device and computer-readable storage medium. Background Art
[0002] At present, most of the merchants in the object display platform are white-label and factory-type merchants, and these merchants have weak operational capabilities and lack the ability to diagnose and optimize image materials. Therefore, the subject of such images is often too large, and there is a lack of text interest points in the images, resulting in less effective information contained in the images.
[0003] Moreover, compared with images of the same size that contain rich effective information, such images are difficult to display the characteristics of the object, and their click-through rate is also lower than the average click-through rate of images on the object display platform, resulting in a technical problem of low conversion rate of image materials.
[0004] Currently, no effective solution has been proposed to the technical problem of low conversion rate of the above-mentioned image materials. Summary of the invention
[0005] The embodiments of the present application provide an image processing method, system, electronic device, and computer-readable storage medium to at least solve the technical problem of low conversion rate of image materials.
[0006] According to one aspect of the embodiments of the present application, a method for processing an image is provided. The method may include: identifying an initial image material to be processed, wherein the image content of the initial image material includes at least one object to be displayed; performing image expansion processing on the initial image material to obtain a first target image material, and obtaining at least one text description information of the object to be displayed, wherein the target background area corresponding to the object to be displayed in the first target image material is larger than the initial background area corresponding to the object to be displayed in the initial image material, and the text description information is used to describe the characteristics of the object to be displayed; adding the text description information to the target background area in the first target image material to obtain a second target image material; and pushing the second target image material to the object display platform for display.
[0007] According to another aspect of the embodiment of the present application, a method for processing an image is provided. The method can be applied to e-commerce material hosting products, including: identifying an initial image material to be processed, wherein the image content of the initial image material includes at least one object to be traded; performing image expansion processing on the initial image material to obtain a first target image material, and obtaining at least one text description information of the object to be traded, wherein the target background area corresponding to the object to be traded in the first target image material is larger than the initial background area corresponding to the object to be traded in the initial image material, and the text description information is used to describe the characteristics of the object to be traded; adding the text description information to the target background area in the first target image material to obtain a second target image material; and pushing the second target image material to the e-commerce platform for display.
[0008] According to another aspect of the embodiment of the present application, a method for processing an image is provided. The method may include: in response to an input operation on an operation interface, displaying an initial image material to be processed on the operation interface, wherein the image content of the initial image material includes at least one object to be displayed; in response to an image expansion operation on the operation interface, displaying a first target image material on the operation interface, wherein the first target image material is obtained by expanding the initial image material, and the target background area corresponding to the object to be displayed in the first target image material is larger than the initial background area corresponding to the object to be displayed in the initial image material; in response to a text generation operation on the operation interface, displaying at least one text description information of the object to be displayed on the operation interface, wherein the text description information is used to describe the characteristics of the object to be displayed; in response to an image processing operation on the operation interface, displaying a second target image material on the operation interface, wherein the second target image material is obtained by adding the text description information to the target background area in the first target image material.
[0009] According to another aspect of the embodiment of the present application, an image processing system is provided. The system may include: a material hosting product, which is used to identify the initial image material to be processed, wherein the image content of the initial image material includes at least one object to be displayed; performing image expansion processing on the initial image material to obtain a first target image material, and obtaining at least one text description information of the object to be displayed, wherein the target background area corresponding to the object to be displayed in the first target image material is larger than the initial background area corresponding to the object to be displayed in the initial image material, and the text description information is used to describe the characteristics of the object to be displayed; adding the text description information to the target background area in the first target image material to obtain a second target image material; an evaluation platform, which is used to evaluate the second target image material; and an object display platform, which is used to replace the displayed initial image material with a qualified second target image material.
[0010] According to another aspect of an embodiment of the present application, an electronic device is also provided. The electronic device may include a memory and a processor: the memory stores an executable program; the processor is used to run the executable program, and when the executable program is run by the processor, any of the above-mentioned image processing methods is implemented.
[0011] According to another aspect of an embodiment of the present application, a computer-readable storage medium is also provided, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the image processing method in each embodiment of the present application.
[0012] According to another aspect of the embodiments of the present application, a computer program product is also provided, including computer instructions, which implement the image processing method in each embodiment of the present application when executed by a processor.
[0013] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the image processing method in each embodiment of the present application is implemented.
[0014] According to another aspect of the embodiments of the present application, a computer program is also provided. When the computer program is executed by a processor, the image processing method in each embodiment of the present application is implemented.
[0015] In an embodiment of the present application, when performing image processing, an initial image material whose image content includes at least one object to be displayed is obtained, and a first target image material can be obtained by performing image expansion processing on the obtained initial image material, and at least one text description information of the object to be displayed is obtained, and then a second target image material can be obtained by adding the obtained at least one text description information of the object to be displayed to the target background area in the first target image material, and the obtained second target image material is pushed to the object display platform for display, thereby completing the image processing. Since in the process of image processing, not only the initial image material is expanded, but also the text description information of the object to be displayed is added to the target background area in the first target image material obtained by expanding the image, the purpose of increasing the information density of the main image is achieved, thereby achieving the technical effect of improving the conversion rate of the image material, and then solving the technical problem of the low conversion rate of the image material.
[0016] It is easy to notice that the above general description and the following detailed description are only for the purpose of exemplifying and explaining the present application, and do not constitute a limitation of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 is a schematic diagram of an application scenario of an image processing method according to an embodiment of the present application;
[0019] Figure 2 is a flow chart of an image processing method according to an embodiment of the present application;
[0020] Figure 3 is a flow chart of an image processing method according to an embodiment of the present application;
[0021] Figure 4 is a flow chart of an image processing method according to an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of an image processing system according to an embodiment of the present application;
[0023] Figure 6 It is a hardware structure block diagram of a computer terminal (or mobile device) for implementing an image processing method according to an embodiment of the present application;
[0024] Figure 7 is a structural block diagram of a computing environment of an image processing method according to an embodiment of the present application;
[0025] Figure 8 is a structural block diagram of a service grid of an image processing method according to an embodiment of the present application;
[0026] Fig. 9 It is a flow chart of a method for optimizing a main picture of a product based on AIGC picture expansion and adding interest points according to an embodiment of the present application;
[0027] FIG10( a ) is a schematic diagram of an optimization effect of a main image of a product according to an embodiment of the present application;
[0028] FIG10( b ) is a schematic diagram of another optimization effect of a main image of a product according to an embodiment of the present application;
[0029] FIG10( c ) is a schematic diagram of another optimization effect of a main picture of a product according to an embodiment of the present application;
[0030] Fig.11 is a schematic diagram of an image processing device according to an embodiment of the present application;
[0031] Fig.12 is a schematic diagram of an image processing device according to an embodiment of the present application;
[0032] Fig.13 is a schematic diagram of an image processing device according to an embodiment of the present application;
[0033] Fig.14 is a block diagram of an electronic device according to an image processing method of an embodiment of the present application;
[0034] Fig.15 It is a structural block diagram of a computer terminal according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution 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. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0037] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0038] Manufacturers to Consumer (M2C) business model, which can achieve profits and growth by providing consumers with products and services that meet their needs through design, manufacturing, sales and after-sales service;
[0039] Resolution-robust Large Mask Inpainting with Fourier Convolutions (LaMa) can be used to expand the initial image material to reserve enough space for adding text description information (e.g., product interest points);
[0040] A bounding box (bbox) is a rectangular box used to represent the position and size of a target object in an image in computer vision and image processing. It can be obtained by detecting the target object in the image through a boundary detection algorithm, wherein the boundary detection algorithm may be, but is not limited to, an open set target detection algorithm (Grounding-DINO).
[0041] Example 1
[0042] According to an embodiment of the present application, a method for processing an image is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0043] Considering the huge number of model parameters of the large model and the limited computing resources of the mobile terminal, the above-mentioned image processing method provided in the embodiment of the present application can be applied to the following Figure 1 The application scenarios shown are not limited to these. Figure 1 In the application scenario shown, the image processing method is deployed in the server 10, which can be a cloud. The server 10 can be connected to one or more client devices 20 through a local area network connection, a wide area network connection, an Internet connection, or other types of data networks. The client devices 20 here may include but are not limited to: smart phones, tablet computers, laptops, PDAs, personal computers, smart home devices, vehicle-mounted devices, etc. The client devices 20 together constitute the client relative to the server 10. On the graphical user interface of the client device 20, an operation interface for displaying the second target image material can be deployed, and the operation interface can be an operation interface of an e-commerce platform. The client device 20 can interact with the user through the graphical user interface to implement the call of the image processing method, and then implement the image processing method provided in the embodiment of the present application.
[0044] In the embodiment of the present application, the system composed of the client device and the server can perform the following steps: when performing image processing, the user can use the client device such as a mobile phone, a desktop computer, a laptop computer, etc. to communicate data with the server through the network. After receiving the recognition instruction sent by the user through the client device, the server can perform step S102 to identify the initial image material to be processed, or perform step S104 to expand the initial image material to obtain the first target image material, and obtain at least one text description information of the object to be displayed, and can also perform step S106 to add the text description information to the target background area in the first target image material to obtain the second target image material, and can perform step S108 to push the second target image material to the object display platform for display. The second target image material can be output to the client device, and the second target image material can be displayed in the client device. In the above process, after the server receives the display instruction sent by the user through the client device, the second target image material can be sent to the client device through the server. It should be noted that when the operating resources of the client device can meet the deployment and operating conditions of the image processing method, the embodiment of the present application can be performed in the client device.
[0045] Under the above operating environment, this application provides Figure 2 The processing method of the image shown. Figure 2 is a flowchart of an image processing method according to Embodiment 1 of the present application, such as Figure 2 As shown, the method may include the following steps:
[0046] Step S202: identifying the initial image material to be processed.
[0047] In the technical solution provided in the above step S202 of the present application, the image content of the above-mentioned initial image material may include at least one object to be displayed, the above-mentioned initial image material may be an original commodity image to be processed, and the above-mentioned object to be displayed may be at least one commodity to be traded in the object display platform. For example, the above-mentioned object to be displayed may be at least one of the following commodities: air conditioners, mattresses, desk lamps, refrigerators, and vinyl record players, etc. This is only for illustration and no specific limitation is made.
[0048] This embodiment identifies the initial image material to be processed, for example, obtains the bounding box of the object to be displayed in the initial image material, and the initial text information in the initial image material, and determines the initial image material to be processed by judging the relationship between the size of the bounding box and the size threshold of the bounding box, and judging the relationship between the initial text information and the non-text description information. For example, if the size of the bounding box is greater than the size threshold of the bounding box, and the initial text information is non-text description information, then the initial image material where the object to be displayed is located is determined as the initial image material to be processed. Alternatively, the initial image material to be processed can be determined by judging the relationship between the size of the bounding box and the size threshold of the bounding box, and judging the relationship between the text amount of the initial text information and the text amount threshold. For example, if the size of the bounding box is greater than the size threshold of the bounding box, and the text amount of the initial text information is less than the text amount threshold, then the initial image material where the object to be displayed is located is determined as the initial image material to be processed. This is only for illustration and no specific limitation is made.
[0049] It should be noted that the above-mentioned initial text information may include at least one of the following information: initial text description information in the initial image material and brand information in the initial image material, etc., which is only used as an example here without specific limitation. The above-mentioned non-text description information can be used to fail to describe the characteristics of the object to be displayed. The above-mentioned size threshold and the above-mentioned text amount threshold can vary according to different object display platforms. The above-mentioned bounding box can be obtained by detecting the object to be displayed in the initial image material through a boundary detection algorithm, wherein the boundary detection algorithm can be but is not limited to: Grounding-DINO algorithm, which is only used as an example here without specific limitation.
[0050] Step S204: perform image expansion processing on the initial image material to obtain a first target image material, and obtain at least one text description information of the object to be displayed.
[0051] In the technical solution provided in the above step S204 of the present application, after the initial image material to be processed is identified, the first target image material can be obtained by expanding the initial image material, and at least one text description information of the object to be displayed can be obtained.
[0052] In this embodiment, the target background area corresponding to the object to be displayed in the first target image material may be larger than the initial background area corresponding to the object to be displayed in the initial image material, the text description information may be used to describe the characteristics of the object to be displayed, the image expansion processing may be an expansion or extension operation performed on the initial image material, the target background area may be used to represent the background area of the object to be displayed in the first target image material obtained after the image expansion processing, the initial background area may be used to represent the background area of the object to be displayed in the initial image material, and the characteristics of the object to be displayed may be used to represent the attributes of the goods to be traded in the object display platform.
[0053] After identifying the initial image material to be processed, this embodiment performs image expansion processing on the initial image material to obtain a first target image material, and obtains at least one text description information of the object to be displayed. For example, the first target image material can be obtained by expanding or extending the initial background area in the initial image material, and on the basis of determining the object information of the object to be displayed, at least one text description information of the object to be displayed can be determined to describe the characteristics of the object to be displayed, wherein the object information can be used to represent the relevant information of the goods to be traded in the object display platform, and the relevant information of the goods can include at least one of the following information: product title information, product category-property-property value (Category-Property-Value, abbreviated as CPV) knowledge system information and product details page information, etc.
[0054] It should be noted that the above method of obtaining the first target image material and text description information is only an example and is not specifically limited here. As long as the first target image material can be obtained by expanding the initial image material and at least one text description information of the object to be displayed is obtained, it is within the protection scope of the embodiments of the present application.
[0055] Step S206: adding the text description information to the target background area in the first target image material to obtain a second target image material.
[0056] In the technical solution provided in the above step S206 of the present application, after the initial image material is expanded to obtain the first target image material and at least one text description information of the object to be displayed is obtained, the second target image material can be obtained by adding the text description information to the target background area in the first target image material.
[0057] In this embodiment, the second target image material may be used to represent the first target image material integrated with the text description information.
[0058] Optionally, after the initial image material is expanded to obtain a first target image material and at least one text description information of the object to be displayed is acquired, the text description information is added to the target background area in the first target image material to obtain a second target image material. For example, according to the rule that the text description information is displayed in the target background area, the second target image material can be obtained by adding the acquired text description information to the target background area in the first target image material, thereby achieving the technical effect of improving the conversion rate from browsing the object in the image to signing an order.
[0059] Optionally, an area in the target background area with high clarity and no cluttered elements is determined as a sub-target background area in the target background area to which text description information can be added, and then at least one rule stored in the rule library is updated in real time, and the above rule is called from the updated rule library. According to the called rule, a second target image material can be obtained by adding the acquired text description information to the sub-target background area, that is, the first target image material integrated with the text description information can be obtained. This is only for example and is not specifically limited.
[0060] It should be noted that the rules for displaying the above-mentioned text description information in the target background area may include at least the following contents: font format and layout position of the text description information, etc. The font format may include: font color, size and background, etc. The layout position may include: text description information arranged in the upper right corner, text description information arranged in the lower right corner, text description information arranged in the upper left corner and text description information arranged in the lower left corner, etc. This is only for example and is not a specific limitation.
[0061] Step S208: Push the second target image material to the object display platform for display.
[0062] In the technical solution provided in the above step S208 of the present application, after the text description information is added to the target background area in the first target image material to obtain the second target image material, the second target image material can be pushed to the object display platform for display.
[0063] In this embodiment, the object display platform may be any one of the following platforms: an e-commerce platform, a long video platform, a short video platform, etc. This is only an example and is not specifically limited.
[0064] In this embodiment, after the text description information is added to the target background area in the first target image material to obtain the second target image material, the second target image material is pushed to the object display platform for display. For example, the first target image material integrated with the text description information is pushed to the object display platform. When the object display platform receives the first target image material integrated with the text description information, the first target image material integrated with the text description information is displayed on the object display platform.
[0065] Through the above steps S202 to S208 of the present application, when performing image processing, an initial image material whose image content includes at least one object to be displayed is obtained, and a first target image material can be obtained by expanding the obtained initial image material, and at least one text description information of the object to be displayed is obtained, and then a second target image material can be obtained by adding the obtained at least one text description information of the object to be displayed to the target background area in the first target image material, and the obtained second target image material is pushed to the object display platform for display, thereby completing the image processing. Since in the process of image processing, not only the initial image material is expanded, but also the text description information of the object to be displayed is added to the target background area in the first target image material obtained by expanding, the purpose of increasing the information density of the main image is achieved, thereby achieving the technical effect of improving the conversion rate of the image material, and then solving the technical problem of the low conversion rate of the image material.
[0066] The above method of this embodiment is further introduced below.
[0067] As an optional implementation, step S204, expanding the initial image material to obtain a first target image material, includes: determining attribute information of the object to be displayed in the initial image material; based on the attribute information, expanding the initial background area in the initial image material to obtain the first target image material including the target background area.
[0068] In this embodiment, the above attribute information may be used to at least represent the initial background area information and the position information of the detection frame of the object to be displayed in the initial image material.
[0069] In this embodiment, after the initial image material to be processed is identified, the attribute information of the object to be displayed in the initial image material is determined; based on the attribute information, the initial background area in the initial image material is expanded to obtain a first target image material including a target background area. For example, by detecting the area occupied by the object to be displayed in the initial image material, the attribute information of the object to be displayed in the initial image material can be obtained, and then based on the obtained attribute information, by expanding the initial background area in the initial image material, the first target image material including the target background area can be obtained.
[0070] It should be noted that the above method for obtaining the first target image material is only an example and is not specifically limited here. As long as the process and method can expand the initial background area in the initial image material according to the attribute information to obtain the first target image material including the target background area, it is within the protection scope of the embodiments of the present application.
[0071] As an optional implementation, based on attribute information, the initial background area in the initial image material is expanded to obtain a first target image material including a target background area, including: determining the distance between the detection box and the border of the initial image material; according to the distance, determining the set of pixel points to be expanded to in the initial background area; based on the pixel point set, expanding the initial background area in the initial image material to obtain the first target image material including the target background area.
[0072] In this embodiment, the above-mentioned attribute information may include a detection box of the object to be displayed in the initial image material. The distance between the above-mentioned detection box and the border of the initial image material may be negatively correlated with the number of pixels in the pixel point set. For example, if the detection box is closer to the edge of the initial image material, the pixel point to be extended to the edge is larger. This is only for example and no specific limitation is made.
[0073] In this embodiment, after determining the attribute information of the object to be displayed in the initial image material, the distance between the detection box and the border of the initial image material is determined; according to the distance, the set of pixels to be expanded in the initial background area is determined; based on the set of pixels, the initial background area in the initial image material is expanded to obtain a first target image material including a target background area. For example, based on determining the coordinates of the four vertices of the detection box and the coordinates of the four vertices of the border of the initial image material, the distance between the detection box and the border of the initial image material can be calculated. According to the calculated distance, the set of pixels to be expanded in the initial background area can be determined. According to the set of pixels to be expanded, the first target image material including the target background area can be obtained by expanding or extending the initial background area in the initial image material. This is only an example and is not specifically limited.
[0074] Optionally, based on the determination of the coordinates of the four vertices of the detection box and the coordinates of the four vertices of the border of the initial image material, the distance between the detection box and the border of the initial image material can be calculated. For example, the distances between the four vertices of the detection box and the four vertices of the border of the initial image material are calculated respectively, and the minimum distance among the calculated multiple distances is used as the distance between the detection box and the border of the initial image material.
[0075] As an optional implementation, based on a pixel point set, an initial background area in an initial image material is expanded to obtain a first target image material including a target background area, including: inputting a target size corresponding to the initial image material and the pixel point set into an expansion model; using the expansion model, the initial background area in the initial image material is expanded from an initial size to a target size to obtain a target background area, and an image including the target background area and an object to be displayed is determined as the first target image material.
[0076] In this embodiment, the above-mentioned image expansion model can be obtained by training a fast Fourier convolutional network and a generative adversarial network using image samples associated with the object display platform. The above-mentioned target size can be used to represent the size to which the initial background area is to be expanded or to which it is to be expanded. The size of the above-mentioned first target image material can be the same as the size of the initial image material. For example, the image sample can be a product picture related to the e-commerce platform. This is only for illustration and no specific limitation is made.
[0077] In this embodiment, after determining the pixel point set to be expanded to in the initial background area according to the distance, the target size corresponding to the initial image material and the pixel point set is input into the image expansion model; using the image expansion model, the initial background area in the initial image material is expanded from the initial size to the target size to obtain the target background area, and the image including the target background area and the object to be displayed is determined as the first target image material. For example, the initial image material and the target size corresponding to the pixel point set are input into the image expansion model, and then the initial background area in the initial image material is expanded or extended by using the image expansion model. The initial background area can be expanded from the initial size to the target size, and the initial background area expanded or extended to the target size is determined as the target background area, and the image including the target background area and the object to be displayed is determined as the first target image material.
[0078] As an optional implementation, the method also includes: preprocessing the initial image material as follows: removing pixel points whose pixel values are less than a pixel value threshold from the initial image material; and / or removing a solid color border from the initial image material; determining the attribute information of the object to be displayed in the initial image material, including: determining the attribute information of the object to be displayed in the preprocessed initial image material.
[0079] In this embodiment, the pixel value threshold can be adjusted according to different initial image materials, and the solid color border can be a white border, a black border, etc. This is only an example and is not specifically limited.
[0080] In this embodiment, on the basis of identifying the initial image material to be processed, if there are pixel points with pixel values less than the pixel value threshold and a solid color border in the initial image material, the pixel points with pixel values less than the pixel value threshold and the solid color border are removed; if there are no pixel points with pixel values less than the pixel value threshold in the initial image material and only a solid color border exists, only the solid color border is removed; if there are pixel points with pixel values less than the pixel value threshold and no solid color border exists in the initial image material, only the pixel points with pixel values less than the pixel value threshold are removed, thereby completing the preprocessing operation of the initial image material, thereby achieving the purpose of preprocessing the image before expansion.
[0081] In this embodiment, after the initial image material is preprocessed, the attribute information of the object to be displayed in the preprocessed initial image material can be obtained by detecting the area occupied by the object to be displayed in the preprocessed initial image material.
[0082] As an optional implementation, step S204, obtaining at least one text description information of the object to be displayed, includes: obtaining object information of the object to be displayed; and generating text description information based on the object information.
[0083] In this embodiment, the above-mentioned object information can be used to display the objects to be displayed. For example, the above-mentioned object information can be used to represent the relevant information of the goods to be traded in the object display platform. The relevant information of the goods may include at least one of the following information: product title information, CPV information and product details page information, etc. This is only for illustration without specific limitation.
[0084] In this embodiment, after the initial image material to be processed is identified, the object information of the object to be displayed is obtained; based on the object information, text description information is generated, for example, by using optical character recognition (OCR) technology to perform text recognition on the product details page, the product details page information can be obtained, and by extracting the registration information of the product, the product title information and CPV information can be obtained. On the basis of obtaining the above information, the above information is converted, and at least one text description information of the object to be displayed is generated based on the converted information, thereby achieving the purpose of accurately describing the characteristics of the object to be displayed.
[0085] As an optional implementation, generating text description information based on object information includes: converting the object information into first prompt information; inputting the first prompt information into a text generation model; and using the first prompt information to guide the text generation model to generate text description information.
[0086] In this embodiment, the first prompt information may be obtained by splicing at least one of the object information according to a preset rule, and the text generation model may be obtained by training a large model using object information samples associated with the object display platform. For example, the object information samples may include: product title information samples, CPV information samples, and product details page information samples, etc. The large model may be but is not limited to: a text pre-trained large model, which is only used as an example here without specific limitation.
[0087] In this embodiment, after obtaining the object information of the object to be displayed, the object information is converted into first prompt information; the first prompt information is input into the text generation model; the first prompt information is used to guide the text generation model to generate text description information. For example, according to a preset rule, the object information can be converted into the first prompt information by splicing at least one of the information in the object information, and then the obtained first prompt information is input into the text generation model; and in the text generation model, the first prompt information is used to guide the text generation model to generate a candidate text description information set, and then at least one text description information can be determined from the generated candidate text description information set, thereby achieving the purpose of accurately describing the characteristics of the object to be displayed.
[0088] As an optional implementation, converting object information into first prompt information includes: splicing at least one of the following information in the object information to obtain spliced information: title information of the object to be displayed, attribute information of the object to be displayed, and detail information of the object to be displayed; combining the spliced information and target conditions to generate the first prompt information.
[0089] In this embodiment, the above-mentioned target conditions can be used to indicate the conditions satisfied by the text description information to be generated. For example, the above-mentioned target conditions can be conditions for limiting the lower and upper word counts of the splicing information. The title information of the above-mentioned object to be displayed can be product title information. The attribute information of the above-mentioned object to be displayed can be CPV information. The detail information of the above-mentioned object to be displayed can be product detail page information. This is only for illustration and no specific limitation is made.
[0090] Optionally, after obtaining the object information of the object to be displayed, at least one of the following information in the object information is spliced to obtain spliced information: title information of the object to be displayed, attribute information of the object to be displayed, and detail information of the object to be displayed; the spliced information and the target condition are combined to generate the first prompt information. For example, according to a preset rule, the spliced information can be obtained by splicing at least one of the following information in the object information: title information of the object to be displayed, attribute information of the object to be displayed, and detail information of the object to be displayed, and then according to the target condition, the first prompt information can be obtained by restricting the obtained spliced information.
[0091] It should be noted that the above method of generating the first prompt information is only an example and is not specifically limited here. As long as the method can convert the object information into the first prompt information, it is within the protection scope of the embodiments of the present application.
[0092] As an optional implementation, using the first prompt information to guide the text generation model to generate text description information includes: using the first prompt information to guide the text generation model to generate a candidate text description information set; in response to a selection operation on the candidate text description information set, determining at least one candidate text description information selected from the candidate text description information set as at least one text description information.
[0093] In this embodiment, the candidate text description information set may be used to represent multiple candidate interest points.
[0094] In this embodiment, after the first prompt information is input into the text generation model, the first prompt information is used to guide the text generation model to generate a candidate text description information set; in response to a selection operation on the candidate text description information set, at least one candidate text description information selected from the candidate text description information set is determined as at least one text description information. For example, the first prompt information is used to guide the text generation model to generate a candidate text description information set, and then when a selection operation is performed on the candidate text description information set, at least one candidate text description information is selected from the generated candidate text description information set, and the selected at least one candidate text description information is determined as at least one text description information, thereby achieving the purpose of accurately describing the characteristics of the object to be displayed.
[0095] As an optional implementation, step S206, adding text description information to the target background area in the first target image material to obtain a second target image material, includes: adding text description information to the target background area in the first target image material according to a text rendering format to obtain a second target image material.
[0096] In this embodiment, the above-mentioned text rendering format can be used to represent the rules for displaying text description information in the target background area. The rules for displaying text description information in the target background area may include at least the following contents: font format and layout position of the text description information, etc. The font format may include: font color, size (also known as font size) and background, etc. The layout position may include: text description information arranged in the upper right corner, text description information arranged in the lower right corner, text description information arranged in the upper left corner and text description information arranged in the lower left corner, etc. This is only for example and is not a specific limitation.
[0097] In this embodiment, after the initial image material is expanded to obtain the first target image material and at least one text description information of the object to be displayed is obtained, the text description information is added to the target background area in the first target image material according to the text rendering format to obtain the second target image material. For example, the area in the target background area with high clarity and no cluttered elements is determined as the sub-target background area in the target background area to which the text description information can be added, and at least one rule stored in the rule library is updated in real time, and the above rule is called from the updated rule library. According to the called rule, the second target image material can be obtained by adding the obtained text description information to the sub-target background area, that is, the first target image material integrated with the text description information can be obtained, thereby achieving the technical effect of improving the conversion rate from browsing the object in the image to signing the order.
[0098] As an optional implementation, text description information is added to the target background area in the first target image material according to a text rendering format to obtain a second target image material, including: rendering the text description information according to the text rendering format to obtain a rendering result; and combining the rendering result with the target background area in the first target image material to obtain the second target image material.
[0099] In this embodiment, the above rendering result can be used to represent text description information rendered according to the text rendering format.
[0100] In this embodiment, after the initial image material is expanded to obtain the first target image material and at least one text description information of the object to be displayed is obtained, the text description information is rendered according to the text rendering format to obtain a rendering result; the rendering result is combined with the target background area in the first target image material to obtain the second target image material. For example, at least one rule stored in the rule library is updated in real time, and the above rule is called from the updated rule library. According to the called rule, the text description information is rendered to obtain the rendering result. That is to say, according to the called rule, the text description information is formatted and positioned to obtain the rendering result, and the area in the target background area with high clarity and no messy elements is determined as a sub-target background area in the target background area to which text description information can be added. By combining the obtained rendering result with the sub-target background area, the second target image material can be obtained, that is, the first target image material integrated with the text description information can be obtained, thereby achieving the technical effect of improving the conversion rate from browsing objects in the image to signing orders.
[0101] As an optional implementation, step S202, identifying the initial image material to be processed, includes: detecting a detection frame of the object to be displayed in the initial image material, and the initial text information in the initial image material; if the size of the detection frame is greater than a first size threshold, and the initial text information is non-text description information, or the initial text information is initial text description information with a text amount less than a text amount threshold, then the initial image material is determined as the initial image material to be processed.
[0102] In this embodiment, the non-text description information can be used to fail to describe the characteristics of the object to be displayed, the initial text description information can be used to initially describe the characteristics of the object to be displayed, the first size threshold and the text amount threshold can vary according to different object display platforms. For example, if the object display platform is an e-commerce platform, the first size threshold can be 80%, the text amount threshold can be 1%, and the detection box can be a bbox bounding box. Here, the object display platform is an e-commerce platform for example only, without specific limitation. The object display platform can also be a long video platform, a short video platform, etc.
[0103] In this embodiment, the initial image material to be processed is identified, for example, a detection frame of the object to be displayed in the initial image material and the initial text information in the initial image material are detected. The initial image material to be processed can be determined by judging the relationship between the size of the detection frame and the first size threshold of the detection frame, and judging the relationship between the initial text information and the non-text description information. For example, if the size of the detection frame is greater than the first size threshold, and the initial text information is non-text description information, the initial image material where the object to be displayed is located is determined as the initial image material to be processed. Alternatively, the initial image material to be processed can be determined by judging the relationship between the size of the detection frame and the first size threshold of the detection frame, and judging the relationship between the text amount of the initial text information and the text amount threshold. For example, if the size of the detection frame is greater than the first size threshold, and the text amount of the initial text information is less than the text amount threshold, the initial image material where the object to be displayed is located is determined as the initial image material to be processed.
[0104] It should be noted that the above-mentioned initial text information may include at least one of the following information: initial text description information in the initial image material and brand information in the initial image material, etc. The above-mentioned non-text description information may be non-interest point text information (for example, brand information of the product). The text volume of the above-mentioned initial text information is less than the text volume threshold, which may indicate that there are too few interest points in the initial image material. This is only for illustration without specific limitation.
[0105] As an optional implementation, detecting the size of a detection frame of an object to be displayed in an initial image material includes: generating second prompt information based on type information of the object to be displayed and / or subject information of the object to be displayed; inputting the initial image material and the second prompt information into an object detection model; and using the second prompt information to guide the object detection model to detect the initial image material to obtain a detection frame of the object to be displayed in the initial image material.
[0106] In this embodiment, the above-mentioned object detection model can be used to detect the detection frame of the object in the input image, the above-mentioned type information can be used to indicate the category of the goods to be displayed, and the above-mentioned subject information can be used to indicate the main information in the initial image material. For example, the above-mentioned object detection model can be implemented based on the Grounding-DINO technology. This is only for illustration here without specific limitation.
[0107] In this embodiment, the type information of the object to be displayed and / or the subject information of the object to be displayed are used to generate the second prompt information; the initial image material and the second prompt information are input into the object detection model; the second prompt information is used to guide the object detection model to detect the initial image material, and obtain the detection frame of the object to be displayed in the initial image material. For example, the second prompt information can be generated by fusing the type information of the object to be displayed and the subject information of the object to be displayed, and then the initial image material and the generated second prompt information are input into the object detection model, and the input second prompt information is used to guide the object detection model to detect the object to be displayed in the initial image material, so as to obtain the detection frame of the object to be displayed in the initial image material.
[0108] As an optional implementation, the method further includes: merging detection frames of multiple objects to be displayed in the initial image material to obtain a target detection frame.
[0109] In this embodiment, the size of the detection frame may include the size of the target detection frame, and the merging may be implemented according to a minimum (min)-maximum (max) rule.
[0110] In this embodiment, the detection frames of multiple objects to be displayed in the initial image material are merged to obtain a target detection frame. For example, if there are multiple objects to be displayed in the initial image material, the second prompt information input is used to guide the object detection model to detect the multiple objects to be displayed in the initial image material, so as to obtain the detection frames of each object to be displayed in the initial image material. Then, the target detection frame can be obtained by merging the detection frames of the multiple objects to be displayed in the initial image material.
[0111] Optionally, find the bbox of each object to be displayed, and record the upper left corner coordinate point and the lower right corner coordinate point of each bbox respectively, and then take the smallest horizontal coordinate (min_x) and vertical coordinate (min_y) of the upper left corner coordinate points of all bboxes as the upper left corner coordinate of the merged target detection box (combine_bbox), that is, combine_x upper left = min(x_upper left 1, x_upper left 2, x_upper left 3, ...), combine_y upper left = min(y_upper left 1, y_upper left 2, y_upper left 3, ...), and take the lower right corner coordinate point of all bboxes The largest horizontal coordinate (max_x) and vertical coordinate (max_y) in the merging are used as the coordinates of the lower right corner of the merged combine_bbox, that is, combine_x lower right = min(x_lower right 1, x_lower right 2, x_lower right 3, ...), combine_y lower right = min(y_lower right 1, y_lower right 2, y_lower right 3, ...), thus we can get the final combine_bbox = ([combine_x upper left, combine_y upper left], [combine_x lower right, combine_y lower right]) after multiple bboxes are merged.
[0112] As an optional implementation manner, detecting the initial text information in the initial image material includes: performing text recognition on the initial image material to obtain the initial text information.
[0113] In this embodiment, the above text recognition may be implemented based on OCR technology, which is only used as an example and is not specifically limited.
[0114] In this embodiment, text recognition is performed on the initial image material to obtain initial text information. For example, by utilizing OCR technology to perform text recognition on the text information in the initial image material, the initial text information can be obtained. For example, at least the initial text description information in the initial image material and the brand information in the initial image material can be obtained. This is only for illustration and no specific limitation is made.
[0115] As an optional implementation, the method further includes: if the size of the text in the initial text information is smaller than a second size threshold, and / or the position information of the text in the initial text information is target position information, determining that the initial text information is non-text description information.
[0116] In this embodiment, the target position information can be used to represent the position information of the four corners close to the initial image material. The second size threshold can vary according to different object display platforms. For example, if the object display platform is an e-commerce platform, the second size threshold can be 5%. Here, the object display platform is an e-commerce platform only for illustration without specific limitation. The object display platform can also be an application platform such as a long video platform and a short video platform.
[0117] In this embodiment, by judging the relationship between the size of the text in the initial text information and the second size threshold, and / or by judging the relationship between the position information of the text in the initial text information and the target position information, it can be determined that the initial text information is non-text description information. For example, if the size of the text in the initial text information is smaller than the second size threshold, and the position information of the text in the initial text information is the target position information, the initial text information is determined to be non-text description information. If the size of the text in the initial text information is greater than or equal to the second size threshold, or the position information of the text in the initial text information is the target position information, the initial text information is determined to be non-text description information. If the size of the text in the initial text information is smaller than the second size threshold, or the position information of the text in the initial text information is not the target position information, the initial text information is determined to be non-text description information.
[0118] The present application also provides an image processing method in an e-commerce material hosting product scenario. Figure 3 is a flow chart of an image processing method according to an embodiment of the present application, such as Figure 3 As shown, the method may include the following steps:
[0119] Step S302: identifying the initial image material to be processed.
[0120] In the technical solution provided in the above step S302 of the present application, the image content of the above-mentioned initial image material may include at least one object to be traded, the above-mentioned initial image material may be the original product image to be processed, and the above-mentioned object to be traded may be at least one product to be traded on the e-commerce platform. For example, the above-mentioned object to be traded may be at least one of the following products: mobile phones, headphones, washing machines, microwave ovens, and vinyl record players, etc. This is only for illustration and no specific limitation is made.
[0121] In this embodiment, the initial image material to be processed is identified, for example, a bounding box of the object to be traded in the initial image material and the initial text information in the initial image material are obtained, and the initial image material to be processed can be determined by judging the relationship between the size of the bounding box and the size threshold of the bounding box, and judging the relationship between the initial text information and the non-text description information. For example, if the size of the bounding box is larger than the size threshold of the bounding box, and the initial text information is non-text description information, then the initial image material where the object to be traded is located is determined as the initial image material to be processed. Alternatively, the initial image material to be processed can be determined by judging the relationship between the size of the bounding box and the size threshold of the bounding box, and judging the relationship between the text amount of the initial text information and the text amount threshold. For example, if the size of the bounding box is larger than the size threshold of the bounding box, and the text amount of the initial text information is smaller than the text amount threshold, then the initial image material where the object to be displayed is located is determined as the initial image material to be processed. This is only for illustration and no specific limitation is made.
[0122] It should be noted that the above-mentioned initial text information may include at least one of the following information: initial text description information in the initial image material and brand information in the initial image material, etc. The above-mentioned non-text description information can be used to fail to describe the characteristics of the object to be traded. The above-mentioned size threshold and the above-mentioned text amount threshold can vary according to different object display platforms. The above-mentioned bounding box can be obtained by detecting the object to be traded in the initial image material through a boundary detection algorithm, wherein the boundary detection algorithm can be but is not limited to: Grounding-DINO algorithm, which is only used as an example here without specific limitation.
[0123] Step S304: perform image expansion processing on the initial image material to obtain a first target image material, and obtain at least one text description information of the object to be traded.
[0124] In the technical solution provided in the above step S304 of the present application, after the initial image material to be processed is identified, the first target image material can be obtained by expanding the initial image material, and at least one text description information of the object to be traded can be obtained.
[0125] In this embodiment, the target background area corresponding to the object to be traded in the first target image material may be larger than the initial background area corresponding to the object to be traded in the initial image material, the text description information may be used to describe the characteristics of the object to be traded, the image expansion processing may be an expansion or extension operation performed on the initial image material, the target background area may be used to represent the background area of the object to be traded in the first target image material obtained after the image expansion processing, the initial background area may be used to represent the background area of the object to be traded in the initial image material, and the characteristics of the object to be traded may be used to represent the attributes of the goods to be traded in the e-commerce platform.
[0126] After identifying the initial image material to be processed, this embodiment performs image expansion processing on the initial image material to obtain a first target image material, and obtains at least one text description information of the object to be traded. For example, the first target image material can be obtained by expanding or extending the initial background area in the initial image material, and on the basis of determining the object information of the object to be traded, at least one text description information of the object to be traded can be determined to describe the characteristics of the object to be traded, wherein the object information can be used to represent the relevant information of the goods to be traded in the e-commerce platform, and the relevant information of the goods may include at least one of the following information: product title information, CPV information and product details page information, etc.
[0127] Step S306: Add the text description information to the target background area in the first target image material to obtain a second target image material.
[0128] In the technical solution provided in the above step S306 of the present application, after the initial image material is expanded to obtain the first target image material and at least one text description information of the object to be traded is obtained, the second target image material can be obtained by adding the text description information to the target background area in the first target image material.
[0129] In this embodiment, the second target image material may be used to represent the first target image material integrated with the text description information.
[0130] Optionally, after the initial image material is expanded to obtain a first target image material and at least one text description information of the object to be displayed is acquired, the text description information is added to the target background area in the first target image material to obtain a second target image material. For example, according to the rule that the text description information is displayed in the target background area, the second target image material can be obtained by adding the acquired text description information to the target background area in the first target image material, thereby achieving the technical effect of improving the conversion rate from browsing the object in the image to signing an order.
[0131] Optionally, an area in the target background area with high clarity and no cluttered elements is determined as a sub-target background area in the target background area to which text description information can be added, and then at least one rule stored in the rule library is updated in real time, and the above rule is called from the updated rule library. According to the called rule, a second target image material can be obtained by adding the acquired text description information to the sub-target background area, that is, the first target image material integrated with the text description information can be obtained. This is only for example and is not specifically limited.
[0132] It should be noted that the rules for displaying the above-mentioned text description information in the target background area may include at least the following contents: font format and layout position of the text description information, etc. The font format may include: font color, size and background, etc. The layout position may include: text description information arranged in the upper right corner, text description information arranged in the lower right corner, text description information arranged in the upper left corner and text description information arranged in the lower left corner, etc. This is only for example and is not a specific limitation.
[0133] Step S308: Push the second target image material to the e-commerce platform for display.
[0134] In the technical solution provided in the above step S308 of the present application, after the text description information is added to the target background area in the first target image material to obtain the second target image material, the second target image material can be pushed to the e-commerce platform for display.
[0135] In this embodiment, after the text description information is added to the target background area in the first target image material to obtain the second target image material, the second target image material is pushed to the object display platform for display. For example, the first target image material integrated with the text description information is pushed to the e-commerce platform. When the e-commerce platform receives the first target image material integrated with the text description information, the first target image material integrated with the text description information is displayed on the e-commerce platform.
[0136] Through the above steps S302 to S308 of the present application, when performing image processing, an initial image material whose image content includes at least one object to be traded is obtained, and by expanding the obtained initial image material, a first target image material can be obtained, and at least one text description information of the object to be traded is obtained, and then by adding the obtained at least one text description information of the object to be traded to the target background area in the first target image material, a second target image material can be obtained, and the obtained second target image material is pushed to the e-commerce platform for display, thereby completing the image processing. Since in the process of image processing, not only the initial image material is expanded, but also the text description information of the object to be traded is added to the target background area in the first target image material obtained by expanding, the purpose of increasing the information density of the main image is achieved, thereby achieving the technical effect of improving the conversion rate of the image material, and then solving the technical problem of the low conversion rate of the image material.
[0137] The embodiment of the present application also provides a method for determining a model. Figure 4 is a flow chart of an image processing method according to an embodiment of the present application, such as Figure 4 As shown, the method may include the following steps:
[0138] Step S402: In response to an input operation on the operation interface, the initial image material to be processed is displayed on the operation interface.
[0139] In the technical solution provided in the above step S402 of the present application, the image content of the above-mentioned initial image material may include at least one object to be displayed, the above-mentioned initial image material may be the original commodity image to be processed, the above-mentioned object display platform may be but not limited to an e-commerce platform, and the above-mentioned object to be displayed may be at least one commodity to be traded in the object display platform. For example, the above-mentioned object to be displayed may be at least one of the following commodities: air conditioners, mattresses, desk lamps, refrigerators, and vinyl record players, etc. This is only for illustration and no specific limitation is made.
[0140] In this embodiment, in response to an input operation on the operation interface, the initial image material to be processed is displayed on the operation interface. For example, when there is an input operation on the operation interface, a bounding box of the object to be displayed in the initial image material and initial text information in the initial image material are obtained. By judging the relationship between the size of the bounding box and the size threshold of the bounding box, and the relationship between the initial text information and the non-text description information, the initial image material to be processed can be determined, and the initial image material to be processed is displayed on the operation interface. For example, if the size of the bounding box is greater than the size threshold of the bounding box, and the initial text information is non-text description information, the object to be displayed is displayed on the operation interface. The initial image material where the display object is located is determined as the initial image material to be processed, and the initial image material to be processed is displayed on the operation interface. Alternatively, the initial image material to be processed can be determined by judging the relationship between the size of the bounding box and the size threshold of the bounding box, and the relationship between the text amount of the initial text information and the text amount threshold. For example, if the size of the bounding box is greater than the size threshold of the bounding box, and the text amount of the initial text information is less than the text amount threshold, the initial image material where the object to be displayed is located is determined as the initial image material to be processed, and the initial image material to be processed is displayed on the operation interface. This is only for illustration and no specific limitation is made.
[0141] It should be noted that the above-mentioned initial text information may include at least one of the following information: initial text description information in the initial image material and brand information in the initial image material, etc., which is only used as an example here without specific limitation. The above-mentioned non-text description information can be used to fail to describe the characteristics of the object to be displayed. The above-mentioned size threshold and the above-mentioned text amount threshold can vary according to different object display platforms. The above-mentioned bounding box can be obtained by detecting the object to be displayed in the initial image material through a boundary detection algorithm, wherein the boundary detection algorithm can be but is not limited to: Grounding-DINO algorithm, which is only used as an example here without specific limitation.
[0142] Step S404, in response to the image expansion operation on the operation interface, the first target image material is displayed on the operation interface.
[0143] In the technical solution provided in the above step S404 of the present application, after the initial image material to be processed is displayed on the operation interface in response to the input operation on the operation interface, the first target image material can be displayed on the operation interface in response to the expansion operation on the operation interface.
[0144] In this embodiment, the target background area corresponding to the object to be displayed in the first target image material may be larger than the initial background area corresponding to the object to be displayed in the initial image material. The image expansion processing may be an expansion or extension operation performed on the initial image material. The target background area may be used to represent the background area where the object to be displayed is located in the first target image material obtained after the image expansion processing. The initial background area may be used to represent the background area where the object to be displayed is located in the initial image material.
[0145] This embodiment responds to an image expansion operation on the operation interface and displays the first target image material on the operation interface. For example, when there is an image expansion operation on the operation interface, the first target image material can be obtained by expanding or extending the initial background area in the initial image material.
[0146] Step S406 , in response to the text generation operation performed on the operation interface, at least one text description information of the object to be displayed is displayed on the operation interface.
[0147] In the technical solution provided in the above step S406 of the present application, in response to the image expansion operation on the operation interface, after the first target image material is displayed on the operation interface, in response to the text generation operation on the operation interface, at least one text description information of the object to be displayed can be displayed on the operation interface.
[0148] In this embodiment, the text description information may be used to describe the characteristics of the object to be displayed, and the characteristics of the object to be displayed may be used to represent the attributes of the commodity to be traded in the object display platform.
[0149] This embodiment responds to a text generation operation on the operation interface and displays at least one text description information of the object to be displayed on the operation interface. For example, when there is a text generation operation on the operation interface, on the basis of determining the object information of the object to be displayed, at least one text description information of the object to be displayed can be determined, and the text description information can be displayed on the operation interface to describe the characteristics of the object to be displayed, wherein the object information can be used to represent the relevant information of the goods to be traded in the object display platform, and the relevant information of the goods may include at least one of the following information: product title information, CPV information and product details page information, etc.
[0150] Step S408, in response to the image processing operation performed on the operation interface, display the second target image material on the operation interface.
[0151] In the technical solution provided in the above step S408 of the present application, after at least one text description information of the object to be displayed is displayed on the operation interface in response to the text generation operation acting on the operation interface, a second target image material can be displayed on the operation interface in response to the image processing operation acting on the operation interface.
[0152] In this embodiment, the second target image material may be used to represent the first target image material integrated with the text description information.
[0153] This embodiment responds to an image processing operation performed on an operation interface and displays a second target image material on the operation interface. For example, when an image processing operation is performed on the operation interface, the second target image material can be obtained by adding the acquired text description information to the target background area in the first target image material in accordance with the rule for displaying text description information in the target background area, and the second target image material can be displayed on the operation interface.
[0154] Optionally, an area in the target background area with high clarity and no cluttered elements is determined as a sub-target background area in the target background area to which text description information can be added, and then at least one rule stored in the rule library is updated in real time, and the above rule is called from the updated rule library. According to the called rule, a second target image material can be obtained by adding the acquired text description information to the sub-target background area, that is, the first target image material integrated with the text description information can be obtained, and the first target image material integrated with the text description information can be displayed on the operation interface. This is only for example and is not specifically limited.
[0155] For example, when the following operation information is entered on the operation interface: Please generate interest points that meet the requirements for the product body in the following product information, and the generated interest points meet the word count requirements and are sufficient to attract users to buy. If the product information is the following: The product title is 'Simple metal student moderate small alarm clock, children's bedside dedicated silent large digital electronic retro creative clock', and the product attributes are 'shell material - metal; display mode - dial pointer indication; style - retro European; product features - can stand or hang'; other - PVC coating for moisture-proof and anti-corrosion', then the generated interest points It may include at least one of the following: at least one large block interest point of 4 to 8 characters, which can be used to highlight the most important attributes of the product; at least one small block interest point of 8 to 10 characters, which can be used to highlight the distinctive features of the product, wherein the large block interest points and the small block interest points are not repeated. For example, the large block interest points may be: retro European alarm clock, European style, interpretation of individuality, retro simplicity, and the small block interest points may be: quality assurance, accurate timekeeping, double quietness, better sleep, abandoning tediousness, and enjoying a simple life. These are only examples without specific limitations.
[0156] Through the above steps S402 to S408 of the present application, when there is an input operation on the operation interface, the initial image material to be processed can be displayed on the operation interface. When there is an expansion operation on the operation interface, the initial background area in the initial image material is expanded or extended to obtain a first target image material. When there is a text generation operation on the operation interface, on the basis of determining the object information of the object to be displayed, at least one text description information of the object to be displayed can be determined, and the text description information is displayed on the operation interface to describe the characteristics of the object to be displayed. When there is an image processing operation on the operation interface, according to the rule of displaying the text description information in the target background area, the second target image material can be obtained by adding the acquired text description information to the target background area in the first target image material, and the second target image material is displayed on the operation interface. Since in the process of image processing, not only the initial image material is expanded, but also the text description information of the object to be displayed is added to the target background area in the first target image material obtained by the expansion, the purpose of increasing the information density of the main image is achieved, thereby achieving the technical effect of improving the conversion rate of the image material, and then solving the technical problem of low conversion rate of the image material.
[0157] The embodiment of the present application also provides an image processing system. It should be noted that the image processing system of this embodiment can be used to execute the above-mentioned image processing method. Figure 5 is a schematic diagram of an image processing system according to an embodiment of the present application, such as Figure 5 As shown, the system may include: a material hosting product 502 , an evaluation platform 504 , and an object display platform 506 .
[0158] The material hosting product 502 is used to identify the initial image material to be processed; expand the initial image material to obtain a first target image material, and obtain at least one text description information of the object to be displayed; add the text description information to the target background area in the first target image material to obtain a second target image material.
[0159] The evaluation platform 504 is used to evaluate the second target image material.
[0160] The object display platform 506 is used to replace the displayed initial image material with the second target image material that has passed the evaluation.
[0161] In the technical solution provided by the image processing system of the present application, the material hosting product can be used to represent a processing platform for expanding the initial image material to be processed and adding text interest points, the evaluation platform can be used to represent a platform for reviewing the image material obtained by expanding the image and adding text interest points, and the object display platform can be used to represent a platform for updating the displayed image material.
[0162] In this embodiment, the image content of the above-mentioned initial image material may include at least one object to be displayed, the above-mentioned initial image material may be an original commodity image to be processed, the above-mentioned object display platform may be but not limited to an e-commerce platform, the above-mentioned object to be displayed may be at least one commodity to be traded in the object display platform, the target background area corresponding to the above-mentioned object to be displayed in the first target image material may be larger than the initial background area corresponding to the object to be displayed in the initial image material, the above-mentioned text description information may be used to describe the characteristics of the object to be displayed, the above-mentioned image expansion processing may be an expansion or extension operation performed on the initial image material, and the above-mentioned target background area may be used to indicate the characteristics of the object to be displayed after the image expansion processing is completed. The background area in the first target image material obtained by the image expansion processing, the above-mentioned initial background area can be used to represent the background area where the object to be displayed is located in the initial image material, the characteristics of the above-mentioned object to be displayed can be used to represent the attributes of the goods to be traded in the object display platform, and the above-mentioned second target image material can be used to represent the first target image material integrated with text description information. For example, the above-mentioned object to be displayed can be at least one of the following goods: air conditioners, mattresses, table lamps, refrigerators and vinyl players, etc., and the above-mentioned object display platform can be any one of the following platforms: e-commerce platforms, long video platforms and short video platforms, etc., which are only given as examples here and are not specifically limited.
[0163] In this embodiment, the initial image material to be processed can be identified through the material hosting product in the image processing system, and the first target image material can be obtained by expanding the initial image material, and at least one text description information of the object to be displayed can be obtained, and the second target image material can be obtained by adding the text description information to the target background area in the first target image material. The second target image material can be evaluated through the evaluation platform in the image processing system, and the displayed initial image material can be replaced with the second target image material that has passed the evaluation through the object display platform in the image processing system.
[0164] In this embodiment, the bounding box of the object to be displayed in the initial image material and the initial text information in the initial image material can be obtained through the material hosting product in the image processing system. The initial image material to be processed can be determined by judging the relationship between the size of the bounding box and the size threshold of the bounding box, and the relationship between the initial text information and the non-text description information. For example, if the size of the bounding box is greater than the size threshold of the bounding box, and the initial text information is non-text description information, the initial image material where the object to be displayed is located is determined as the initial image material to be processed, and the first target image material can be obtained by expanding or extending the initial background area in the initial image material, and based on the object information of the object to be displayed, at least one text description information of the object to be displayed can be determined to describe the characteristics of the object to be displayed. According to the rule of displaying the text description information in the target background area, the second target image material can be obtained by adding the acquired text description information to the target background area in the first target image material.
[0165] In this embodiment, the image material obtained by expanding the image and adding text interest points can be reviewed through the evaluation platform in the image processing system. If the image material passes the review, the reviewed image material will be uploaded to the object display platform in the image processing system. Then, through the object display platform, the initial image material displayed can be replaced with the reviewed image material.
[0166] Through the above-mentioned image processing system of the present application, through the material hosting product in the image processing system, the initial image material to be processed can be identified, and by expanding the initial image material, a first target image material can be obtained, and at least one text description information of the object to be displayed can be obtained, and by adding the text description information to the target background area in the first target image material, a second target image material can be obtained, and through the evaluation platform in the image processing system, the second target image material can be evaluated, and through the object display platform in the image processing system, the displayed initial image material can be replaced with the second target image material that has passed the evaluation. Since in the process of image processing, not only the initial image material is expanded, but also the text description information of the object to be displayed is added to the target background area in the first target image material obtained by expanding, the purpose of increasing the information density of the main image is achieved, thereby achieving the technical effect of improving the conversion rate of the image material, and then solving the technical problem of the low conversion rate of the image material.
[0167] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application, for example, the data for verification, are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0168] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0169] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the image processing method of each embodiment of the present application.
[0170] Example 2
[0171] The method embodiment provided in Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 6 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing an image processing method. Figure 6As shown, the computer terminal 60 (or mobile device) may include one or more (602a, 602b, ..., 602n are used to illustrate) processors 602 (the processor 602 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 704 for storing data, and a transmission module 606 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 6 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 6 More or fewer components as shown, or with Figure 6 Different configurations shown.
[0172] It should be noted that the one or more processors 602 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 60 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0173] The memory 604 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the methods in the embodiments of the present application. The processor 602 executes various functional applications and data processing by running the software programs and modules stored in the memory 604, that is, the image processing method in the above-mentioned embodiments is realized. The memory 604 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 604 may further include a memory remotely arranged relative to the processor 602, and these remote memories may be connected to the computer terminal 60 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0174] The transmission device 606 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 60. In one example, the transmission device 606 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 606 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0175] The display may be, for example, a touch screen liquid crystal display (LCD), which may enable a user to interact with a user interface of the computer terminal 60 (or mobile device).
[0176] Figure 6 The hardware structure block diagram shown can be used not only as an exemplary block diagram of the above-mentioned computer terminal 60 (or mobile device), but also as an exemplary block diagram of the above-mentioned server. In an optional embodiment, Figure 6 The block diagram shows the use of the above Figure 6 The computer terminal 60 (or mobile device) is shown as an embodiment of a computing node in the computing environment 701. Figure 7 A structural block diagram of a computing environment is shown, such as Figure 7 As shown, computing environment 701 includes multiple computing nodes (such as servers) running on a distributed network (shown as 710-1, 710-2, ..., in the figure). The computing nodes all contain local processing and memory resources, and end users 702 can remotely run applications or store data in computing environment 701. Applications can be provided as multiple services 720-1, 720-2, 720-3 and 720-4 in computing environment 701, representing services "A", "D", "E" and "H" respectively.
[0177] The end user 702 can provide and access services through a web browser or other software application on the client, and in some embodiments, the end user 702's provision and / or request can be provided to the entry gateway 730. The entry gateway 730 may include a corresponding agent to handle the provision and / or request for services (one or more services provided in the computing environment 701).
[0178] Services are provided or deployed based on various virtualization technologies supported by the computing environment 701. In some embodiments, services can be provided based on virtual machine (VM)-based virtualization, container-based virtualization, and / or similar methods. Virtual machine-based virtualization can be to simulate a real computer by initializing a virtual machine, and execute programs and applications without directly contacting any actual hardware resources. While the virtual machine virtualizes the machine, according to container-based virtualization, a container can be started to virtualize the entire operating system (OS) so that multiple workloads can run on a single operating system instance.
[0179] In an embodiment based on container virtualization, several containers of a service can be assembled into a Pod (e.g., a Kubernetes Pod). Figure 7 As shown, service 720-2 can be equipped with one or more Pods 740-1, 740-2, ..., 740-N (collectively referred to as Pods). Pods can include a proxy 745 and one or more containers 742-1, 742-2, ..., 742-M (collectively referred to as containers). One or more containers in the Pod process requests related to one or more corresponding functions of the service, and the proxy 745 generally controls network functions related to the service, such as routing, load balancing, etc. Other services can also be equipped with similar Pods.
[0180] During operation, executing a user request from the end user 702 may require calling one or more services in the computing environment 701, and executing one or more functions of a service may require calling one or more functions of another service. Figure 7 As shown, service "A" 720-1 receives a user request from end user 702 from ingress gateway 730, service "A" 720-1 may call service "D" 720-2, and service "D" 720-2 may request service "E" 720-3 to perform one or more functions.
[0181] The computing environment described above can be a cloud computing environment, where the allocation of resources is managed by the cloud service provider, allowing the development of functions without considering the implementation, adjustment or expansion of servers. The computing environment allows developers to execute code in response to events without building or maintaining complex infrastructure. Services can be divided into a set of functions that can be automatically and independently scaled, rather than expanding a single hardware device to handle potential loads.
[0182] In another optional embodiment, Figure 8 The block diagram shows the use of the above Figure 6 The computer terminal 60 (or mobile device) is shown as an embodiment of the service grid. Figure 8A structural diagram of a service grid is shown, Figure 8 As shown, the service grid 800 is mainly used to facilitate secure and reliable communication between multiple microservices. Microservices refer to decomposing an application into multiple smaller services or instances and distributing them on different clusters / machines to run.
[0183] like Figure 8 As shown, the microservice may include an application service instance A and an application service instance B, which form a functional application layer of the service grid 800. In one embodiment, the application service instance A runs in a machine / workload container group 814 (Pod) in the form of a container / process 808, and the application service instance B runs in a machine / workload container group 816 (Pod) in the form of a container / process 810.
[0184] In one implementation, application service instance A may be a product query service, and application service instance B may be a product ordering service.
[0185] like Figure 8 As shown, application service instance A and grid agent (sidecar) 803 coexist in machine workload container group 814, and application service instance B and grid agent 805 coexist in machine workload container 816. Grid agent 803 and grid agent 805 form the data plane layer (dataplane) of service grid 800. Among them, grid agent 803 and grid agent 805 run in the form of container / process 804 and container / process 806 respectively, and can receive request 812 for commodity query service, and grid agent 803 and application service instance A can communicate bidirectionally, and grid agent 805 and application service instance B can communicate bidirectionally. In addition, grid agent 803 and grid agent 805 can also communicate bidirectionally.
[0186] In one embodiment, the traffic of application service instance A is routed to a suitable destination through grid proxy 803, and the network traffic of application service instance B is routed to a suitable destination through grid proxy 805. It should be noted that the network traffic mentioned here includes but is not limited to Hyper Text Transfer Protocol (HTTP), Representational State Transfer (REST), high-performance, general open source framework (google Remote Procedure Call, gRPC), open source in-memory data structure storage system (Redis), etc.
[0187] In one embodiment, the function of extending the data plane layer can be implemented by writing a custom filter for the proxy (Envoy) in the service grid 800. The service grid proxy configuration can be to enable the service grid to correctly proxy service traffic and achieve service intercommunication and service governance. The grid proxy 803 and the grid proxy 805 can be configured to perform at least one of the following functions: service discovery, health checking, routing, load balancing, authentication and authorization, and observability.
[0188] like Figure 8 As shown, the service grid 800 also includes a control plane layer. The control plane layer can be a group of services running in a dedicated namespace, and these services are hosted by a hosting control plane component 801 in a machine / workload container group (machine / Pod) 802. Figure 8 As shown, the managed control plane component 801 performs bidirectional communication with the grid agent 803 and the grid agent 805. The managed control plane component 801 is configured to perform some control management functions. For example, the managed control plane component 801 receives telemetry data transmitted by the grid agent 803 and the grid agent 805, and can further aggregate the telemetry data. For these services, the managed control plane component 801 can also provide a user-oriented application programming interface (Application Programming Interface, API) to more easily manipulate network behavior and provide configuration data to the grid agent 803 and the grid agent 805.
[0189] Most of the merchants on e-commerce platforms are white-label and factory-type merchants, and these merchants have weak operational capabilities and lack the ability to diagnose and optimize product materials. Therefore, the main body of the product pictures of these merchants is often too large, and there is a lack of textual interest points in the product pictures, resulting in less effective information contained in the product pictures.
[0190] Moreover, compared with product images of the same size that contain rich and effective information, the product images of this type of merchants are difficult to display the characteristics of the products, and their click-through rate is also lower than the average click-through rate of product images on e-commerce platforms, which leads to the technical problem of low conversion rate of image materials.
[0191] The present application provides an image processing method, which solves the technical problem of low conversion rate of image materials. This method is different from the traditional solution that cannot increase the information density of the main image, and solves the technical problem of low conversion rate of image materials.
[0192] In an embodiment of the present application, by adopting an optimization method of expanding the initial image material and adding text description information (for example, product interest points) to the first target image material obtained by the expansion, the purpose of increasing the information density of the main image is achieved, thereby achieving the technical effect of improving the conversion rate of the image material, and further solving the technical problem of the low conversion rate of the image material.
[0193] The above method of this embodiment is further introduced below.
[0194] In this embodiment, in order to solve the technical problem of low conversion rate of image materials, a method for optimizing the main image of a product based on artificial intelligence generated content (AI-Generated Content, referred to as AIGC) to expand the image and add interest points can be proposed. Fig. 9 is a flow chart of a method for optimizing a main product image based on AIGC image expansion and adding interest points according to an embodiment of the present application, such as Fig. 9 As shown, the method may include the following steps:
[0195] Step S902: Use the Grounding-DINO algorithm to perform subject detection on the product image.
[0196] In the technical solution provided in the above step S902 of the present application, by inputting the product image and the prompt information of the detection target into the Grounding-DINO algorithm for subject detection, the bbox of the product subject can be obtained and output. If there are multiple subjects, all product subjects will be detected, and the min-max rule will be used to merge the detection frames, thereby obtaining a maximum detection frame, in which the prompt of the detection target can be expressed by the product category word + subject word.
[0197] Step S904: detect interest points on the product image.
[0198] In the technical solution provided in the above step S904 of the present application, when the Grounding-DINO algorithm is used to perform subject detection on the product image, interest point detection is performed on the product image.
[0199] In this embodiment, the interest point detection module uses OCR technology to extract text from product images to obtain images without interest points or with too few interest points. Since the product itself may also contain text in the product image (for example, non-interest point text such as product brand information), the text extracted by OCR technology is post-processed according to rules, wherein the logic of the rule post-processing can be to restrict according to text size and text position.
[0200] It should be noted that since non-interest point text is generally too small and too offset, text that is too small (possibly the text of the product itself) and too close to the four corners of the image (possibly the brand name) will not be judged as interest point text.
[0201] Step S906, determining whether the product image is expanded.
[0202] In the technical solution provided in the above step S906 of the present application, after subject detection and interest point detection are performed on the product image, it is determined whether the product image is to be expanded.
[0203] If the product image is expanded, then the process proceeds to step S908, step S910, step S912 and step S914, the product image is expanded, the product title information and product CPV information are obtained, and the product detail page information is extracted through OCR technology, the relevant information of the product is spliced, and the spliced relevant information is input into the text generation model to generate interest points. If the product image is not expanded, the method ends and other optimization methods are adopted.
[0204] In this embodiment, since the quality of product images varies, before expanding the product images, the product images are preprocessed, for example, small unit pixels in the product images are cropped and / or the solid color borders in the product images are removed, and then the pixel points for outpainting around the product images are determined based on the position information and size information of the product body in the product images, and then the LaMa method is used to outpaint the product images.
[0205] In this embodiment, the spliced information can be obtained by splicing at least one of the following information in the relevant information of the product: the title information of the product, the CPV information of the product and the detail page information of the product, and then according to the restriction condition, by restricting the obtained spliced information, the restricted spliced information can be obtained, and then the restricted spliced information is input into the text generation model to generate multiple sections of alternative interest points, and the required interest points are determined from the multiple sections of alternative interest points, wherein the restriction condition can be a condition for limiting the lower and upper word counts of the spliced information.
[0206] It should be noted that the above method of determining the pixel points of the expanded image around the product can be implemented according to the principle that if the detection border of the product body is closer to the edge of the product image, the pixel points of the edge expansion will be larger. The size of the product image after the above expansion can be the same as the size of the original product image.
[0207] After the product image is expanded, the relevant information of the product is spliced, and the spliced relevant information is input into the text generation model to generate interest points, step S916 is entered to merge the generated interest points into the expanded product image.
[0208] In the technical solution provided in the above step S916 of the present application, at the front end, the generated interest points are rendered through a predefined template to obtain a rendering result, and then the obtained rendering result is merged into the expanded product image.
[0209] After the generated interest point image is merged into the expanded product image, the process proceeds to step S918, where the expanded product image with the interest points merged therein is uploaded to the evaluation platform for evaluation.
[0210] In the technical solution provided in the above step S918 of the present application, the product pictures that have integrated the interest points and have been expanded are uploaded to the evaluation platform, and then the product pictures that have integrated the interest points and have been expanded are reviewed and screened. The product pictures that have passed the review and screening will be pushed to the merchant side. If the merchant agrees to replace the initial product picture displayed, the product pictures that have integrated the interest points and have been expanded will replace the initial product pictures.
[0211] For example, by using the image processing method in the present application, the initial product image of the clothes rack can be optimized to be an expanded product image that incorporates the interest points of the clothes rack. For example, Figure 10(a) is a schematic diagram of an optimization effect of a main product image according to an embodiment of the present application. As shown in 10(a), the initial background area in the initial product image of the clothes rack is expanded or extended, and the initial background area can be expanded from the initial size to the target size, and the initial background area expanded or extended to the target size is determined as the target background area, and the interest points of the clothes rack are integrated into the target background area.
[0212] To give another example, by using the image processing method in the present application, the initial product image of the crystal raw stone can be optimized into a product image that incorporates the interest points of the crystal raw stone and is expanded. For example, Figure 10(b) is a schematic diagram of another product main image optimization effect according to an embodiment of the present application. As shown in Figure 10(b), the initial background area in the initial product image of the crystal raw stone is expanded or extended, and the initial background area can be expanded from the initial size to the target size, and the initial background area expanded or extended to the target size is determined as the target background area, and the interest points of the crystal raw stone are integrated into the target background area.
[0213] For another example, by using the image processing method in the present application, the initial product image of men's pajamas can be optimized into a product image that incorporates the interest points of men's pajamas and is expanded. For example, Figure 10(c) is a schematic diagram of another product main image optimization effect according to an embodiment of the present application. As shown in Figure 10(c), the initial background area in the initial product image of men's pajamas is expanded or extended, and the initial background area can be expanded from the initial size to the target size, and the initial background area expanded or extended to the target size is determined as the target background area, and the interest points of men's pajamas are integrated into the target background area.
[0214] In the embodiment of the present application, the Grounding-DINO algorithm is used to detect the main body of the product image and the interest point of the product image, and then determine whether the product image is expanded. If the product image is expanded, the product image is expanded, and the relevant information of the product is spliced, and the spliced relevant information is input into the text generation model to generate interest points, and the generated interest points are combined in the product image after the expansion, and the product image after the expansion that integrates the interest points is uploaded to the evaluation platform for evaluation, and the product image after the expansion that passes the evaluation is pushed to the merchant side. If the merchant agrees to replace the initial product image displayed, the product image after the expansion that integrates the interest points replaces the initial product image. Since in the process of image processing, not only the initial image material is expanded, but also the text description information of the object to be displayed is added to the target background area in the first target image material obtained by the expansion, the purpose of increasing the information density of the main image is achieved, thereby achieving the technical effect of improving the conversion rate of the image material, and then solving the technical problem of the low conversion rate of the image material.
[0215] Example 3
[0216] According to an embodiment of the present application, there is also provided a method for implementing the above Figure 2 An image processing method is shown in an image processing device.
[0217] Fig.11 is a schematic diagram of an image processing device according to an embodiment of the present application, such as Fig.11 As shown, the image processing device 1100 may include: a first identification unit 1102 , a first processing unit 1104 , a first adding unit 1106 and a first display unit 1108 .
[0218] The first recognition unit 1102 is configured to recognize an initial image material to be processed, wherein the image content of the initial image material includes at least one object to be displayed.
[0219] The first processing unit 1104 is used to perform image expansion processing on the initial image material to obtain a first target image material, and obtain at least one text description information of the object to be displayed, wherein the target background area corresponding to the object to be displayed in the first target image material is larger than the initial background area corresponding to the object to be displayed in the initial image material, and the text description information is used to describe the characteristics of the object to be displayed.
[0220] The first adding unit 1106 is used to add the text description information to the target background area in the first target image material to obtain the second target image material.
[0221] The first display unit 1108 is used to push the second target image material to the object display platform for display.
[0222] It should be noted that the first identification unit 1102, the first processing unit 1104, the first adding unit 1106 and the first display unit 1108 correspond to steps S202 to S208 in Example 2, and the four units and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in Example 2. It should be noted that the above units can be hardware components or software components stored in a memory (e.g., memory 1404) and processed by one or more processors (e.g., processors 602a, 602b..., 602n), and the above units can also be run in the computer terminal 60 provided in Example 2 as part of the device.
[0223] According to an embodiment of the present application, there is also provided a method for implementing the above Figure 3 An image processing method is shown in an image processing device.
[0224] Fig.12 is a schematic diagram of an image processing device according to an embodiment of the present application, such as Fig.12 As shown, the image processing device 1200 may include: a second identification unit 1202 , a second processing unit 1204 , a second adding unit 1206 and a second display unit 1208 .
[0225] The second identification unit 1202 is used to identify the initial image material to be processed, wherein the image content of the initial image material includes at least one transaction object.
[0226] The second processing unit 1204 is used to expand the initial image material to obtain a first target image material, and obtain at least one text description information of the object to be traded, wherein the target background area corresponding to the object to be traded in the first target image material is larger than the initial background area corresponding to the object to be traded in the initial image material, and the text description information is used to describe the characteristics of the object to be traded.
[0227] The second adding unit 1206 is used to add the text description information to the target background area in the first target image material to obtain the second target image material.
[0228] The second display unit 1208 is used to push the second target image material to the e-commerce platform for display.
[0229] It should be noted that the second identification unit 1202, the second processing unit 1204, the second adding unit 1206 and the second display unit 1208 correspond to steps S302 to S308 in Example 2, and the four units and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in Example 2. It should be noted that the above units can be hardware components or software components stored in a memory (e.g., memory 1404) and processed by one or more processors (e.g., processors 602a, 602b..., 602n), and the above units can also be run in the computer terminal 60 provided in Example 2 as part of the device.
[0230] According to an embodiment of the present application, there is also provided a method for implementing the above Figure 4 An image processing method is shown in an image processing device.
[0231] Fig.13 is a schematic diagram of an image processing device according to an embodiment of the present application, such as Fig.13 As shown, the image processing device 1300 may include: a first response unit 1302 , a second response unit 1304 , a third response unit 1306 and a fourth response unit 1308 .
[0232] The first responding unit 1302 is used to respond to an input operation on the operation interface and display the initial image material to be processed on the operation interface, wherein the image content of the initial image material includes at least one object to be displayed.
[0233] The second response unit 1304 is used to respond to the image expansion operation on the operation interface, and display the first target image material on the operation interface, wherein the first target image material is obtained by expanding the initial image material, and the target background area corresponding to the object to be displayed in the first target image material is larger than the initial background area corresponding to the object to be displayed in the initial image material.
[0234] The third response unit 1306 is used to respond to the text generation operation on the operation interface and display at least one text description information of the object to be displayed on the operation interface, wherein the text description information is used to describe the characteristics of the object to be displayed.
[0235] The fourth responding unit 1308 is used to respond to the image processing operation performed on the operation interface and display the second target image material on the operation interface, wherein the second target image material is obtained by adding text description information to the target background area in the first target image material.
[0236] It should be noted that the first response unit 1302, the second response unit 1304, the third response unit 1306 and the fourth response unit 1308 correspond to steps S402 to S408 in Embodiment 2, and the four units and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in Embodiment 2. It should be noted that the above units can be hardware components or software components stored in a memory (e.g., memory 1404) and processed by one or more processors (e.g., processors 602a, 602b..., 602n), and the above units can also be run in the computer terminal 60 provided in Embodiment 2 as part of the device.
[0237] In an embodiment of the present application, when performing image processing, an initial image material whose image content includes at least one object to be displayed is obtained, and a first target image material can be obtained by performing image expansion processing on the obtained initial image material, and at least one text description information of the object to be displayed is obtained, and then a second target image material can be obtained by adding the obtained at least one text description information of the object to be displayed to the target background area in the first target image material, and the obtained second target image material is pushed to the object display platform for display, thereby completing the image processing. Since in the process of image processing, not only the initial image material is expanded, but also the text description information of the object to be displayed is added to the target background area in the first target image material obtained by expanding the image, the purpose of increasing the information density of the main image is achieved, thereby achieving the technical effect of improving the conversion rate of the image material, and then solving the technical problem of the low conversion rate of the image material.
[0238] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0239] Example 4
[0240] The embodiment of the present application may provide an electronic device, which may be any electronic device in a group of electronic devices. Optionally, in this embodiment, the electronic device may also be replaced by a terminal device such as a mobile terminal.
[0241] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0242] In this embodiment, the computer terminal can execute the program code in the method.
[0243] Optionally, Fig.14 is a block diagram of an electronic device according to an image processing method of an embodiment of the present application. Fig.14 As shown, the electronic device A may include: one or more (only one is shown in the figure) processors 1402, a memory 1404, a storage controller, and a peripheral interface, wherein the peripheral interface is connected to a radio frequency module, an audio module, and a display.
[0244] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, implementing the methods in the above embodiments. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal A via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0245] The processor can call the information and application programs stored in the memory to perform the following steps: identifying an initial image material to be processed, wherein the image content of the initial image material includes at least one object to be displayed; performing image expansion processing on the initial image material to obtain a first target image material, and obtaining at least one text description information of the object to be displayed, wherein a target background area corresponding to the object to be displayed in the first target image material is larger than an initial background area corresponding to the object to be displayed in the initial image material, and the text description information is used to describe the characteristics of the object to be displayed; adding the text description information to the target background area in the first target image material to obtain a second target image material; and pushing the second target image material to an object display platform for display.
[0246] Optionally, the processor may also execute program code of the following steps: determining attribute information of the object to be displayed in the initial image material; and based on the attribute information, expanding the initial background area in the initial image material to obtain a first target image material including the target background area.
[0247] Optionally, the processor may also execute program code of the following steps: determining the distance between the detection box and the border of the initial image material; determining the set of pixels to be expanded to in the initial background area according to the distance, wherein the distance is negatively correlated with the number of pixels in the pixel set; and based on the pixel set, expanding the initial background area in the initial image material to obtain a first target image material including the target background area.
[0248] Optionally, the processor may also execute the program code of the following steps: inputting the target size corresponding to the initial image material and the pixel point set into the expansion model, wherein the expansion model is obtained by training a fast Fourier convolution network and a generative adversarial network using image samples associated with the object display platform; using the expansion model, expanding the initial background area in the initial image material from the initial size to the target size to obtain the target background area, and determining the image including the target background area and the object to be displayed as the first target image material, wherein the size of the first target image material is the same as the size of the initial image material.
[0249] Optionally, the processor may also execute program code of the following steps: preprocessing the initial image material as follows: removing pixels whose pixel values are less than a pixel value threshold from the initial image material; and / or removing a solid color border from the initial image material; determining attribute information of the object to be displayed in the initial image material, including: determining attribute information of the object to be displayed in the preprocessed initial image material.
[0250] Optionally, the processor may further execute program codes of the following steps: obtaining object information of the object to be displayed, wherein the object information is used to display the object to be displayed; and generating text description information based on the object information.
[0251] Optionally, the processor may also execute the following program code steps: converting the object information into first prompt information; inputting the first prompt information into a text generation model, wherein the text generation model is obtained by training a large model using object information samples associated with the object display platform; and using the first prompt information to guide the text generation model to generate text description information.
[0252] Optionally, the processor may also execute program code of the following steps: splicing at least one of the following information in the object information to obtain spliced information: title information of the object to be displayed, attribute information of the object to be displayed, and detail information of the object to be displayed; combining the spliced information and target conditions to generate first prompt information, wherein the target conditions are used to represent the conditions satisfied by the text description information to be generated.
[0253] Optionally, the processor may also execute the following program code steps: using the first prompt information to guide the text generation model to generate a candidate text description information set; in response to a selection operation on the candidate text description information set, determining at least one candidate text description information selected from the candidate text description information set as at least one text description information.
[0254] Optionally, the processor may also execute the following program code: adding text description information to the target background area in the first target image material according to a text rendering format to obtain a second target image material, wherein the text rendering format is used to represent the rules for displaying text description information in the target background area.
[0255] Optionally, the processor may also execute program code of the following steps: rendering the text description information according to a text rendering format to obtain a rendering result; combining the rendering result with a target background area in the first target image material to obtain a second target image material.
[0256] Optionally, the processor may also execute the program code of the following steps: detecting a detection frame of the object to be displayed in the initial image material, and initial text information in the initial image material; if the size of the detection frame is greater than a first size threshold, and the initial text information is non-text description information, or the initial text information is initial text description information with a text amount less than a text amount threshold, then determining the initial image material as the initial image material to be processed, wherein the non-text description information is used to fail to describe the characteristics of the object to be displayed, and the initial text description information is used to initially describe the characteristics of the object to be displayed.
[0257] Optionally, the processor may also execute program code of the following steps: generating second prompt information using type information of the object to be displayed and / or subject information of the object to be displayed; inputting the initial image material and the second prompt information into an object detection model, wherein the object detection model is used to detect a detection frame of the object in the input image; and using the second prompt information, guiding the object detection model to detect the initial image material to obtain a detection frame of the object to be displayed in the initial image material.
[0258] Optionally, the processor may further execute program code of the following steps: merging detection frames of multiple objects to be displayed in the initial image material to obtain a target detection frame, wherein the size of the detection frame includes the size of the target detection frame.
[0259] Optionally, the processor may also execute program code of the following steps: performing text recognition on the initial image material to obtain initial text information.
[0260] Optionally, the processor may further execute program code of the following steps: if the size of the text in the initial text information is smaller than a second size threshold, and / or the position information of the text in the initial text information is target position information, determining that the initial text information is non-text description information.
[0261] Optionally, the processor can call the information and application programs stored in the memory to perform the following steps: identify the initial image material to be processed, wherein the image content of the initial image material includes at least one object to be traded; perform image expansion processing on the initial image material to obtain a first target image material, and obtain at least one text description information of the object to be traded, wherein the target background area corresponding to the object to be traded in the first target image material is larger than the initial background area corresponding to the object to be traded in the initial image material, and the text description information is used to describe the characteristics of the object to be traded; add the text description information to the target background area in the first target image material to obtain a second target image material; and push the second target image material to the e-commerce platform for display.
[0262] Optionally, the processor can call the information and application stored in the memory to perform the following steps: in response to an input operation on the operation interface, displaying an initial image material to be processed on the operation interface, wherein the image content of the initial image material includes at least one object to be displayed; in response to an image expansion operation on the operation interface, displaying a first target image material on the operation interface, wherein the first target image material is obtained by expanding the initial image material, and a target background area corresponding to the object to be displayed in the first target image material is larger than an initial background area corresponding to the object to be displayed in the initial image material; in response to a text generation operation on the operation interface, displaying at least one text description information of the object to be displayed on the operation interface, wherein the text description information is used to describe the characteristics of the object to be displayed; in response to an image processing operation on the operation interface, displaying a second target image material on the operation interface, wherein the second target image material is obtained by adding the text description information to the target background area in the first target image material.
[0263] According to an embodiment of the present application, a method for processing an image is provided. When performing image processing, an initial image material whose image content includes at least one object to be displayed is obtained. By performing image expansion processing on the obtained initial image material, a first target image material can be obtained, and at least one text description information of the object to be displayed is obtained. Then, by adding the obtained at least one text description information of the object to be displayed to the target background area in the first target image material, a second target image material can be obtained, and the obtained second target image material is pushed to an object display platform for display, thereby completing image processing. Since in the process of image processing, not only the initial image material is expanded, but also the text description information of the object to be displayed is added to the target background area in the first target image material obtained by expanding the image, the purpose of increasing the information density of the main image is achieved, thereby achieving the technical effect of improving the conversion rate of the image material, and thus solving the technical problem of the low conversion rate of the image material.
[0264] It can be understood by those skilled in the art that Figure 6 The structure shown is for illustration only, and the computer terminal A may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, referred to as MID), a PAD, or other terminal devices. Figure 6 It does not limit the structure of the above-mentioned computer terminal A. For example, the computer terminal A may also include Figure 6 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 6 Different configurations are shown.
[0265] Optionally, Fig.15 is a structural block diagram of a computer terminal according to an embodiment of the present application, such as Fig.15 As shown, the computer terminal A may include: one or more (only one is shown in the figure) processors 1502 , a memory 1504 and a transmission device 1506 .
[0266] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the image processing method and device in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned image processing method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal A via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0267] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: identify the initial image material to be processed, wherein the image content of the initial image material includes at least one object to be displayed; perform image expansion processing on the initial image material to obtain a first target image material, and obtain at least one text description information of the object to be displayed, wherein the target background area corresponding to the object to be displayed in the first target image material is larger than the initial background area corresponding to the object to be displayed in the initial image material, and the text description information is used to describe the characteristics of the object to be displayed; add the text description information to the target background area in the first target image material to obtain a second target image material; and push the second target image material to the object display platform for display.
[0268] Optionally, the processor may also execute program code of the following steps: determining attribute information of the object to be displayed in the initial image material; and based on the attribute information, expanding the initial background area in the initial image material to obtain a first target image material including the target background area.
[0269] Optionally, the processor may also execute program code of the following steps: determining the distance between the detection box and the border of the initial image material; determining the set of pixels to be expanded to in the initial background area according to the distance, wherein the distance is negatively correlated with the number of pixels in the pixel set; and based on the pixel set, expanding the initial background area in the initial image material to obtain a first target image material including the target background area.
[0270] Optionally, the processor may also execute the program code of the following steps: inputting the target size corresponding to the initial image material and the pixel point set into the expansion model, wherein the expansion model is obtained by training a fast Fourier convolution network and a generative adversarial network using image samples associated with the object display platform; using the expansion model, expanding the initial background area in the initial image material from the initial size to the target size to obtain the target background area, and determining the image including the target background area and the object to be displayed as the first target image material, wherein the size of the first target image material is the same as the size of the initial image material.
[0271] Optionally, the processor may also execute program code of the following steps: preprocessing the initial image material as follows: removing pixels whose pixel values are less than a pixel value threshold from the initial image material; and / or removing a solid color border from the initial image material; determining attribute information of the object to be displayed in the initial image material, including: determining attribute information of the object to be displayed in the preprocessed initial image material.
[0272] Optionally, the processor may further execute program codes of the following steps: obtaining object information of the object to be displayed, wherein the object information is used to display the object to be displayed; and generating text description information based on the object information.
[0273] Optionally, the processor may also execute the following program code steps: converting the object information into first prompt information; inputting the first prompt information into a text generation model, wherein the text generation model is obtained by training a large model using object information samples associated with the object display platform; and using the first prompt information to guide the text generation model to generate text description information.
[0274] Optionally, the processor may also execute program code of the following steps: splicing at least one of the following information in the object information to obtain spliced information: title information of the object to be displayed, attribute information of the object to be displayed, and detail information of the object to be displayed; combining the spliced information and target conditions to generate first prompt information, wherein the target conditions are used to represent the conditions satisfied by the text description information to be generated.
[0275] Optionally, the processor may also execute the following program code steps: using the first prompt information to guide the text generation model to generate a candidate text description information set; in response to a selection operation on the candidate text description information set, determining at least one candidate text description information selected from the candidate text description information set as at least one text description information.
[0276] Optionally, the processor may also execute the following program code: adding text description information to the target background area in the first target image material according to a text rendering format to obtain a second target image material, wherein the text rendering format is used to represent the rules for displaying text description information in the target background area.
[0277] Optionally, the processor may also execute program code of the following steps: rendering the text description information according to a text rendering format to obtain a rendering result; combining the rendering result with a target background area in the first target image material to obtain a second target image material.
[0278] Optionally, the processor may also execute the program code of the following steps: detecting a detection frame of the object to be displayed in the initial image material, and initial text information in the initial image material; if the size of the detection frame is greater than a first size threshold, and the initial text information is non-text description information, or the initial text information is initial text description information with a text amount less than a text amount threshold, then determining the initial image material as the initial image material to be processed, wherein the non-text description information is used to fail to describe the characteristics of the object to be displayed, and the initial text description information is used to initially describe the characteristics of the object to be displayed.
[0279] Optionally, the processor may also execute program code of the following steps: generating second prompt information using type information of the object to be displayed and / or subject information of the object to be displayed; inputting the initial image material and the second prompt information into an object detection model, wherein the object detection model is used to detect a detection frame of the object in the input image; and using the second prompt information, guiding the object detection model to detect the initial image material to obtain a detection frame of the object to be displayed in the initial image material.
[0280] Optionally, the processor may further execute program code of the following steps: merging detection frames of multiple objects to be displayed in the initial image material to obtain a target detection frame, wherein the size of the detection frame includes the size of the target detection frame.
[0281] Optionally, the processor may also execute program code of the following steps: performing text recognition on the initial image material to obtain initial text information.
[0282] Optionally, the processor may further execute program code of the following steps: if the size of the text in the initial text information is smaller than a second size threshold, and / or the position information of the text in the initial text information is target position information, determining that the initial text information is non-text description information.
[0283] Optionally, the processor can call the information and application stored in the memory through the transmission device to perform the following steps: identify the initial image material to be processed, wherein the image content of the initial image material includes at least one object to be traded; expand the initial image material to obtain a first target image material, and obtain at least one text description information of the object to be traded, wherein the target background area corresponding to the object to be traded in the first target image material is larger than the initial background area corresponding to the object to be traded in the initial image material, and the text description information is used to describe the characteristics of the object to be traded; add the text description information to the target background area in the first target image material to obtain a second target image material; and push the second target image material to the e-commerce platform for display.
[0284] Optionally, the processor can call the information and application stored in the memory through the transmission device to perform the following steps: in response to an input operation on the operation interface, display the initial image material to be processed on the operation interface, wherein the image content of the initial image material includes at least one object to be displayed; in response to an image expansion operation on the operation interface, display the first target image material on the operation interface, wherein the first target image material is obtained by expanding the initial image material, and the target background area corresponding to the object to be displayed in the first target image material is larger than the initial background area corresponding to the object to be displayed in the initial image material; in response to a text generation operation on the operation interface, display at least one text description information of the object to be displayed on the operation interface, wherein the text description information is used to describe the characteristics of the object to be displayed; in response to an image processing operation on the operation interface, display the second target image material on the operation interface, wherein the second target image material is obtained by adding the text description information to the target background area in the first target image material.
[0285] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0286] Example 5
[0287] The embodiment of the present application further provides a computer-readable storage medium. Optionally, in this embodiment, the computer-readable storage medium can be used to store the program code executed by the method provided in the above embodiment.
[0288] Optionally, in this embodiment, the above storage medium may be located in any electronic device in a group of electronic devices in a computer network, or in any mobile terminal in a group of mobile terminals.
[0289] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: identifying an initial image material to be processed, wherein the image content of the initial image material includes at least one object to be displayed; performing image expansion processing on the initial image material to obtain a first target image material, and obtaining at least one text description information of the object to be displayed, wherein a target background area corresponding to the object to be displayed in the first target image material is larger than an initial background area corresponding to the object to be displayed in the initial image material, and the text description information is used to describe the characteristics of the object to be displayed; adding the text description information to the target background area in the first target image material to obtain a second target image material; and pushing the second target image material to the object display platform for display.
[0290] Optionally, the computer-readable storage medium may also execute program code of the following steps: determining attribute information of the object to be displayed in the initial image material; based on the attribute information, expanding the initial background area in the initial image material to obtain a first target image material including the target background area.
[0291] Optionally, the computer-readable storage medium can also execute program code for the following steps: determining a target expert network model and a target attention mechanism that match the object display platform from a multi-task learning network model; and extracting the data to be processed in the object display platform from the input layer using the target expert network model and the target attention mechanism.
[0292] Optionally, the computer-readable storage medium may also execute program code for the following steps: determining the distance between the detection box and the border of the initial image material; determining, according to the distance, a set of pixels to be expanded to in the initial background area, wherein the distance is negatively correlated with the number of pixels in the pixel set; and based on the pixel set, expanding the initial background area in the initial image material to obtain a first target image material including a target background area.
[0293] Optionally, the computer-readable storage medium may also execute program code for the following steps: inputting the target size corresponding to the initial image material and the pixel point set into an expansion model, wherein the expansion model is obtained by training a fast Fourier convolutional network and a generative adversarial network using image samples associated with the object display platform; using the expansion model, expanding the initial background area in the initial image material from the initial size to the target size to obtain the target background area, and determining the image including the target background area and the object to be displayed as the first target image material, wherein the size of the first target image material is the same as the size of the initial image material.
[0294] Optionally, the computer-readable storage medium may also execute program code for the following steps: preprocessing the initial image material as follows: removing pixels whose pixel values are less than a pixel value threshold from the initial image material; and / or removing a solid color border from the initial image material; determining attribute information of the object to be displayed in the initial image material, including: determining attribute information of the object to be displayed in the preprocessed initial image material.
[0295] Optionally, the computer-readable storage medium may also execute program code for the following steps: obtaining object information of the object to be displayed, wherein the object information is used to display the object to be displayed; and generating text description information based on the object information.
[0296] Optionally, the computer-readable storage medium may also execute program code for the following steps: converting object information into first prompt information; inputting the first prompt information into a text generation model, wherein the text generation model is obtained by training a large model using object information samples associated with an object display platform; and using the first prompt information to guide the text generation model to generate text description information.
[0297] Optionally, the computer-readable storage medium can also execute program code for the following steps: splicing at least one of the following information in the object information to obtain spliced information: title information of the object to be displayed, attribute information of the object to be displayed, and detail information of the object to be displayed; combining the spliced information and target conditions to generate first prompt information, wherein the target condition is used to indicate the condition satisfied by the text description information to be generated.
[0298] Optionally, the computer-readable storage medium may also execute program code for the following steps: using the first prompt information to guide the text generation model to generate a candidate text description information set; in response to a selection operation on the candidate text description information set, determining at least one candidate text description information selected from the candidate text description information set as at least one text description information.
[0299] Optionally, the above-mentioned computer-readable storage medium can also execute the program code of the following steps: adding text description information to the target background area in the first target image material according to the text rendering format to obtain the second target image material, wherein the text rendering format is used to represent the rules for displaying the text description information in the target background area.
[0300] Optionally, the computer-readable storage medium may also execute program code for the following steps: rendering the text description information in a text rendering format to obtain a rendering result; combining the rendering result with a target background area in the first target image material to obtain a second target image material.
[0301] Optionally, the computer-readable storage medium may also execute program code for the following steps: detecting a detection frame of the object to be displayed in the initial image material, and initial text information in the initial image material; if the size of the detection frame is greater than a first size threshold, and the initial text information is non-text description information, or the initial text information is initial text description information with a text amount less than a text amount threshold, then determining the initial image material as the initial image material to be processed, wherein the non-text description information is used to fail to describe the characteristics of the object to be displayed, and the initial text description information is used to initially describe the characteristics of the object to be displayed.
[0302] Optionally, the computer-readable storage medium may also execute program code for the following steps: generating second prompt information using type information of the object to be displayed and / or subject information of the object to be displayed; inputting the initial image material and the second prompt information into an object detection model, wherein the object detection model is used to detect a detection frame of the object in the input image; and using the second prompt information, guiding the object detection model to detect the initial image material to obtain a detection frame of the object to be displayed in the initial image material.
[0303] Optionally, the computer-readable storage medium may also execute program code for the following steps: merging detection frames of multiple objects to be displayed in the initial image material to obtain a target detection frame, wherein the size of the detection frame includes the size of the target detection frame.
[0304] Optionally, the computer-readable storage medium may also execute program code for the following steps: performing text recognition on the initial image material to obtain initial text information.
[0305] Optionally, the computer-readable storage medium may also execute program code for the following steps: if the size of the text in the initial text information is smaller than a second size threshold, and / or the position information of the text in the initial text information is target position information, determining that the initial text information is non-text description information.
[0306] As an optional example, a computer-readable storage medium is configured to store program code for performing the following steps: identifying an initial image material to be processed, wherein the image content of the initial image material includes at least one object to be traded; performing image expansion processing on the initial image material to obtain a first target image material, and obtaining at least one text description information of the object to be traded, wherein a target background area corresponding to the object to be traded in the first target image material is larger than an initial background area corresponding to the object to be traded in the initial image material, and the text description information is used to describe the characteristics of the object to be traded; adding the text description information to the target background area in the first target image material to obtain a second target image material; and pushing the second target image material to the e-commerce platform for display.
[0307] As an optional example, a computer-readable storage medium is configured to store program codes for executing the following steps: in response to an input operation on an operation interface, an initial image material to be processed is displayed on the operation interface, wherein the image content of the initial image material includes at least one object to be displayed; in response to an image expansion operation on the operation interface, a first target image material is displayed on the operation interface, wherein the first target image material is obtained by expanding the initial image material, and a target background area corresponding to the object to be displayed in the first target image material is larger than an initial background area corresponding to the object to be displayed in the initial image material; in response to a text generation operation on the operation interface, at least one text description information of the object to be displayed is displayed on the operation interface, wherein the text description information is used to describe the characteristics of the object to be displayed; in response to an image processing operation on the operation interface, a second target image material is displayed on the operation interface, wherein the second target image material is obtained by adding the text description information to the target background area in the first target image material.
[0308] Example 6
[0309] The embodiment of the present application further provides a computer program product. Optionally, in this embodiment, the computer program product may include computer instructions, and when the computer instructions are executed by a processor, the image processing method provided in the embodiment is implemented.
[0310] Example 7
[0311] The embodiment of the present application also provides a computer program product. Optionally, the computer program product may include a non-volatile computer-readable storage medium, which may be used to store a computer program, and when the computer program is executed by a processor, the image processing method provided in the embodiment is implemented.
[0312] Example 8
[0313] The embodiment of the present application further provides a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, the image processing method provided in the above embodiment is implemented.
[0314] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0315] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0316] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0317] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0318] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0319] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0320] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for processing an image, It is characterized in that include: Identifying an initial image material to be processed, wherein the image content of the initial image material includes at least one object to be displayed; Performing image expansion processing on the initial image material to obtain a first target image material, and obtaining at least one text description information of the object to be displayed, wherein a target background area corresponding to the object to be displayed in the first target image material is larger than an initial background area corresponding to the object to be displayed in the initial image material, and the text description information is used to describe the characteristics of the object to be displayed; Adding the text description information to the target background area in the first target image material to obtain a second target image material; The second target image material is pushed to the object display platform for display.
2. The method according to claim 1, It is characterized in that The initial image material is expanded to obtain a first target image material, including: Determining attribute information of the object to be displayed in the initial image material; Based on the attribute information, the initial background area in the initial image material is expanded to obtain the first target image material including the target background area.
3. The method according to claim 2, It is characterized in that The attribute information includes a detection frame of the object to be displayed in the initial image material, wherein, based on the attribute information, the initial background area in the initial image material is expanded to obtain the first target image material including the target background area, including: Determining a distance between the detection frame and a border of the initial image material; According to the distance, determining a pixel point set to be expanded in the initial background area, wherein the distance is negatively correlated with the number of pixels in the pixel point set; Based on the pixel point set, the initial background area in the initial image material is expanded to obtain the first target image material including the target background area.
4. The method according to claim 3, It is characterized in that Based on the pixel point set, the initial background area in the initial image material is expanded to obtain the first target image material including the target background area, including: Inputting the target size corresponding to the initial image material and the pixel point set into an image expansion model, wherein the image expansion model is obtained by training a fast Fourier convolutional network and a generative adversarial network using image samples associated with the object display platform; Using the image expansion model, the initial background area in the initial image material is expanded from the initial size to the target size to obtain the target background area, and the image including the target background area and the object to be displayed is determined as the first target image material, wherein the size of the first target image material is the same as the size of the initial image material.
5. The method according to claim 2, It is characterized in that The method further comprises: The initial image material is preprocessed as follows: removing pixels whose pixel values are less than a pixel value threshold from the initial image material; and / or removing a solid color border from the initial image material; Determining the attribute information of the object to be displayed in the initial image material includes: determining the attribute information of the object to be displayed in the initial image material after preprocessing.
6. The method according to claim 1, It is characterized in that Acquiring at least one text description information of the object to be displayed includes: Acquire object information of the object to be displayed, wherein the object information is used to display the object to be displayed; The text description information is generated based on the object information.
7. The method according to claim 6, It is characterized in that Generating the text description information based on the object information includes: Converting the object information into first prompt information; Inputting the first prompt information into a text generation model, wherein the text generation model is obtained by training a large model using object information samples associated with the object display platform; The first prompt information is used to guide the text generation model to generate the text description information.
8. The method according to claim 7, It is characterized in that Converting the object information into first prompt information includes: splicing at least one of the following information in the object information to obtain spliced information: title information of the object to be displayed, attribute information of the object to be displayed, and detail information of the object to be displayed; The first prompt information is generated by combining the splicing information and the target condition, wherein the target condition is used to indicate the condition satisfied by the text description information to be generated.
9. The method according to claim 7, It is characterized in that Using the first prompt information to guide the text generation model to generate the text description information includes: Using the first prompt information, guiding the text generation model to generate a candidate text description information set; In response to a selection operation on the candidate text description information set, at least one candidate text description information selected from the candidate text description information set is determined as the at least one text description information.
10. The method according to claim 1, It is characterized in that Adding the text description information to the target background area in the first target image material to obtain a second target image material includes: The text description information is added to the target background area in the first target image material according to a text rendering format to obtain the second target image material, wherein the text rendering format is used to represent a rule for displaying the text description information in the target background area.
11. The method according to claim 10, It is characterized in that Adding the text description information to the target background area in the first target image material according to a text rendering format to obtain the second target image material includes: Rendering the text description information according to the text rendering format to obtain a rendering result; The rendering result is combined with the target background area in the first target image material to obtain the second target image material.
12. The method according to claim 1, It is characterized in that Identify the initial image material to be processed, including: Detecting a detection frame of the object to be displayed in the initial image material, and initial text information in the initial image material; If the size of the detection box is greater than a first size threshold, and the initial text information is non-text description information, or the initial text information is initial text description information with a text amount less than a text amount threshold, the initial image material is determined as the initial image material to be processed, wherein the non-text description information is used to fail to describe the characteristics of the object to be displayed, and the initial text description information is used to initially describe the characteristics of the object to be displayed.
13. The method according to claim 12, It is characterized in that Detecting the size of the detection frame of the object to be displayed in the initial image material includes: Generate second prompt information using the type information of the object to be displayed and / or the subject information of the object to be displayed; Inputting the initial image material and the second prompt information into an object detection model, wherein the object detection model is used to detect a detection frame of an object in the input image; The second prompt information is used to guide the object detection model to detect the initial image material, and obtain a detection frame of the object to be displayed in the initial image material.
14. The method according to claim 12, It is characterized in that The method further comprises: The detection frames of the multiple objects to be displayed in the initial image material are merged to obtain a target detection frame, wherein the size of the detection frame includes the size of the target detection frame.
15. The method according to claim 12, It is characterized in that Detecting initial text information in the initial image material includes: Perform text recognition on the initial image material to obtain the initial text information.
16. The method according to claim 12, It is characterized in that The method further comprises: If the size of the text in the initial text information is smaller than a second size threshold, and / or the position information of the text in the initial text information is target position information, it is determined that the initial text information is the non-text description information.
17. A method for processing an image, It is characterized in that Applied to e-commerce material hosting products, including: Identifying an initial image material to be processed, wherein the image content of the initial image material includes at least one object to be traded; Performing image expansion processing on the initial image material to obtain a first target image material, and obtaining at least one text description information of the object to be traded, wherein the target background area corresponding to the object to be traded in the first target image material is larger than the initial background area corresponding to the object to be traded in the initial image material, and the text description information is used to describe the characteristics of the object to be traded; Adding the text description information to the target background area in the first target image material to obtain a second target image material; The second target image material is pushed to the e-commerce platform for display.
18. A method for processing an image, It is characterized in that include: In response to an input operation on the operation interface, displaying an initial image material to be processed on the operation interface, wherein the image content of the initial image material includes at least one object to be displayed; In response to an image expansion operation on the operation interface, a first target image material is displayed on the operation interface, wherein the first target image material is obtained by expanding the initial image material, and a target background area corresponding to the object to be displayed in the first target image material is larger than an initial background area corresponding to the object to be displayed in the initial image material; In response to a text generation operation performed on the operation interface, at least one text description information of the object to be displayed is displayed on the operation interface, wherein the text description information is used to describe the characteristics of the object to be displayed; In response to the image processing operation performed on the operation interface, a second target image material is displayed on the operation interface, wherein the second target image material is obtained by adding the text description information to the target background area in the first target image material.
19. An image processing system, It is characterized in that Material hosting products, object display platforms and evaluation platforms, including: The material hosting product is used to identify an initial image material to be processed, wherein the image content of the initial image material includes at least one object to be displayed; perform image expansion processing on the initial image material to obtain a first target image material, and obtain at least one text description information of the object to be displayed, wherein a target background area corresponding to the object to be displayed in the first target image material is larger than an initial background area corresponding to the object to be displayed in the initial image material, and the text description information is used to describe the characteristics of the object to be displayed; the text description information is added to the target background area in the first target image material to obtain a second target image material; An evaluation platform, used for evaluating the second target image material; The object display platform is used to replace the initial image material being displayed with the second target image material that has passed the evaluation.
20. An electronic device, It is characterized in that include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 18 when running.
21. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 18.
22. A computer program product, It is characterized in that The method comprises computer instructions, wherein when the computer instructions are executed by a processor, the method according to any one of claims 1 to 18 is implemented.
Citation Information
Patent Citations
Image description generation method and device, equipment and readable storage medium
CN110458242A
Multi-source information fusion method and device, electronic equipment and storage medium
CN113378605A
Generalized zero sample image classification method based on fused visual information
CN116797821A
Image clustering method, computer equipment and storage medium
CN117975071A
Object detection apparatus, object detection method, monitoring camera system and program
JP2012089929A
