Image Intelligent Composition Method, Device, Equipment and Medium for Personalized Customization

Through the methods of intelligent sorting, scaling and template combination, the problem of low efficiency of personalized customized image combination in the prior art is solved, and fast and efficient image combination is achieved.

CN120032006BActive Publication Date: 2025-06-27SHENZHEN HETAI CULTURE DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510506881.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-22
Publication Date
2025-06-27
Estimated Expiration
2045-04-22

AI Technical Summary

Technical Problem

In the prior art, the personalized customized images selected by users cannot be efficiently combined, resulting in the need of users to spend a long time to make refined adjustments.

Method used

By receiving the image selection information input by the user, matching customized image information is obtained from the preset image material library, intelligently sorted and scaled according to the image parameters, and corresponding alternative templates are obtained according to the preset template library to combine to generate design images.

Benefits of technology

This greatly improves the efficiency of combining personalized customized images selected by users and reduces the time overhead of users in adjusting design images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120032006B_ABST
    Figure CN120032006B_ABST
Patent Text Reader

Abstract

The present invention discloses an intelligent image combination method, device, equipment and medium for personalized customization. The method includes: obtaining customized image information corresponding to the image selection information input by the user from an image material library, sorting the customized images according to the image parameters in the customized image information to obtain sorting information and determining the scaling ratio of each customized image; obtaining corresponding alternative templates in a template library according to the sorting information, image selection information and image parameters, and combining the customized images, so as to obtain a designed image. The above intelligent image combination method for personalized customization can perform intelligent sorting and scaling according to the image parameters corresponding to the customized images, and combine the sorted and scaled customized images according to the corresponding alternative templates to generate a designed image, greatly improving the efficiency of combining the personalized customized images selected by the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent image processing, and particularly to an intelligent image intelligent combination method, device, equipment and medium for personalized customization. Background Art

[0002] In personalized customized products, users can freely select their favorite images and texts for combination; however, in the prior art, after the user selects patterns and texts, it is necessary to perform layer-by-layer combination on the selected basic materials and adjust the orientation and size of the basic materials; in order to make the combined design image beautiful, the user needs to spend a long time making fine adjustments to the basic materials, and it is impossible to conveniently and quickly combine personalized customized images. Therefore, there is a problem in the prior art method that the personalized customized images selected by the user cannot be efficiently combined. Summary of the Invention

[0003] Embodiments of the present invention provide an intelligent image combination method, device, equipment and medium for personalized customization, aiming to solve the problem in the prior art method that the personalized customized images selected by the user cannot be efficiently combined.

[0004] In a first aspect, an embodiment of the present invention provides an intelligent image combination method for personalized customization, where the method includes:

[0005] Receiving image selection information input by a user, and obtaining customized image information matching the image selection information from a preset image material library;

[0006] Sorting each customized image included in the customized image information according to a preset image sorting strategy and image parameters in the customized image information to obtain corresponding sorting information;

[0007] Obtaining a scaling ratio corresponding to each customized image according to a preset scaling strategy and the sorting information;

[0008] Obtaining an alternative template corresponding to the customized image information in a preset template library according to the sorting information, the image selection information and the image parameters;

[0009] Combining the customized images included in the customized image information according to the image selection information, the scaling ratio, the sorting information and the alternative template to obtain a design image corresponding to each alternative template.

[0010] In a second aspect, an embodiment of the present invention further provides an intelligent image combination device for personalized customization, where the device is used to execute the intelligent image combination method for personalized customization as described in the first aspect above, and the device includes:

[0011] A customized image information acquisition unit, configured to receive image selection information input by a user and acquire customized image information matching the image selection information from a pre-set image material library;

[0012] A sorting information acquisition unit, configured to sort each customized image included in the customized image information according to a pre-set image sorting strategy and image parameters in the customized image information, so as to obtain corresponding sorting information;

[0013] A scaling ratio acquisition unit, configured to acquire a scaling ratio corresponding to each customized image according to a pre-set scaling strategy and the sorting information;

[0014] An alternative template acquisition unit, configured to acquire an alternative template corresponding to the customized image information in a pre-set template library according to the sorting information, the image selection information, and the image parameters;

[0015] A designed image acquisition unit, configured to combine the customized images included in the customized image information according to the image selection information, the scaling ratio, the sorting information, and the alternative template, so as to obtain designed images corresponding to each alternative template.

[0016] In a third aspect, an embodiment of the present invention further provides a computer device, where the device includes a processor, a communication interface, a memory, and a communication bus, and the processor, the communication interface, and the memory complete communication with each other through the communication bus;

[0017] The memory is used to store a computer program;

[0018] When the processor is configured to execute the program stored in the memory, the steps of the image intelligent combination method for personalized customization described in the first aspect above are implemented.

[0019] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the image intelligent combination method for personalized customization described in the first aspect above are implemented.

[0020] An embodiment of the present invention provides an image intelligent combination method, device, equipment and medium for personalized customization. The method includes: obtaining customized image information corresponding to the image selection information input by the user from an image material library, sorting the customized images according to the image parameters in the customized image information to obtain sorting information and determining the scaling ratio of each customized image; obtaining corresponding alternative templates in a template library according to the sorting information, image selection information and image parameters, and combining the customized images, so as to obtain a designed image. The above-mentioned image intelligent combination method for personalized customization can perform intelligent sorting and scaling according to the image parameters corresponding to the customized images, and combine the sorted and scaled customized images according to the corresponding alternative templates to generate a designed image, greatly improving the efficiency of combining the personalized customized images selected by the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0022] Figure 1 It is a flowchart of the method for the image intelligent combination method for personalized customization provided by the embodiment of the present invention;

[0023] Figure 2 It is a schematic diagram of the application scenario of the image intelligent combination method for personalized customization provided by the embodiment of the present invention;

[0024] Figure 3 It is a schematic block diagram of the image intelligent combination device for personalized customization provided by the embodiment of the present invention;

[0025] Figure 4 It is a schematic block diagram of the computer equipment provided by the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0026] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0027] It should be understood that when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

[0028] It should also be understood that the terms used in the specification of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms.

[0029] It should be further understood that the term "and / or" used in the specification of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0030] Embodiments of the present invention application provide an image intelligent combination method for personalized customization. This method is applied to a terminal device, and the terminal device executes the stored software program to implement the above-mentioned image intelligent combination method for personalized customization. As Figure 2 shown, if the terminal device is the management server 10, the user can send image selection information to the management server 10 through the client 20. The management server 10 performs image intelligent combination according to the image selection information and then feeds back the designed image to the client 20, and the user views the designed image through the client 20. The terminal device can also be a client directly used by the user. Then the user inputs image selection information locally on the client, and the client performs image intelligent combination according to the image selection information and displays the designed image for the user to view.

[0031] As Figure 1 shown, this method includes steps S110 to S150.

[0032] S110. Receive the image selection information input by the user, and obtain the customized image information matching the image selection information from the preset image material library.

[0033] Receive the image selection information input by the user, and obtain the customized image information matching the image selection information from the preset image material library. The user can input image selection information, and the image selection information includes selection information such as the image code, image type, and background color selected by the user. The user can select zero, one, or more image codes in each image type to form the image selection information. The background color is also the background color of the personalized customization product, and the user can only select one color parameter as the background color. For example, the image types include popular patterns, game character patterns, version patterns, custom text, etc.

[0034] The terminal device obtains corresponding customized image information from the image material library according to the image selection information. The customized image information includes at least one customized image and the image parameters of each customized image; the image parameters include information such as the original size of the customized image, the average pixel value of the image, and the image type.

[0035] In a specific embodiment, step S110 includes sub-steps: obtaining the corresponding customized image in the image material library according to the image code in the image selection information; extracting the corresponding image parameters from the customized image; and combining the customized image and the image parameters into the corresponding customized image information.

[0036] The image material library contains multiple material images and the image numbers of each material image. The material images corresponding to the image codes in the image selection information can be obtained from the image material library as customized images. If the image type is custom text, the image code is a string code composed of the text content, font size, font parameters, and color parameters of the custom text. The image material library contains a font library corresponding to the image type of custom text. After parsing the string code, the text content, font size, font parameters, and color parameters corresponding to the custom text can be obtained. The font corresponding to the text content is obtained from the font library according to the font parameters and combined, and a customized image containing the custom text is generated according to the corresponding configuration of the font size and color parameters.

[0037] Furthermore, the corresponding image parameters can be extracted from the customized image. The outer length and width of the customized image can be obtained as the original image size; the pixel values of each pixel point in the customized image are obtained and the average value is calculated as the corresponding average pixel value of the image; the image type, original image size, and average pixel value of each customized image are combined to obtain the corresponding image parameters. The customized image and the corresponding image parameters are combined to obtain the customized image information.

[0038] S120. Sort the customized images included in the customized image information according to the preset image sorting strategy and the image parameters in the customized image information to obtain the corresponding sorting information.

[0039] Sort the customized images included in the customized image information according to the preset image sorting strategy and the image parameters in the customized image information to obtain the corresponding sorting information. The image sorting strategy is pre-configured in the terminal device. The customized images can be sorted according to the image sorting strategy and the image parameters in the customized image information to obtain the sorting information; each customized image in the sorting information corresponds to a serial number; the sorting information can determine the stacking order of the customized images. The customized image with serial number "1" is sorted on the top layer, and the customized image with the largest serial number is sorted on the bottom layer.

[0040] In a specific embodiment, step S120 includes sub-steps: determining the type coefficients corresponding to the image types of each customized image according to the type coefficient configuration information in the image sorting strategy; calculating the type coefficients and the original image sizes of each customized image in the image parameters according to the coefficient calculation formula in the image sorting strategy to obtain the corresponding sorting coefficients; determining the sorting of each customized image according to the sorting coefficients to obtain the corresponding sorting information.

[0041] Specifically, the type coefficients of each customized image can be determined according to the type coefficient configuration information in the image sorting strategy; the type coefficient configuration information contains the coefficient values corresponding to each image type, so a corresponding coefficient value can be obtained from the type coefficient configuration information according to the image type of the customized image, and this coefficient value is the type coefficient of the customized image.

[0042] For example, the type coefficient corresponding to a popular pattern is 1.2, the type coefficient corresponding to a game character pattern is 1, the type coefficient corresponding to a version pattern is 0.6, and the type coefficient corresponding to custom text is 0.8.

[0043] Further, calculate the type coefficients of each customized image and the original image sizes of each customized image according to the coefficient calculation formula to obtain the corresponding sorting coefficients. The coefficient calculation formula can be expressed by formula (1):

[0044] (1);

[0045] Wherein, r is the type coefficient corresponding to the customized image, l is the length value in the original image size of the customized image, h is the height value in the original image size of the customized image, P is the calculated sorting coefficient corresponding to the customized image.

[0046] Furthermore, according to the sorting coefficients, the sorting of each customized image can be determined and corresponding serial numbers can be assigned, so as to obtain the corresponding sorting information. The customized images can be sorted from largest to smallest according to their sorting coefficients, and the serial number of the customized image with the largest sorting coefficient is determined to be "1", and the serial numbers of the remaining customized images are determined according to the sorting order, so as to obtain the sorting information.

[0047] S130. Obtain the scaling ratios corresponding to each customized image according to the preset scaling strategy and the sorting information.

[0048] Obtain the scaling ratio corresponding to each of the customized images according to the preset scaling strategy and the sorting information. By further obtaining the scaling ratio of each customized image according to the scaling strategy and the sorting information, the scaling ratio can scale the size of the customized image, so that the combined customized images are more coordinated.

[0049] In a specific embodiment, step S130 includes sub-steps: calculate the size coefficient corresponding to each customized image according to the original image size of each customized image in the image parameters; obtain the mapping coefficient corresponding to the sorting order of each customized image in the sorting information according to the coefficient determination rule in the scaling strategy; calculate the size coefficient and the mapping coefficient according to the ratio calculation formula in the scaling strategy to obtain the scaling ratio corresponding to each customized image.

[0050] Specifically, the size coefficient of each customized image can be calculated according to the original image size of each customized image in the image parameters. The calculation formula of the size coefficient can be expressed by formula (2):

[0051] (2);

[0052] Where, S i is the image area of the i-th customized image, and the image area can be calculated based on the original image size of the customized image (length value l × height value h ), C i is the size coefficient of the i-th customized image, N is the total number of customized images.

[0053] Further obtain the mapping coefficient corresponding to the sorting order according to the coefficient determination rule configured in the scaling strategy. The coefficient determination rule includes the specific rule for determining the mapping coefficient corresponding to the sorting order. For example, the coefficient determination rule is to reverse the sorting order of the customized images to obtain the initial coefficient of each customized image. That is, the initial coefficient of the customized image with the serial number "1" in the sorting information is "N", the initial coefficient of the customized image with the serial number "2" is "N - 1", then the initial coefficient of the customized image with the serial number "N" is "1", and the initial coefficient is input into the mapping formula set in the coefficient determination rule to calculate the corresponding mapping coefficient. For example, the mapping formula can be expressed by formula (3):

[0054] (3);

[0055] Where, y i is the mapping coefficient of the i-th customized image, f iis the initial coefficient of the i-th customized image, N is the total number of customized images, and e is the base of the natural logarithm.

[0056] Furthermore, calculate the size coefficient and the mapping coefficient according to the ratio calculation formula in the scaling strategy, so as to obtain the corresponding scaling ratio. The ratio calculation formula can be expressed by formula (4):

[0057] (4);

[0058] B i is the calculated scaling ratio of the i-th customized image, C i is the size coefficient of the i-th customized image, y i is the mapping coefficient of the i-th customized image, and e is the base of the natural logarithm.

[0059] S140. Obtain the alternative templates corresponding to the customized image information in the preset template library according to the sorting information, the image selection information, and the image parameters.

[0060] Obtain the alternative templates corresponding to the customized image information in the preset template library according to the sorting information, the image selection information, and the image parameters. The alternative templates that match the customized image information can be correspondingly selected from the template library according to the sorting information, the image selection information, and the image parameters. The module library contains multiple templates, and different templates can be used to combine the customized images in different orientations and angles.

[0061] In a specific embodiment, step S140 includes sub-steps: calculate the pixel difference degree corresponding to each customized image according to the difference coefficient calculation formula configured in the template library and the image parameters; screen the combined templates included in the template library according to the background color and the number of images set in the image selection information to obtain the combined template that matches the background color as the initial template; obtain the matching initial template as the alternative template according to the sorting information and the pixel difference degree.

[0062] Specifically, first calculate the average pixel value of the image in the image parameters according to the difference coefficient calculation formula, so as to obtain the pixel difference degree of each customized image. The pixel difference degree can be used to reflect the pixel difference between a certain customized image and other customized images. The greater the pixel difference degree, the greater the pixel difference between a certain customized image and other customized images. Specifically, the difference coefficient calculation formula can be expressed by formula (5):

[0063] (5);

[0064] Among them, Xi is the pixel difference degree of the calculated i-th customized image, T Rj is the pixel value of the j-th customized image in the Red color channel, T Ri is the pixel value of the i-th customized image in the Red color channel, where the subscript G corresponds to the Green color channel and the subscript B corresponds to the Blue color channel.

[0065] Filter the combined templates included in the template library according to the background color and the number of images. Each combined template is applicable to a specific background color and a specific number of images, where the number of images is also the total number of customized images. Specifically, each combined template corresponds to a background color range and a quantity label. The combined template can be filtered by the set background color and the number of images, so as to obtain the combined template whose background color range matches the set background color and the quantity label matches the number of images as the initial template.

[0066] Furthermore, further filter the initial template according to the sorting information and the pixel difference degree to obtain the initial template that matches the sorting information and the pixel difference degree as the alternative template.

[0067] In a specific embodiment, obtaining the matching initial template as the alternative template according to the sorting information and the pixel difference degree includes: determining the weighting coefficient of each customized image according to the sorting information; performing weighted calculation on the pixel difference degree according to the weighting coefficient to obtain the corresponding weighted difference degree value; obtaining the initial template in the initial template whose difference degree range matches the weighted difference degree value as the corresponding alternative template.

[0068] Specifically, the weighting coefficient of each customized image can be determined according to the sorting information. Specifically, the weighting coefficient can be determined according to formula (6):

[0069] (6);

[0070] where, J i is the determined weighting coefficient corresponding to the i-th customized image, d i is the serial number of the i-th customized image, and N is the total number of customized images.

[0071] Perform weighted calculation on the pixel difference degree of each customized image according to the weighting coefficient. Specifically, multiply the weighting coefficient of a customized image by the pixel difference degree of the customized image, and then sum the product results of each customized image to obtain the corresponding weighted difference degree value.

[0072] Each set of combined templates in the template library also corresponds to a difference degree range. The initial templates can be further screened according to the weighted difference degree value, and the initial templates in which the difference degree range matches the weighted difference degree value can be obtained as the selected alternative templates, and the obtained alternative templates can be one or more. If the weighted difference degree value is within the difference degree range of the initial template, it is considered that the initial template matches the weighted difference degree value; if the weighted difference degree value is not within the difference degree range of the initial template, it is considered that the initial template does not match the weighted difference degree value.

[0073] S150. Combine the customized images included in the customized image information according to the image selection information, the scaling ratio, the sorting information, and the alternative templates to obtain design images corresponding to each of the alternative templates.

[0074] Combine the customized images included in the customized image information according to the image selection information, the scaling ratio, the sorting information, and the alternative templates to obtain design images corresponding to each of the alternative templates. Further, according to the scaling ratio, sorting information, and alternative templates obtained in the above steps, combined with the image selection information, the customized images are combined to obtain the corresponding design images. Since each alternative template can combine the customized images in a specific way, each alternative template can obtain a corresponding design image. If there are multiple design images, they can be viewed and finally selected by the user. Since the process of the user adjusting and optimizing the material images is omitted, the combination time of the material images can be greatly saved, and the user is prevented from spending a long time adjusting the material images.

[0075] In a specific embodiment, step S150 includes sub-steps: scaling each of the customized images according to the scaling ratio and the original image sizes of the customized images in the customized image information to obtain scaled processing images corresponding to the customized images; configuring a background image corresponding to the background color set in the image selection information in the alternative template; stacking and combining the scaled processing images according to the sorting information and the combination positions corresponding to the scaled processing images in the alternative template to obtain corresponding combined images; adding the combined images to the upper layer of the background image of the alternative template and making the center point of the combined images coincide with the template center point of the alternative template to generate a design image corresponding to the alternative template.

[0076] Specifically, the scaling adjustment can be performed according to the scaling ratio and the original size of the custom image, that is, the original size of the custom image is adjusted corresponding to the scaling ratio, so that it is enlarged or reduced based on the original size of the image. If the scaling ratio of the custom image is greater than 1, it indicates that the custom image is enlarged; if the scaling ratio of the custom image is less than 1, it indicates that the custom image is reduced; if the scaling ratio is 1, no scaling adjustment is performed on the custom image. After the scaling adjustment, the scaled processing images corresponding to each custom image can be obtained.

[0077] Further, the background image of the alternative template is configured according to the background color set in the image selection information. The background image is a solid color image corresponding to the background color, and the background image completely covers the area included in the alternative template.

[0078] The alternative template includes the combined positions corresponding to each serial number image; the setting levels of each custom image can be determined according to the sorting information, the setting positions of each custom image can be determined according to the combined positions corresponding to each scaled processing image in the alternative template, and the scaled processing images are stacked and combined according to the determined setting levels and setting positions to obtain a combined image.

[0079] Determine the center point of the template of the alternative template, cover the combined image on the upper layer of the background image of the alternative template, and make the center point of the combined image coincide with the center point of the template, so as to avoid the offset of the generated combined image in the alternative template; adding the combined image to the background image of the alternative template can obtain the corresponding design image.

[0080] In the actual application process, template libraries for printing on products such as clothes, water cups, and backpacks can be constructed respectively, and each template library corresponds to an actual product; then the generated design image can be printed on clothes, water cups, and backpacks according to the usage scenario of the selected template library, so as to meet the personalized customization needs of users.

[0081] In the method for intelligent image combination for personalized customization disclosed in the above embodiments, the method includes: obtaining the custom image information corresponding to the user input image selection information from the image material library, sorting the custom images according to the image parameters in the custom image information to obtain sorting information and determining the scaling ratio of each custom image; obtaining the corresponding alternative template in the template library according to the sorting information, image selection information and image parameters and combining the custom images to obtain a design image. The above method for intelligent image combination for personalized customization can perform intelligent sorting and scaling according to the image parameters corresponding to the custom images, and combine the sorted and scaled custom images according to the corresponding alternative template to generate a design image, which greatly improves the efficiency of combining the personalized custom images selected by users.

[0082] An embodiment of the present invention further provides an image intelligent combination device for personalized customization. The image intelligent combination device for personalized customization can be configured in a terminal device and is used to execute any embodiment of the foregoing image intelligent combination method for personalized customization. Specifically, please refer to Figure 3 , Figure 3 which is a schematic block diagram of the image intelligent combination device for personalized customization provided by an embodiment of the present invention.

[0083] As Figure 3 shown, the image intelligent combination device 100 for personalized customization includes a customized image information acquisition unit 110, a sorting information acquisition unit 120, a scaling ratio acquisition unit 130, an alternative template acquisition unit 140, and a designed image acquisition unit 150.

[0084] The customized image information acquisition unit 110 is configured to receive the image selection information input by the user and acquire the customized image information matching the image selection information from the pre-set image material library.

[0085] The sorting information acquisition unit 120 is configured to sort each customized image included in the customized image information according to the pre-set image sorting strategy and the image parameters in the customized image information, so as to obtain the corresponding sorting information.

[0086] The scaling ratio acquisition unit 130 is configured to acquire the scaling ratio corresponding to each customized image according to the pre-set scaling strategy and the sorting information.

[0087] The alternative template acquisition unit 140 is configured to acquire the alternative templates corresponding to the customized image information in the pre-set template library according to the sorting information, the image selection information, and the image parameters.

[0088] The designed image acquisition unit 150 is configured to combine the customized images included in the customized image information according to the image selection information, the scaling ratio, the sorting information, and the alternative templates, so as to obtain the designed images corresponding to each alternative template.

[0089] In the image intelligent combination device for personalized customization provided by the embodiments of the present invention, the above-mentioned method for intelligent combination of images for personalized customization is applied. Customized image information corresponding to the image selection information input by the user is obtained from the image material library, and the customized images are sorted according to the image parameters in the customized image information to obtain sorting information and the scaling ratio of each customized image is determined; according to the sorting information, image selection information and image parameters, the corresponding alternative templates in the template library are obtained and the customized images are combined to obtain the design image. The above-mentioned method for intelligent combination of images for personalized customization can perform intelligent sorting and scaling according to the image parameters corresponding to the customized images, and combine the sorted and scaled customized images according to the corresponding alternative templates to generate the design image, which greatly improves the efficiency of combining the personalized customized images selected by the user.

[0090] The above-mentioned image intelligent combination device for personalized customization can be implemented in the form of a computer program, and this computer program can run on a computer device as shown in Figure 4 .

[0091] Please refer to Figure 4 . Figure 4 FIG. is a schematic block diagram of a computer device provided by an embodiment of the present invention. This computer device can be a terminal device for executing the method for intelligent combination of images for personalized customization to perform intelligent combination of personalized customized images.

[0092] Referring to Figure 4 , this computer device 500 includes a processor 502, a memory, and a communication interface 505 connected through a communication bus 501. Among them, the memory can include a storage medium 503 and an internal memory 504.

[0093] The storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can be made to execute the method for intelligent combination of images for personalized customization. Among them, the storage medium 503 can be a volatile storage medium or a non-volatile storage medium.

[0094] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.

[0095] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can be made to execute the method for intelligent combination of images for personalized customization.

[0096] The communication interface 505 is used for network communication, such as providing the transmission of data information, etc. Those skilled in the art can understand that Figure 4The structure shown is only a block diagram of some structures related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. Specifically, the computer device 500 may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0097] Among them, the processor 502 is used to run the computer program 5032 stored in the memory to implement the corresponding functions in the above-mentioned image intelligent combination method for personalized customization.

[0098] Those skilled in the art can understand that Figure 4 The embodiments of the computer device shown do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements. For example, in some embodiments, the computer device may only include a memory and a processor. In such an embodiment, the structures and functions of the memory and the processor are the same as those Figure 4 shown in the embodiment, and will not be described in detail here.

[0099] It should be understood that in the embodiments of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0100] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps included in the above-mentioned image intelligent combination method for personalized customization are implemented.

[0101] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the devices, apparatuses, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein. Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0102] In several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, or units with the same function can be aggregated into one unit. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed couplings or direct couplings or communication connections to each other can be indirect couplings or communication connections through some interfaces, devices, or units, and can also be in the form of electrical, mechanical, or other connections.

[0103] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the objectives of the embodiments of the present invention.

[0104] In addition, the functional units in each embodiment of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0105] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a computer-readable storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned computer-readable storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), magnetic disks, or optical discs that can store program codes.

[0106] As described above, the above are only the specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. An intelligent image combination method for personalized customization, characterized in that: The method comprises: Receiving image selection information input by a user, and acquiring customized image information matching the image selection information from a preset image material library; Sorting the customized images contained in the customized image information according to a preset image sorting strategy and image parameters in the customized image information to obtain corresponding sorting information; Acquire a zoom ratio corresponding to each of the customized images according to a preset zoom strategy and the sorting information; Acquire a candidate template corresponding to the customized image information in a preset template library according to the sorting information, the image selection information and the image parameters; Combining the customized images included in the customized image information according to the image selection information, the scaling ratio, the sorting information and the candidate templates to obtain a design image corresponding to each of the candidate templates; The step of acquiring customized image information matching the image selection information from a preset image material library includes: Acquire the corresponding customized image in the image material library according to the image code in the image selection information; Extracting corresponding image parameters from the custom image; combining the customized image and the image parameters into corresponding customized image information; The acquiring, according to the sorting information, the image selection information and the image parameters, a candidate template corresponding to the customized image information in a preset template library comprises: Calculate the pixel difference corresponding to each of the customized images according to the difference coefficient calculation formula configured in the template library and the image parameters; Screening the combination templates contained in the template library according to the background color and the number of images set in the image selection information, and obtaining a combination template matching the background color as an initial template; Acquire a matching initial template as a candidate template according to the sorting information and the pixel difference; The combining the customized images included in the customized image information according to the image selection information, the scaling ratio, the sorting information and the candidate templates to obtain a design image corresponding to each of the candidate templates includes: Scaling each of the customized images according to the scaling ratio and the original image size of each customized image in the customized image information to obtain a scaled processed image corresponding to each customized image; Configuring a background image corresponding to the background color set in the image selection information in the candidate template; The scaled images are stacked and combined according to the sorting information and the combination positions corresponding to the scaled images in the candidate templates to obtain a corresponding combined image; The combined image is added to an upper layer of the background image of the candidate template and a center point of the combined image is made to coincide with a template center point of the candidate template, so as to generate a design image corresponding to the candidate template.

2. The method for intelligent image combination for personalized customization according to claim 1, characterized in that: The step of sorting the customized images contained in the customized image information according to the preset image sorting strategy and the image parameters in the customized image information to obtain corresponding sorting information includes: Determine the type coefficient corresponding to the image type of each customized image according to the type coefficient configuration information in the image sorting strategy; Calculate the type coefficient and the original image size of each of the customized images in the image parameters according to the coefficient calculation formula in the image sorting strategy to obtain a corresponding sorting coefficient; The order of each of the customized images is determined according to the order coefficient to obtain corresponding order information.

3. The image intelligent combination method for personalized customization according to claim 1, characterized in that: The obtaining the scaling ratio corresponding to each of the customized images according to the preset scaling strategy and the sorting information includes: Calculate the size coefficient corresponding to each customized image according to the original image size of each customized image in the image parameters; Acquire, according to the coefficient determination rule in the scaling strategy, a mapping coefficient corresponding to the sorting order of each customized image in the sorting information; The size coefficient and the mapping coefficient are calculated according to the ratio calculation formula in the scaling strategy to obtain the scaling ratio corresponding to each of the customized images.

4. The method for intelligent image combination for personalized customization according to claim 1, characterized in that: The step of obtaining a matching initial template as a candidate template according to the sorting information and the pixel difference includes: Determining a weighting coefficient of each of the customized images according to the sorting information; Performing weighted calculation on the pixel difference according to the weighting coefficient to obtain a corresponding weighted difference value; An initial template whose difference interval in the initial template matches the weighted difference value is obtained as a corresponding candidate template.

5. An intelligent image combination device for personalized customization, characterized in that: The device is used to execute the image intelligent combination method for personalized customization according to any one of claims 1 to 4, and the device includes: A customized image information acquisition unit, configured to receive image selection information input by a user, and acquire customized image information matching the image selection information from a preset image material library; A sorting information acquisition unit, used to sort the customized images included in the customized image information according to a preset image sorting strategy and image parameters in the customized image information to obtain corresponding sorting information; A scaling ratio acquisition unit, configured to acquire a scaling ratio corresponding to each of the customized images according to a preset scaling strategy and the sorting information; A candidate template acquisition unit, configured to acquire a candidate template corresponding to the customized image information in a preset template library according to the sorting information, the image selection information and the image parameters; The design image acquisition unit is used to combine the customized images included in the customized image information according to the image selection information, the scaling ratio, the sorting information and the candidate templates to obtain the design images corresponding to the candidate templates.

6. A computer device, characterized in that: The device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; The processor is used to implement the steps of the image intelligent combination method for personalized customization described in any one of claims 1 to 4 when executing the program stored in the memory.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for intelligent image combination for personalized customization as described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Video template generation method and device, electronic equipment and storage medium

    CN116866498A

  • Image generation method and device

    CN117635741A