Item information matching diagram generation method, device, equipment, medium, and program
The method determines item placement area and scene type for each item type information, selecting a target background image and item allocation relationship to efficiently generate a matching diagram, addressing the inefficiencies of existing methods by ensuring rational and attractive product information matching.
Patent Information
- Application Number
- JP2025534556
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-20
- Filing Date
- 2024-03-04
- Publication Date
- 2025-12-24
AI Technical Summary
Existing methods for generating a product information matching diagram fail to efficiently handle new types of products that have a large difference in scale from the preset labeling frame, leading to irrational and inefficient product information matching images.
A method and device that determines a corresponding item placement area and scene type for each item type information, selecting a target background image and item allocation relationship based on the acquired item placement area and scene type, and filling each item image into a corresponding item placement area, and determining item position information and filling each item image into a corresponding item placement area in the target background image to obtain an item information matching diagram.
The method allows for quick generation of a reasonable and aesthetically pleasing item information matching diagram, avoiding the need for manual matching and improving efficiency by selecting a suitable background image.
Smart Images

Figure 2025541997000001_ABST
Abstract
Description
[Technical Field]
[0001] This application claims priority from a Chinese patent application bearing application number 202310272490.X, filed on March 20, 2023, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD The embodiments of the present disclosure relate to the field of computer technology, and more particularly to a method, apparatus, device, medium, and program product for generating an item information matching diagram in a metaverse shopping process. [Background technology]
[0002] When generating an item information matching map, the item image is usually filled into a background map including a predetermined labeling frame through a general background map template, an artificially matched background map template, or based on the type of the item image.
[0003] However, the inventors have discovered that the following technical problems exist when adopting this method.
[0004] When new types of product information appear, manual matching of the background image needs to be performed again. In addition, it is difficult to process products that have a large difference in scale from the preset labeling frame, and the generated product information matching image is not rational, not beautiful, and inefficient.
[0005] The above information disclosed in this Background Art is merely intended to enhance understanding of the background to the concept of the present invention and may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] The present disclosure is intended to introduce concepts in a simplified form, which will be described in detail in subsequent specific embodiments. The present disclosure is not intended to identify key features or essential characteristics of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.
[0007] Some embodiments of the present disclosure provide a method, apparatus, device, medium, and program product for generating an article information matching diagram, and solve the technical problems described in the background art above.
[0008] In a first aspect, some embodiments of the present disclosure provide a method for generating an item information matching diagram, the method including: determining a corresponding item placement area type and an item placement scene type for item type 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; determining a target background diagram and item allocation relationship information corresponding to the target background diagram based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and a pre-acquired background diagram set, wherein the target background diagram includes at least one item placement area; determining, 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; determining, 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 filling each item image included in the item information group into a corresponding item placement area in the target background diagram based on each acquired item position information to obtain an item information matching diagram.
[0009] In a second aspect, some embodiments of the present disclosure provide an item information matching diagram generation device, the device being configured to determine a corresponding item placement area type and item placement scene type for item type information included in each item information in a pre-acquired item information group, where the item information in the item information group further includes an item image, and a first determination unit configured to determine a target background diagram and item allocation relationship information corresponding to the target background diagram based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and a pre-acquired background diagram set, where the target background diagram includes at least one item The system includes a second determination unit including a placement area, a third determination 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 item allocation relationship information, a fourth determination 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, and a filling unit configured to fill, based on each acquired item position information, each item image included in the item information group into a corresponding item placement area in the target background image to obtain an item information matching image.
[0010] In a third aspect, some embodiments of the present disclosure provide an electronic device including one or more processors and a storage device storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement a method described in any of the implementation methods of the first aspect.
[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having stored thereon a computer program that, when executed by a processor, implements the method described in any of the implementations of the first aspect.
[0012] In a fifth aspect, some embodiments of the present disclosure provide a computer program product including a computer program that, when executed by a processor, implements the method described in any of the implementations of the first aspect. [Brief explanation of the drawings]
[0013] Other features, advantages, and aspects of each embodiment of the present disclosure will become more apparent with reference to the following specific embodiments with reference to the drawings. In the drawings, identical or similar reference numerals indicate identical or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale.
[0014] [Figure 1] FIG. 1 is a schematic diagram of an application scenario of the method for generating an article information matching map according to some embodiments of the present disclosure. [Figure 2] FIG. 2 is a schematic diagram of an application scenario of the method for generating an article information matching map according to some embodiments of the present disclosure. [Figure 3] FIG. 3 is a schematic diagram of an application scenario of the method for generating an article information matching map according to some embodiments of the present disclosure. [Figure 4] FIG. 4 is a schematic diagram of an application scenario of the method for generating an article information matching map according to some embodiments of the present disclosure. [Figure 5] FIG. 5 is a schematic diagram of an application scenario of the method for generating an article information matching map according to some embodiments of the present disclosure. [Figure 6] FIG. 6 is a flowchart of some embodiments of a method for generating an article information matching diagram according to the present disclosure. [Figure 7] FIG. 7 is a flowchart of some other embodiments of a method for generating an article information matching diagram according to the present disclosure. [Figure 8] FIG. 8 is a structural schematic diagram of some embodiments of an article information matching diagram generating apparatus according to the present disclosure. [Figure 9] FIG. 9 is a structural schematic diagram of an electronic device for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION OF THE INVENTION
[0015] Hereinafter, embodiments of the present disclosure will be described in more detail with reference to the drawings. Although the drawings show several embodiments of the present disclosure, the present disclosure may be realized in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. The drawings and embodiments of the present disclosure are illustrative and do not limit the scope of protection of the present disclosure.
[0016] For the sake of convenience, the drawings show only parts relevant to the present invention. Where not inconsistent, the embodiments and features of the embodiments in the present disclosure may be combined with each other.
[0017] The concepts of "first," "second," etc. referred to in this disclosure are merely intended to distinguish between different devices, modules, or units, and do not limit the order or interdependence of the functions performed by these devices, modules, or units.
[0018] The modifications "one" and "multiple" referred to in this disclosure are exemplary rather than limiting, and one of ordinary skill in the art should understand "one or more" unless the context clearly dictates otherwise.
[0019] The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only and do not limit the scope of these messages or information.
[0020] Hereinafter, the present disclosure will be described in detail in combination with examples with reference to the drawings.
[0021] 1 to 5 are schematic diagrams illustrating application scenes of the method for generating an article information matching map according to some embodiments of the present disclosure.
[0022] In the application scenarios of Figures 1 to 5, a computing device first determines a corresponding item placement area type and item placement scene type for item type information included in each item information in a previously acquired item information group, where the item information in the item information group further includes item images. Figure 1 is a specific example of an item information group and corresponding item placement area types and item placement scene types. In Figure 1, the item information group is [(refrigerator image, refrigerators), (fan image, fans), (air conditioner image, air conditioners)]. The item placement area type corresponding to (refrigerator image, refrigerators) is the ground type, and the item placement scene type is the living room type. The item placement area type corresponding to (fan image, fans) is the ground type, and the item placement scene type is the living room type. The item placement area type corresponding to (air conditioner image, air conditioners) is the wall type, and the item placement scene type is the living room type. Next, the computing device determines a target background image and item allocation relationship information corresponding to the target background image based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and the previously acquired background image set, where the target background image includes at least one item placement area. FIG. 2 is a specific example of at least one item placement area included in the target background image. In FIG. 2, the target background image 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 - electric fan image, refrigerator image)]. Next, the computing device determines at least one item information corresponding to the item placement area for each item placement area in the at least one item placement area based on the item allocation relationship information. FIG. 3 is a specific example of at least one item information corresponding to the item placement area. Then, the computing device determines item position information corresponding to the at least one item information for each item placement area in the at least one item placement area. Figure 4 shows an example of item position 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 each acquired item position information to obtain an item information matching image. Figure 5 shows an example of an item information matching image.
[0023] The computing device may be hardware or software. If the computing device is hardware, it may be realized as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. If the computing device is embodied as software, it is installed on the listed hardware devices. For example, it may be realized as multiple software or software modules for providing distributed services, or as a single software or software module. There are no specific limitations here. The number of computing devices in Figures 1 to 5 is merely an example. Any number of computing devices may be used depending on the implementation needs.
[0024] 6, a flow chart 600 of some embodiments of a method for generating an item information matching diagram according to the present disclosure is shown. The method for generating an item information matching diagram includes the following steps:
[0025] In step 601, the corresponding item placement area type and item placement scene type are determined for the item type information included in each item information in the previously acquired item information group.
[0026] In some embodiments, an executing entity (e.g., a computing device) of the method for generating an item information matching diagram acquires, in advance, item type information included in each item information in an item information group via a wired or wireless connection, and determines a corresponding item placement area type and item placement scene type for the item type information included in each item information in the previously acquired item information group. The item information in the item information group further includes an item image. The item type information is item classification information. The classification information is information that divides items according to their functions and uses, such as home appliances, office items, or clothing. The item type information is also subdivision type information in the item classification information. For example, electric fans in the home appliance category include table fans, floor fans, and mini fans, and clothes dryers in the home appliance category include drum clothes dryers, hanging clothes dryers, and handheld clothes dryers. The item placement area type includes, but is not limited to, at least one of a desktop type, a wall type, and a ground type. The item placement scene type includes at least one of a kitchen type, a living room type, a study type, and a bedroom type, but is not limited to these.
[0027] In step 602, a target background map and item allocation relationship information corresponding to the target background map are determined based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and the previously acquired background map set.
[0028] 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 acquired set of item placement area types, the acquired set of item placement scene types, a group of item information, and a set of background images acquired in advance. Here, the target background image includes at least one item placement area. The item placement area is an area in the background image that can be filled with an item image. The item allocation relationship information is allocation relationship information between the item information and the item placement area.
[0029] Optionally, the background image set is generated by the following steps: Step 1: obtain an image of each scene type as the background image set. Here, the background image in the background image set includes at least one item placement area. Each scene type includes a kitchen type, a living room type, an office type, etc. The item placement area includes area attribute information, which includes at least one of an area actual size value, corner point position information, an area type, a scene type, and a transformation matrix. The area actual size value is the actual size value of the long side of the area. The area actual size value is estimated based on surrounding items. The corner point position information is pixel position information of the four corner points of the item placement area in the background image. The pixel position information is expressed using the position of a pixel in the image. The area type includes, but is not limited to, at least one of a desktop type, a wall type, and a ground type. A labeling tool (e.g., labelme) is used to mark the four corner point position information and the area type of the item placement area. The scene types include, but are not limited to, at least one of kitchen type, living room type, study type, and bedroom type. The transformation matrix is obtained by calculating a transparency transformation formula using four simplified corner points and the coordinates of the four corner points of the item placement area. The four simplified corner points are represented by a rectangle with a fixed length and width (x1, y1, x2, y2). (x1, y1) indicate the coordinates of the upper left corner of the rectangle. (x2, y2) indicate the coordinates of the lower right corner of the rectangle. In application, first, the item image position information and item image size information of the item in the rectangle are calculated, and the item image position information and item image size information are mapped to the item placement area using the transformation matrix. In step 2, for each background image in the background image collection, the size of each item placement area included in the background image is adjusted to obtain an adjusted background image. For example, the executing entity uses pictogram software (e.g., Picart software) to adjust the size of each item placement area included in the background image to obtain an adjusted background image. Optionally, performing size adjustment on each item placement area included in the background image includes performing the following size adjustment steps on each item placement area in each item placement area.First adjustment sub-step: Obtain adjusted item information based on the area type and scene type of the item placement area. Here, the adjusted item information includes an actual item size value. The adjusted item information is item information that serves as a reference for size adjustment. The actual item size value is the actual size value of the actual long side of the item. In a second adjustment sub-step, an area image size value and an actual area size value of the item placement area are determined. Here, the area image size value is represented by the number of pixels that the long side of the area occupies in the background image. The actual area size value is the actual size value of the actual long side of the area. In a third adjustment sub-step, an item image size value is generated based on the actual item size value, the area image size value, and the actual area size value. Here, the item image size value represents the number of pixels that the long side of the item image occupies in the background image. As an example, the executing entity multiplies the actual item size value and the area image size value to obtain a multiplied value. Then, the executing entity divides the multiplied value and the actual area size value to obtain an item image size value corresponding to the same type of item information. The actual item size value is the actual size value of the actual long side of the item. In a fourth adjustment sub-step, the size of the item placement area is adjusted based on the item image size value. As an example, the executing entity draws an item image in the item placement area in the background image based on the item image size value. If the item image is too large, the actual size value of the area of the item placement area is enlarged. If the item image is too small, the actual size value of the area of the item placement area is reduced. This achieves size adjustment of the item placement area. In step 3, the acquired adjusted background image set is determined as the background image set. In some alternative embodiments of some examples, the executing entity determines a target background image and item allocation relationship information corresponding to the target background image based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and the previously acquired background image set, including the following steps: For the background image set, the following background image selection steps are performed: Step 1: Select a background image from the background image set. Step 2: 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. Illustratively, the item placement area corresponds to an area type and a scene type.The area type includes, but is not limited to, at least one of a desktop type, a wall type, and a ground type. The scene type includes, but is not limited to, at least one of a kitchen type, a living room type, a study type, and a bedroom type. The area type of the item placement area 1 included in the selected background image is a ground type, and the scene type is a living room type. In step 3, in response to the existence of an item placement area type sub-set with the same content as at least one area type in the item placement area type set and an item placement scene type sub-set with the same content as at least one scene type in the item placement scene type set, the item placement area type and item information that matches the area type and scene type are assigned to the corresponding item placement area, and an assignment result is obtained. Here, matching means that the item placement area type is the same as the area type and the item placement scene type is the same as the scene type. For example, the item placement area type set is [wall type, ground type]. At least one area type is [wall type, ground type, desktop type]. The item placement scene type set is [living room type]. At least one scene type is [living room type, study type]. The item placement area type of the item information 1 is the ground type, and the item placement scene type is the living room type. The area type of the item placement area 2 is the ground type, and the scene type is the living room type. In practice, the executing entity assigns the item information 1 to the corresponding item placement area 2.
[0030] Optionally, the background image selection step further includes step 1 of determining whether at least one homogeneous allocation result exists in the allocation results. Here, the homogeneous allocation result represents the allocation of multiple homogeneous item information to at least one homogeneous item placement area. The types of multiple item placement areas corresponding to multiple homogeneous item information are the same. The multiple item placement scene types corresponding to multiple homogeneous item information are the same. At least one area type corresponding to at least one homogeneous item placement area is the same. At least one scene type corresponding to at least one homogeneous item placement area is the same. For example, if the item placement area types of item information 1 and item information 2 are both ground type and both item placement scene types are living room type, item information 1 and item information 2 are multiple homogeneous item information. If the area type of item placement area 1 is ground type and the scene type is living room type, item placement area 1 is at least one homogeneous item placement area. The allocation of item information 1 and item information 2 to corresponding item placement area 1 is referred to as one homogeneous allocation result. Step 2: In response to the existence of at least one homogeneous allocation result in the allocation results, the following homogeneous allocation result sorting step is performed for the at least one homogeneous allocation result. In the first sorting substep, a homogeneous allocation result is selected from the at least one homogeneous allocation result. In the second sorting substep, a plurality of homogeneous item information corresponding to the selected homogeneous allocation result is determined as a homogeneous item information set. In the third sorting substep, at least one homogeneous item placement area corresponding to the selected homogeneous allocation result is determined as a homogeneous item placement area set. In the fourth sorting substep, the size values of the item images corresponding to each homogeneous item information in the homogeneous item information set are sorted in descending order to obtain a sorted item image size value sequence. As an example, the executing entity first obtains the item actual size value of the homogeneous item information. Then, the executing entity determines the area image size value and area actual size value of the item placement area using various methods. Finally, the item actual size value and the area image size value are multiplied to obtain a multiplied value. The multiplied value and the area actual size value are divided to obtain the item image size value corresponding to the homogeneous item information. The actual size of the article is the actual size of the long side of the article.The area actual size value is the actual size value of the actual long side of the area. The area image size value is expressed as the number of pixels that the long side of the area occupies in the background image. In the fifth sorting sub-step, the area image size values of each homogeneous item placement area in the homogeneous item placement area set are sorted in descending order to obtain a sorted area image size value sequence. Here, the area image size value is expressed as the number of pixels that the long side of the area occupies in the background image. In the sixth sorting sub-step, the number of homogeneous item information in the homogeneous item information set is determined, and the quantity value of the homogeneous item information is obtained. In the seventh sorting sub-step, the number of homogeneous item placement areas in the homogeneous item placement area set is determined, and the quantity value of the homogeneous item placement areas is obtained.
[0031] Optionally, the homogeneous allocation result selection step further includes the following: Step 1: In response to the quantity value of the homogeneous item information being less than or equal to the quantity value of the homogeneous item placement area, assign each item image included in the homogeneous 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 homogeneous item allocation relationship set. For example, the homogeneous item allocation relationship set is [item information 3 - item placement area 1]. In step 2, the following background image processing steps are performed based on the homogeneous item allocation relationship set. In a first processing sub-step, an image size difference corresponding to each homogeneous item allocation relationship in the homogeneous item allocation relationship set is determined, thereby obtaining an image size difference set. For example, the executing entity performs a difference processing between the item image size value of item information 3 and the area image size value of item placement area 1, thereby obtaining an image size difference corresponding to [item information 3 - item placement area 1]. Optionally, the execution entity re-executes the homogeneous allocation result selection step by selecting the unselected homogeneous allocation result set as at least one homogeneous allocation result in response to the fact that the image size difference set does not include any image size difference smaller than the first target threshold and the number of homogeneous allocation results not selected from the at least one homogeneous allocation result is greater than the second target threshold. Here, the first target threshold and the second target threshold are preset according to actual conditions. For example, the first target threshold and the second target threshold are 0. In the second processing substep, in response to the fact that the image size difference set does not include any image size difference smaller than the first target threshold and the number of homogeneous allocation results not selected from the at least one homogeneous allocation result is equal to the second target threshold, the execution entity adds the selected background image as a candidate background image to a previously created initial candidate background image set to obtain a candidate background image set. As a result, after determining that all homogeneous allocation results are reasonable, the execution entity selects the selected background image as a candidate background image.In a third processing substep, in response to the fact that the image size difference set does not contain any image size difference smaller than the first target threshold and the number of similar allocation results not selected from at least one similar allocation result is equal to the second target threshold, the acquired at least one similar product allocation relationship set is determined as product allocation relationship information corresponding to the candidate background image. Optionally, in response to the fact that the image size difference set contains any image size difference smaller than the first target threshold, the execution entity performs the background image selection step again, using the unselected background image set in the background image set as the background image set. Thus, if the image size difference set contains any image size difference smaller than the first target threshold, this indicates that the background image needs to be excluded and a new background image needs to be selected. This determines a candidate background image set from the background image set.
[0032] Optionally, the homogeneous allocation result selection step further includes the following: In response to the quantity value of the homogeneous item information being greater than the quantity value of the homogeneous item placement area, 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. In a first generation substep, item images included in each homogeneous item information corresponding to the previous N sorted item image size values in the sorted item image size value sequence are determined as a set of item images waiting to be allocated. The value of N is the same as the quantity value of the homogeneous item placement area. In a second generation substep, based on the sorted item image size value sequence and the sorted area image size value sequence, the set of item images waiting to be allocated is allocated to the corresponding item placement area, and a set of item allocation relationships waiting to be allocated is obtained as a set of homogeneous item allocation relationships. Here, the item allocation relationship waiting to be allocated is a relationship that allocates item images waiting to be allocated to the corresponding item placement area. For example, the set of item allocation relationships waiting to be allocated is [item information 1 - item placement area 2]. In the third generation substep, the image size difference corresponding to each allocation-waiting item allocation relationship in the allocation-waiting item allocation relationship set is determined to obtain an allocated image size difference set. As an example, the execution entity performs a difference process between 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 to obtain 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 in the allocated image size difference set being smaller than the first target threshold, the execution entity performs the background image selection step again, using a background image set not selected in the background image set as the background image set. Thus, if any allocated image size difference in the allocated image size difference set is smaller than the first target threshold, this indicates that the background image needs to be excluded and a new background image needs to be selected. This determines a candidate background image set from the background image set. In a fourth generation substep, in response to the fact that no assigned image size difference in the assigned image size difference set is smaller than the first target threshold, the assigned image size difference set is sorted in descending order to obtain a sorted assigned image size difference sequence.In a fifth generation sub-step, the number of unallocated item images in the unallocated item image set is determined. Here, the unallocated item image set is a set of item images other than the item image set awaiting allocation for each item image corresponding to the homogeneous item information set. In a sixth generation sub-step, in response to the unallocated number being equal to or less than the quantity value of the homogeneous item placement area, the item images included in each unallocated item image are assigned to the corresponding item placement area based on the item image size value corresponding to the unallocated item image set and the sorted assigned image size difference sequence, thereby obtaining an unallocated item allocation relationship set. In a seventh generation sub-step, the unallocated item allocation relationship set is treated as a homogeneous item allocation relationship set, and a background image processing step is performed. As a result, if the unallocated number is equal to or less than the quantity value of the homogeneous item placement area, the item images included in the unallocated item images are assigned, and after determining the image assignment, it is determined whether the background image is a candidate background image.
[0033] Alternatively, in response to the number of unallocated item images being greater than the quantity value of the same-type item placement area, the execution entity sets the number of unallocated item images as the quantity value of the same-type item information, sets the sorted item image size value sequence obtained by removing the previous N sorted item image size values as the sorted item image size value sequence, and sets the sorted allocated image size difference sequence as the sorted area image size value sequence, and executes the item allocation relationship information generation step again.As a result, if the number of unallocated item images is greater than the quantity value of the same-type item placement area, the item allocation relationship information generation step is executed again until the unallocated number becomes equal to or less than the quantity value of the same-type item placement area.
[0034] Optionally, determining a target background map and item allocation relationship information corresponding to the target background map based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and the pre-acquired background map set further includes the following steps: in step 1, determining whether the candidate background map set is an empty set; in step 2, in response to the candidate background map set being not an empty set, randomly selecting one candidate background map from the candidate background map set as the target background map, and setting the item allocation relationship information corresponding to the selected candidate background map as the item allocation relationship information corresponding to the target background map; in step 3, in response to the candidate background map set being an empty set, determining a pre-acquired common background map as the target background map.
[0035] In step 603, for each article placement area in the at least one article placement area, at least one item information corresponding to the article placement area is determined based on the article allocation relationship information.
[0036] In some embodiments, the execution entity 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 item allocation relationship information, where the item allocation relationship information is [(item placement area 1 - air conditioner image), (item placement area 2 - electric fan image, refrigerator image)].
[0037] In step 604, 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.
[0038] In some embodiments, the executing entity randomly 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.
[0039] In step 605, based on the obtained item position information, 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.
[0040] In some embodiments, the executing entity pastes each item image included in the item information group into a corresponding item placement area in the target background image based on the acquired item position information, thereby obtaining an item information matching image. The item information matching image is an image in which each item image is pasted onto the target background image.
[0041] Each embodiment of the present disclosure has the following beneficial effects. When a new type of item information is encountered or when processing an item whose scale differs significantly from the preset labeling frame, the method for generating an item information matching diagram according to some embodiments of the present disclosure can quickly generate an item information matching diagram, and the generated item information matching diagram is more reasonable and aesthetically pleasing. Specifically, the generated item information matching diagram is unreasonable, unattractive, and inefficient because, when a new type of item information appears, manual matching of the background image must be performed again, and it is difficult to process an item whose scale differs significantly from the preset labeling frame. Based on this, the method for generating an item information matching diagram according to some embodiments of the present disclosure first determines a corresponding item placement area type and item placement scene type for each item type information included in a previously acquired item information group, and the item information in the item information group further includes an item image. Thus, when a new type of item information appears, the corresponding item placement area type and item placement scene type are determined, and an item placement area can be quickly assigned to the new type of item information. This avoids the need for artificial matching for the new type of item information. Next, a target background image and item allocation relationship information corresponding to the target background image are determined based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and the previously acquired background image set, where the target background image includes at least one item placement area. This allows a relatively reasonable background image to be selected as the target background image from the previously acquired background image set, making the selection of the background image more reasonable and avoiding the use of artificially matched background images, thereby improving the efficiency of background image generation. Next, for each item placement area in the at least one item placement area, at least one item information corresponding to the item placement area is determined based on the item allocation relationship information. 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. This allows the item images to be filled into the target background image to be adjusted based on the item position information.Finally, based on the acquired item position information, 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 diagram. In this way, when a new type of item information appears, artificial matching to the background image is avoided again, and by filling the item images into the corresponding item placement area in the target background image based on the item position information, the generated item information matching diagram becomes more reasonable and beautiful.
[0042] The above embodiment relates to metaverse shopping, and when a new type of product information appears, a product information matching diagram is quickly generated, and the generated product information matching diagram is more reasonable and beautiful.
[0043] 7, there is shown a flow chart 700 of some other embodiments of a method for generating an item information matching map. The flow chart 700 of the method for generating an item information matching map includes the following steps:
[0044] In step 701, the corresponding item placement area type and item placement scene type are determined for the item type information included in each item information in the previously acquired item information group.
[0045] In step 702, a target background map and item allocation relationship information corresponding to the target background map are determined based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and the previously acquired background map set.
[0046] In step 703, for each article placement area in the at least one article placement area, at least one item information corresponding to the article placement area is determined based on the article allocation relationship information.
[0047] In some embodiments, the specific implementation and technical effects of steps 701 to 703 may refer to steps 601 to 603 in those embodiments corresponding to FIG. 6, and the description thereof will be omitted here.
[0048] In step 704, 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.
[0049] In some embodiments, the executing entity 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.
[0050] In some alternative embodiments of some examples, the item position information includes item arrangement relationship information, and the execution entity determines item position information corresponding to at least one item information for each item placement area in at least one item placement area, including the following steps: In step 1, determine 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 item information assigned to the item placement area. In step 2, obtain assigned item actual size values corresponding to each assigned item information in the assigned item information set to obtain an assigned item actual size value set. Here, the assigned item actual size value is the actual size value of the actual long side of the item. In step 3, obtain an area image size value and an area actual size value of the item placement area. Here, the area image size value is expressed as the pixels occupied by the long side of the area in the background. The area actual size value is the actual size value of the actual long side of the area. In step 4, generate an assigned item image size value set based on the assigned item actual size value set, the area image size value, and the area actual size value. For example, the execution entity multiplies the assigned item actual size value by the area image size value to obtain a multiplied value. Then, the execution entity divides the multiplied value by the area actual size value to generate an assigned item image size value. In step 5, the assigned item image size value set is sorted in ascending order to generate a sorted assigned item image size value sequence. In step 6, the number of size values of the sorted assigned item image size values in the sorted assigned item image size value sequence is determined. In step 7, in response to the number of size values being equal to a third target threshold, item arrangement relationship information is generated. Here, the third target threshold is preset according to the actual situation. For 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: placed in the middle].
[0051] Optionally, determining item position information corresponding to at least one item information for each item placement area in the at least one item placement area further includes the following steps: In step 1, in response to the number of size values being greater than a third target threshold, the following item arrangement relationship information determination step is performed for the sorted assigned item image size value sequence: In a first determination substep, item images corresponding to the smallest two sorted assigned item image size values in the sorted assigned item image size value sequence are determined as a first item image and a second item image; In a second determination substep, height proportional values and width proportional values are generated based on the first item image and the second item image. For example, the execution entity obtains the height value and width value of the first item image as a first height value and a first width value; and obtains the height value and width value of the second item image as a second height value and a 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 proportional coefficient to generate a height proportional 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 proportional coefficient to generate a width proportional value. The preset height proportional coefficient and the preset width proportional coefficient are preset according to actual circumstances. Optionally, the execution entity's generating the height proportional value and the width proportional value based on the first item image and the second item image includes the following steps: In step 1, the height value and the width value of the first item image are obtained as the first height value and the first width value. In step 2, the height value and the width value of the second item image are obtained as the second height value and the second width value. In step 3, the proportional value between the first height value and the second height value is determined to obtain the height proportional value. In step 4, the proportional value between the first width value and the second width value is determined to obtain the width proportional value. In a third determination substep, in response to the height proportional value being greater than the width proportional value, horizontal item arrangement information is generated as item arrangement relationship information. The horizontal item arrangement information includes left-right arrangement information and a horizontal proportional value, and the horizontal proportional value is the same as the width proportional value. The left-right arrangement information is information on the left-right arrangement of items. In a fourth determining sub-step, in response to the height proportional value being equal to or less than the width proportional value, vertical direction item arrangement information is generated as item arrangement relationship information.The vertical item arrangement information includes vertical arrangement information and a vertical proportional value, and the vertical proportional value is the same as the height proportional value. The vertical arrangement information is information about the arrangement of items vertically. In a fifth determination sub-step, the first item image and the second item image are determined as an integrated item image. Here, the height value of the integrated item image is the integrated image height value. The width value of the integrated item image is the integrated image width value. The integrated image height value is equal to the larger of the first height value and the second height value. The integrated image width value is equal to the larger of the first width value and the second width value. In a sixth determination sub-step, an updated assigned item image size value sequence is generated based on the assigned item image size values corresponding to the integrated item image and the sorted assigned item image size value sequence. In practice, the executing entity first excludes the assigned item image size values corresponding to the first item image and the assigned item image size values corresponding to the second item image from the sorted assigned item image size value sequence to obtain an excluded assigned item image size value sequence. Then, the assigned item image size value corresponding to the integrated item image is added to the excluded assigned item image size value sequence to obtain an updated assigned item image size value sequence. Here, the assigned item image size value corresponding to the integrated item image is obtained by the following steps: First, an integrated item actual size value of the integrated item image is determined, where the integrated item actual size value is equal to the larger value of the integrated image width value and the integrated image height value. Then, the area image size value and the area actual size value of the item placement area are obtained. After that, the integrated item actual size value and the area image size value are multiplied to obtain a multiplied value. Finally, the multiplied value and the area actual size value are divided to obtain an assigned item image size value corresponding to the integrated item image. In a seventh determining substep, the number of updated size values of the updated assigned item image size values in the updated assigned item image size value sequence is determined. In an eighth determining substep, item arrangement relationship information is generated in response to the number of updated size values being the third target threshold. Optionally, in response to the number of updated size values being greater than the third target threshold, the execution entity performs the item arrangement relationship information determination step again, using the updated assigned item image size value sequence as the sorted assigned item image size value sequence.In step 2, each piece of acquired item arrangement relationship information is determined as item arrangement relationship information corresponding to at least one piece of item information. This determines whether the item images are arranged left-right or up-down based on the relationship between the height proportional value and the width proportional value. The item images are integrated, and the integrated image is used as the item image to determine the item arrangement relationship information for the item images. Therefore, the arrangement information for each item image in the item placement area is accurately determined.
[0052] Optionally, the item position information includes item image position information, and the execution entity's determining item position information corresponding to at least one item information for each item placement area in the at least one item placement area includes the following steps: In step 1, determining an item arrangement information quantity value for at least one item arrangement information. Here, 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. The item arrangement information quantity value is obtained by subtracting 1 from the quantity value of the item information assigned to the item placement area. 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 proportional value), (integrated item image and item image 3 - item placement area 1: top-bottom placement, vertical proportional value)]. In step 2, for the area simplified display information of the item placement area, the area simplified display information includes the area's upper left corner coordinate and the area's lower right corner coordinate, the area's upper left corner coordinate includes the area's upper left corner abscissa and the area's upper left corner ordinate, and the area's lower right corner coordinate includes the area's lower right corner abscissa and the area's lower right corner ordinate. Based on the item arrangement information quantity value, the following item image position information generation step is performed. In the first generation substep, in response to the item arrangement information quantity value being equal to a fourth target threshold, the simplified display information of the first area is determined. Here, the first area is an area in the item placement area, and the simplified display information of the first area is the same as the area simplified display information. The execution entity further determines the simplified display information of the second area. The simplified display information of the second area is an empty set. For example, the fourth target threshold is equal to 0. A fourth target threshold of 0 indicates that one item image is assigned to the item placement area. In the second generation substep, the midpoint coordinate, width value, and height value of the first area are determined. Here, the midpoint coordinates of the first area include a midpoint abscissa and a midpoint ordinate. Here, the midpoint abscissa is the average value of the abscissa of the upper left corner of the area and the abscissa of the lower right corner of the area. The midpoint ordinate is the average value of the ordinate of the upper left corner of the area and the ordinate of the lower right corner of the area. The width value is equal to the width value of the item placement area. The height value is equal to the height value of the item placement area. The difference between the abscissa of the lower right corner of the area and the abscissa of the upper left corner of the area is determined as the width value of the item placement area. The difference between the ordinate of the lower right corner of the area and the ordinate of the upper left corner of the area is determined as the height value of the item placement area.In a third generation substep, item image position information is generated based on the midpoint coordinate, width value, and height value of the first area and the transformation matrix of the corresponding item placement area. Here, the item image position information includes, but is not limited to, at least one of item information, item area midpoint coordinate, item area width value, item area height value, and item arrangement relationship information. The item area midpoint coordinate is the midpoint coordinate of the item placement area to which the item information is assigned. The item area width value is the width value of the item placement area to which the item information is assigned. The item area height value is the height value of the item placement area to which the item information is assigned. As an example, the executing entity inputs the midpoint coordinate, width value, and height value of the first area into the transformation matrix of the corresponding item placement area to generate item image position information. Here, the transformation matrix of the corresponding item placement area is obtained by solving a transparency transformation formula using the four corner points of the simplified display information and the four corner point coordinates of the item placement area. The four corner points are the abscissa and ordinate points of the simplified display information and the item placement area.
[0053] Optionally, the item image position information generating step further includes the following steps: In step 1, in response to the item arrangement information quantity value being greater than a fourth target threshold, item arrangement information is selected from at least one item arrangement information. Here, 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 proportional value). The vertical item arrangement information is (integrated item image and item image 3 - item placement area 1: up-down placement, vertical proportional value). The fourth target threshold is greater than 0. A fourth target threshold greater than 0 indicates that multiple item images are assigned to the item placement area. In step 2, in response to the item arrangement information being vertical item arrangement information, the item placement area is divided into a first vertical partition area and a second vertical partition area based on a height partition value, resulting in a first partition area and a second partition area. Here, the height partition value is a product of the height value of the item placement area and the vertical proportional value included in the item arrangement information. The simplified display information of the first partitioned 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 abscissa and a first upper left corner ordinate. The first upper left corner abscissa is the same as the upper left corner abscissa of the area. The first upper left corner ordinate is the same as the upper left corner ordinate of the area. The first lower right corner coordinate includes a first lower right corner abscissa and a first lower right corner ordinate. The first lower right corner abscissa is the sum of the first upper left corner abscissa and the width value of the item placement area. The first lower right corner ordinate is the sum of the first upper left corner ordinate and the height partition value. The simplified display 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 abscissa and a second upper left corner ordinate. The second upper left corner abscissa is the same as the upper left corner abscissa of the area. The second upper left corner ordinate is the sum of the area's upper left corner ordinate and the height division value. The second lower right corner coordinate includes the second lower right corner abscissa and the second lower right corner ordinate. The second lower right corner abscissa is the sum of the area's upper left corner abscissa and the width value of the item placement area. The second lower right corner ordinate is the same as the area's lower right corner ordinate. In step 3, in response to the item arrangement information being horizontal item arrangement information, the item placement area is divided into a first horizontal division area and a second horizontal division area based on the width division value, resulting in a first division area and a second division area.Here, the width section value is the product of the width value of the item placement area and the horizontal proportional value included in the item arrangement information. The simplified display information of the first section 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 abscissa and a first upper left corner ordinate. The first upper left corner abscissa is the same as the area's upper left corner abscissa. The first upper left corner ordinate is the same as the area's upper left corner ordinate. The first lower right corner coordinate includes a first lower right corner abscissa and a first lower right corner ordinate. The first lower right corner abscissa is the sum of the first upper left corner abscissa and the width section value. The first lower right corner ordinate is the same as the area's lower right corner ordinate. The simplified display information of the second section 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 abscissa and a second upper left corner ordinate. The second upper left corner abscissa is the sum of the region's upper left corner abscissa and the width region value. The second upper left corner ordinate is the same as the region's upper left corner ordinate. The second lower right corner coordinate includes the second lower right corner abscissa and the second lower right corner ordinate. The second lower right corner abscissa is the same as the region's lower right corner abscissa. The second lower right corner ordinate is the same as the region's lower right corner ordinate. In step 4, the region midpoint coordinate, region width value, and region height value of the first region are determined. The region midpoint coordinate includes the region midpoint abscissa and the region midpoint ordinate. The region midpoint abscissa is the average value of the region's upper left corner abscissa and the region's lower right corner abscissa. The region midpoint ordinate is the average value of the region's upper left corner ordinate and the region's lower right corner ordinate. The region width value is equal to the width value of the item placement region. The region height value is equal to the height value of the item placement region. In step 5, item image position information is generated based on the partition midpoint coordinates, partition width value, partition height value of the first partition area, and the transformation matrix of the corresponding item placement area. As an example, the executing entity inputs the partition midpoint coordinates, partition width value, and partition height value of the first partition area into the transformation matrix of the corresponding item placement area to generate item image position information. In step 6, the simplified display information of the second partition area is set as the area simplified display information, and the value obtained by subtracting 1 from the item arrangement information quantity value is set as the item arrangement information quantity value, and the item image position information generation step is executed again. In step 7, each acquired item image position information is determined as item image position information corresponding to at least one item information.
[0054] In step 705, for each item information in the item information group, item image size information is generated based on the item position information corresponding to the item information, the original width value of the item image corresponding to the previously acquired item information, and the original height value of the item image.
[0055] In some embodiments, the executing entity generates item image size information for each item information in the item information group based on item position information corresponding to the item information, the original width value of the item image corresponding to the previously acquired item information, and the original height value of the item image.
[0056] In some alternative embodiments of some examples, the item image position information includes an item area width value and an item area height value, and the execution entity generates item image size information for each item information in the item information group based on the item position information corresponding to the item information, the original width value of the item image corresponding to the previously acquired item information, and the original height value of the item image, including the following steps: In step 1, in response to determining that the item arrangement information corresponding to the item information is horizontal item arrangement information, the execution entity determines an item width proportional value based on the item area width value and the original width value of the item image. As an example, the execution entity divides the item area width value and the original width value of the item image to obtain a width division value. Then, the execution entity multiplies the width division value by 1.25 to obtain the item width proportional value. In step 2, the execution entity determines the product of the item width proportional value and the original width value of the item image as the target width value. In step 3, the execution entity determines the product of the item width proportional value and the original height value of the item image as the target height value. In step 4, the execution entity determines the target width value and the target height value as the item image size information. In step 5, in response to determining that the item arrangement information corresponding to the item information is vertical item arrangement information, an item height proportional value is determined based on the item area height value and the original height value of the item image. As an example, the executing entity divides the height value of the item area and the original height value of the item image to obtain a height division value. The height division value is multiplied by 1.25 to obtain the item height proportional value. In step 6, the product of the item height proportional value and the original width value of the item image is determined as the target width value. In step 7, the product of the item height proportional value and the original height value of the item image is determined as the target height value. In step 8, the target width value and target height value are determined as item image size information.
[0057] In step 706, a scaling process is performed on each of the item images included in the item information group based on the acquired size information of each item image, and a scaled item information group is acquired.
[0058] In some embodiments, the executing entity scales each item image included in the item information group to the corresponding item image size information based on the acquired item image size information, and acquires a group of scaled item images.
[0059] In step 707, based on the obtained item position information, the scaled item information group is filled into the corresponding item placement area in the target background map to obtain an item information matching map.
[0060] 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 item area midpoint coordinates included in each of the acquired item image position information, to obtain an item information matching image, where each item image position information is the position information included in each of the item position information.
[0061] As can be seen from Figure 7, compared with the description of some embodiments corresponding to Figure 6, the flow 700 of the method for generating an item information matching image in some embodiments corresponding to Figure 7 shows that the position and size of the item image are adjusted based on the item position information and item image size information of the item information. The solution described in these embodiments first determines item arrangement relationship information, then determines item image position information using the item arrangement relationship information and the simplified area display information of the item placement area, and then determines item image size information based on the item image position information. This dynamically adjusts the position and size of the item image in the target background image and makes the generated item information matching image more reasonable and beautiful.
[0062] Further, referring to FIG. 8, as an implementation of the methods shown in each figure, the present disclosure provides several embodiments of an article information matching diagram generation apparatus, and these apparatus embodiments correspond to the method embodiments shown in FIG. 6, and the apparatuses are specifically applied to various electronic devices.
[0063] 8, an apparatus 800 for generating an item information matching diagram according to some embodiments includes a first determination unit 801, a second determination unit 802, a third determination unit 803, a fourth determination unit 804, and a filling unit 805. Here, the first determination unit 801 is configured to determine a corresponding item placement area type and an item placement scene type for item type information included in each item information in a pre-acquired item information group, and the item information in the item information group further includes an item image. The second determination unit 802 is configured to determine a target background map and item allocation relationship information corresponding to the target background map based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and a previously acquired background map set, where the target background map 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, item position information corresponding to the at least one item information; and 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 map based on each acquired item position information to obtain an item information matching map.
[0064] Optionally, the filling unit 805 is configured to generate item image size information for each item information in the item information group based on item position information corresponding to the item information, the original width value of the item image corresponding to the item information previously acquired, and the original height value of the item image, perform a scaling process on each item image included in the item information group based on the acquired 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 based on the acquired item position information, to obtain an item information matching image.
[0065] Optionally, the second determination unit 802 is configured to perform the following background image selection steps on the background image collection: select a background image from the background image collection, 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, and in response to the item placement area type collection having an item placement area type sub-set with the same content as the at least one area type and the item placement scene type collection having the same content as the at least one scene type, assign the item placement area type and item information matching the item placement scene type to the area type and scene type to the corresponding item placement area, and obtain an assignment result.
[0066] Optionally, the second determination unit 802 is configured such that the background image selection step further includes the following content: determine whether at least one homogeneous assignment result exists in the assignment result, where the homogeneous assignment result indicates that a plurality of homogeneous item information is assigned to at least one homogeneous item placement area, where a plurality of item placement area types corresponding to the plurality of homogeneous item information are the same, a plurality of item placement scene types corresponding to the plurality of homogeneous item information are the same, at least one area type corresponding to at least one homogeneous item placement area is the same, and at least one scene type corresponding to at least one homogeneous item placement area is the same. In response to the presence of at least one homogeneous assignment result in the assignment result, perform the following homogeneous assignment result selection step for the at least one homogeneous assignment result: Select a homogeneous allocation result from at least one homogeneous allocation result, determine a plurality of homogeneous item information corresponding to the selected homogeneous allocation result as a homogeneous item information set, determine at least one homogeneous item placement area corresponding to the selected homogeneous allocation result as a homogeneous item placement area set, sort the image size values of the items corresponding to each homogeneous item information in the homogeneous item information set in descending order to obtain a sorted item image size value sequence, sort the area image size values of each homogeneous item placement area in the homogeneous item placement area set in descending order to obtain a sorted area image size value sequence, determine the number of homogeneous item information in the homogeneous item information set, obtain quantity values of the homogeneous item information, determine the number of homogeneous item placement areas in the homogeneous item placement area set, and obtain quantity values of the homogeneous item placement areas.
[0067] Optionally, the second determination unit 802 is configured such that the similar allocation result sorting step further includes the following content: in response to the quantity value of the similar item information being less than or equal to the quantity value of the similar item placement area, allocate 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, obtain a similar item allocation relationship set, and perform the following background map processing step based on the similar item allocation relationship set: An image size difference corresponding to each homogeneous item allocation relationship in the homogeneous item allocation relationship set is determined, and an image size difference set is obtained. In response to the fact that there is no image size difference in the image size difference set that is less than a first target threshold and the number of homogeneous allocation results that have not been selected from at least one homogeneous allocation result is equal to a second target threshold, the selected background image is added as a candidate background image to a pre-created initial candidate background image set, and a candidate background image set is obtained. 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 homogeneous allocation results that have not been selected from at least one homogeneous allocation result is equal to the second target threshold, the at least one obtained homogeneous item allocation relationship set is determined as item allocation relationship information corresponding to the candidate background image.
[0068] Optionally, the second determination unit 802 is configured such that the homogeneous allocation result selection step further includes: in response to the quantity value of the homogeneous item information being greater than the quantity value of the homogeneous item placement area, perform 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: determine the item images included in each homogeneous item information corresponding to the previous N sorted item image size values in the sorted item image size value sequence as an item image set waiting to be allocated, where the value of N is the same as the quantity value of the homogeneous item placement area, and allocate the item image set waiting to be allocated to the corresponding item placement area based on the sorted item image size value sequence and the sorted area image size value sequence to obtain an item allocation relationship set waiting to be allocated, which is the allocation relationship set of homogeneous items. The image size difference corresponding to each allocation-waiting item allocation relationship in the allocation-waiting item allocation relationship set is determined, and an allocation image size difference set is obtained. In response to the size difference set of allocated images not having a size difference smaller than a first target threshold, the size difference set of allocated images is sorted in descending order, a sorted allocation image size difference sequence is obtained, and the number of unallocated items in the unallocated item image set is determined, where the unallocated item image set is an item image set other than the allocation-waiting item image set in each item image corresponding to the homogeneous item information set, and in response to the number of unallocated items being less than or equal to the quantity value of the homogeneous item placement area, the item images included in each unallocated item image are assigned to the corresponding item placement area based on the size value of the item image corresponding to the unallocated item image set and the sorted allocation image size difference sequence, and an unallocated item allocation relationship set is obtained. A background image processing step is performed using the unallocated item allocation relationship set as a homogeneous item allocation relationship set.
[0069] Optionally, the second determination unit 802 is configured to determine whether the candidate background map set is an empty set, and in response to the candidate background map set being not an empty set, select one candidate background map from the candidate background map set as a target background map, and set the item allocation relationship information corresponding to the selected candidate background map as the item allocation relationship information corresponding to the target background map, and in response to the candidate background map set being an empty set, determine a pre-acquired common background map as the target background map.
[0070] Optionally, the item position information includes item arrangement relationship information. The fourth determination unit 804 is configured to determine at least one item information corresponding to the item placement area as an assigned item information set, obtain assigned item actual size values corresponding to each assigned item information in the assigned item information set, obtain an assigned item actual size value set, obtain an area image size value and an area actual size value of the item placement area, generate an assigned item image size value set based on the assigned item actual size value set, the area image size value and the area actual size value, sort the assigned item image size value set in ascending order to generate a sorted assigned item image size value sequence, determine a quantity of size values of the sorted assigned item image size values in the sorted assigned item image size value sequence, and generate the item arrangement relationship information in response to the quantity of size values being a third target threshold.
[0071] Optionally, the fourth determination unit 804 performs the following item arrangement relationship information determination step on the sorted assigned item image size value sequence in response to the number of size values being greater than the third target threshold: determine item images corresponding to the smallest two sorted assigned item image size values in the sorted assigned item image size value sequence as a first item image and a second item image; generate a height proportional value and a width proportional value based on the first item image and the second item image; generate horizontal item arrangement information as item arrangement relationship information in response to the height proportional value being greater than the width proportional value, where the horizontal item arrangement information includes left-right arrangement information and a horizontal proportional value, and the horizontal proportional value is equal to the width proportional value; generate vertical item arrangement information as item arrangement relationship information in response to the height proportional value being less than or equal to the width proportional value, where the vertical item arrangement information includes up-down arrangement information and a vertical proportional value, and the vertical proportional value is equal to the height proportional value; The method is configured to determine two item images as an integrated item image, generate an updated assigned item image size value sequence based on the assigned item image size values corresponding to the integrated item image and the sorted assigned item image size value sequence, determine the number of updated size values of the updated assigned item image size values in the updated assigned item image size value sequence, generate item allocation relationship information in response to the number of updated size values being a third target threshold, and in response to the number of updated size values being greater than the third target threshold, perform the item arrangement relationship information determination step again with the updated assigned item image size value sequence as the sorted assigned item image size value sequence, and determine each obtained item arrangement relationship information as item arrangement relationship information corresponding to at least one item information.
[0072] Optionally, the fourth determination unit 804 is configured to generate a height proportional value and a width proportional value based on the first item image and the second item image, including obtaining a height value and a width value of the first item image, obtaining a height value and a width value of the second item image as a first height value and a first width value, and determining a proportional value of the first height value and the second height value as a second height value and a second width value, obtaining a height proportional value, determining a proportional value of the first width value and the second width value, and obtaining a width proportional value.
[0073] Optionally, the item position information includes item image position information. The fourth determination unit 804 is configured to determine an item arrangement information quantity value of at least one item arrangement information, where 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, and for area simplified display information of the item placement area, where the area simplified display information includes an area upper left corner coordinate and an area lower right corner coordinate, and perform the following item image position information generating step based on the item arrangement information quantity value: determine simplified display information of a first area in response to the item arrangement information quantity value being equal to a fourth target threshold, where the first area is an area in the item placement area, and the simplified display information of the first area is the same as the area simplified display information, and generate item image position information based on a midpoint coordinate, a width value, a height value of the first area and a transformation matrix corresponding to the item placement area, where the item image position information includes at least one of the item information, the item area midpoint coordinate, the item area width value, the item area height value, and the item placement relationship information.
[0074] Optionally, the fourth determining unit 804 is configured such that the item image position information generating step further includes: selecting item arrangement information from at least one item arrangement information in response to the item arrangement information quantity value being greater than a fourth target threshold, the item arrangement information including horizontal item arrangement information or vertical item arrangement information, dividing the item placement area into a first vertical section area and a second vertical section area based on a height section value in response to the item arrangement information being the vertical item arrangement information, dividing the item placement area into a first horizontal section area and a second horizontal section area based on a width section value in response to the item arrangement information being the horizontal item arrangement information. The area is divided into areas, and the area midpoint coordinates, area width value, and area height value of the first divided area are determined as the first divided area and the second divided area. Item image position information is generated based on the area midpoint coordinates, area width value, area height value of the first divided area, and a transformation matrix corresponding to the item placement area. The simplified display information of the second divided area is set as the area simplified display information, and the item arrangement information quantity value is set as the item arrangement information quantity value minus 1. The item image position information generation step is executed again, and each acquired item image position information is determined as item image position information corresponding to at least one item information.
[0075] Optionally, the item image position information includes an item area width value and an item area height value. In response to determining that the item arrangement information corresponding to the item information is horizontal item arrangement information, the filling unit 805 is configured to determine an item width proportional value based on the item area width value and the original width value of the item image, determine a product of the item width proportional value and the original width value of the item image as a target width value, determine a product of the item width proportional value and the original height value of the item image as a target height value, and determine the target width value and target height values as item image size information. In response to determining that the item arrangement information corresponding to the item information is vertical item arrangement information, the filling unit 805 is configured to determine an item height proportional value based on the item area height value and the original height value of the item image, determine a product of the item height proportional value and the original width value of the item image as a target width value, determine a product of the item height proportional value and the original height value of the item image as a target height value, and determine the target width value and target height values as item image size information.
[0076] Optionally, the first determination unit 801 is configured to generate the background image set by the following steps: obtain an image of each scene type as a background image set, the background image in the background image set includes at least one item placement area, and for each background image in the background image set, perform size adjustment on each item placement area included in the background image to obtain an adjusted background image, and determine the obtained adjusted background image set as the background image set.
[0077] Optionally, the first determination unit 801 is configured to perform size adjustment for each item placement area included in the background image, and includes performing the following size adjustment steps for each item placement area in each item placement area: obtain adjusted item information including item actual size values based on the area type and scene type of the item placement area; determine the area image size value and area actual size value of the item placement area; generate an item image size value based on the item actual size value, the area image size value and the area actual size value; and perform size adjustment for the item placement area based on the item image size value.
[0078] It will be understood that each unit described in the apparatus 800 corresponds to each step in the method described with reference to Figure 6. Accordingly, the operations, features and beneficial effects described for the method described above apply equally to the apparatus 600 and the units included therein, and will not be described again here.
[0079] Referring now to FIG. 9, a structural diagram of an electronic device (e.g., the computing device in FIG. 1) 900 for implementing some embodiments of the present disclosure is shown. Electronic devices in some embodiments of the present disclosure include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG. 9 is merely an example and does not impose any limitations on the functionality and scope of use of the embodiments of the present disclosure.
[0080] 9, electronic device 900 includes a processing unit (e.g., a central processing unit, a graphics processor, etc.) 901 that performs various appropriate operations and processes in accordance with programs stored in read-only memory (ROM) 902 or programs loaded from storage device 908 into random access memory (RAM) 903. RAM 903 also stores various programs and data necessary for the operation of electronic device 900. Processing unit 901, ROM 902, and RAM 903 are interconnected by a bus 904. An input / output interface 905 is also connected to bus 904.
[0081] Typically, the following devices are connected to the I / O interface 905: input devices 906, including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 907, including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 908, including, for example, a magnetic tape, hard disk, etc.; and communication devices 909. The communication devices 909 allow the electronic device 900 to communicate wirelessly or via wires with other devices to exchange data. While FIG. 9 illustrates the electronic device 900 with various devices, it is not required to implement or include all of the devices shown. Alternatively, the electronic device 900 may implement or include more or fewer devices. Each block illustrated in FIG. 9 represents one device, or multiple devices if desired.
[0082] In particular, according to some embodiments of the present disclosure, the processes described with reference to the flowcharts above are implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product including a computer program recorded on a computer-readable medium, the computer program including program code for performing the methods illustrated 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, it performs the limited functions of the methods of some embodiments of the present disclosure.
[0083] It should be noted that the computer-readable medium described in some embodiments of the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of both. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium include, but are not limited to, an electrical connection having one or more conductors, a portable computer magnetic 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. In some embodiments of the present disclosure, the computer-readable storage medium is any tangible medium that contains or stores a program, and the program is used in or executed in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, the computer-readable signal medium includes a data signal transmitted in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination. A computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium. The computer-readable signal medium transmits, propagates, or transmits a program used by or executed in connection with an instruction execution system, apparatus, or device. The program code contained in the computer-readable medium may be transmitted over any suitable medium, including, but not limited to, electrical wire, optical cable, RF (Radio Frequency), or the like, or any suitable combination.
[0084] In some embodiments, clients and servers communicate using any now known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and interconnect via any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), networks (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any now known or future developed network.
[0085] The computer-readable medium may be included in an electronic device, or may exist independently without being incorporated into the electronic device. The computer-readable medium records one or more programs, and when the one or more programs are executed by the electronic device, the electronic device determines a corresponding item placement area type and item placement scene type for item type information included in each item information in a previously acquired item information group, where the item information in the item information group further includes item images, and determines a target background image and item allocation relationship information corresponding to the target background image based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and a previously acquired background image set, where the target background image includes at least one item placement area, and for each item placement area in the at least one item placement area, determines at least one item information corresponding to the item placement area based on the item allocation relationship information, and for each item placement area in the at least one item placement area, determines item position information corresponding to the at least one item information, and fills each item image included in the item information group into the corresponding item placement area in the target background image based on each acquired item position information to obtain an item information matching image.
[0086] Computer program code for carrying out operations of some embodiments of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code may run entirely on the user computer, partially on the user computer, as a separate software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. When referring to a remote computer, the remote computer may be connected to the user computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).
[0087] The flowcharts and block diagrams in the figures illustrate possible system architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams represents a module, program segment, or portion of code, including one or more executable instructions for implementing a given logical function. It should be noted that the functions described in the blocks may alternatively occur in a different order than the order depicted in the figures. For example, two successively depicted blocks may essentially execute in parallel, but may also execute in the reverse order, as defined by such functionality. It should be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented in a system using dedicated hardware that performs a given function or operation, or in a combination of dedicated hardware and computer instructions.
[0088] The units described in some embodiments of the present disclosure may be implemented in software or hardware. The described units may also be provided in a processor. For example, the processor may include a first determination unit, a second determination unit, a third determination unit, a fourth determination unit, and a filling unit. Here, the names of these units may not necessarily limit the units themselves. For example, the first determination unit may be described as "a unit that determines a corresponding item placement area type and an item placement scene type for item type information included in each item information in a previously acquired item information group."
[0089] It should be noted that at least a portion of the functionality herein is performed by one or more hardware logic components, for example, and without limitation, exemplary types of hardware logic components that may be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), etc.
[0090] Some embodiments of the present disclosure include a computer program product, including a computer program that, when executed by a processor, implements any of the data transmission request methods.
[0091] The above is merely a description of some preferred embodiments and operational technical principles of the present disclosure. Those skilled in the art should understand that the scope of the invention according to the embodiments of the present disclosure is not limited to a specific combination of technical features, but also includes other technical solutions formed by any combination of technical features or their equivalent features, as long as it does not deviate from the spirit of the invention. For example, technical solutions formed by mutually substituting features with technical features having similar functions (including but not limited to) disclosed in the embodiments of the present disclosure.
Claims
1. determining a corresponding item placement area type and an item placement scene type for item type information included in each item information in a previously acquired item information group, wherein the item information in the item information group further includes an item image; determining a target background image and item allocation relationship information corresponding to the target background image based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and a background image set previously acquired, wherein the target background image includes at least one item placement area; For each of the at least one item placement areas, determining at least one item information corresponding to the item placement area based on the item allocation relationship information; determining, for each item placement area in the at least one item placement area, item position information corresponding to at least one item information; and filling each item image included in the item information group into a corresponding item placement area in the target background image based on the acquired item position information to obtain an item information matching image. A method for generating an item information matching diagram.
2. Filling each item image included in the item information group into a corresponding item placement area in the target background image based on the acquired item position information to acquire an item information matching image, For each item information in the item information group, generating item image size information based on item position information corresponding to the item information, an original width value of the item image corresponding to the item information previously acquired, and an original height value of the item image; performing a scaling process on each of the item images included in the item information group based on the acquired size information of each item image, and acquiring a group of scaled item images; and filling the scaled item images into corresponding item placement areas in the target background map based on the obtained item position information to obtain an item information matching map. The method of claim 1.
3. Determining a target background image and item allocation relationship information corresponding to the target background image based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and a pre-acquired background image set includes performing the following background image selection step on the background image set: Select a background image from the background image collection, obtaining 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 having 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 having the same content as the at least one scene type in the item placement scene type set, the item placement area type and the item information that matches the area type and scene type of the item placement scene type are assigned to the corresponding item placement area, and an assignment result is obtained. The method of claim 1.
4. The background image selection step includes: Determine whether there is at least one homogeneous allocation result in the allocation results, where the homogeneous allocation result represents allocating a plurality of homogeneous item information to at least one homogeneous item placement area, and a plurality of item placement area types corresponding to the plurality of homogeneous item information are the same, a plurality of item placement scene types corresponding to the plurality of homogeneous item information are the same, at least one area type corresponding to the at least one homogeneous item placement area is the same, and at least one scene type corresponding to the at least one homogeneous item placement area is the same; In response to at least one homogeneous allocation result being present in the allocation results, performing the following homogeneous allocation result sorting step on the at least one homogeneous allocation result: In the homogeneous allocation result selection step, selecting a homogeneous allocation result from the at least one homogeneous allocation result; determining a plurality of pieces of similar product information corresponding to the selected similar allocation result as a similar product information set; determining at least one homogeneous item placement area corresponding to the selected homogeneous allocation result as a homogeneous item placement area set; sorting the item image size values corresponding to each of the same type item information in the same type item information set in descending order to obtain a sorted item image size value sequence; sorting the area image size values of each of the homogeneous item placement areas in the homogeneous item placement area set in descending order to obtain a sorted area image size value sequence; Determine the number of similar product information in the similar product information set, and obtain a quantity value of the similar product information; The number of the same-type item placement areas in the same-type item placement area set is determined, and a quantity value of the same-type item placement areas is obtained. The method of claim 3.
5. The homogeneous allocation result sorting step further includes: In response to the quantity value of the same-type item information being equal to or less than the quantity value of the same-type item placement area, assign each item image included in the same-type 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 same-type item assignment relationship set; According to the set of similar item allocation relationships, the following background map processing steps are carried out: Determine an image size difference corresponding to each like-kind item allocation relationship in the like-kind item allocation relationship set to obtain an image size difference set; In response to the fact that the image size difference set does not include any image size difference smaller than the first target threshold value and the number of similar assignment results that have not been selected from the at least one similar assignment result is equal to the second target threshold value, add 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 the image size difference set does not include any image size difference smaller than the first target threshold value and the number of homogeneous allocation results not selected from the at least one homogeneous allocation result is equal to the second target threshold value, the acquired at least one homogeneous item allocation relationship set is determined as item allocation relationship information corresponding to the candidate background image. The method of claim 4.
6. The homogeneous allocation result sorting step further includes: In response to the quantity value of the same kind of item information being greater than the quantity value of the same kind of item placement area, perform 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: In the sorted item image size value sequence, the item images included in each of the same type item information corresponding to the previous N sorted item image size values are determined as a set of item images waiting to be assigned, where the value of N is the same as the quantity value of the same type item placement area; Allocating the set of item images waiting for allocation to the corresponding item placement areas based on the sorted item image size value sequence and the sorted area image size value sequence, and obtaining a set of item allocation relationships waiting for allocation as a set of homogeneous item allocation relationships; Determine an image size difference corresponding to each allocation-waiting item allocation relationship in the allocation-waiting item allocation relationship set, and obtain an allocation image size difference set; In response to the fact that no assigned image size difference in the set of assigned image size differences is smaller than the first target threshold, sorting the set of assigned image size differences in descending order to obtain a sorted assigned image size difference sequence; Determine the number of unallocated item image sets, and the unallocated item image sets are item image sets other than the item image sets awaiting allocation in each item image corresponding to the same type item information set; In response to the unallocated number being equal to or less than the quantity value of the same-type item placement area, allocate the item images included in each unallocated item image to the corresponding item placement area based on the item image size value corresponding to the unallocated item image set and the sorted allocated image size difference sequence, thereby obtaining an unallocated item allocation relationship set; The background map processing step is performed by using the unallocated item allocation relationship set as a homogeneous item allocation relationship set. The method of claim 5.
7. Determining a target background image and item allocation relationship information corresponding to the target background image based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and a background image set acquired in advance further includes: determining whether the set of candidate background maps is an empty set; In response to the set of candidate background maps being not an empty set, selecting one candidate background map from the set of candidate background maps as a target background map, and setting the item allocation relationship information corresponding to the selected candidate background map as the item allocation relationship information corresponding to the target background map; determining a common background image acquired in advance as a target background image in response to the candidate background image set being an empty set. The method of claim 6.
8. The item position information includes item arrangement relationship information, Determining, for each item placement area in the at least one item placement area, item position information corresponding to at least one item information, includes: determining at least one item information set corresponding to the item placement area as an assigned item information set; Obtaining an allocated item actual size value corresponding to each allocated item information in the allocated item information set, and obtaining an allocated item actual size value set; acquiring an area image size value and an area actual size value of the item placement area; generating an assigned item image size value set based on the assigned item actual size value set, the region image size value, and the region actual size value; sorting the set of assigned item image size values in ascending order to generate a sorted sequence of assigned item image size values; determining a number of size values of the sorted assigned item image size values in the sorted assigned item image size value sequence; generating item arrangement relationship information in response to the number of size values being a third target threshold. The method of claim 2.
9. Determining, for each item placement area in the at least one item placement area, item position information corresponding to at least one item information, includes: and, in response to the number of size values being greater than the third target threshold, performing the following item arrangement relationship information determination step on the sorted assigned item image size value sequence: In the item arrangement relationship information determination step, determining the item images corresponding to the smallest two sorted assigned item image size values in the sorted assigned item image size value sequence as a first item image and a second item image; generating a height proportional value and a width proportional value based on the first article image and the second article image; generating horizontal item arrangement information as item arrangement relationship information in response to the height proportional value being greater than the width proportional value, the horizontal item arrangement information including left-right arrangement information and a horizontal proportional value, the horizontal proportional value being equal to the width proportional value; generating vertical item arrangement information as item arrangement relationship information in response to the height proportional value being equal to or less than the width proportional value, the vertical item arrangement information including up-down arrangement information and a vertical proportional value, the vertical proportional value being equal to the height proportional value; determining the first item image and the second item image as an integrated item image; generating an updated assigned item image size value sequence based on the assigned item image size values corresponding to the integrated item image and the sorted assigned item image size value sequence; determining a number of update size values of the update assigned item image size values in the sequence of update assigned item image size values; generating item arrangement relationship information in response to the number of the updated size values being the third target threshold; Each of the acquired item arrangement relationship information is determined as item arrangement relationship information corresponding to at least one item information. The method of claim 8.
10. generating a height proportional value and a width proportional value based on the first article image and the second article image, Acquiring a height value and a width value of the first item image as a first height value and a first width value; acquiring a height value and a width value of the second item image as a second height value and a second width value; determining a proportional value between the first height value and the second height value to obtain a height proportional value; determining a proportional value between the first width value and the second width value to obtain a width proportional value; 10. The method of claim 9.
11. the item position information includes item image position information; Determining, for each item placement area in the at least one item placement area, item position information corresponding to at least one item information further includes: Determine a quantity value of at least one item arrangement information, where 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; Regarding the simplified display information of the item placement area, the simplified display information of the area includes the coordinates of the upper left corner of the area and the coordinates of the lower right corner of the area, and based on the quantity value of the item arrangement information, execute the following item image position information generation step: In response to the item arrangement information quantity value being equal to a fourth target threshold, determining simplified display information of a first region, the first region being a region in the item placement region, and the simplified display information of the first region being the same as the region simplified display information; determining a midpoint coordinate, a width value, and a height value of the first region; Generate item image position information including at least one of item information, item area midpoint coordinates, item area width value, item area height value, and item arrangement relationship information based on the midpoint coordinates, width value, height value, and transformation matrix corresponding to the first area.
10. The method of claim 9.
12. The article image position information generating step includes: selecting item arrangement information from the at least one item arrangement information in response to the item arrangement information quantity value being greater than the fourth target threshold, 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 section area and a second vertical section area based on a height section value, thereby forming a first section area and a second section area; In response to the item arrangement information being horizontal item arrangement information, dividing the item placement area into a first horizontal section area and a second horizontal section area based on a width section value, thereby forming a first section area and a second section area; determining a partition midpoint coordinate, a partition width value, and a partition height value of a first partition area; generating article image position information based on a partition midpoint coordinate, a partition width value, a partition height value of the first partition area, and a transformation matrix corresponding to the article placement area; The simplified display information of the second divided area is set as the area simplified display information, and the value obtained by subtracting 1 from the item arrangement information quantity value is set as the item arrangement information quantity value, and the item image position information generating step is executed again; determining each of the acquired item image position information as item image position information corresponding to at least one item information. The method of claim 11.
13. The item image position information includes an item region width value and an item region height value; For each item information in the item information group, generating item image size information based on item position information corresponding to the item information, an original width value of an item image corresponding to the item information previously acquired, and an original height value of the item image is In response to determining that the item arrangement information corresponding to the item information is horizontal item arrangement information, determining an item width proportional value based on the item area width value and the original width value of the item image; determining a product of the item width proportional value and the original width value of the item image as a target width value; determining a product of the item width proportional value and the original height value of the item image as a target height value; determining a target width value and a target height value as the product image size information; In response to determining that the item arrangement information corresponding to the item information is vertical item arrangement information, determining an item height proportional value based on the item area height value and the original height value of the item image; determining a product of the article height proportional value and the original width value of the article image as a target width value; determining a product of the article height proportional value and the original height value of the article image as a target height value; determining a target width value and a target height value as the product image size information. The method of claim 12.
14. The background map set includes: Acquire an image of each scene type as a background image set, where the background image in the background image set includes at least one item placement area; For each background image in the set of background images, adjust the size of each item placement area included in the background image to obtain an adjusted background image; The background map set is generated by determining the adjusted background map set obtained as the background map set. The method of claim 1.
15. The step of adjusting the size of each item placement area included in the background image includes: For each of the article placement areas in each of the article placement areas, the following size adjustment steps are performed: Acquire adjusted item information including an actual item size value based on the area type and scene type of the item placement area; determining an area image size value and an area actual size value of the article placement area; generating an item image size value based on the item actual size value, the region image size value, and the region actual size value; The size of the item placement area is adjusted based on the item image size value.
15. The method of claim 14.
16. A first determination unit is configured to determine a corresponding item placement area type and an item placement scene type for item type information included in each item information in a pre-acquired item information group, where the item information in the item information group further includes an item image; a second determination unit configured to determine a target background image and item allocation relationship information corresponding to the target background image based on the acquired item placement area type set, the acquired item placement scene type set, the item information group, and a background image set previously acquired, wherein the target background image includes at least one item placement area; a third determination unit configured to determine, 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; a fourth determination 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; and a filling unit configured to fill each item image included in the item information group into a corresponding item placement area in the target background image based on the acquired item position information, thereby obtaining an item information matching image. Product information matching diagram generation device.
17. one or more processors; a storage device that stores one or more programs; The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1 to 15. electronic equipment.
18. A computer program is stored which, when executed by a processor, implements the method according to any one of claims 1 to 15. Computer-readable medium.
19. A computer program which, when executed by a processor, implements the method according to any one of claims 1 to 15. Computer program products.
Citation Information
Patent Citations
Picture generation method, device, medium and electronic equipment
CN110378432A
Method, device and computer program for generating a virtual scene of objects
EP3816943A1
Electronic commerce system
JP2014102573A
Method, apparatus and system for generating collocated renderings
JP2019526097A