An image processing method, apparatus, device and storage medium

By acquiring multiple images to be processed and determining their arrangement and pattern based on big data, the images are automatically combined, solving the problems of cumbersome operation and unnatural results in existing technologies, and achieving efficient and aesthetically pleasing multi-item image combination.

CN114782591BActive Publication Date: 2026-05-22BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
Filing Date
2022-03-25
Publication Date
2026-05-22

AI Technical Summary

Technical Problem

In existing technologies, combining multiple object images is cumbersome, requiring users to manually adjust the image size and position, resulting in low operational efficiency and awkward combination effects that fail to meet visual review standards.

Method used

By acquiring multiple images to be processed, determining their arrangement and pattern based on big data, and automatically combining them, a high-quality target image is generated.

Benefits of technology

It enables rapid and automatic combination of multiple object images to generate high-quality target images, improving operational efficiency and enhancing the aesthetics and conformity of the combined effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114782591B_ABST
    Figure CN114782591B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose an image processing method, device and equipment, and a storage medium, wherein the method comprises: obtaining images of at least two types of articles to be processed to obtain a plurality of images to be processed; determining arrangement positions between the plurality of images to be processed; and combining the plurality of images to be processed based on the arrangement positions to obtain a target image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular to an image processing method, apparatus, device and storage medium. Background Technology

[0002] In promotional pages or advertisements, stacked images of multiple items are favored due to their strong visual impact and ability to create a vibrant promotional atmosphere. Related techniques involve manually combining multiple item images using image editing software or replacing individual item images in a template through an online image creation platform. However, this requires users to constantly adjust the size and position of each item image to achieve the desired combination, making the process cumbersome, time-consuming, and labor-intensive, presenting a certain learning curve. Furthermore, if users lack sufficient layout aesthetics, the resulting image can easily appear cluttered and disorganized, failing to meet visual review standards, and the combination effect can be awkward, requiring further adjustments and resulting in low operational efficiency. Summary of the Invention

[0003] To address the aforementioned technical problems, embodiments of this application provide an image processing method, apparatus, device, and storage medium. The method determines the arrangement positions of multiple images to be processed based on certain rules, and combines the multiple images to be processed based on these arrangement positions; thus, a high-quality target image can be obtained.

[0004] To achieve the above objectives, the technical solution of this application is implemented as follows:

[0005] This application provides an image processing method, the method comprising:

[0006] Obtain images of at least two types of items to be processed, resulting in multiple images to be processed;

[0007] Determine the arrangement position between the multiple images to be processed;

[0008] Based on the arrangement positions, the multiple images to be processed are combined to obtain the target image.

[0009] This application provides an image processing apparatus, the apparatus comprising:

[0010] The first acquisition module is used to acquire images of at least two types of items to be processed, resulting in multiple images to be processed.

[0011] The first determining module is used to determine the arrangement position among the multiple images to be processed;

[0012] The first processing module is used to combine the multiple images to be processed based on the arrangement position to obtain the target image.

[0013] This application provides an electronic device, which includes: a processor, a memory, and a communication bus;

[0014] The communication bus is used to realize the communication connection between the processor and the memory;

[0015] The processor is used to execute the program in the memory to implement the above-described image processing method.

[0016] This application provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the above-described image processing method.

[0017] This application provides an image processing method, apparatus, device, and storage medium. First, images of at least two types of items to be processed are acquired to obtain multiple images to be processed. Second, the arrangement position of the multiple images to be processed is determined. Finally, based on the arrangement position, the multiple images to be processed are combined to obtain a target image. In this way, multiple images to be processed can be combined quickly to obtain a high-quality target image. Attached Figure Description

[0018] Figure 1 A schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application;

[0019] Figure 2 A schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application;

[0020] Figure 3 A schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application;

[0021] Figure 4 A schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application;

[0022] Figure 5 A schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application;

[0023] Figure 6 A schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application;

[0024] Figure 7 A schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application;

[0025] Figure 8 A schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application;

[0026] Figure 9 A schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application;

[0027] Figure 10 A schematic diagram illustrating the implementation process of an automatic stacking method for multiple items in an advertisement image, provided in an embodiment of this application;

[0028] Figure 11 A schematic diagram illustrating the implementation process of an automatic stacking method for multiple items in an advertisement image, provided in an embodiment of this application;

[0029] Figure 12 A schematic diagram illustrating the implementation process of an automatic stacking method for multiple items in an advertisement image, provided in an embodiment of this application;

[0030] Figure 13 A schematic diagram illustrating the implementation process of an automatic stacking method for multiple items in an advertisement image, provided in an embodiment of this application;

[0031] Figure 14 A schematic diagram illustrating the implementation process of an automatic stacking method for multiple items in an advertisement image, provided in an embodiment of this application;

[0032] Figure 15 A schematic diagram illustrating the implementation process of an automatic stacking method for multiple items in an advertisement image, provided in an embodiment of this application;

[0033] Figure 16 A schematic diagram illustrating the implementation process of an automatic stacking method for multiple items in an advertisement image, provided in an embodiment of this application;

[0034] Figure 17 A schematic diagram illustrating the implementation process of an automatic stacking method for multiple items in an advertisement image, provided in an embodiment of this application;

[0035] Figure 18 A schematic diagram illustrating the implementation process of an automatic stacking method for multiple items in an advertisement image, provided in an embodiment of this application;

[0036] Figure 19 A schematic diagram illustrating the implementation process of an automatic stacking method for multiple items in an advertisement image, provided in an embodiment of this application;

[0037] Figure 20 This is a schematic diagram of the composition structure of an image processing device provided in an embodiment of this application;

[0038] Figure 21 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0039] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0040] It should be understood that the phrases "embodiments of this application" or "foreign embodiments" throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "embodiments of this application" or "in the foreign embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0041] In order to gain a more detailed understanding of the features and technical content of the embodiments of this application, the implementation of the embodiments of this application will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for reference and illustration only and are not intended to limit this application.

[0042] Based on the above issues, Figure 1 This is a schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:

[0043] Step S101: Obtain images of at least two types of goods to be processed, resulting in multiple images to be processed.

[0044] In some embodiments, an image to be processed corresponds to a category of items; this can be understood as an image to be processed including a category of items; here, a category of items can be a single or multiple identical items, or items sold in sets; for example, an image to be processed can include a water cup, or multiple identical water cups, or water cups sold in sets, etc.

[0045] In some embodiments, since the shapes of the items themselves vary, the image to be processed can be determined based on the circumscribed quadrilateral of the item; further, the smallest circumscribed quadrilateral of the item can be determined as the image to be processed of the item.

[0046] Step S102: Determine the arrangement position between the multiple images to be processed.

[0047] In some embodiments, the relationship between the arrangement position and the target indicator can be determined based on big data, and then the arrangement position can be determined based on the relationship between the two. For example, if the relationship between the arrangement position and the sales rate (target indicator) is determined based on big data, and the sales rate of the items corresponding to multiple images to be processed is higher under the triangular stacking arrangement and the fan-shaped stacking arrangement, then the item images are arranged in the triangular stacking arrangement or the fan-shaped stacking arrangement.

[0048] Step S103: Based on the arrangement position, combine the multiple images to be processed to obtain the target image.

[0049] In some embodiments, the multiple images to be processed are combined based on the arrangement position; that is, the multiple images to be processed are placed in the corresponding arrangement position.

[0050] In this embodiment of the application, firstly, images of at least two types of items to be processed are acquired to obtain multiple images to be processed; secondly, the arrangement position between the multiple images to be processed is determined; thirdly, based on the arrangement position, the multiple images to be processed are combined to obtain a target image; thus, a target image with good display effect can be obtained quickly.

[0051] Figure 2 This is a schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application, such as... Figure 2 As shown, step S102 includes one of the following:

[0052] Step S201: Determine the arrangement pattern of the multiple images to be processed.

[0053] In some embodiments, the arrangement mode of multiple images to be processed can be determined by the user's selection operation on the control panel; for example, if the user selects the first arrangement mode, the multiple images to be processed will be arranged in the first arrangement mode; if the user selects the second arrangement mode, the multiple images to be processed will be arranged in the second arrangement mode.

[0054] Step S202: When the arrangement mode is the first arrangement mode, determine the arrangement position between the multiple images to be processed based on the size information of the multiple images to be processed.

[0055] In some embodiments, the first arrangement pattern can be a triangular stacking arrangement pattern, that is, the arrangement position between multiple images to be processed is determined by using a triangular stacking arrangement method.

[0056] In some embodiments, within a defined arrangement, the different positions of the images to be processed of different sizes have different impacts on the target metrics. Therefore, within a defined arrangement, the optimal arrangement position of different images to be processed can be determined based on big data patterns. For example, among multiple images to be processed, the images whose sizes are more in line with popular aesthetics can be placed in more important positions, while the images whose sizes are less in line with popular aesthetics can be placed in less important positions. In this way, high-quality target images can be obtained.

[0057] In some embodiments, public aesthetics can be determined based on big data; further, the relationship between size information and target indicators can be analyzed based on big data, and then public aesthetics can be determined based on the degree of influence of size information on target indicators; generally, size information that has a better influence on target indicators is determined as public aesthetics; for example, multiple items are combined in different ways and data such as the purchase rate of these multiple items are obtained, and the tendency of public aesthetics is determined based on the purchase rate and other data.

[0058] Step S203: When the arrangement mode is the second arrangement mode, determine the arrangement position of the multiple images to be processed based on the arrangement order of the multiple images to be processed.

[0059] In some embodiments, the second arrangement mode can be a fan-shaped stacking arrangement mode, that is, the arrangement position between multiple images to be processed is determined by using a fan-shaped stacking arrangement method.

[0060] In some embodiments, there are n factorial arrangement orders for n images to be processed. In each arrangement order, the occlusion area between the images and the visible area of ​​the images are different. Therefore, the arrangement order with good display effect can be selected based on the occlusion area between the images and the visible area of ​​the images in different arrangement orders. The multiple images to be processed can be combined according to the arrangement order to obtain the target image with good display effect.

[0061] In some embodiments, when multiple images to be processed are combined in different arrangements, some data remain consistent, such as the spacing pattern between two adjacent images to be processed, the angular pattern between two adjacent images to be processed, and so on.

[0062] In this embodiment, the arrangement position of the multiple images to be processed can be determined based on their size information; or, the arrangement position of the multiple images to be processed can be determined based on their order of arrangement; thus, a target image with good display effect can be obtained quickly.

[0063] Figure 3 This is a schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application, such as... Figure 2 As shown, step S202 includes the following steps:

[0064] Step S301: Sort the multiple images to be processed based on their aspect ratios.

[0065] In some embodiments, sorting multiple images to be processed is to visually represent the relationship between the aspect ratio of each image to be processed and the optimal aspect ratio determined based on big data. Therefore, step S301 can be implemented through the following process: First, determine the optimal aspect ratio that affects the target index based on big data; second, determine the aspect ratio of multiple images to be processed; third, sort the multiple images to be processed based on the closeness of the aspect ratio of the multiple images to be processed to the optimal aspect ratio. Here, the sorting can be done from far to near or from near to far, and there is no limitation here.

[0066] Step S302: Based on the sorting, determine the arrangement position of the multiple images to be processed.

[0067] In some embodiments, images whose aspect ratio is closer to the optimal aspect ratio are placed in more important positions, while images whose aspect ratio is further away from the optimal aspect ratio are placed in less important positions.

[0068] In this embodiment, firstly, the multiple images to be processed are sorted based on their aspect ratios; secondly, the arrangement position of the multiple images to be processed is determined based on the sorting; thus, the arrangement position of each image to be processed can be determined.

[0069] Figure 4 This is a schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application, such as... Figure 4 As shown, step S302 includes the following steps:

[0070] Step S401: Based on the sorting, the image whose aspect ratio meets the preset condition is determined as the first image.

[0071] In some embodiments, the preset condition can be the image to be processed among multiple images to be processed whose aspect ratio is closest to a preset aspect ratio. The preset aspect ratio can be the optimal aspect ratio determined based on large datasets, such as 1:2. In this case, there are two scenarios:

[0072] 1) When there is an image with an aspect ratio equal to the preset aspect ratio among multiple images to be processed, the image with the preset aspect ratio is taken as the first image;

[0073] 2) When there is no image with an aspect ratio equal to the preset aspect ratio among multiple images to be processed, the image with the aspect ratio closest to the preset aspect ratio is taken as the first image.

[0074] In some embodiments, the first image can be understood as the image to be processed for the main item.

[0075] Step S402: Determine whether the sequence number of the second image in the sorting is greater than a preset threshold.

[0076] In some embodiments, the second image is any one of the plurality of images to be processed, excluding the first image.

[0077] In some embodiments, the images can be arranged sequentially from a sorted sequence of multiple images to be processed; thus, the occlusion between the multiple images to be processed is more reasonable.

[0078] In some embodiments, the preset threshold can be based on the number of items placed in the first row and the second row; further, the sum of the number of items placed in the first row and the second row can be determined as the preset threshold. Generally, if the first row places the main item and the second row places one item on each side of the main item, then the preset threshold can be 3.

[0079] Step S403: If the sequence number of the second image is less than or equal to a preset threshold, determine the relative positional relationship between the second image and the first image based on the parity of the sequence number of the second image.

[0080] In some embodiments, determining the relative positional relationship between the second image and the first image depends not only on the parity of the second image's sequence number but also on the number of images to be processed; further, when the preset threshold is 3, there are two cases:

[0081] 1) When the number of images to be processed is 2, the sequence number of the second image is obviously even, so place the second image to the right of the main item.

[0082] 2) When the number of images to be processed is equal to 3, if the sequence number of the second image is even, the second image is placed to the right of the main item; if the sequence number of the second image is odd, the second image is placed to the left of the main item.

[0083] In some embodiments, the methods of steps S401 to S403 can also be applied when the number of images to be processed is greater than 3. In this case, the arrangement is the same as the arrangement when the number of images to be processed is equal to 3. Of course, when the sequence number of the second image is greater than the preset threshold, the arrangement methods of steps S501 and S502 can also be used. That is, in the actual arrangement, the images to be processed within the preset threshold can be arranged according to the above two situations, and the images to be processed outside the threshold can be processed using either the methods of steps S401 to S403 or the methods of steps S501 and S502.

[0084] Step S404: Based on the relative positional relationship, determine the arrangement position of the multiple images to be processed.

[0085] In this embodiment, firstly, based on the sorting, images whose aspect ratio meets a preset condition are identified as first images; secondly, it is determined whether the sequence number of the second image in the sorting is greater than a preset threshold; thirdly, if the sequence number of the second image is less than or equal to the preset threshold, the relative positional relationship between the second image and the first image is determined based on the parity of the sequence number of the second image; finally, based on the relative positional relationship, the arrangement position of the multiple images to be processed is determined; thus, the arrangement position of the images to be processed within the preset threshold can be determined.

[0086] Figure 5 This is a schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application, such as... Figure 5 As shown, the method further includes the following steps:

[0087] Step S501: If the sequence number of the second image is greater than the preset threshold, determine the arrangement position of the second image based on the aspect ratio of the already arranged images in the preset canvas to the preset canvas.

[0088] In some embodiments, the preset canvas is used to embed an image.

[0089] In some embodiments, the aspect ratio of the arranged images can be understood as the aspect ratio of the smallest bounding quadrilateral of the arranged images; for example, when the sequence number of the second image is 4, the aspect ratio of the arranged images is the aspect ratio of the first three images to be processed; when the sequence number of the second image is 5, the aspect ratio of the arranged images is the aspect ratio of the first four images to be processed, and so on.

[0090] In some embodiments, the preset canvas can be understood as an area designated in an advertisement for placing multiple images to be processed.

[0091] In some embodiments, the arrangement row of the second image in the preset canvas is determined based on the aspect ratio of the already arranged images in the preset canvas to the preset canvas, and there are two cases:

[0092] 1) If the aspect ratio of the already arranged images is less than the aspect ratio of the preset canvas, consider placing the second image on both sides of the already arranged images. In this case, if the first image is to the left, place the second image to the left of the already arranged images; otherwise, place it to the right of the already arranged images.

[0093] 2) If the aspect ratio of the already arranged images is greater than or equal to the aspect ratio of the preset canvas, consider placing the second image on either side or in the middle of the row where the first image is located or before it. Further, this can be achieved through the following process: First, determine the total number of rows based on the number of images to be processed; second, determine the row for the second image based on the row for the already arranged images; finally, determine the position of the second image in its row based on the relationship between the sequence number of the second image and the number of images to be processed.

[0094] Step S502: Based on the arrangement position of the second image in the arrangement row, obtain the arrangement position of the multiple images to be processed.

[0095] In this embodiment, firstly, if the sequence number of the second image is greater than the preset threshold, the arrangement position of the second image is determined based on the aspect ratio of the already arranged images in the preset canvas to the preset canvas; secondly, the arrangement position of the multiple images to be processed is obtained based on the arrangement position of the second image in the arrangement row; thus, the arrangement position of the images to be processed other than the preset threshold can be determined.

[0096] Figure 6 This is a schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application, such as... Figure 6 As shown, step S203 includes the following steps:

[0097] Step S601: Based on the arrangement order of the multiple images to be processed, determine the first arrangement image of the multiple images to be processed under different arrangement methods, and obtain the first arrangement image set.

[0098] In some embodiments, n images to be processed can have n factorial order. For example, if there are two images A and B to be processed, there are two order types: AB and BA. If there are three images A, B, and C to be processed, there are six order types: ABC, ACB, BAC, BCA, CAB, and CBA.

[0099] In some embodiments, the first set of arranged images includes images corresponding to different arrangements.

[0100] Step S602: Determine the second arrangement image corresponding to each different position of the first arrangement image when it is located on the central axis of the preset drawing board, and obtain the second arrangement image set.

[0101] In some embodiments, each first arrangement of images may be an image composed of multiple images to be processed in each different arrangement order; different positions may be the central axis position of each image to be processed, or the middle position of two adjacent images to be processed.

[0102] Step S603: Based on preset rules, transform the second arranged image in the second arranged image set to obtain the third arranged image set.

[0103] In some embodiments, the preset rule can be understood as transforming the representation of the second arranged image; for example, arranging the second arranged image on a fan-shaped outline, so that the second image to be processed is arranged in a fan shape, etc.

[0104] Step S604: Based on the third set of images, determine the arrangement position of the multiple images to be processed.

[0105] In some embodiments, the optimal arrangement is selected from the set of third-arranged images. Therefore, step S604 can be implemented through the following process: First, based on reference indicators, each third-arranged image in the set of third-arranged images is calculated; second, based on the calculation results, the third-arranged image with the best arrangement is determined; finally, the arrangement shown by the third-arranged image is used as the arrangement of multiple images to be processed.

[0106] In some embodiments, reference metrics can be determined based on big data, such as the occlusion area between object images and the visible area of ​​object images.

[0107] In this embodiment, firstly, based on the arrangement order of the multiple images to be processed, a first arrangement image set is obtained under different arrangement methods; secondly, a second arrangement image set is obtained when each position of the first arrangement image is located on the central axis of a preset drawing board; thirdly, based on preset rules, the second arrangement images in the second arrangement image set are transformed to obtain a third arrangement image set; finally, based on the third arrangement image set, the arrangement position of the multiple images to be processed is determined; thus, the arrangement position of the multiple images to be processed can be quickly determined.

[0108] Figure 7 This is a schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application, such as... Figure 7 As shown, step S603 includes the following steps:

[0109] Step S701: Construct a reference sector based on the central axis of the preset image template and the arrangement order of the multiple images to be processed.

[0110] In some embodiments, the construction of the reference sector involves the following two cases:

[0111] 1) When the central axis of the preset canvas contains a first image, the height of the first image is used as the radius of the reference sector; or, the width of the first image is used as the radius of the reference sector.

[0112] 2) When the first image is not present on the central axis of the preset canvas, the radius of the reference sector is the height of the preset canvas.

[0113] Step S702: Based on the first preset parameters, adjust the reference sector to obtain the target sector.

[0114] In some embodiments, the first preset parameter is determined based on user needs and is used to adjust the radius of the sector; for example, if the user needs the visual effect of the image to be smoother, the radius of the sector is increased; if the user needs the visual effect of the image to be more curved, the radius of the sector is decreased.

[0115] Step S703: Based on the central axis of the target sector, arrange any second arrangement of images on the outline of the target sector to obtain the third arrangement of images.

[0116] In this embodiment, firstly, a reference sector is constructed based on the central axis of the preset drawing board and the arrangement order of the multiple images to be processed; secondly, the reference sector is adjusted based on a first preset parameter to obtain a target sector; finally, based on the central axis of the target sector, any second arrangement of images is placed on the outline of the target sector to obtain the third arrangement of images; thus, an image with better visual effects can be obtained.

[0117] Figure 8 This is a schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application, such as... Figure 8 As shown, step S604 includes the following steps:

[0118] Step S801: Based on the occluded and visible areas of the multiple images to be processed, determine the score of each third-arranged image in the third-arranged image set.

[0119] In some embodiments, the occlusion area and visible area between multiple images to be processed are different depending on the arrangement. Therefore, step S801 can be implemented through the following process: First, determine the approximate convex polygon of the item in each image to be processed; second, adjust the third arrangement of images based on preset rules; finally, based on the approximate convex polygon of each item, determine the occlusion area between the item images in each third arrangement of images and the visible area of ​​the item images, and give a score.

[0120] In some embodiments, the preset rules may be rules set for the interval, angle, size relationship between two adjacent images to be processed, etc., and are not limited here.

[0121] In some embodiments, the occlusion area between object images and the visible area of ​​the object image are used as the determination criteria. To simplify the calculation, in this step, an approximate convex polygon of the effective pixels of the object is used for calculation instead. When calculating the approximate convex polygon, the Graham-Scan algorithm is used to find the convex hull of the pixels, and the Ramer-Douglas-Peucker algorithm is used to subtract points from the convex hull.

[0122] In some embodiments, the area score for the balance difference is calculated by dividing the object rectangle of the central axis or the object on the central axis into left and right sections and calculating the area difference between the left and right parts of the object on the central axis, without considering occlusion.

[0123] In some embodiments, the overall exposed area score is calculated by directly calculating the sum of the areas of the approximate convex polygons of all items, without considering occlusion.

[0124] In some embodiments, an occlusion score is calculated for each item image: based on the occlusion relationship when the item is placed, the remaining exposed proportion of the item after it is occluded is calculated as the occlusion score.

[0125] In some embodiments, the final score is determined based on the three scores mentioned above, wherein the final score is as shown in formula (1):

[0126]

[0127] Step S802: Determine the third permutation image with the highest score as the target permutation image.

[0128] Step S803: Based on the arrangement of the plurality of images to be processed indicated in the target arrangement image, combine the plurality of images to be processed to obtain the target image.

[0129] In this embodiment, firstly, based on the occluded and visible areas of the multiple images to be processed, the score of each third-arranged image in the third-arranged image set is determined; secondly, the third-arranged image with the highest score is determined as the target arrangement image; finally, based on the arrangement of the multiple images to be processed indicated in the target arrangement image, the multiple images to be processed are combined to obtain the target image; thus, the optimal combination of multiple images to be processed can be obtained.

[0130] Figure 9 This is a schematic diagram illustrating the implementation flow of an image processing method provided in an embodiment of this application, such as... Figure 9 As shown, step S103 includes the following steps:

[0131] Step S901: Adjust the multiple images to be processed to obtain multiple adjusted images.

[0132] In some embodiments, the adjustment includes at least one of the following: the horizontal distance, vertical distance, angle between the plurality of images to be processed, and the size of the plurality of images to be processed.

[0133] In some embodiments, in a first arrangement mode, adjusting multiple images to be processed includes: the size of the images, the horizontal distance between the images, and the vertical distance between the images.

[0134] In some embodiments, in the second arrangement mode, adjusting multiple images to be processed includes: the size and angle of the images; in one possible implementation, the size and angle of the images can be adjusted by setting parameters, such as: using parameter α to determine a preset angle adjustment ratio, thereby adjusting the preset angle; using parameter θ to determine a size adjustment ratio, thereby adjusting the image size. Here, the angle adjustment can be understood as the adjustment of the compactness between the images; that is, adjusting the compactness between the images by rotating around the center of the sector.

[0135] Step S902: Based on the arrangement position, combine the multiple adjusted images to obtain the target image.

[0136] In this embodiment, firstly, the multiple images to be processed are adjusted to obtain multiple adjusted images; secondly, based on the arrangement position, the multiple adjusted images are combined to obtain the target image; thus, a target image with better display effect can be obtained.

[0137] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario, using an advertising image as an example.

[0138] Figure 10 This is a schematic diagram illustrating the implementation process of a method for automatically stacking multiple items in an advertisement, as provided in an embodiment of this application. Figure 10 As shown, the method includes:

[0139] Step S1001: Obtain at least two item images.

[0140] Step S1002: Arrange at least two item images using either the triangular stacking method or the fan-shaped stacking method.

[0141] In some embodiments, the triangular stacking method in step S1002 can be adopted as follows: Figure 11 The steps shown are implemented as follows:

[0142] Step S1101: Sort at least two item images according to how close their aspect ratio is to 1:2 to obtain a sequence list.

[0143] Step S1102: Select the item image with the aspect ratio closest to 1:2 as the main item image, remove it from the sequence list, and place it in the center of the canvas.

[0144] In some embodiments, the canvas corresponds to the preset canvas in the above embodiments.

[0145] Step S1103: Determine the layout pattern.

[0146] In some embodiments, step S1103 refers to determining the arrangement pattern of at least two item images.

[0147] In some embodiments, the layout pattern may be determined based on the user's selection operation on the control panel.

[0148] Step S1104: Determine if the number of remaining item images is greater than 2.

[0149] In some embodiments, step S1104 refers to determining whether the number of remaining item images other than the main item image is greater than 2.

[0150] In some embodiments, if the number of remaining item images other than the main item image is less than or equal to 2, proceed to step S1105; if the number of remaining item images other than the main item image is greater than 2, proceed to step S1113.

[0151] Step S1105: Take the m-th item image from the remaining item images.

[0152] Step S1106: Determine the parity of m.

[0153] In some embodiments, m is the order and sequence number of the item image in the sequence list.

[0154] In some embodiments, the item images are retrieved sequentially according to the order of the sequence list.

[0155] Step S1107: If m is an even number, place the m-th item image to the right of the previous row of item images.

[0156] Step S1108: If m is an odd number, place the m-th item image to the left of the previous row of item images.

[0157] Step S1109: Scale the size of the m-th item image according to preset rules.

[0158] In some embodiments, when the total number of item images is 2, step S1110 can be implemented through the following process: First, adjust the two item images to have the same height; second, determine the width ratio of the non-main item to the main item. If the ratio of the non-main item width to the main item width is less than 0.4, the height of the main item is proportionally reduced to 60% of the height of the non-main item; if the ratio of the non-main item width to the main item width is greater than 1.3, the height of the non-main item is proportionally reduced to 50% of the height of the main item.

[0159] In some embodiments, when the total number of item images is 3, the main item image is used as the first row, and the item images in the second, third, and fourth rows are reduced by 80%, 60%, and 50% of the height of the main item image, respectively. Thereafter, the height of the main item image decreases by 10% for each row that is increased, until it decreases to 10% and then stops decreasing.

[0160] Step S1110: Offset the m-th item image in the horizontal and vertical directions according to the preset rules.

[0161] In some embodiments, when the total number of item images is 2, the two item images are placed at the same level, and the horizontal distance between the two item images is adjusted to make the two item images coordinate.

[0162] In some embodiments, when the total number of item images is 3, step S1110 can be implemented through the following process: First, adjust the horizontal offset: the occlusion range of adjacent items is 20% of the width of the occluded item, and the maximum value is 50% of the width of the occluded item; when two items are placed adjacent to each other, there is no occlusion and no gap; Second, adjust the vertical offset: when the height of the occluded item is less than the height of the occluding item, the occluded item moves upward by a factor of the height of the occluding item. When there are multiple items, the same principle applies; for example, the upward movement distance of item 1 and item 2 is equal to the height of the main item. The upward movement distance of item 3 is equal to the proportionally scaled height of item 1 or item 2.

[0163] Step S1111: Configure the layer of the m-th item image according to whether it is positioned before or after the current image.

[0164] Step S1112: Determine whether the m-th item image is the last one in the sequence list.

[0165] In some embodiments, if the m-th item image is the last one in the list, the entire process ends; if the m-th item image is not the last one in the list, the next item image after the m-th item image is taken from the list, and the process returns to step S1106.

[0166] Step S1113: Take out the m-th item image from the remaining item image and record the overall aspect ratio of the stacked item images as r.

[0167] In some embodiments, m is greater than or equal to 4, and the first three item images are arranged according to the methods of steps S1101 to S1109.

[0168] Step S1114: Determine whether r is greater than the aspect ratio of the target stacking area.

[0169] In some embodiments, if r is less than or equal to the aspect ratio of the target stacking area, proceed to step S1115; if r is greater than the aspect ratio of the target stacking area, proceed to step S1118.

[0170] Step S1115: Consider placing the m-th item image on the left and right sides of the already stacked item images.

[0171] Step S1116: Determine whether the main item image is slightly to the left or right of the center of the stacked item image.

[0172] Step S1117: If the main item image is to the left of the stacked item image, place the m-th item image to the left of the stacked item image; if the main item image is to the right of the stacked item image, place the m-th item image to the right of the stacked item image.

[0173] Step S1118: Consider placing the m-th item image in the middle of the already stacked item images.

[0174] Step S1119: Determine if there is enough space in the current row to place the m-th item image.

[0175] In some embodiments, if there is enough space in the current row to place the m-th item image, proceed to step S1120; if there is enough space in the current row to place the m-th item image, proceed to step S1121.

[0176] Step S1120: Place the m-th item image between the two item images in the current row.

[0177] Step S1121: Move the m-th item image to the next row and return to step S1114.

[0178] Step S1122: Scale the size of the m-th item image according to preset rules, and offset it in the horizontal and vertical directions.

[0179] In some embodiments, step S1122 can be implemented through the following process: First, adjust the size of the item: such as Figure 12As shown, if the size of the main item 1 in the first row is taken as unit 1, then the size of items 2 and 3 is 80% of the main item 1; the size of items 4 and 5 in the second row is 60% of the main item 1; the size of items in the third row is 50% of the main item 1. Thereafter, for each additional row, the item size decreases by 10%, until it reaches 10% and then stops decreasing. Furthermore, a 15% random fluctuation percentage can be added to this rule. Secondly, adjust the horizontal offset: the adjustment method is the same as for the case where the total number of items is greater than or equal to 3. Finally, adjust the vertical displacement: the adjustment method is the same as for the case where the total number of items is greater than or equal to 3.

[0180] Step S1123: Determine whether the m-th item image is the last one in the sequence list.

[0181] In some embodiments, if the m-th item image is the last one in the sequence list, the entire process ends; if the m-th item image is not the last one in the list, the process returns to step S1113.

[0182] In some embodiments, when r is greater than the aspect ratio of the target stacking area, the following method can be used to arrange the item diagram:

[0183] 1) such as Figure 13 As shown, with a total of 4 items, they are displayed in two rows, with the 4th item placed vertically in the center at the intersection of item 1 and item 2 on the right.

[0184] 2) such as Figure 14 As shown, with a total of 5 items, they are displayed in two rows. Item 4 and Item 5 are placed on the outer boundaries of Item 2 and Item 3, respectively, and the occlusion area is 0% to 50% of the outer boundary of the following items. The specific value is set by the user.

[0185] 3) such as Figure 15 As shown, with a total of 6 items, they are displayed in three rows. The 6th item is placed on the inner boundary of item 4 or item 5, and the occlusion area is 0% to 50% of the inner boundary of the following item. The specific value is set by the user.

[0186] 4) such as Figure 16 As shown, with a total of 7 items, they are displayed in three rows. The 7th item is placed on the inner boundary of item 4, and the area it occupies is 0% to 50% of the inner boundary of the following items. The specific value is set by the user.

[0187] 5) such as Figure 17 As shown, with a total of 8 items, they are displayed in three rows. The 8th item is placed on the outer edge of item 4 or item 5, and the area it occupies is 0% to 50% of the outer edge of the following item. The specific value is set by the user.

[0188] 6) If the total number of items is 9 or more, determine if there is enough space in the current row to place the items, that is, the items in each row should not block each other. Otherwise, move them to the next row and recalculate the layout, and so on.

[0189] In some embodiments, the method of arranging items using the triangular stacking method corresponds to steps S601 to S604 in the above embodiments.

[0190] In some embodiments, the sector-shaped stacking method in step S1002 can be adopted as follows: Figure 18 The steps shown are implemented as follows:

[0191] Step S1801: Enumerate all possible permutations of at least two item diagrams.

[0192] Step S1802: Enumerate all cases where the centerline of each item or the centerline between two items is used as the central axis under each type of arrangement order.

[0193] Step S1803: Rotate and scale the items in each category according to the preset rules.

[0194] In some embodiments, such as Figure 19 As shown, step S1803 can be achieved through the following process: First, if there is a central item, place the central item first, and then place the items left and right in sequence. The placement principle is to ensure that the center line of the next item rectangle intersects with the lower left or lower right corner of the previous item image rectangle, and the bottom edge of the item image rectangle is aligned with the tangent of the sector. At this time, the angle A formed is used as the reference angle. If there is no central item, place the items with angle A as the reference. In addition, the compactness between the item images can be adjusted by adjusting the angle A through parameter α. Second, adjust the ratio between the item images by scaling proportionally with the longest side of the item image rectangle as a reference. Specifically, when placing the next item in left and right order, the longest side of the next item rectangle is scaled with reference to the longest side of the previous item image rectangle, and the scaling ratio is θ. The user can control the ratio between the item images by adjusting the parameter θ. Generally, 0.9 is taken as the initial value based on experience. When items overlap, they should be placed in the order of central axis items or central axis, left to right, with the first item overlapping the later items. Finally, when there are multiple layers of items arranged in a fan shape, the central axis item or reference size of the second layer should be used as a reference to the central axis item or reference size of the first layer. Users can control the spacing between the two layers by adjusting the parameter μ, and control the ratio between the two layers by controlling the parameter γ.

[0195] Step S1804: Scale the results proportionally to the canvas area and center them to arrange them.

[0196] In some embodiments, the canvas corresponds to the preset canvas in the above embodiments.

[0197] Step S1805: Obtain approximate convex polygons from at least two item images.

[0198] Step S1806: Calculate the area difference of the convex polygons on the left and right sides of the central axis of at least two items, and use it as the first score.

[0199] In some embodiments, the method for calculating an approximate convex polygon corresponds to the method for calculating an approximate convex polygon in the above embodiments.

[0200] Step S1807: Without considering occlusion, calculate the sum of the areas of at least two approximate convex polygons of the objects as the second score.

[0201] Step S1808: Calculate the proportion of the remaining exposed area after each item is occluded, as the third score.

[0202] In some embodiments, the remaining exposed proportion of each item after it is occluded can be determined by the ratio of the visible area to the sum of the areas of the approximate convex polygons.

[0203] Step S1807: Weight or transform the first to third scores to obtain the total score.

[0204] In some embodiments, the weighted or function transformation is expressed as formula (1) above.

[0205] Step S1808: Output the permutation of the highest scores.

[0206] Based on the foregoing embodiments, this application also provides an image processing apparatus. Figure 20 This is a schematic diagram of the composition structure of a target prediction device provided in an embodiment of this application, as shown below. Figure 20 As shown, the target prediction device 2000 includes:

[0207] The first acquisition module 2001 is used to acquire images of at least two types of items to be processed, and obtain multiple images to be processed;

[0208] The first determining module 2002 is used to determine the arrangement position among the multiple images to be processed;

[0209] The first processing module 2003 is used to combine the multiple images to be processed based on the arrangement position to obtain the target image.

[0210] In some embodiments, the first determining module 2002 includes:

[0211] The first determining submodule is used to determine the arrangement pattern of the multiple images to be processed;

[0212] The second determining submodule is used to determine the arrangement position between the multiple images to be processed based on the size information of the multiple images to be processed when the arrangement mode is the first arrangement mode.

[0213] The third determining submodule is used to determine the arrangement position of the multiple images to be processed based on the arrangement order of the multiple images to be processed when the arrangement mode is the second arrangement mode.

[0214] In some embodiments, the first determining submodule includes:

[0215] The sorting module is used to sort the multiple images to be processed based on their aspect ratio.

[0216] The fourth determining submodule is used to determine the arrangement position of the multiple images to be processed based on the sorting.

[0217] In some embodiments, the third determining submodule includes:

[0218] The fifth determining submodule is used to determine the image whose aspect ratio meets the preset conditions as the first image based on the sorting.

[0219] The sixth determining submodule is used to determine whether the sequence number of the second image in the sorting is greater than a preset threshold;

[0220] In some embodiments, the second image is any one of the plurality of images to be processed, excluding the first image.

[0221] The seventh determining submodule is used to determine the relative positional relationship between the second image and the first image based on the parity of the second image's sequence number when the sequence number of the second image is less than or equal to a preset threshold.

[0222] The eighth determining submodule is used to determine the arrangement position of the multiple images to be processed based on the relative positional relationship.

[0223] In some embodiments, the image processing apparatus further includes:

[0224] The ninth determining submodule is used to determine the arrangement position of the second image based on the aspect ratio of the already arranged images in the preset canvas and the preset canvas when the sequence number of the second image is greater than the preset threshold.

[0225] The tenth determining submodule determines the arrangement position of the multiple images to be processed based on the arrangement position of the second image in the arrangement row.

[0226] In some embodiments, the second determining submodule includes:

[0227] The eleventh determining submodule is used to determine the first arrangement image of the multiple images to be processed under different arrangement methods based on the arrangement order of the multiple images to be processed, and to obtain the first arrangement image set;

[0228] The twelfth determination submodule is used to determine the second arrangement image corresponding to each different position of the first arrangement image when it is located on the central axis of the preset drawing board, so as to obtain the second arrangement image set;

[0229] The second processing module is used to transform the second arranged images in the second arranged image set based on preset rules to obtain the third arranged image set;

[0230] The thirteenth determining submodule is used to determine the arrangement position of the multiple images to be processed based on the third set of arranged images.

[0231] In some embodiments, the transformation module includes:

[0232] The third processing module is used to adjust the reference sector based on the first preset parameters to obtain the target sector;

[0233] The fourth processing module is used to arrange any second arrangement of images on the outline of the target sector based on the central axis of the target sector to obtain the third arrangement of images set.

[0234] In some embodiments, the twelfth determining submodule includes:

[0235] The fifth processing module is used to determine the score of each third-row image in the third-row image set based on the occluded and visible areas of the multiple images to be processed.

[0236] The fourteenth determination submodule is used to determine the third arrangement image with the highest score as the target arrangement image;

[0237] The sixth processing module is used to combine the multiple images to be processed based on the arrangement of the multiple images to be processed indicated in the target arrangement image to obtain the target image.

[0238] In some embodiments, the first processing module 2003 includes:

[0239] The seventh processing module adjusts the multiple images to be processed to obtain multiple adjusted images;

[0240] In some embodiments, the adjustment includes at least one of the following: the horizontal distance, vertical distance, angle between the plurality of images to be processed, and the size of the plurality of images to be processed.

[0241] The eighth processing module combines the multiple adjusted images based on the arrangement position to obtain the target image.

[0242] Based on the foregoing embodiments, this application also provides an electronic device. Figure 21 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 21 As shown, the electronic device 2100 includes: a processor 2101, a memory 2102, and a communication bus 2103;

[0243] The communication bus 2103 is used to realize the communication connection between the processor 2101 and the memory 2102;

[0244] The processor 2101 is used to execute the program in the memory 2102 to implement the above-described image processing method.

[0245] This application provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the above-described image processing method.

[0246] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence number of the above-described processes does not imply the order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0247] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0248] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0249] Furthermore, in the various embodiments of this application, all functional units can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units. Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0250] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks. The above descriptions are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An image processing method, characterized in that, The method includes: Obtain images of at least two types of items to be processed, resulting in multiple images to be processed; Determine the arrangement position between the multiple images to be processed; Based on the arrangement position, the multiple images to be processed are combined to obtain the target image; Determining the arrangement position among the multiple images to be processed includes: Determine the arrangement pattern of the multiple images to be processed; When the arrangement mode is the second arrangement mode, the arrangement position of the multiple images to be processed is determined based on the arrangement order of the multiple images to be processed; the second arrangement mode is a fan-shaped stacking arrangement mode; The step of determining the arrangement position of the multiple images to be processed based on their order includes: Determine the first arrangement of the multiple images to be processed in different order to obtain the first arrangement image set; The second arrangement of images is determined when each position of the first arrangement of images is located on the central axis of the preset drawing board, thus obtaining a set of second arrangement images; each first arrangement of images is an image composed of the multiple images to be processed in each different arrangement order; the different positions include: the central axis position of each image to be processed, and / or, the middle position of two adjacent images to be processed; A reference sector is constructed based on the central axis of the preset canvas and the arrangement order of the multiple images to be processed; Based on the first preset parameters, the reference sector is adjusted to obtain the target sector; Based on the central axis of the target sector, any second arrangement of images is placed on the outline of the target sector to obtain a third arrangement of images; Based on the third set of images, the arrangement positions of the multiple images to be processed are determined.

2. The method according to claim 1, characterized in that, Determining the arrangement position among the multiple images to be processed further includes: When the arrangement mode is the first arrangement mode, the arrangement position between the multiple images to be processed is determined based on the size information of the multiple images to be processed; the first arrangement mode is a triangular stacking arrangement mode.

3. The method according to claim 2, characterized in that, Determining the arrangement position of the multiple images to be processed based on their size information includes: Based on the aspect ratio of the multiple images to be processed, the multiple images to be processed are sorted. Based on the sorting, the arrangement positions of the multiple images to be processed are determined.

4. The method according to claim 3, characterized in that, Determining the arrangement position of the multiple images to be processed based on the sorting includes: Based on the sorting, the image whose aspect ratio meets the preset condition is determined as the first image; Determine whether the sequence number of the second image in the sorting is greater than a preset threshold; wherein, the second image is any image other than the first image among the plurality of images to be processed; If the sequence number of the second image is less than or equal to the preset threshold, the relative positional relationship between the second image and the first image is determined based on the parity of the sequence number of the second image. Based on the relative positional relationship, the arrangement position of the multiple images to be processed is determined.

5. The method according to claim 4, characterized in that, The method further includes: If the sequence number of the second image is greater than the preset threshold, the arrangement position of the second image is determined based on the aspect ratio of the already arranged images in the preset canvas to the preset canvas. Based on the arrangement position of the second image in the arrangement row, the arrangement positions of the multiple images to be processed are obtained.

6. The method according to claim 1, characterized in that, Determining the arrangement position of the multiple images to be processed based on the third set of images includes: Based on the occluded and visible areas of the multiple images to be processed, the score of each third-row image in the third-row image set is determined; The third-highest-scoring image is selected as the target image. Based on the arrangement of the multiple images to be processed indicated in the target image, the multiple images to be processed are combined to obtain the target image.

7. The method according to any one of claims 1 to 6, characterized in that, The step of combining the multiple images to be processed based on the arrangement position to obtain the target image includes: The plurality of images to be processed are adjusted to obtain a plurality of adjusted images; wherein, the adjustment includes at least one of the following: the horizontal distance, vertical distance, angle between the plurality of images to be processed, and the size of the plurality of images to be processed; Based on the arrangement position, the multiple adjusted images are combined to obtain the target image.

8. An image processing apparatus, characterized in that, The device includes: The first acquisition module is used to acquire images of at least two types of items to be processed, resulting in multiple images to be processed. The first determining module is used to determine the arrangement position among the multiple images to be processed; The first processing module is used to combine the multiple images to be processed based on the arrangement position to obtain the target image; The first determining module includes: a first determining submodule, used to determine the arrangement pattern of the plurality of images to be processed; The first determining module further includes: a third determining submodule, used to determine the arrangement position of the multiple images to be processed based on the arrangement order of the multiple images to be processed when the arrangement mode is the second arrangement mode; the second arrangement mode is a fan-shaped stacking arrangement mode; The third determining submodule includes: an eleventh determining submodule, used to determine the first arrangement image of the multiple images to be processed under different arrangement orders based on the arrangement order of the multiple images to be processed, and obtain a set of first arrangement images; The third determining submodule further includes: a twelfth determining submodule, used to determine the second arranged image corresponding to each different position of the first arranged image located on the central axis of the preset drawing board, to obtain a set of second arranged images; each first arranged image is an image composed of the multiple images to be processed in each different arrangement order; the different positions include: the central axis position of each image to be processed, and / or, the middle position of two adjacent images to be processed; The third determining submodule further includes: a second processing module, used to construct a reference sector based on the central axis of the preset drawing board and the arrangement order of the multiple images to be processed; The transformation module includes: a third processing module, used to adjust the reference sector based on a first preset parameter to obtain a target sector; The transformation module further includes: a fourth processing module, used to arrange any second arrangement of images on the outline of the target sector based on the central axis of the target sector to obtain a third arrangement of images; The third determining submodule further includes: a twelfth determining submodule, used to determine the arrangement position of the multiple images to be processed based on the third arranged image set.

9. An electronic device, characterized in that, The electronic device includes: a processor, a memory, and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the program in the memory to implement the image processing method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the image processing method as described in any one of claims 1 to 7.