Product propaganda map manufacturing method, electronic equipment and storage medium
By breaking down product promotional copy into phrases and matching them with template pictures, the problems of low efficiency and high labor costs in the existing technology are solved, and multiple product promotional pictures are efficiently and quickly generated to meet the needs of rapid promotion of e-commerce.
Patent Information
- Application Number
- CN202510127044.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-28
- Publication Date
- 2025-05-13
AI Technical Summary
The production efficiency of existing product promotional pictures is low and the labor cost is high, making it difficult to meet the needs of rapid promotion of e-commerce.
By breaking down product promotional copy into phrases and classifying them according to the number of characters in the phrases, combining the image position and character information marking of the template image, efficiently match and fill the phrases and product images into the template image, multiple product promotional pictures are generated.
It improves the production efficiency of product promotional pictures and reduces labor costs. While retaining the design style and layout, multiple product promotional pictures are generated to meet the needs of rapid promotion of e-commerce.
Smart Images

Figure CN119991879A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer image editing, and more specifically, to a method for producing a product promotional image, an electronic device and a storage medium. Background Art
[0002] The development of traditional e-commerce platforms such as Taobao, JD.com, and Pinduoduo, as well as the rise of social media and short video platforms such as Douyin, Kuaishou, and Xiaohongshu, have provided a variety of sales channels for the promotion of e-commerce products. The promotion of e-commerce products often requires pictures to be displayed. In order to attract consumers' attention and increase product exposure and sales, merchants create product promotional pictures that contain product images and product feature information to make it easier for consumers to quickly understand product information. When merchants do not know which product promotional picture design will attract consumers' attention, they often try to create multiple product promotional pictures with different design styles.
[0003] However, existing product promotional pictures often need to be produced one by one by image makers. The production efficiency of multiple product promotional pictures for the same product is low and the labor cost is high. Especially for products with many styles, it cannot meet the needs of e-commerce for timely promotion. Summary of the invention
[0004] In order to overcome the technical problems existing in the above-mentioned prior art, the present invention provides a method for producing a product promotional image, an electronic device and a storage medium, which can efficiently and quickly produce product promotional images and improve production efficiency.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: In a first aspect, a method for producing a product promotional image comprises the following steps: S1. Obtaining a collection of classified texts, wherein the collection of classified texts is obtained by decomposing the product promotional texts into phrases and classifying them according to the number of characters in the phrases; Obtain at least one template image, wherein the template image is selected from a template image library, and the template image includes an image position mark and a character information mark, wherein the character information mark includes character position information and character quantity information; S2. Import the phrases and product images in the classified copy collection into the template image, select at least one phrase from the classified copy collection to match and fill it into the character position of the template image, fill the product image into the image position of the template image, and generate at least one product promotional image.
[0006] The present invention first decomposes the product promotion copy, splits the product promotion copy into phrases, obtains multiple phrases, and classifies them according to the number of characters in these phrases to obtain a classified copy set with phrases of different numbers of characters. At the same time, a template image for making a product promotion image is selected from a template library. The phrases and product images in the classified copy set are imported into the selected template image, and the template image is marked with image positions and character information. The product image and phrases can be matched to the corresponding positions, and a product promotion image based on the product promotion copy can be efficiently and quickly made. After that, it can be used directly or after slight adjustments.
[0007] The present invention generates multiple product promotion pictures while retaining the original design style and layout of the template picture. When the phrases in the classified copy set exceed the character positions of the template picture, the unused phrases and the template picture (the same template picture) generate another new product promotion picture, or the unused phrases and the new template picture generate another new product promotion picture. Of course, the used phrases can also generate another new product promotion picture with the new template picture.
[0008] Therefore, the same copy can generate multiple product promotional pictures based on different template pictures, or it can generate multiple product promotional pictures based on the same template picture combined with different phrases.
[0009] In the present invention, optionally, the method of decomposing the product promotion copy into phrases is to insert identification symbols between each phrase in the product promotion copy. By using identification symbols to separate the product promotion copy, two identification symbols are regarded as one phrase. The identification symbols include but are not limited to space characters and line break characters.
[0010] Alternatively, the product promotion copy is input into an artificial intelligence model for recognition by the artificial intelligence model.
[0011] Optionally, the classified copy set includes at least one phrase set, and each phrase set includes phrases with the same number of characters.
[0012] As one implementation manner, the method for making a template image in the template library includes: importing an image, and marking an image position and character information on the image.
[0013] As another implementation, the method for making the template image in the template image library includes: importing an existing product promotional image, identifying the product image and characters on the existing product promotional image, marking the image position at the product image and removing the product image; marking the character information at the character and removing the character. The existing product promotional image can be a product promotion image of the existing product or other popular products, with reference to the design style of the product promotional image of the popular product, and retaining its character position layout design (font, font size, font color).
[0014] In the present invention, the character is a unit of writing, and a character is the basic unit that constitutes a language. For example, in Chinese characters, each Chinese character is a character, such as "person", "mountain", "water", etc. In non-Chinese characters, each letter (such as a, b, c, etc.) or Arabic numeral is regarded as 0.5 characters.
[0015] The product drawing refers to a picture that only contains the image of the product and does not contain other elements. When filling the product drawing into the image position of the template drawing, the size of the product image can be appropriately enlarged or reduced according to actual needs.
[0016] As one of the implementation manners, the matching method is to match according to the number of characters of the phrase and the character number information of the template drawing. The template drawing has multiple character positions, and the number of characters in each character position is different. A phrase with a character number less than or equal to the character number information of the template drawing can be selected for matching. Preferably, a phrase is selected from the phrase set with the same number of characters as the character position and filled into the character position of the template drawing.
[0017] Optionally, the character information mark further includes character size information, so that when the phrase is filled into the character position of the template drawing, the font size and character spacing are adjusted.
[0018] Optionally, the character information mark further includes character color information, so that when the phrase is filled into the character position of the template drawing, the font color is adjusted.
[0019] As one of the implementation manners, the method for selecting a phrase from the classified copy set includes: randomly selecting a phrase from the phrase set on the premise of matching the number of characters.
[0020] As another implementation manner, the method for selecting a phrase from the classified copy set includes: determining the priority of the phrases in the phrase set, and selecting the phrase with a higher priority in the phrase set on the premise of matching the number of characters. In a product promotion drawing, the phrase with a higher priority needs to be highlighted and can be placed at the character position with a larger font size.
[0021] Optionally, the method for determining the priority of the phrase includes: sorting the phrases in the phrase set, and determining the priority according to the sorting of the phrases. The phrase ranked first has the highest priority, and the phrase ranked last has the lowest priority.
[0022] Furthermore, a combined method of random selection and selection according to the phrase priority is adopted. For individual character positions of the template drawing, the method of selecting according to the phrase priority can be adopted; for other character positions, the method of random selection can be adopted.
[0023] In a second aspect, the present invention further provides an electronic device. The electronic device includes at least one memory and at least one processor; the at least one memory is coupled to the at least one processor, the at least one memory is used to store a computer program, the at least one processor is used to call the computer program, the computer program includes instructions, and when the instructions are executed by the at least one processor, the electronic device executes the product promotion image production method as described in the first aspect.
[0024] In a third aspect, the present invention further provides a computer storage medium, wherein the computer storage medium includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method for producing a product promotional image as described in the first aspect.
[0025] Compared with the prior art, the present invention has the following beneficial effects: The present invention imports the phrases and product images in the classified copy collection into the selected template image, and matches the product image and phrase to the corresponding position according to the template image marked with the image position and character information, so as to efficiently and quickly produce product promotion images based on the product promotion copy, improve production efficiency, and reduce labor costs. And while retaining the original design style and layout of the template image, multiple product promotion images are generated. The same copy can generate multiple product promotion images based on different template images, and can also generate multiple product promotion images based on the same template image and different phrase combinations. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is a flow chart of the method for producing product promotional images described in an embodiment of the present application.
[0027] Figure 2 This is a schematic diagram of obtaining a collection of classified documents in step S1 of an embodiment of the present application.
[0028] Figure 3 This is a schematic diagram of the template diagram described in an embodiment of the present application.
[0029] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0031] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more. The image position information and character information contained in the template diagrams illustrated in the text are only for the convenience of example. For example, the character position and the number of characters may be more or less than the actual ones, and should not be regarded as a limitation on the technical solution.
[0032] Figure 1 1 is a flow chart of a method for producing a product promotion picture according to the present embodiment, wherein the method for producing a product promotion picture comprises the following steps: Step S1, obtaining a classified copy set, the classified copy set is obtained by decomposing the product promotion copy into phrases and classifying them according to the number of characters in the phrases. The product promotion copy can be a complete product introduction or multiple phrases or phrases that represent product features. The classified copy set includes at least one phrase set, and each phrase set includes phrases with the same number of characters.
[0033] As one of the embodiments, the method for decomposing the product promotion copy into phrases is: inserting identification symbols between each phrase in the product promotion copy. By using the identification symbols to separate the product promotion copy, two identification symbols are regarded as a phrase. The identification symbols include but are not limited to space characters, line breaks, brackets, *, etc. Optionally, the original punctuation marks in the product promotion copy can be removed.
[0034] For example, Figure 2 As shown in the figure, the product promotion copy of a backpack is "The backpack is fashionable and practical, with lightweight material, large capacity, and multi-pocket design to meet your daily travel needs. It is comfortable to carry and is your intimate partner."
[0035] First, insert the identification symbol. After inserting the identification symbol (such as a space character), the product promotional copy is "The backpack is stylish and practical, with lightweight material, large capacity, and multi-pocket design to meet your daily travel needs. It is comfortable to carry and is your intimate partner."; or, the identification symbol is *, and the product promotional copy is "*Backpack* is stylish and practical, *lightweight material, *large capacity, *multi-pocket design, *meets your daily travel needs, *comfortable to carry, *and is your intimate partner*."; In addition, on this basis, the original punctuation marks can also be removed and adjusted to "The backpack is stylish and practical, with lightweight material, large capacity, and multi-pocket design to meet your daily travel needs and is comfortable to carry. It is your intimate partner."
[0036] Second, break down the adjusted product promotional copy into phrases, and get "backpack", "stylish and practical", "lightweight material", "large capacity", "multi-pocket design", "meet your daily travel needs", "comfortable to carry", and "is your intimate partner".
[0037] Third, the phrases are classified according to the number of characters to obtain a set of phrases, as shown below: The set of two-character phrases {"backpack"}; Four-character phrase set {“lightweight material”, “large capacity”, “comfortable to carry”}; A collection of five-character phrases {“fashionable and practical”, “multi-pocket design”}; The eight-character phrase set {"is your caring and good friend"}; Nine-character phrase set {"Meet your daily travel needs"}.
[0038] As another embodiment, the product promotion text is input into an artificial intelligence model, and the artificial intelligence model recognizes the phrases and classifies them to obtain corresponding classification results.
[0039] After or simultaneously with obtaining the classified copy collection, at least one template diagram is obtained.
[0040] The template image is selected from the template image library. The template image includes an image position mark and a character information mark. The character information mark includes character position information and character quantity information. Furthermore, the character information mark also includes character size information and character color information, so that the font size and color can be adjusted when the phrase is filled into the character position of the template image. For example, Figure 3 As shown, the template diagram illustrates the image position mark and the character information mark, wherein there are three character positions, including the character position with the number of characters being 2, the character position with the number of characters being 4, and the character position with the number of characters being 5. In addition to the image position mark and the character information mark, the template diagram also includes other design elements such as images ( Figure 3 (omitted in the figure) to serve as the background of the product promotional image.
[0041] The template library can be stored locally, on the Internet, in a mobile network or in other clouds. As one embodiment, the template library is stored locally, and the local refers to the electronic device executing the product promotion image making method or a server or storage in the same local area network as the electronic device.
[0042] As one of the embodiments, the method for making a template image in the template image library includes: importing an image, marking an image position and character information on the image. The image comes from an authorized image library locally or on the Internet.
[0043] As another embodiment, the method for making a template image in the template image library includes: importing an existing product promotion image, which can be a product promotion image of the existing product or other popular products. Identify the product image and characters on the existing product promotion image, mark the image position at the product image and remove the product image; mark the character information at the character and remove the character. Refer to the design style of the product promotion image of the popular product, and retain its character position layout design (font size, color, etc.).
[0044] Step S2, importing the phrases and product images in the classified copy set into the template image, selecting at least one phrase from the classified copy set to match and fill in the character position of the template image, and filling the product image into the image position of the template image to generate at least one product promotional image.
[0045] The matching method is to match the number of characters in the phrase with the number of characters in the template image. The template image has multiple character positions, and the number of characters in each character position is different. A phrase whose number of characters is less than or equal to the number of characters in the template image can be selected for matching. A phrase is preferentially selected from a set of phrases with the same number of characters as the character position and filled into the character position of the template image. If there is no set of phrases with the same number of characters, a phrase whose number of characters is less than the number of characters in the template image is selected as appropriate.
[0046] As a first embodiment, a phrase is randomly selected from a phrase set on the premise of matching the number of characters.
[0047] For example, there are 10 template images in the template library. If you select all or some of them, and select 3 template images, the situation is as follows: template Figure 1 There are 3 character positions, and the number of characters in the character positions are 2, 4, and 5 respectively; template Figure 2 There are three character positions, and the number of characters in the character positions are 3, 5, and 8 respectively; template Figure 3 There are 5 character positions, and the numbers of characters in the character positions are 4, 4, 4, 5, and 5 respectively.
[0048] Taking the product promotion copy mentioned in step S1 as an example, a phrase is selected from the phrase set for matching to generate a product promotion picture. The following situations exist: The first case: template Figure 1 Import the phrase set and product image into the template image. Since there is only one phrase in the two-character phrase set in the phrase set, the template Figure 1The only phrase that can be selected at the character position with a character count of 2 is "backpack"; there are 3 phrases in the four-character phrase set in the phrase set, and a phrase character is randomly selected from them (this time it is "lightweight material") to fill in the character position with a character count of 4; there are 2 phrases in the five-character phrase set in the phrase set, and a phrase is randomly selected from them (this time it is "fashionable and practical") to fill in the character position with a character count of 5; when the phrase is filled in, the font size and color are adjusted according to the corresponding character size and character color information to generate the first product promotional picture.
[0049] The second case: template Figure 1 is a template graph. Similar to the first case, the template Figure 1 The phrase randomly selected at the character position with a character number of 2 is "backpack"; the phrase randomly selected at the character position with a character number of 4 is "super large capacity"; the phrase randomly selected at the character position with a character number of 5 is "multi-pocket design", generating the second product promotional picture.
[0050] The third case: template Figure 1 is a template graph. Similar to the first case, the template Figure 1 The phrase randomly selected at the character position with a character number of 2 is "backpack"; the phrase randomly selected at the character position with a character number of 4 is "lightweight material"; the phrase randomly selected at the character position with a character number of 5 is "multi-pocket design", generating the third product promotional picture.
[0051] The fourth case: template Figure 1 is a template graph. Similar to the first case, the template Figure 1 The phrase randomly selected at the character position with a character count of 2 is "backpack"; the phrase randomly selected at the character position with a character count of 4 is "super large capacity"; the phrase randomly selected at the character position with a character count of 5 is "fashionable and practical", generating the fourth product promotional picture.
[0052] The fifth case: template Figure 2 Import phrase collections and product images for template images, templates Figure 2 The character position with a character quantity of 3 can be matched with the two-character phrase set. Since the two-character phrase set has only one phrase, the template Figure 2 The only phrase that can be selected for the character position with a character count of 3 is "backpack"; there are 2 phrases in the five-character phrase set in the phrase set, and one phrase is randomly selected from them (this time it is "fashionable and practical") to fill the character position with a character count of 5; similarly, since there is only 1 phrase in the eight-character phrase set, the template Figure 2The only phrase that can be selected for the character position with a character quantity of 8 is "is your intimate and good partner"; when the phrase is filled in, the font size and color are adjusted according to its corresponding character size and character color information to generate the 5th product promotional picture.
[0053] The sixth case: template Figure 2 is a template graph. Similar to the first case, the template Figure 2 The phrase selected at the character position with the number of characters being 3 is “backpack”; the phrase randomly selected at the character position with the number of characters being 5 is “multi-pocket design”; and the phrase selected at the character position with the number of characters being 8 is “is your intimate partner”, generating the sixth product promotional picture.
[0054] The seventh case: template Figure 3 Import the phrase set and product image into the template image. The four-character phrase set in the phrase set has three phrases ("lightweight material", "large capacity", "comfortable to carry"). Figure 3 There are exactly three character positions with 4 characters in the template. Fill the three phrases into the character positions with 4 characters respectively, and adjust the character positions of the three phrases to obtain six layout combinations. Figure 3 There are 2 character positions with 5 characters in the phrase set, and there are exactly 2 phrases in the five-character phrase set ("fashionable and practical", "multi-pocket design"). Fill these 2 phrases into the character positions with 5 characters respectively, and adjust the character positions of these 2 phrases to obtain 2 types of layout combinations; the above can generate the 7th to 18th pictures, a total of 12 product promotion pictures.
[0055] From the above, it can be seen that in this embodiment, when the product promotion copy adopts 3 template images and the product image remains unchanged, 18 product promotion images can be obtained, including templates Figure 1 Product promotion Figure 4 Zhang, template involved Figure 2 Product promotion Figure 2 Zhang, template involved Figure 3 In addition, the phrases in the nine-character phrase set were not included in the template because the number of characters did not match. Figure 1 ,template Figure 2 and templates Figure 3 Select, you can select other template images for matching.
[0056] As a second embodiment, the priority of the phrases in the phrase set is first determined, and the phrases with high priority in the phrase set are selected under the premise of matching the number of characters. In the product promotion picture, the phrases with high priority need to be highlighted and can be placed at the position of characters with larger fonts.
[0057] The method for determining the priority of a phrase includes: sorting the phrases in the phrase set, and determining the priority according to the order of the phrases. The phrase that is ranked first has the highest priority, and the phrase that is ranked last has the lowest priority. For example, taking the product promotion copy mentioned in step S1 as an example, the priority of the phrases in the four-character phrase set and the five-character phrase set is determined, and they are arranged from left to right in order of priority, as shown below: The four-character phrase set {"lightweight material", "large capacity", "comfortable to carry"}, among which the phrase "lightweight material" has the highest priority, and the phrase "comfortable to carry" has the lowest priority.
[0058] The five-character phrase set {"fashionable and practical", "multi-pocket design"}, among which the phrase "fashionable and practical" has the highest priority, and the phrase "multi-pocket design" has the lowest priority.
[0059] When performing step S2, the template Figure 1 For the template diagram as an example, the template Figure 1 The phrase selected for the character position with a character number of 2 is "backpack"; the phrase selected for the character position with a character number of 4 is "lightweight material"; the phrase selected for the character position with a character number of 5 is "stylish and practical", and a product promotional image is generated.
[0060] As a third embodiment, a combination of random selection and selection based on phrase priority is adopted. For individual character positions of the template image, a selection based on phrase priority can be adopted; for other character positions, a random selection can be adopted.
[0061] Based on the same inventive concept as the above-mentioned embodiment of the method for producing product promotion pictures, an electronic device is also provided in the embodiment of the present application.
[0062] like Figure 4 As shown, a specific structural block diagram of an electronic device 100, the electronic device 100 includes: at least one memory 101, and at least one processor 102; the at least one memory 101 is coupled to the at least one processor 102, the at least one memory 101 is used to store computer programs, and the at least one processor 102 is used to call the computer program, and the computer program includes instructions, and when the instructions are executed by the at least one processor, the electronic device executes the above-mentioned product promotion picture making method.
[0063] Based on the same inventive concept as the above-mentioned product promotional image production method and electronic device embodiments, a computer storage medium is also provided in the embodiments of the present application.
[0064] The following describes a computer storage medium containing the above-mentioned product promotional image production method.
[0065] A computer storage medium includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned product promotion picture making method.
[0066] The electronic device 100 and computer storage medium provided in this embodiment belong to the same concept as the above-mentioned method for making product promotion pictures. The specific implementation process is detailed in the full text of the specification and will not be repeated here.
[0067] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method for producing a product promotional picture, characterized in that: The following steps are involved: S1. Obtaining a collection of classified texts, wherein the collection of classified texts is obtained by decomposing the product promotional texts into phrases and classifying them according to the number of characters in the phrases; Obtain at least one template image, wherein the template image is selected from a template image library, and the template image includes an image position mark and a character information mark, wherein the character information mark includes character position information and character quantity information; S2. Import the phrases and product images in the classified copy collection into the template image, select at least one phrase from the classified copy collection to match and fill it into the character position of the template image, fill the product image into the image position of the template image, and generate at least one product promotional image.
2. The method for making a product promotional image according to claim 1, characterized in that: The method of decomposing the product promotion copy into phrases is to insert identification symbols between each phrase in the product promotion copy.
3. The method for making a product promotional image according to claim 1, characterized in that: The classified copy set includes at least one phrase set, and each phrase set includes phrases with the same number of characters.
4. The method for making a product promotional image according to claim 1 or 2, characterized in that: The method for making the template image in the template image library includes: importing an image, and marking the image position and character information on the image.
5. The method for making a product promotion picture according to claim 1 or 2, characterized in that: The method for making the template image in the template library includes: importing an existing product promotional image, identifying the product image and characters on the existing product promotional image, marking the image position at the product image and removing the product image; marking the character information at the character and removing the character.
6. The method for making a product promotional image according to claim 1, characterized in that: The matching method is to match the number of characters in the phrase with the number of characters in the template image.
7. The method for making a product promotional image according to claim 1 or 6, characterized in that: The character information mark also includes character size information and character color information.
8. The method for making a product promotional image according to claim 7, characterized in that: The method of selecting a phrase from the classified copy set includes: randomly selecting on the premise of matching the number of characters; or determining the priority of the phrases in the phrase set, and selecting a phrase with a high priority in the phrase set on the premise of matching the number of characters.
9. An electronic device, characterized in that: It includes at least one memory and at least one processor; the at least one memory is coupled to the at least one processor, the at least one memory is used to store a computer program, the at least one processor is used to call the computer program, and the computer program includes instructions. When the instructions are executed by the at least one processor, the electronic device executes the product promotion image production method as described in any one of claims 1 to 8.
10. A computer storage medium, characterized in that: It includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method for producing a product promotional image as described in any one of claims 1 to 8.