Article information matching diagram generation method and apparatus, device, medium, and program product

By determining the item category and scene type, selecting a reasonable background image and adjusting the item position, the problem of low efficiency and unreasonable item information matching map generation in the existing technology is solved, and fast and beautiful item information matching map generation is achieved.

WO2024193331A1PCT designated stage expired Publication Date: 2024-09-26JINGDONG TECH HLDG CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/079877
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2024-03-04
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

When the existing technology generates an item information matching map, it is difficult to handle new categories of items and items with large differences in the size of the preset annotation boxes, resulting in unreasonable, unsightly and low-efficiency generated images.

Method used

By determining the item category and placement scene type, select a reasonable background image, adjust the placement of the item image based on the item location information, and dynamically adjust the position and size of the item image in the background image.

Benefits of technology

It realizes the rapid generation of reasonable and beautiful item information matching pictures when new categories of items appear, avoiding the inefficiency of manual matching and background picture selection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024079877_26092024_PF_FP
    Figure CN2024079877_26092024_PF_FP
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose an article information matching diagram generation method and apparatus, a device, a medium, and a program product. A specific embodiment of the method comprises: for each piece of article category information in an article information group, determining an article placement area type and an article placement scene type; on the basis of the article placement area type set, the article placement scene type set, the article information group, and a background diagram set, determining a target background diagram and article distribution relationship information; determining at least one piece of article information corresponding to an article placement area; determining article position information corresponding to the at least one piece of article information; and according to the position information of each article, filling each article image into a corresponding article placement area in the target background diagram, so as to obtain an article information matching diagram.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, equipment, medium and program product for generating item information matching diagram

[0001] This application claims priority to Chinese patent application No. 202310272490.X filed on March 20, 2023, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present disclosure relate to the field of computer technology, and in particular to methods, devices, equipment, media, and program products for generating item information matching diagrams during metaverse shopping. Background Art

[0003] When generating an item information matching map, the commonly used method is to fill the item image into a general background image template, a manually matched background image template, or fill the item image into a background image including a preset annotation box according to the category of the item image.

[0004] However, the inventors have found that when this method is adopted, the following technical problems often occur:

[0005] When new categories of item information appear, the background image needs to be manually re-matched, and it is difficult to handle items with a large scale difference from the preset annotation box, making the generated item information matching map unreasonable, unsightly, and inefficient.

[0006] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art.

[0007] Summary of the Invention

[0008] The content of this disclosure is used to briefly introduce concepts that will be described in detail in the detailed description section below. The content of this disclosure is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0009] Some embodiments of the present disclosure provide methods, devices, equipment, media, and program products for generating item information collocation diagrams to solve the technical problems mentioned in the above background technology section.

[0010] In a first aspect, some embodiments of the present disclosure provide a method for generating an item information matching map, the method comprising: determining the corresponding item placement area type and item placement scene type for item category information included in each item information in a pre-acquired item information group, wherein the item information in the item information group also includes an item image; determining the target background map and item allocation relationship information corresponding to the target background map based on the obtained item placement area type set, the obtained item placement scene type set, the item information group and the pre-acquired background map set, wherein the target background map includes at least one item placement area; for each item placement area in the at least one item placement area, determining the at least one item information corresponding to the item placement area based on the item allocation relationship information; for each item placement area in the at least one item placement area, determining the item position information corresponding to the at least one item information; and filling the corresponding item placement area in the target background map with each item image included in the item information group according to the obtained item position information to obtain an item information matching map.

[0011] In a second aspect, some embodiments of the present disclosure provide an item information matching map generating device, the device comprising: a first determining unit, configured to determine the corresponding item placement area type and item placement scene type for item category information included in each item information in a pre-acquired item information group, wherein the item information in the item information group also includes an item image; a second determining unit, configured to determine the target background map and item allocation relationship information corresponding to the target background map based on the obtained item placement area type set, the obtained item placement scene type set, the item information group and the pre-acquired background map set, wherein the target background map includes at least one item placement area; a third determining unit, configured to determine, for each item placement area in the at least one item placement area, at least one item information corresponding to the item placement area based on the item allocation relationship information; a fourth determining unit, configured to determine, for each item placement area in the at least one item placement area, item position information corresponding to the at least one item information; a filling unit, configured to fill, according to the obtained item position information, each item image included in the item information group into the corresponding item placement area in the target background map to obtain the item information matching map.

[0012] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation manner of the first aspect.

[0013] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation of the first aspect is implemented. In a fifth aspect, some embodiments of the present disclosure provide a computer program product including the computer program, wherein when the computer program is executed by a processor, the method described in any implementation of the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The various embodiments of the present disclosure and other features, advantages, and aspects will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0015] 1-5 are schematic diagrams of an application scenario of a method for generating an item information matching diagram according to some embodiments of the present disclosure;

[0016] FIG6 is a flowchart of some embodiments of a method for generating an item information collocation diagram according to the present disclosure;

[0017] FIG7 is a flowchart of another embodiment of a method for generating an item information collocation diagram according to the present disclosure;

[0018] FIG8 is a schematic structural diagram of some embodiments of an apparatus for generating an item information collocation diagram according to the present disclosure;

[0019] FIG9 is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0021] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other.

[0022] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0023] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0024] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0025] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0026] 1-5 are schematic diagrams of an application scenario of a method for generating an item information matching diagram according to some embodiments of the present disclosure.

[0027] In the application scenarios of Figures 1-5, the computing device first determines the corresponding item placement area type and item placement scene type for each item category information included in a pre-acquired item information set, where the item information in the item information set also includes an item image. Figure 1 provides a specific example of an item information set and its corresponding item placement area type and item placement scene type. In Figure 1, the item information set is [(refrigerator image, refrigerator category), (fan image, fan category), (air conditioner image, air conditioner category)]. The item placement area type corresponding to (refrigerator image, refrigerator category) is floor type, and the item placement scene type is living room type. The item placement area type corresponding to (fan image, fan category) is floor type, and the item placement scene type is living room type. The item placement area type corresponding to (air conditioner image, air conditioner category) is wall type, and the item placement scene type is living room type. Then, based on the obtained set of item placement area types, the obtained set of item placement scene types, the item information set, and the pre-acquired set of background images, the computing device determines the target background image and item allocation relationship information corresponding to the target background image, where the target background image includes at least one item placement area. Figure 2 is a specific example of at least one item placement area included in the target background image. The target background image in Figure 2 includes two item placement areas, namely item placement area 1 and item placement area 2. The item allocation relationship information corresponding to the target background image is [(item placement area 1-air conditioner image), (item placement area 2-fan image, refrigerator image)]. Next, the computing device determines, for each item placement area in the at least one item placement area, at least one item information corresponding to the item placement area based on the item allocation relationship information. Figure 3 is a specific example of at least one item information corresponding to the item placement area. Afterwards, the computing device determines, for each item placement area in the at least one item placement area, item location information corresponding to at least one item information. Figure 4 is a specific example of item location information corresponding to at least one item information. Finally, the computing device fills each item image included in the item information group into the corresponding item placement area in the target background image based on the obtained item location information to obtain an item information matching map. Figure 5 is a specific example of an item information matching map.

[0028] It should be noted that computing devices are both hardware and software. When a computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When a computing device is embodied as software, it is installed in the listed hardware devices. It can be implemented as, for example, multiple software programs or software modules used to provide distributed services, or as a single software program or software module. No specific limitations are given here. It should be understood that the number of computing devices in Figures 1-5 is merely illustrative. Any number of computing devices may be used depending on implementation needs.

[0029] 6, a process 600 of some embodiments of the method for generating an item information collocation diagram according to the present disclosure is shown. The method for generating an item information collocation diagram includes the following steps:

[0030] Step 601: For each item in the pre-acquired item information group, the item placement area type and the item placement scene type are determined.

[0031] In some embodiments, the execution entity (e.g., a computing device) of the item information matching diagram generation method pre-acquires item category information for each item in an item information group via a wired or wireless connection. For each item in the pre-acquired item information group, the execution entity determines the corresponding item placement area type and item placement scene type. The item information in the item information group also includes item images. Item category information is information about the classification of items. Classification information is information based on the function and purpose of an item, such as home appliances, office appliances, or clothing. Item category information is also sub-category information within the item classification information. For example, fans in the home appliance category include desktop fans, floor fans, and mini fans, etc., or dryers in the home appliance category include tumble dryers, hanging dryers, and handheld dryers, etc. Item placement area types include, but are not limited to, at least one of the following: desktop type, wall type, and floor type. Item placement scene types include, but are not limited to, at least one of the following: kitchen type, living room type, study type, and bedroom type.

[0032] Step 602: Determine the target background image and the item allocation relationship information corresponding to the target background image based on the obtained item placement area type set, the obtained item placement scene type set, the item information group, and the pre-acquired background image set.

[0033] In some embodiments, the execution entity determines a target background image and item allocation relationship information corresponding to the target background image based on the obtained set of item placement area types, the obtained set of item placement scene types, the item information group, and the pre-acquired set of background images. The target background image includes at least one item placement area. An item placement area is an area within the background image that can be filled with an item image. The item allocation relationship information is information about the allocation relationship between item information and item placement areas.

[0034] Optionally, the background image set is generated by the following steps: First, images of various scene types are obtained as the background image set. The background images in the background image set include at least one object placement area. The various scene types include kitchen type, living room type, office type, etc. The object placement area includes area attribute information, and the area attribute information includes at least one of the following: the actual size value of the area, corner point position information, area type, scene type, and transformation matrix. The actual size value of the area is the actual size value of the long side of the area. The actual size value of the area is estimated based on the surrounding objects. The corner point position information is the pixel position information of the four corner points of the object placement area in the background image. The pixel position information is represented by the position of the pixel in the image. The area type includes but is not limited to at least one of the following: desktop type, wall type, and ground type. Use a labeling tool (such as labelme) to mark the four corner point position information and area type of the object placement area. The scene type includes but is not limited to at least one of the following: kitchen type, living room type, study type, and bedroom type. The transformation matrix is ​​obtained by solving the transmission transformation formula using the four corner points and the coordinates of the four corner points of the object placement area in a simple representation. The four corner points of the simplified representation are represented by a rectangle of fixed length and width (x1, y1, x2, y2). (x1, y1) represents the coordinates of the upper left corner of the rectangle. (x2, y2) represents the coordinates of the lower right corner of the rectangle. In the application, the item image position information and item image size information of the item are first obtained in the rectangle, and then the item image position information and item image size information are mapped to the item placement area using a transformation matrix. The second step is to resize each item placement area included in each background image in the background image set to obtain an adjusted background image. As an example, the execution entity uses drawing software (such as Picart software) to resize each item placement area included in the background image to obtain an adjusted background image. Optionally, resizing each item placement area included in the background image includes: for each item placement area, executing the following resizing steps: a first adjustment sub-step, obtaining adjusted item information based on the area type and scene type of the item placement area. The adjusted item information includes the actual size value of the item. The adjusted item information is the item information used as a reference for resizing. The actual size of the item is the actual size of the item's longest side in reality. The second adjustment sub-step involves determining the regional image size and the actual size of the area where the item is placed. The regional image size is represented by the number of pixels occupied by the area's longest side in the background image. The actual size of the area is the actual size of the area's longest side in reality. The third adjustment sub-step involves generating an item image size based on the actual size of the item, the regional image size, and the actual size. The item image size represents the number of pixels occupied by the item's longest side in the background image.As an example, the execution entity calculates the product of the item's actual size and the area image size to obtain a product value. The product value and the area's actual size are then divided to obtain the item image size value corresponding to the same type of item information. The item's actual size value is the actual size of the item's longest side in real life. A fourth adjustment sub-step involves resizing the item placement area based on the item image size value. As an example, the execution entity draws the item image within the item placement area within the background image based on the item image size value. If the item image is too large, the area's actual size value of the item placement area is enlarged. If the item image is too small, the area's actual size value of the item placement area is reduced. Thus, the item placement area is resized. A third step involves determining the resulting adjusted background image set as a background image set. In some optional implementations of some embodiments, the execution entity determines a target background image and item allocation relationship information corresponding to the target background image based on the obtained item placement area type set, the obtained item placement scene type set, the item information group, and the pre-acquired background image set. The steps include: For the background image set, performing the following background image screening steps: First, selecting a background image from the background image set. The second step is to obtain at least one area type and at least one scene type corresponding to at least one item placement area included in the selected background image. For example, an item placement area corresponds to an area type and a scene type. Area types include, but are not limited to, at least one of the following: desktop type, wall type, and floor type. Scene types include, but are not limited to, at least one of the following: kitchen type, living room type, study type, and bedroom type. The area type of item placement area 1 included in the selected background image is floor type, and the scene type is living room type. The third step is to, in response to the presence of an item placement area type subset with the same content as at least one area type in the item placement area type set, and the presence of an item placement scene type subset with the same content as at least one scene type in the item placement scene type set, assign item information whose item placement area type, item placement scene type, area type, and scene type match to the corresponding item placement area, thereby obtaining an assignment result. A match means that the item placement area type and area type are identical, and the item placement scene type and scene type are identical. For example, the item placement area type set is [wall type, floor type]. At least one area type is [wall type, floor type, desktop type]. The item placement scene type set is [living room type]. At least one scene type is [Living Room Type, Study Type]. Item Information 1's item placement area type is Floor Type, and its item placement scene type is Living Room Type. Item Placement Area 2's area type is Floor Type, and its scene type is Living Room Type. In practice, the execution entity assigns Item Information 1 to the corresponding Item Placement Area 2.

[0035] Optionally, the background image screening step further includes: a first step of determining whether at least one similar allocation result exists in the allocation results. A similar allocation result indicates that multiple pieces of similar item information are allocated to at least one similar item placement area. The multiple pieces of similar item information correspond to the same item placement area type. The multiple pieces of similar item information correspond to the same item placement scene type. The at least one piece of similar item placement area corresponds to the same at least one piece of similar item placement area type. The at least one piece of similar item placement area corresponds to the same at least one piece of similar item placement area type. As an example, if item information 1 and item information 2 both have an item placement area type of floor type and an item placement scene type of living room type, then item information 1 and item information 2 are multiple pieces of similar item information. Item placement area 1 has an area type of floor type and a scene type of living room type. Item placement area 1 is at least one similar item placement area. Therefore, allocating item information 1 and item information 2 to the corresponding item placement area 1 is considered a single similar allocation result. A second step, in response to the existence of at least one similar allocation result in the allocation results, performs the following similar allocation result screening step for the at least one similar allocation result: a first screening sub-step of selecting a similar allocation result from the at least one similar allocation result. The second screening sub-step involves identifying multiple pieces of similar item information corresponding to the selected similar allocation results as a similar item information set. The third screening sub-step involves identifying at least one similar item placement area corresponding to the selected similar allocation result as a similar item placement area set. The fourth screening sub-step involves sorting the item image size values ​​corresponding to each piece of similar item information in the similar item information set in descending order to obtain a sorted sequence of item image size values. As an example, the execution entity first obtains the true size values ​​of the similar item information. Then, the region image size values ​​and the true size values ​​of the region for the item placement areas are determined through various methods. Finally, the true size values ​​of the item and the region image size values ​​are multiplied to obtain a product value. The product value is then divided by the true size value of the region to obtain the item image size value corresponding to the similar item information. The true size value of the item is the actual size of the longest side of the item. The true size value of the region is the actual size of the longest side of the region. The region image size value is represented by the number of pixels that the long side of the region occupies within the background image. The fifth screening sub-step involves sorting the area image size values ​​of each similar item placement area in the similar item placement area set in descending order to obtain a sequence of sorted area image size values. The area image size value is represented by the number of pixels occupied by the long side of the area within the background image. The sixth screening sub-step involves determining the number of similar item information in the similar item information set to obtain a value for the number of similar item information. The seventh screening sub-step involves determining the number of similar item placement areas in the similar item placement area set to obtain a value for the number of similar item placement areas.

[0036] Optionally, the similar allocation result screening step further includes: a first step: in response to the number of similar item information being less than or equal to the number of similar item placement areas, assigning each item image included in the similar item information set to a corresponding item placement area based on the sorted item image size value sequence and the sorted area image size value sequence, thereby obtaining a similar item allocation relationship set. For example, the similar item allocation relationship set is [item information 3 - item placement area 1]. A second step: based on the similar item allocation relationship set, performing the following background image processing step: a first processing sub-step: determining the image size difference corresponding to each similar item allocation relationship in the similar item allocation relationship set, thereby obtaining an image size difference value set. As an example, the execution entity performs a subtraction process on the item image size value of item information 3 and the area image size value of item placement area 1 to obtain the image size difference value corresponding to [item information 3 - item placement area 1]. Optionally, in response to the fact that no image size difference value in the image size difference value set is less than a first target threshold, and the number of unselected similar allocation results in at least one similar allocation result is greater than a second target threshold, the execution entity uses the unselected similar allocation result set as the at least one similar allocation result and performs the similar allocation result screening step again. The first target threshold and the second target threshold are pre-set based on actual conditions. For example, the first target threshold and the second target threshold are 0. In a second processing sub-step, in response to the fact that no image size difference in the image size difference set is less than the first target threshold, and the number of unselected similar allocation results in at least one similar allocation result is equal to the second target threshold, the selected background image is added as a candidate background image to a pre-created initial candidate background image set, thereby obtaining a candidate background image set. Thus, after determining that all similar allocation results are reasonable, the selected background image is selected as a candidate background image. In a third processing sub-step, in response to the fact that no image size difference in the image size difference set is less than the first target threshold, and the number of unselected similar allocation results in at least one similar allocation result is equal to the second target threshold, the at least one obtained similar item allocation relationship set is determined as the item allocation relationship information corresponding to the candidate background image. Optionally, in response to the fact that any image size difference in the image size difference set is less than the first target threshold, the execution entity selects the unselected background image set in the background image set as the background image set and performs the background image screening step again. Therefore, when any image size difference in the image size difference set is smaller than the first target threshold, it indicates that the background image needs to be eliminated and a new background image needs to be selected. Thus, a candidate background image set is determined from the background image set.

[0037] Optionally, the same-type allocation result screening step further includes: in response to the number of similar item information being greater than the number of similar item placement areas, executing the following item allocation relationship information generation step based on the sorted item image size value sequence and the sorted area image size value sequence: a first generation sub-step of determining the item images included in each of the similar item information corresponding to the first N sorted item image size values ​​in the sorted item image size value sequence as a set of item images to be allocated. The value of N is the same as the number of similar item placement areas. A second generation sub-step of assigning the set of item images to be allocated to corresponding item placement areas based on the sorted item image size value sequence and the sorted area image size value sequence to obtain a set of item allocation relationships to be allocated as a set of similar item allocation relationships. The item allocation relationships to be allocated are relationships that assign item images to corresponding item placement areas. For example, the set of item allocation relationships to be allocated is [item information 1 - item placement area 2]. A third generation sub-step of determining the image size difference corresponding to each item allocation relationship in the set of item allocation relationships to be allocated to obtain a set of allocation image size difference values. As an example, the execution entity performs a subtraction operation on the item image size value of 533 pixels for item information 1 and the area image size value of 800 pixels for item placement area 2, resulting in an image size difference of 267 pixels corresponding to [item information 1 - item placement area 2]. Optionally, in response to any allocated image size difference value in the allocated image size difference value set being less than a first target threshold, the execution entity uses the unselected background image set in the background image set as the background image set and performs the background image screening step again. Thus, if any allocated image size difference value in the allocated image size difference value set is less than the first target threshold, it indicates that the background image needs to be eliminated and a new background image needs to be selected. Thus, a candidate background image set is determined from the background image set. In the fourth generation sub-step, in response to no allocated image size difference value in the allocated image size difference value set being less than the first target threshold, the allocated image size difference value set is sorted in descending order to obtain a sorted allocated image size difference sequence. In the fifth generation sub-step, the number of unassigned items in the unassigned item image set is determined. The unassigned item image set is a set of item images from among the item images corresponding to the same item information set, excluding the set of to-be-assigned item images. In a sixth generation sub-step, in response to the number of unassigned items being less than or equal to the number of placement zones for similar items, the item images included in each unassigned item image set are assigned to corresponding item placement zones based on the item image size values ​​corresponding to the unassigned item image set and the sequence of size differences between the sorted assigned images, thereby obtaining an unassigned item allocation relationship set. In a seventh generation sub-step, the background image processing step is performed using the unassigned item allocation relationship set as the same item allocation relationship set.Therefore, when the number of unassigned items is less than or equal to the number of similar item placement areas, the item images included in the unassigned item images are assigned, and after the image assignment, it is determined whether the background image is used as a candidate background image.

[0038] Optionally, in response to the number of unassigned item images being greater than the number of similar item placement areas, the execution entity uses the number of unassigned item images as the similar item information number value, uses the sorted item image size value sequence after removing the first N sorted item image size values ​​as the sorted item image size value sequence, and uses the sorted assigned image size difference value sequence as the sorted area image size value sequence, and executes the item allocation relationship information generation step again. Thus, if the number of unassigned item images is greater than the number of similar item placement areas, the item allocation relationship information generation step is executed again until the number of unassigned item images is less than or equal to the number of similar item placement areas, and the allocation is completed.

[0039] Optionally, based on the obtained set of item placement area types, the obtained set of item placement scene types, the item information group, and the pre-acquired background image set, determining the target background image and the item allocation relationship information corresponding to the target background image further includes the following steps: First, determining whether the candidate background image set is an empty set. Second, in response to the candidate background image set not being an empty set, randomly selecting a candidate background image from the candidate background image set as the target background image, and using the item allocation relationship information corresponding to the selected candidate background image as the item allocation relationship information corresponding to the target background image. Third, in response to the candidate background image set being an empty set, determining a pre-acquired general background image as the target background image.

[0040] Step 603: For each item placement area in the at least one item placement area, determine at least one item information corresponding to the item placement area based on the item allocation relationship information.

[0041] In some embodiments, the execution entity determines, for each of the at least one item placement areas, at least one item information corresponding to the item placement area based on the item allocation relationship information. The item allocation relationship information is [(item placement area 1 - air conditioner image), (item placement area 2 - fan image, refrigerator image)].

[0042] Step 604 : For each item placement area in the at least one item placement area, determine item location information corresponding to the at least one item information.

[0043] In some embodiments, the execution entity randomly determines the item location information corresponding to the at least one item information for each item placement area in the at least one item placement area.

[0044] Step 605 , based on the obtained position information of each item, each item image included in the item information group is filled into the corresponding item placement area in the target background image to obtain an item information matching image.

[0045] In some embodiments, the executing entity pastes each item image included in the item information group into the corresponding item placement area in the target background image based on the obtained item location information, thereby generating an item information matching image. The item information matching image is the image obtained by pasting each item image onto the target background image.

[0046] Various embodiments of the present disclosure have the following advantageous effects: Through the item information matching diagram generation method of some embodiments of the present disclosure, when new categories of item information appear or when processing items with significantly different dimensions from the preset annotation box, an item information matching diagram can be quickly generated, and the generated item information matching diagram is more reasonable and aesthetically pleasing. Specifically, the unreasonable, unattractive, and inefficient generated item information matching diagrams are caused by the need to manually re-match the background image when new categories of item information appear, and the difficulty in handling items with significantly different dimensions from the preset annotation box. Based on this, the item information matching diagram generation method of some embodiments of the present disclosure first determines the corresponding item placement area type and item placement scene type for each item information category included in a pre-acquired item information group, where the item information in the item information group also includes an item image. Thus, when new categories of item information appear, by determining the corresponding item placement area type and item placement scene type, the new category of item information can be quickly assigned an item placement area. This avoids the need for manual matching of new categories of item information. Next, based on the obtained set of item placement area types, the obtained set of item placement scene types, the item information group, and the pre-acquired background image set, the target background image and item allocation relationship information corresponding to the target background image are determined, wherein the target background image includes at least one item placement area. Thus, a relatively reasonable background image is selected from the pre-acquired background image set as the target background image, thereby making background image selection more reasonable, avoiding the use of manually matched background images, and improving the efficiency of background image generation. Next, for each item placement area in the at least one item placement area, based on the item allocation relationship information, at least one item information corresponding to the item placement area is determined. Furthermore, for each item placement area in the at least one item placement area, item position information corresponding to the at least one item information is determined. Thus, based on the item position information, the item images to be populated in the target background image are adjusted. Finally, based on the obtained item position information, the item images included in the item information group are populated in the corresponding item placement area in the target background image, thereby generating an item information matching image. Therefore, when new categories of item information appear, manual re-matching of the background image is avoided. At the same time, according to the item position information, the item image is filled into the corresponding item placement area in the target background image, making the generated item information matching map more reasonable and beautiful.

[0047] The above implementation method is related to Metaverse Shopping, and realizes that when a new category of item information appears, an item information matching diagram can be quickly generated, and the generated item information matching diagram is more reasonable and beautiful.

[0048] 7, which shows a process 700 of another embodiment of a method for generating an item information collocation diagram. The process 700 of the method for generating an item information collocation diagram includes the following steps:

[0049] Step 701: For each item in the pre-acquired item information group, the item placement area type and the item placement scene type are determined.

[0050] Step 702: Determine the target background image and the item allocation relationship information corresponding to the target background image based on the obtained item placement area type set, the obtained item placement scene type set, the item information group, and the pre-acquired background image set.

[0051] Step 703: For each item placement area in the at least one item placement area, determine at least one item information corresponding to the item placement area based on the item allocation relationship information.

[0052] In some embodiments, the specific implementation of steps 701-703 and the technical effects brought about by them refer to steps 601-603 in those embodiments corresponding to FIG6 , and are not repeated here.

[0053] Step 704 : For each item placement area in the at least one item placement area, determine item location information corresponding to the at least one item information.

[0054] In some embodiments, the execution entity determines, for each item placement area in the at least one item placement area, item location information corresponding to the at least one item information.

[0055] In some optional implementations of some embodiments, the item location information includes item arrangement relationship information; and the execution entity determines the item location information corresponding to the at least one item information for each item placement area in at least one item placement area, including the following steps: First, determine the at least one item information corresponding to the item placement area as an assigned item information set. The at least one item information corresponding to the item placement area is the item information assigned to the item placement area. Second, obtain the assigned item real size value corresponding to each assigned item information in the assigned item information set to obtain an assigned item real size value set. The assigned item real size value is the actual size value of the longest side of the item in reality. Third, obtain the regional image size value and the regional real size value of the item placement area. The regional image size value is represented by the number of pixels occupied by the long side of the area in the background image. The regional real size value is the actual size value of the long side of the area in reality. Fourth, generate the assigned item image size value set based on the assigned item real size value set, the regional image size value, and the regional real size value. As an example, the execution entity performs a product processing on the assigned item real size value and the regional image size value to obtain the product value. Then, the product value and the actual area size value are quotiented to generate the assigned item image size value. Fifth, the assigned item image size value set is sorted in ascending order to generate a sorted assigned item image size value sequence. Sixth, the number of size values ​​of the sorted assigned item image size values ​​in the sorted assigned item image size value sequence is determined. Seventh, in response to the number of size values ​​reaching a third target threshold, item arrangement relationship information is generated. The third target threshold is pre-set based on actual conditions. As an example, the third target threshold is 1. When the third target threshold is 1, the generated item arrangement relationship information is [item image 3 - item placement area 2: centered placement].

[0056] Optionally, for each item placement area in the at least one item placement area, determining the item location information corresponding to at least one item information further includes the following steps: First, in response to the number of size values ​​being greater than a third target threshold, executing the following item arrangement relationship information determination step for the sorted item image size value sequence: A first determination sub-step of determining the item images corresponding to the two smallest sorted item image size values ​​in the sorted item image size value sequence as the first item image and the second item image. A second determination sub-step of generating a height ratio value and a width ratio value based on the first item image and the second item image. For example, the execution entity obtains the height and width values ​​of the first item image as the first height value and the first width value. Then, the height and width values ​​of the second item image are obtained as the second height value and the second width value. The first height value and the second height value are summed to obtain a total height value. The total height value is multiplied by a preset height ratio coefficient to obtain a height ratio value. The first width value and the second width value are summed to obtain a total width value. The total width value is multiplied by a preset width ratio coefficient to obtain a width ratio value. The preset height ratio coefficient and the preset width ratio coefficient are pre-set based on actual conditions. Optionally, the execution entity generates a height ratio value and a width ratio value based on the first and second item images, including the following steps: a first step of obtaining the height and width values ​​of the first item image as the first height value and the first width value. a second step of obtaining the height and width values ​​of the second item image as the second height value and the second width value. a third step of determining the ratio of the first and second height values ​​to obtain a height ratio value. a fourth step of determining the ratio of the first and second width values ​​to obtain a width ratio value. a third determination sub-step of generating horizontal item arrangement information as item arrangement relationship information in response to the height ratio value being greater than the width ratio value. The horizontal item arrangement information includes left-right arrangement information and a horizontal ratio value, which is the same as the width ratio value. The left-right arrangement information indicates whether the items are placed left-right. a fourth determination sub-step of generating vertical item arrangement information as item arrangement relationship information in response to the height ratio value being less than or equal to the width ratio value. The vertical item arrangement information includes top-bottom arrangement information and a vertical ratio value, which is the same as the height ratio value. The top-bottom arrangement information indicates whether the items are placed top-bottom. In a fifth determination sub-step, the first item image and the second item image are determined as an integrated item image. The height of the integrated item image is the integrated image height. The width of the integrated item image is the integrated image width. The integrated image height is equal to the larger of the first height and the second height. The integrated image width is equal to the larger of the first width and the second width. In a sixth determination sub-step, an updated sequence of allocated item image size values ​​is generated based on the allocated item image size values ​​corresponding to the integrated item image and the sorted sequence of allocated item image size values.In practice, the execution entity first removes the assigned item image size value corresponding to the first item image and the assigned item image size value corresponding to the second item image from the sorted sequence of assigned item image size values, thereby obtaining a sequence of removed assigned item image size values. Then, the assigned item image size value corresponding to the integrated item image is added to the removed sequence of assigned item image size values, thereby obtaining an updated sequence of assigned item image size values. The assigned item image size value corresponding to the integrated item image is obtained by the following steps: First, determining the integrated item true size value of the integrated item image, where the integrated item true size value is equal to the larger of the integrated image width value and the integrated image height value. Then, obtaining the regional image size value and the regional true size value of the item placement area. Then, performing a product operation on the integrated item true size value and the regional image size value to obtain a product value. Finally, performing a quotient operation on the product value and the regional true size value to obtain the assigned item image size value corresponding to the integrated item image. A seventh determination sub-step is performed, wherein the number of updated size values ​​in the updated sequence of updated assigned item image size values ​​is determined. In the eighth determination sub-step, in response to the number of updated dimension values ​​reaching a third target threshold, item arrangement relationship information is generated. Optionally, in response to the number of updated dimension values ​​exceeding the third target threshold, the execution entity uses the updated sequence of assigned item image dimension values ​​as the sorted sequence of assigned item image dimension values ​​and executes the item arrangement relationship information determination step again. In the second step, each piece of obtained item arrangement relationship information is determined as the item arrangement relationship information corresponding to at least one item. Thus, based on the relationship between the height ratio value and the width ratio value, it is determined whether the item images are arranged side by side or top by top. The item images are then integrated, and the integrated image is used as the item image to determine the item arrangement relationship information for the item images. Thus, the arrangement information of each item image within the item placement area is accurately determined.

[0057] Optionally, the item location information includes item image location information; and the execution entity determines the item location information corresponding to the at least one item information for each item placement area in the at least one item placement area, including the following steps: First, determining the item arrangement information quantity value of the at least one item arrangement information. The at least one item arrangement information is the item arrangement information included in the item arrangement relationship information corresponding to the at least one item information. The item arrangement information quantity value is the quantity value of the item information allocated to the item placement area minus 1. As an example, the item arrangement relationship information corresponding to the at least one item information is [(item image 1 and item image 2 - item placement area 1: left-right placement, horizontal ratio value), (integrated item image and item image 3 - item placement area 1: top-down placement, vertical ratio value)]. In the second step, for the simplified representation information of the item placement area, the simplified representation information includes the coordinates of the upper left corner and the lower right corner of the area, the coordinates of the upper left corner including the horizontal coordinate and the vertical coordinate of the upper left corner, and the coordinates of the lower right corner including the horizontal coordinate and the vertical coordinate of the lower right corner. Based on the quantity of the item arrangement information, the following steps are performed to generate item image position information: a first generation sub-step: in response to the quantity of the item arrangement information being equal to a fourth target threshold, determining simplified representation information for the first area. The first area is an area within the item placement area, and the simplified representation information for the first area is the same as the simplified representation information for the area. The execution entity also determines simplified representation information for the second area. The simplified representation information for the second area is an empty set. As an example, the fourth target threshold is equal to 0. A fourth target threshold of 0 indicates that the item placement area is assigned an item image. A second generation sub-step: determining the midpoint coordinates, width, and height of the first area. The midpoint coordinates of the first area include the midpoint horizontal coordinate and the midpoint vertical coordinate. The midpoint horizontal coordinate is the average of the horizontal coordinates of the upper left corner and the lower right corner of the area. The midpoint vertical coordinate is the average of the vertical coordinates of the upper left corner and the lower right corner of the region. The width is equal to the width of the item placement area. The height is equal to the height of the item placement area. The difference between the horizontal coordinates of the lower right corner and the horizontal coordinates of the upper left corner of the region is determined as the width of the item placement area. The difference between the vertical coordinates of the lower right corner and the vertical coordinates of the upper left corner of the region is determined as the height of the item placement area. The third generation sub-step generates item image position information based on the midpoint coordinates, width, and height of the first region and the transformation matrix of the corresponding item placement area. The item image position information includes, but is not limited to, at least one of the following: item information, item area midpoint coordinates, item area width, item area height, and item arrangement relationship information. The item area midpoint coordinates are the midpoint coordinates of the item information in the assigned item placement area. The item area width is the width of the item information in the assigned item placement area. The item area height is the height of the item information in the assigned item placement area.As an example, the execution entity inputs the midpoint coordinates, width, and height of the first region into the transformation matrix corresponding to the item placement area to generate item image position information. The transformation matrix corresponding to the item placement area is obtained by solving the transmission transformation formula using the coordinates of the four corner points in the simplified representation information and the four corner points of the item placement area. The four corner points are the horizontal and vertical coordinate points of the simplified representation information and the item placement area.

[0058] Optionally, the step of generating item image position information further includes: a first step, in response to the item arrangement information quantity value being greater than a fourth target threshold, selecting item arrangement information from at least one item arrangement information. The item arrangement information includes horizontal item arrangement information or vertical item arrangement information. For example, the horizontal item arrangement information is (item image 1 and item image 2 - item placement area 1: left-right placement, horizontal ratio value). The vertical item arrangement information is (integrated item image and item image 3 - item placement area 1: top-bottom placement, vertical ratio value). A fourth target threshold being greater than 0 indicates that the item placement area is allocated to multiple item images. A second step, in response to the item arrangement information being vertical item arrangement information, dividing the item placement area into a first vertical divided area and a second vertical divided area based on a height division value, as the first divided area and the second divided area. The height division value is the product of the height value of the item placement area and the vertical ratio value included in the item arrangement information. The simplified representation information of the first divided area includes a first upper left corner coordinate and a first lower right corner coordinate. The first upper-left corner coordinate includes a first upper-left corner horizontal coordinate and a first upper-left corner vertical coordinate. The first upper-left corner horizontal coordinate is the same as the area's upper-left corner horizontal coordinate. The first upper-left corner vertical coordinate is the same as the area's upper-left corner vertical coordinate. The first lower-right corner coordinate includes a first lower-right corner horizontal coordinate and a first lower-right corner vertical coordinate. The first lower-right corner horizontal coordinate is the sum of the first upper-left corner horizontal coordinate and the width of the item placement area. The first lower-right corner vertical coordinate is the sum of the first upper-left corner vertical coordinate and the height partition value. The simplified representation information of the second partitioned area includes a second upper-left corner coordinate and a second lower-right corner coordinate. The second upper-left corner coordinate includes a second upper-left corner horizontal coordinate and a second upper-left corner vertical coordinate. The second upper-left corner horizontal coordinate is the same as the area's upper-left corner horizontal coordinate. The second upper-left corner vertical coordinate is the sum of the area's upper-left corner vertical coordinate and the height partition value. The second lower-right corner coordinate includes a second lower-right corner horizontal coordinate and a second lower-right corner vertical coordinate. The second lower-right corner horizontal coordinate is the sum of the area's upper-left corner horizontal coordinate and the item placement area's width. The second lower-right corner vertical coordinate is the same as the area's lower-right corner vertical coordinate. In the third step, in response to the item arrangement information being horizontal item arrangement information, the item placement area is divided into a first horizontal partition area and a second horizontal partition area according to the width partition value, as the first partition area and the second partition area. The width partition value is the product of the width value of the item placement area and the horizontal scale value included in the item arrangement information. The simplified representation information of the first partition area includes a first upper left corner coordinate and a first lower right corner coordinate. The first upper left corner coordinate includes a first upper left corner horizontal coordinate and a first upper left corner vertical coordinate. The first upper left corner horizontal coordinate is the same as the area's upper left corner horizontal coordinate. The first upper left corner vertical coordinate is the same as the area's upper left corner vertical coordinate. The first lower right corner coordinate includes a first lower right corner horizontal coordinate and a first lower right corner vertical coordinate. The first lower right corner horizontal coordinate is the sum of the first upper left corner horizontal coordinate and the width partition value. The first lower right corner vertical coordinate is the same as the area's lower right corner vertical coordinate.The simplified representation information for the second divided area includes the second upper-left corner coordinate and the second lower-right corner coordinate. The second upper-left corner coordinate includes the second upper-left corner horizontal coordinate and the second upper-left corner vertical coordinate. The second upper-left corner horizontal coordinate is the sum of the area's upper-left corner horizontal coordinate and the width division value. The second upper-left corner vertical coordinate is the same as the area's upper-left corner vertical coordinate. The second lower-right corner coordinate includes the second lower-right corner horizontal coordinate and the second lower-right corner vertical coordinate. The second lower-right corner horizontal coordinate is the same as the area's lower-right corner horizontal coordinate. The second lower-right corner vertical coordinate is the same as the area's lower-right corner vertical coordinate. Step 4: Determine the midpoint coordinates, width, and height of the first divided area. The midpoint coordinates include the midpoint horizontal coordinate and the midpoint vertical coordinate. The midpoint horizontal coordinate is the average of the area's upper-left corner horizontal coordinate and the area's lower-right corner horizontal coordinate. The midpoint vertical coordinate is the average of the area's upper-left corner vertical coordinate and the area's lower-right corner vertical coordinate. The width of the area is equal to the width of the item placement area. The height of the area is equal to the height of the item placement area. In the fifth step, item image location information is generated based on the midpoint coordinates, width, and height values ​​of the first divided area and the transformation matrix corresponding to the item placement area. As an example, the execution entity inputs the midpoint coordinates, width, and height values ​​of the first divided area into the transformation matrix corresponding to the item placement area to generate the item image location information. In the sixth step, the simplified representation information of the second divided area is used as the simplified region representation information, and the value obtained by subtracting 1 from the item arrangement information quantity value is used as the item arrangement information quantity value, and the item image location information generation step is repeated. In the seventh step, each piece of obtained item image location information is determined as the item image location information corresponding to at least one item information.

[0059] Step 705 : For each item information in the item information group, generate item image size information according to the item position information corresponding to the item information, and the pre-acquired original width value and original height value of the item image corresponding to the item information.

[0060] In some embodiments, the execution entity generates item image size information for each item information in the item information group according to the item position information corresponding to the item information, and the pre-acquired original width value and original height value of the item image corresponding to the item information.

[0061] In some optional implementations of some embodiments, the item image position information includes an item area width value and an item area height value; and an execution entity generates item image size information for each item in the item information group based on the item position information corresponding to the item information and pre-acquired original item image width and original item image height values ​​of the corresponding item information, including the following steps: First, in response to determining that the item arrangement information corresponding to the item information is horizontal item arrangement information, determine an item width ratio value based on the item area width value and the original item image width value. As an example, the execution entity calculates the quotient of the item area width value and the original item image width value to obtain a width quotient value. The width quotient value is then multiplied by 1.25 to obtain an item width ratio value. Second, the product of the item width ratio value and the original item image width value is determined as a target width value. Third, the product of the item width ratio value and the original item image height value is determined as a target height value. Fourth, the target width value and the target height value are determined as the item image size information. In step five, in response to determining that the item arrangement information corresponding to the item information is vertical item arrangement information, determine an item height ratio value based on the item area height value and the original item image height value. For example, the execution entity calculates the quotient of the item area height value and the original item image height value to obtain a height quotient value. The height quotient value is then multiplied by 1.25 to obtain an item height ratio value. In step six, the product of the item height ratio value and the original item image width value is determined as a target width value. In step seven, the product of the item height ratio value and the original item image height value is determined as a target height value. In step eight, the target width value and the target height value are determined as item image size information.

[0062] Step 706 : scaling each item image included in the item information group according to the obtained size information of each item image to obtain a scaled item information group.

[0063] In some embodiments, the execution entity scales each item image included in the item information group to the corresponding item image size information based on the obtained item image size information to obtain a scaled item image group.

[0064] Step 707 : Based on the obtained position information of each item, the scaled item information group is filled into the corresponding item placement area in the target background image to obtain an item information matching image.

[0065] In some embodiments, the executing entity fills the scaled item information group into the corresponding item placement area in the target background image based on the midpoint coordinates of the item area included in the obtained position information of each item image, thereby obtaining an item information matching map. The position information of each item image is the position information included in the position information of each item.

[0066] As shown in Figure 7 , compared to the description of some embodiments corresponding to Figure 6 , the process 700 of the method for generating an item information matching diagram in some embodiments corresponding to Figure 7 embodies adjusting the position and size of item images based on item position information and item image size information. The scheme described in these embodiments first determines item arrangement relationship information, then uses this item arrangement relationship information and simplified regional representation information of the item placement area to determine item image position information. Finally, item image size information is determined based on the item image position information. This dynamically adjusts the position and size of the item image within the target background image, resulting in a more reasonable and aesthetically pleasing item information matching diagram.

[0067] With further reference to FIG8 , as an implementation of the methods shown in the respective figures, the present disclosure provides some embodiments of an apparatus for generating an item information matching diagram. These apparatus embodiments correspond to the method embodiments shown in FIG6 , and the apparatus is specifically applied to various electronic devices.

[0068] As shown in FIG8 , an apparatus 800 for generating an item information collocation diagram in some embodiments includes: a first determining unit 801 , a second determining unit 802 , a third determining unit 803 , a fourth determining unit 804 , and a filling unit 805 . Among them, the first determination unit 801 is configured to determine the corresponding item placement area type and item placement scene type for the item category information included in each item information in the pre-acquired item information group, wherein the item information in the item information group also includes an item image; the second determination unit 802 is configured to determine the target background image and the item allocation relationship information corresponding to the target background image based on the obtained item placement area type set, the obtained item placement scene type set, the item information group and the pre-acquired background image set, wherein the target background image includes at least one item placement area; the third determination unit 803 is configured to determine, for each item placement area in the at least one item placement area, at least one item information corresponding to the item placement area based on the item allocation relationship information; the fourth determination unit 804 is configured to determine, for each item placement area in the at least one item placement area, the item position information corresponding to the at least one item information; the filling unit 805 is configured to fill each item image included in the item information group into the corresponding item placement area in the target background image according to the obtained item position information, to obtain an item information matching map.

[0069] Optionally, the filling unit 805 is configured to: for each item information in the item information group, generate item image size information according to the item position information corresponding to the item information, and the pre-acquired original width value and original height value of the item image of the corresponding item information; scale each item image included in the item information group according to the obtained item image size information to obtain a scaled item image group; and fill the scaled item image group into the corresponding item placement area in the target background image according to the obtained item position information to obtain an item information matching image.

[0070] Optionally, the second determination unit 802 is configured to: for a background image set, perform the following background image screening steps: select a background image from the background image set; obtain at least one area type and at least one scene type corresponding to at least one item placement area included in the selected background image; in response to the existence of an item placement area type subset with the same content as at least one area type in the item placement area type set, and the existence of an item placement scene type subset with the same content as at least one scene type in the item placement scene type set, assign the item information that matches the item placement area type, the item placement scene type, the area type, and the scene type to the corresponding item placement area to obtain an assignment result.

[0071] Optionally, the second determination unit 802 is configured to: the background image screening step further includes: determining whether there is at least one similar allocation result in the allocation result, wherein the similar allocation result represents that multiple similar item information is allocated to at least one similar item placement area, the multiple item placement areas corresponding to the multiple similar item information are of the same type, the multiple item placement scenes corresponding to the multiple similar item information are of the same type, at least one area type corresponding to at least one similar item placement area is the same, and at least one scene type corresponding to at least one similar item placement area is the same; in response to the existence of at least one similar allocation result in the allocation result, for the at least one similar allocation result, performing the following similar allocation result screening step: selecting a similar allocation from the at least one similar allocation result. result; determining multiple similar item information corresponding to the selected similar allocation result as a similar item information set; determining at least one similar item placement area corresponding to the selected similar allocation result as a similar item placement area set; sorting the item image size values ​​corresponding to each similar item information in the similar item information set in descending order to obtain a sorted item image size value sequence; sorting the area image size values ​​of each similar item placement area in the similar item placement area set in descending order to obtain a sorted area image size value sequence; determining the number of similar item information in the similar item information set to obtain a similar item information quantity value; determining the number of similar item placement areas in the similar item placement area set to obtain a similar item placement area quantity value.

[0072] Optionally, the second determining unit 802 is configured to: the same type allocation result screening step further includes: in response to the number of the same type of item information being less than or equal to the number of the same type of item placement areas, assigning each item image included in the same type of item information set to a corresponding item placement area according to the sorted item image size value sequence and the sorted area image size value sequence, thereby obtaining a same type of item allocation relationship set; performing the following background image processing step based on the same type of item allocation relationship set: determining the image size difference corresponding to each same type of item allocation relationship in the same type of item allocation relationship set, thereby obtaining an image size difference value set; in response to the fact that no image size difference in the image size difference value set is less than a first target threshold, and the number of the same type of allocation results not selected in at least one same type of allocation result is equal to a second target threshold, adding the selected background image as a candidate background image to a pre-created initial candidate background image set, thereby obtaining a candidate background image set; in response to the fact that no image size difference in the image size difference value set is less than the first target threshold, and the number of the same type of allocation results not selected in at least one same type of allocation result is equal to the second target threshold, determining the obtained at least one same type of item allocation relationship set as the item allocation relationship information corresponding to the candidate background image.

[0073] Optionally, the second determining unit 802 is configured to: the same type allocation result screening step further includes: in response to the number value of the same type item information being greater than the number value of the same type item placement areas, based on the sorted item image size value sequence and the sorted area image size value sequence, performing the following item allocation relationship information generation step: determining the item images included in each piece of the same type item information corresponding to the first N sorted item image size values ​​in the sorted item image size value sequence as a set of item images to be allocated, where the value of N is the same as the number value of the same type item placement areas; allocating the set of item images to be allocated to the corresponding item placement areas based on the sorted item image size value sequence and the sorted area image size value sequence to obtain a set of item allocation relationships to be allocated as the same type item allocation relationship set; and determining the image corresponding to each item allocation relationship in the set of item allocation relationships to be allocated. size difference, obtaining an allocated image size difference value set; in response to the fact that no allocated image size difference in the allocated image size difference value set is smaller than a first target threshold, sorting the allocated image size difference value set in descending order to obtain a sorted allocated image size difference sequence; determining the unallocated number of the unallocated item image set, wherein the unallocated item image set is a set of item images from each item image corresponding to the same item information set excluding the set of item images to be allocated; in response to the fact that the unallocated number is less than or equal to the number of similar item placement areas, allocating the item images included in each unallocated item image to a corresponding item placement area according to the item image size value corresponding to the unallocated item image set and the sorted allocated image size difference sequence to obtain an unallocated item allocation relationship set; and using the unallocated item allocation relationship set as the same item allocation relationship set to execute a background image processing step.

[0074] Optionally, the second determination unit 802 is configured to: determine whether the candidate background image set is an empty set; in response to the candidate background image set not being an empty set, select a candidate background image from the candidate background image set as the target background image, and use the item allocation relationship information corresponding to the selected candidate background image as the item allocation relationship information corresponding to the target background image; in response to the candidate background image set being an empty set, determine the pre-acquired general background image as the target background image.

[0075] Optionally, the item location information includes item arrangement relationship information. The fourth determining unit 804 is configured to: determine at least one item information corresponding to the item placement area as an allocated item information set; obtain the allocated item real size value corresponding to each allocated item information in the allocated item information set to obtain an allocated item real size value set; obtain the regional image size value and the regional real size value of the item placement area; generate an allocated item image size value set based on the allocated item real size value set, the regional image size value, and the regional real size value; sort the allocated item image size value set in ascending order to generate a sorted allocated item image size value sequence; determine the number of size values ​​of the sorted allocated item image size values ​​in the sorted allocated item image size value sequence; and generate item arrangement relationship information in response to the number of size values ​​being a third target threshold.

[0076] Optionally, the fourth determining unit 804 is configured to: in response to the number of size values ​​being greater than the third target threshold, perform the following steps for determining item arrangement relationship information for the sequence of size values ​​of the sorted assigned item images: determine the item images corresponding to the two smallest size values ​​of the sorted assigned item images in the sequence of size values ​​of the sorted assigned item images as the first item image and the second item image; generate a height ratio value and a width ratio value based on the first item image and the second item image; in response to the height ratio value being greater than the width ratio value, generate horizontal item arrangement information as item arrangement relationship information, wherein the horizontal item arrangement information includes left-right arrangement information and a horizontal ratio value, and the horizontal ratio value is the same as the width ratio value; in response to the height ratio value being less than or equal to the width ratio value, generate vertical item arrangement information as item arrangement relationship information, wherein the vertical item arrangement information is the same as the left-right arrangement information. The product arrangement information includes upper and lower arrangement information and a longitudinal ratio value, and the longitudinal ratio value is the same as the height ratio value; the first item image and the second item image are determined as an integrated item image; based on the allocated item image size value corresponding to the integrated item image and the sorted allocated item image size value sequence, an updated allocated item image size value sequence is generated; the number of updated size values ​​of the updated allocated item image size values ​​in the updated allocated item image size value sequence is determined; in response to the number of updated size values ​​being a third target threshold, item arrangement relationship information is generated; in response to the number of updated size values ​​being greater than the third target threshold, the updated allocated item image size value sequence is used as the sorted allocated item image size value sequence, and the item arrangement relationship information determination step is performed again; and the obtained individual item arrangement relationship information is determined as the item arrangement relationship information corresponding to at least one item information.

[0077] Optionally, the fourth determination unit 804 is configured to: generate a height ratio value and a width ratio value based on the first object image and the second object image, including: obtaining the height value and the width value of the first object image as the first height value and the first width value; obtaining the height value and the width value of the second object image as the second height value and the second width value; determining the ratio of the first height value and the second height value to obtain the height ratio value; determining the ratio of the first width value and the second width value to obtain the width ratio value.

[0078] Optionally, the item location information includes item image location information. The fourth determining unit 804 is configured to: determine a quantity value of item arrangement information of at least one item arrangement information, wherein the at least one item arrangement information is item arrangement information included in the item arrangement relationship information corresponding to the at least one item information; for the area simple representation information of the item placement area, wherein the area simple representation information includes the coordinates of the upper left corner of the area and the coordinates of the lower right corner of the area, based on the quantity value of the item arrangement information, perform the following item image location information generation step: in response to the quantity value of the item arrangement information being equal to a fourth target threshold, determine the simple representation information of the first area, wherein the first area is an area within the item placement area, and the simple representation information of the first area is the same as the area simple representation information; generate item image location information based on the midpoint coordinates, width value, height value of the first area, and the transformation matrix corresponding to the item placement area, wherein the item image location information includes at least one of the following: item information, midpoint coordinates of the item area, width value of the item area, height value of the item area, and item arrangement relationship information.

[0079] Optionally, the fourth determining unit 804 is configured to: the item image position information generating step further includes: in response to the item arrangement information quantity value being greater than the fourth target threshold, selecting item arrangement information from at least one item arrangement information, wherein the item arrangement information includes horizontal item arrangement information or vertical item arrangement information; in response to the item arrangement information being vertical item arrangement information, dividing the item placement area into a first vertical divided area and a second vertical divided area according to the height division value, as the first divided area and the second divided area; in response to the item arrangement information being horizontal item arrangement information, dividing the item placement area into a first horizontal divided area and a second vertical divided area according to the width division value; The divided area and the second horizontal divided area are used as the first divided area and the second divided area; the division midpoint coordinates, division width value and division height value of the first divided area are determined; based on the division midpoint coordinates, division width value, division height value and the transformation matrix of the corresponding item placement area of ​​the first divided area, the item image position information is generated; the simple representation information of the second divided area is used as the area simple representation information, the value after the item arrangement information quantity value is reduced by 1 is used as the item arrangement information quantity value, and the item image position information generation step is performed again; each item image position information obtained is determined as the item image position information corresponding to at least one item information.

[0080] Optionally, the item image position information includes an item area width value and an item area height value. The filling unit 805 is configured to: in response to determining that the item arrangement information corresponding to the item information is horizontal item arrangement information, determine an item width ratio value based on the item area width value and the original item image width value; determine the product of the item width ratio value and the original item image width value as a target width value; determine the product of the item width ratio value and the original item image height value as a target height value; determine the target width value and the target height value as item image size information; in response to determining that the item arrangement information corresponding to the item information is vertical item arrangement information, determine an item height ratio value based on the item area height value and the original item image height value; determine the product of the item height ratio value and the original item image width value as a target width value; determine the product of the item height ratio value and the original item image height value as a target height value; and determine the target width value and the target height value as item image size information.

[0081] Optionally, the first determination unit 801 is configured to: generate a background image set by the following steps: obtaining images of various scene types as a background image set, wherein the background images in the background image set include at least one object placement area; for each background image in the background image set, resizing the various object placement areas included in the background image to obtain an adjusted background image; and determining the obtained adjusted background image set as the background image set.

[0082] Optionally, the first determination unit 801 is configured to: resize each item placement area included in the background image, including: for each item placement area in the various item placement areas, performing the following resize steps: obtaining adjustment item information based on the area type and scene type of the item placement area, wherein the adjustment item information includes the actual size value of the item; determining the area image size value and the actual size value of the area of ​​the item placement area; generating an item image size value based on the actual size value of the item, the area image size value and the actual size value of the area; and resizing the item placement area based on the item image size value.

[0083] It is understood that the units described in the apparatus 800 correspond to the steps in the method described with reference to Figure 6. Therefore, the operations, features and beneficial effects described above for the method are also applicable to the apparatus 600 and the units included therein, and will not be repeated here.

[0084] Reference is now made to FIG9 , which illustrates a schematic diagram of the structure of an electronic device (e.g., the computing device in FIG1 ) 900 suitable for implementing some embodiments of the present disclosure. The electronic devices in some embodiments of the present disclosure include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device illustrated in FIG9 is merely an example and should not limit the functionality or scope of use of the embodiments of the present disclosure.

[0085] As shown in Figure 9, the electronic device 900 includes a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which performs various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0086] Typically, the following devices are connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 allows the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although FIG9 shows an electronic device 900 with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or provided instead. Each box shown in FIG9 represents a device, and may also represent multiple devices as needed.

[0087] In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flowcharts are implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the methods shown in the flowcharts. In some such embodiments, the computer program is downloaded and installed from a network via the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the functions defined in the methods of some embodiments of the present disclosure are performed.

[0088] It should be noted that the computer-readable medium described in some embodiments of the present disclosure is a computer-readable signal medium or a computer-readable storage medium or any combination of the two. Computer-readable storage media are, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or components, or any combination of the above. More specific examples of computer-readable storage media include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In some embodiments of the present disclosure, a computer-readable storage medium is any tangible medium that contains or stores a program that is used by or in conjunction with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium includes a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal takes a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium is any computer-readable medium other than a computer-readable storage medium that transmits, propagates, or transports a program for use by or in connection with an instruction execution system, apparatus, or device. The program code embodied on the computer-readable medium is transmitted using any suitable medium, including but not limited to wire, optical cable, RF (radio frequency), etc., or any suitable combination thereof.

[0089] In some embodiments, the client and server communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and are interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0090] The computer-readable medium is included in the electronic device; it also exists independently and is not assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: determines the corresponding item placement area type and item placement scene type for each item information included in the pre-acquired item information group, wherein the item information in the item information group also includes an item image; determines a target background image and item allocation relationship information corresponding to the target background image based on the obtained item placement area type set, the obtained item placement scene type set, the item information group, and the pre-acquired background image set, wherein the target background image includes at least one item placement area; determines, for each item placement area in the at least one item placement area, at least one item information corresponding to the item placement area based on the item allocation relationship information; determines, for each item placement area in the at least one item placement area, item position information corresponding to the at least one item information; and, based on the obtained item position information, populates each item image included in the item information group into the corresponding item placement area in the target background image to obtain an item information matching map.

[0091] Computer program code for performing the operations of some embodiments of the present disclosure is written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code is executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer is connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or is connected to an external computer (e.g., via the Internet using an Internet service provider).

[0092] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram represents a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession are actually executed substantially in parallel, and they are sometimes executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, are implemented using a dedicated hardware-based system that performs the specified function or operation, or are implemented using a combination of dedicated hardware and computer instructions.

[0093] The units described in some embodiments of the present disclosure are implemented by software and also by hardware. The units described are also provided in a processor. For example, it is described as follows: a processor includes a first determination unit, a second determination unit, a third determination unit, a fourth determination unit, and a filling unit. The names of these units do not, in some cases, constitute limitations on the units themselves. For example, the first determination unit is also described as "a unit for determining the corresponding item placement area type and item placement scene type for the item category information included in each item information in the pre-acquired item information group."

[0094] The functions described above are at least partially performed by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0095] Some embodiments of the present disclosure further provide a computer program product, including a computer program, which implements any one of the request data sending methods when executed by a processor.

[0096] The above descriptions are merely some preferred embodiments of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of technical features, but should also encompass other technical solutions formed by any combination of technical features or their equivalents without departing from the inventive concept. For example, a technical solution formed by replacing a feature with a technical feature having similar functions as disclosed in the embodiments of the present disclosure (but not limited to) can be formed.

Claims

1. A method for generating an item information matching diagram, comprising: For the item category information included in each item information in the pre-acquired item information group, determining the corresponding item placement area type and item placement scene type, wherein the item information in the item information group also includes an item image; Determine a target background image and item allocation relationship information corresponding to the target background image based on the obtained item placement area type set, the obtained item placement scene type set, the item information group, and the pre-acquired background image set, wherein the target background image includes at least one item placement area; For each of the at least one item placement area, determining at least one item information corresponding to the item placement area based on the item allocation relationship information; For each of the at least one object placement area, determining object location information corresponding to at least one object information; According to the obtained position information of each item, each item image included in the item information group is filled into the corresponding item placement area in the target background image to obtain an item information matching map.

2. The method according to claim 1, wherein: The method of filling each item image included in the item information group into a corresponding item placement area in the target background image according to the obtained item position information to obtain an item information matching image includes: For each item information in the item information group, generating item image size information according to item position information corresponding to the item information, and a pre-acquired original width value and an original height value of the item image corresponding to the item information; scaling each item image included in the item information group according to the obtained size information of each item image to obtain a scaled item image group; According to the obtained position information of each object, the zoomed object image group is filled into the corresponding object placement area in the target background image to obtain an object information matching map.

3. The method according to claim 1, wherein: The determining of the target background image and the object allocation relationship information corresponding to the target background image based on the obtained object placement area type set, the obtained object placement scene type set, the object information group and the pre-acquired background image set includes: For the background image collection, perform the following background image filtering steps: Select a background image from the background image collection; Acquire at least one area type and at least one scene type corresponding to at least one object placement area included in the selected background image; In response to the existence of an item placement area type subset with the same content as the at least one area type in the item placement area type set, and the existence of an item placement scene type subset with the same content as the at least one scene type in the item placement scene type set, the item information that matches the item placement area type, the item placement scene type, the area type, and the scene type is allocated to the corresponding item placement area to obtain an allocation result.

4. The method according to claim 3, wherein: The background image screening step also includes: Determine whether there is at least one similar allocation result in the allocation results, wherein the similar allocation result represents that a plurality of similar item information is allocated to at least one similar item placement area, a plurality of item placement areas corresponding to the plurality of similar item information are of the same type, a plurality of item placement scenes corresponding to the plurality of similar item information are of the same type, at least one area type corresponding to the at least one similar item placement area is of the same type, and at least one scene type corresponding to the at least one similar item placement area is of the same type; In response to at least one allocation result of the same type existing in the allocation results, for the at least one allocation result of the same type, the following allocation result screening steps of the same type are performed: Selecting a similar allocation result from at least one similar allocation result; Determine a plurality of similar item information corresponding to the selected similar allocation result as a similar item information set; Determine at least one similar item placement area corresponding to the selected similar allocation result as a similar item placement area set; Sorting the item image size values ​​corresponding to each piece of the same item information in the same item information set in descending order to obtain a sorted item image size value sequence; Sorting the regional image size values ​​of each similar object placement area in the similar object placement area set in descending order to obtain a sorted regional image size value sequence; Determine the quantity of the same type of item information in the same type of item information set to obtain the quantity value of the same type of item information; The number of the same type of item placement areas in the same type of item placement area set is determined to obtain a value of the number of the same type of item placement areas.

5. The method according to claim 4, wherein: The same type of allocation result screening step also includes: In response to the number value of the same type of item information being less than or equal to the number value of the same type of item placement areas, allocating each item image included in the same type of item information set to a corresponding item placement area according to the sorted item image size value sequence and the sorted area image size value sequence to obtain a same type of item allocation relationship set; Based on the same type of item allocation relationship set, the following background image processing steps are performed: Determine the image size difference corresponding to each similar item allocation relationship in the similar item allocation relationship set to obtain an image size difference value set; In response to the fact that there is no image size difference in the image size difference set that is less than the first target threshold, and the number of unselected similar allocation results in the at least one similar allocation result is equal to the second target threshold, adding the selected background image as a candidate background image to a pre-created initial candidate background image set to obtain a candidate background image set; In response to the fact that there does not exist any image size difference in the image size difference set that is smaller than the first target threshold, and the number of unselected similar allocation results in the at least one similar allocation result is equal to the second target threshold, the obtained at least one similar item allocation relationship set is determined as the item allocation relationship information corresponding to the candidate background image.

6. The method according to claim 5, wherein: The same type of allocation result screening step also includes: In response to the number of the same type of item information being greater than the number of the same type of item placement areas, the following item allocation relationship information generation step is performed based on the sorted item image size value sequence and the sorted area image size value sequence: Determine the item images included in each of the same type of item information corresponding to the first N sorted item image size values ​​in the sorted item image size value sequence as a set of item images to be allocated, wherein the value of N is the same as the number of the same type of item placement areas; According to the sorted item image size value sequence and the sorted region image size value sequence, the to-be-allocated item image set is allocated to the corresponding item placement region to obtain an to-be-allocated item allocation relationship set as a similar item allocation relationship set; Determine the image size difference corresponding to each object allocation relationship in the object allocation relationship set to be allocated, and obtain an allocation image size difference set; In response to the fact that there is no allocated image size difference value in the allocated image size difference value set that is smaller than the first target threshold, sorting the allocated image size difference value set in descending order to obtain a sorted allocated image size difference value sequence; Determine the unallocated quantity of the unallocated item image set, wherein the unallocated item image set is obtained from the An object image set other than the object image set to be assigned among the object images corresponding to the same type of object information set; In response to the unallocated number being less than or equal to the number of the same type of item placement areas, according to the item image size values ​​corresponding to the unallocated item image set and the sorted allocated image size difference sequence, the item images included in each unallocated item image are allocated to the corresponding item placement area to obtain an unallocated item allocation relationship set; The unallocated item allocation relationship set is used as a similar item allocation relationship set to execute the background image processing step.

7. The method according to claim 6, wherein: The method of determining a target background image and information on item allocation relationships corresponding to the target background image based on the obtained set of item placement area types, the obtained set of item placement scene types, the item information group, and the pre-acquired set of background images further includes: Determine whether the candidate background image set is an empty set; In response to the candidate background image set not being an empty set, selecting a candidate background image from the candidate background image set as a target background image, and using the item allocation relationship information corresponding to the selected candidate background image as the item allocation relationship information corresponding to the target background image; In response to the candidate background image set being an empty set, a pre-acquired general background image is determined as a target background image.

8. The method according to claim 2, wherein: Item location information includes item arrangement relationship information; as well as The determining, for each of the at least one object placement area, object location information corresponding to at least one object information comprises: determining at least one item information corresponding to the item placement area as an allocated item information set; Acquire the real size value of the allocated item corresponding to each allocated item information in the allocated item information set to obtain a real size value set of the allocated items; Obtaining a regional image size value and a regional real size value of the object placement area; generating a set of allocated item image size values ​​based on the set of allocated item real size values, the area image size value and the area real size value; Sorting the set of allocated item image size values ​​in ascending order to generate a sorted sequence of allocated item image size values; Determine the number of size values ​​of the sorted allocated item image size values ​​in the sorted allocated item image size value sequence; In response to the number of the dimension values ​​being a third target threshold, item arrangement relationship information is generated.

9. The method according to claim 8, wherein: The step of determining, for each of the at least one object placement area, object location information corresponding to at least one object information further includes: In response to the number of size values ​​being greater than the third target threshold, for the sorted allocated item image size value sequence, the following item arrangement relationship information determination step is performed: Determine the object images corresponding to the two smallest object image size values ​​after sorting in the sequence of object image size values ​​after sorting as the first object image and the second object image; generating a height ratio value and a width ratio value based on the first object image and the second object image; In response to the height ratio being greater than the width ratio, generating horizontal article arrangement information as article arrangement relationship information, wherein the horizontal article arrangement information includes left-right arrangement information and a horizontal ratio, and the horizontal ratio is the same as the width ratio; In response to the height ratio being less than or equal to the width ratio, generating longitudinal article arrangement information as article arrangement relationship information, wherein the longitudinal article arrangement information includes upper and lower arrangement information and a longitudinal ratio, and the longitudinal ratio is the same as the height ratio; determining the first object image and the second object image as an integrated object image; generating an updated allocated item image size value sequence based on the allocated item image size value corresponding to the integrated item image and the sorted allocated item image size value sequence; Determine the number of updated size values ​​of updated allocated item image size values ​​in the updated allocated item image size value sequence; In response to the updated number of size values ​​being the third target threshold, generating item arrangement relationship information; The obtained respective item arrangement relationship information is determined as the item arrangement relationship information corresponding to at least one item information.

10. The method according to claim 9, wherein: The step of generating a height ratio value and a width ratio value based on the first object image and the second object image includes: Acquire a height value and a width value of the first object image as a first height value and a first width value; Acquire the height value and width value of the second object image as the second height value and the second width value; Determine a ratio of the first height value to the second height value to obtain a height ratio value; A ratio value of the first width value to the second width value is determined to obtain a width ratio value.

11. The method according to claim 9, wherein: The object position information includes object image position information; as well as The step of determining, for each of the at least one object placement area, object location information corresponding to at least one object information further includes: Determine an item arrangement information quantity value of at least one item arrangement information, wherein the at least one item arrangement information is the item arrangement information included in the item arrangement relationship information corresponding to the at least one item information; For the simplified representation information of the area where the item is placed, wherein the simplified representation information includes the coordinates of the upper left corner and the lower right corner of the area, based on the quantity value of the item arrangement information, the following steps of generating item image position information are performed: In response to the value of the number of the item arrangement information being equal to a fourth target threshold, determining the simplified representation information of a first area, wherein the first area is an area in the item placement area, and the simplified representation information of the first area is the same as the simplified representation information of the area; Determine the midpoint coordinates, width value, and height value of the first area; Based on the midpoint coordinates, width value, height value of the first area and the transformation matrix corresponding to the item placement area, the item image position information is generated, wherein the item image position information includes at least one of the following: item information, midpoint coordinates of the item area, width value of the item area, height value of the item area, and item arrangement relationship information.

12. The method according to claim 11, wherein: The step of generating the object image position information further comprises: In response to the value of the number of item arrangement information being greater than the fourth target threshold, selecting item arrangement information from the at least one item arrangement information, wherein the item arrangement information includes horizontal item arrangement information or vertical item arrangement information; In response to the article arrangement information being longitudinal article arrangement information, dividing the article placement area into a first longitudinal divided area and a second longitudinal divided area according to the height division value as the first divided area and the second divided area; In response to the article arrangement information being horizontal article arrangement information, dividing the article placement area into a first horizontal divided area and a second horizontal divided area according to the width division value as the first divided area and the second divided area; Determine the division midpoint coordinates, division width value and division height value of the first division area; Based on the coordinates of the midpoint of the first divided area, the width value of the divided area, the height value of the divided area and the corresponding The transformation matrix of the placement area generates the object image position information; The simplified representation information of the second divided area is used as the simplified representation information of the area, the value obtained by subtracting 1 from the quantity value of the item arrangement information is used as the quantity value of the item arrangement information, and the step of generating the item image position information is performed again; The obtained respective object image position information is determined as the object image position information corresponding to at least one object information.

13. The method according to claim 12, wherein: The object image position information includes an object area width value and an object area height value; and For each item information in the item information group, generating item image size information according to item position information corresponding to the item information, and a pre-acquired original width value and an original height value of the item image corresponding to the item information, including: In response to determining that the object arrangement information corresponding to the object information is horizontal object arrangement information, determining an object width ratio value based on the object area width value and the original width value of the object image; Determine the product of the object width ratio value and the original width value of the object image as the target width value; Determine the product of the object width ratio value and the original height value of the object image as the target height value; Determine the target width value and the target height value as item image size information; In response to determining that the object arrangement information corresponding to the object information is longitudinal object arrangement information, determining an object height ratio value based on the object area height value and the object image original height value; The product of the object height ratio value and the original width value of the object image is determined as a target width value; The product of the object height ratio value and the original height value of the object image is determined as the target height value; The target width value and the target height value are determined as item image size information.

14. The method according to claim 1, wherein: The background image set is generated by the following steps: Acquire images of various scene types as a background image set, wherein the background images in the background image set include at least one object placement area; For each background image in the background image set, resizing each object placement area included in the background image to obtain an adjusted background image; The obtained adjusted background image set is determined as the background image set.

15. The method according to claim 14, wherein: The step of adjusting the size of each item placement area included in the background image includes: For each of the item placement areas, the following size adjustment steps are performed: Acquire adjusted item information according to the area type and scene type of the item placement area, wherein the adjusted item information includes a real size value of the item; Determine the regional image size value and the regional real size value of the object placement area; Generate an object image size value according to the object real size value, the region image size value and the region real size value; The size of the object placement area is adjusted according to the size value of the object image.

16. A device for generating an item information matching diagram, comprising: A first determining unit is configured to determine a corresponding item placement area type and an item placement scene type for item category information included in each item information in a pre-acquired item information group, wherein the item information in the item information group further includes an item image; A second determining unit is configured to determine a target background image and item allocation relationship information corresponding to the target background image based on the obtained item placement area type set, the obtained item placement scene type set, the item information group, and the pre-acquired background image set, wherein the target background image includes at least one item placement area; A third determining unit is configured to determine, for each of the at least one item placement area, at least one item information corresponding to the item placement area based on the item allocation relationship information; A fourth determining unit is configured to determine, for each of the at least one object placement area, object location information corresponding to at least one object information; The filling unit is configured to fill each object image included in the object information group into the corresponding object placement area in the target background image according to the obtained position information of each object, so as to obtain an object information matching image.

17. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 15.

18. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.

19. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Article information matching graph generation method and device, equipment, medium and program product

    CN116580128A

  • Method for displaying tie-in sale simulation effect

    CN101770652A

  • Matching effect picture generation method, device and system

    CN107464269A

  • Picture generation method, device, medium and electronic equipment

    CN110378432A

  • Image processing method and device

    CN113763511A