Intelligent image combination method and device for personalized customization, equipment and medium
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.
Patent Information
- Application Number
- CN202510506881.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2045-04-22
AI Technical Summary
In the prior art, after users select images and text in personalized customized products, they need to perform long-term stacking and adjustments, and cannot efficiently combine personalized customized images.
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, and image combinations are performed to generate design images.
This greatly improves the efficiency of combining personalized customized images selected by users and reduces the user's operation time during the combination process.
Smart Images

Figure CN120032006A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image intelligent processing technology, and in particular to an image intelligent combination method, device, equipment and medium for personalized customization. Background Art
[0002] In personalized customized products, users can select their favorite images and texts and combine them at will; however, in the prior art, after users select patterns and texts, they need to stack and combine the selected basic materials and adjust the orientation and size of the basic materials; in order to achieve a beautiful design image after combination, users need to spend a long time to fine-tune the basic materials, and cannot combine personalized customized images conveniently and quickly. Therefore, the prior art method has the problem of being unable to efficiently combine the personalized customized images selected by users. Summary of the invention
[0003] The embodiments of the present invention provide a method, device, equipment and medium for intelligent combination of personalized images, aiming to solve the problem that the methods in the prior art cannot efficiently combine the personalized customized images selected by the user.
[0004] In a first aspect, an embodiment of the present invention provides a method for intelligently combining images for personalized customization, wherein 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; The customized images included in the customized image information are combined 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.
[0005] In a second aspect, an embodiment of the present invention further provides an image intelligent combination device for personalized customization, wherein the device is used to execute the image intelligent combination method for personalized customization as described in the first aspect above, 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.
[0006] In a third aspect, an embodiment of the present invention further provides a computer device, wherein 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 the first aspect when executing the program stored in the memory.
[0007] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method for intelligent combination of images for personalized customization as described in the first aspect above are implemented.
[0008] The embodiments of the present invention provide a method, device, equipment and medium for intelligent combination of images for personalized customization, the method comprising: obtaining customized image information corresponding to image selection information input by a user from an image material library, sorting the customized images according to image parameters in the customized image information to obtain sorting information and determining the scaling ratio of each customized image; obtaining corresponding candidate templates in a template library according to the sorting information, image selection information and image parameters and combining the customized images to obtain a designed image. The above-mentioned method for intelligent combination of images for personalized customization can intelligently sort and scale according to image parameters corresponding to the customized images, and combine the sorted and scaled customized images according to the corresponding candidate templates to generate a designed image, which greatly improves the efficiency of combining personalized customized images selected by users. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0010] Figure 1 A method flow chart of a method for intelligently combining images for personalized customization provided by an embodiment of the present invention; Figure 2 A schematic diagram of an application scenario of the method for intelligently combining images for personalized customization provided by an embodiment of the present invention; Figure 3 A schematic block diagram of an image intelligent combination device for personalized customization provided by an embodiment of the present invention; Figure 4 It is a schematic block diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0011] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0012] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0013] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0014] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0015] The embodiment of the present invention provides a method for intelligently combining images for personalized customization, which is applied to a terminal device, and the terminal device executes a stored software program to implement the method for intelligently combining images for personalized customization. Figure 2 As shown, the terminal device may be a management server 10, and the user may send image selection information to the management server 10 through the user terminal 20, and the management server 10 performs intelligent image combination according to the image selection information and then feeds back the design image to the user terminal 20, and the user views the design image through the user terminal 20. The terminal device may also be a user terminal directly used by the user, and the user inputs the image selection information locally on the user terminal, and the user terminal performs intelligent image combination according to the image selection information and then displays the design image for the user to view.
[0016] like Figure 1 As shown, the method includes steps S110 to S150.
[0017] S110: receiving image selection information input by a user, and acquiring customized image information matching the image selection information from a preset image material library.
[0018] 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 the image selection information, which includes 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 customized product. 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.
[0019] 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 image parameters of each customized image; the image parameters include information such as the original size of the customized image, the image pixel mean, and the image type.
[0020] In a specific embodiment, step S110 includes sub-steps: acquiring a corresponding customized image in the image material library according to the image code in the image selection information; extracting corresponding image parameters from the customized image; and combining the customized image and the image parameters into corresponding customized image information.
[0021] The image material library contains multiple material images and the image number of each material image. The material images corresponding to each image code in the image selection information can be obtained from the image material library as custom 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. According to the font parameters, the font corresponding to the text content is obtained from the font library for combination, and a custom image containing custom text is generated according to the corresponding configuration of the font size and color parameters.
[0022] Furthermore, the corresponding image parameters can be extracted from the custom image, and the outer length and width of the custom image can be obtained as the original image size; the pixel value of each pixel in the custom image is obtained and the average value is calculated as the corresponding image pixel mean; the image type, original image size and image pixel mean of each custom image are combined to obtain the corresponding image parameters. The custom image is combined with the corresponding image parameters to obtain the custom image information.
[0023] S120: 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.
[0024] The customized images contained in the customized image information are sorted according to the preset image sorting strategy and the image parameters in the customized image information to obtain the corresponding sorting information. The terminal device is pre-configured with an image sorting strategy, and 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 sequence number; the sorting information can determine the stacking word order of each customized image, and the customized image with sequence number "1" is sorted at the top layer, and the customized image with the largest sequence number is sorted at the bottom layer.
[0025] In a specific embodiment, step S120 includes sub-steps: determining the type coefficient corresponding to the image type of each customized image according to the type coefficient configuration information in the image sorting strategy; calculating the type coefficient and the original image size of each customized image in the image parameters according to the coefficient calculation formula in the image sorting strategy to obtain the corresponding sorting coefficient; determining the sorting of each customized image according to the sorting coefficient to obtain the corresponding sorting information.
[0026] Specifically, the type coefficient of each customized image can be determined according to the type coefficient configuration information in the image sorting strategy; the type coefficient configuration information includes coefficient values corresponding to each image type, and then a corresponding coefficient value can be obtained from the type coefficient configuration information according to the image type of the customized image, and the coefficient value is the type coefficient of the customized image.
[0027] For example, the type coefficient corresponding to the popular pattern is 1.2, the type coefficient corresponding to the game character pattern is 1, the type coefficient corresponding to the version pattern is 0.6, and the type coefficient corresponding to the custom text is 0.8.
[0028] The type coefficient of each customized image and the original image size of each customized image are further calculated according to the coefficient calculation formula to obtain the corresponding sorting coefficient. The coefficient calculation formula can be expressed by formula (1): (1); in, r The type coefficient corresponding to the custom image, l The length value of the original image size of the custom image. h is the height value of the custom image in its original size. P is the calculated ranking coefficient corresponding to the customized image.
[0029] Furthermore, the order of each custom image can be determined according to the order coefficient and a corresponding serial number can be assigned, thereby obtaining corresponding order information. The custom images can be ordered from large to small according to their order coefficients, and the serial number of the custom image with the largest order coefficient is determined as "1", and the serial numbers of the remaining custom images are determined according to the order of the order, thereby obtaining order information.
[0030] S130: Acquire a zoom ratio corresponding to each of the customized images according to a preset zoom strategy and the sorting information.
[0031] The scaling ratio corresponding to each of the customized images is obtained according to the preset scaling strategy and the sorting information. The scaling ratio of each customized image is further obtained according to the scaling strategy and the sorting information, and the scaling ratio can scale the size of the customized image, so that the combined customized image is more coordinated.
[0032] In a specific embodiment, step S130 includes sub-steps: calculating a size coefficient corresponding to each customized image according to the original image size of each customized image in the image parameters; obtaining a mapping coefficient corresponding to the sorting order of each customized image in the sorting information according to a coefficient determination rule in the scaling strategy; calculating the size coefficient and the mapping coefficient according to a ratio calculation formula in the scaling strategy to obtain a scaling ratio corresponding to each customized image.
[0033] Specifically, the size coefficient of each customized image can be calculated based on the original size of the image in the image parameters. The calculation formula of the size coefficient can be expressed by formula (2): (2); Wherein, S i is the image area of the i-th customized image, and the image area can be calculated based on the original 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.
[0034] Further, according to the coefficient determination rule configured in the scaling strategy, the mapping coefficient corresponding to the sorting order is obtained. The coefficient determination rule includes the specific rule for determining the mapping coefficient corresponding to the sorting order. For example, if 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", and 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". 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): (3); Wherein, y i is the mapping coefficient of the i-th customized image, f i is 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.
[0035] Further, according to the ratio calculation formula in the scaling strategy, the size coefficient and the mapping coefficient are calculated to obtain the corresponding scaling ratio. The ratio calculation formula can be expressed by formula (4): (4); B i is the scaling ratio of the i-th customized image calculated, 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.
[0036] S140: 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.
[0037] 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 is obtained. According to the sorting information, the image selection information and the image parameters, a candidate template matching the customized image information can be obtained from the template library. The template library contains multiple templates, and different templates can be used to combine customized images in different directions and angles.
[0038] In a specific embodiment, step S140 includes sub-steps: calculating 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; and obtaining a matching initial template as an alternative template according to the sorting information and the pixel difference.
[0039] Specifically, the image pixel mean in the image parameters can be calculated according to the difference coefficient calculation formula to obtain the pixel difference of each customized image. The pixel difference can be used to reflect the pixel difference between a certain customized image and other customized images. The greater the pixel difference, 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): (5); in, X i is the calculated pixel difference of the i-th custom image, T Rj is the pixel value of the jth custom image in the red color channel, T Ri is the pixel value of the i-th custom image in the red color channel, the subscript G corresponds to the green color channel, and the subscript B corresponds to the blue color channel.
[0040] The combination templates included in the template library are screened according to the background color and the number of images. Each combination template is suitable for a specific background color and a specific number of images, where the number of images is the total number of customized images. Specifically, each combination template corresponds to a background color interval and a quantity label. The combination templates can be screened according to the set background color and the number of images, so as to obtain a combination template whose background color interval matches the set background color and whose quantity label matches the number of images as the initial template.
[0041] Further, the initial templates are further screened according to the sorting information and the pixel difference degree to obtain the initial templates matching the sorting information and the pixel difference degree therein as alternative templates.
[0042] In a specific embodiment, obtaining the matching initial templates as alternative templates according to the sorting information and the pixel difference degree includes: determining the weighting coefficients of the customized images according to the sorting information; performing weighted calculation on the pixel difference degree according to the weighting coefficients to obtain corresponding weighted difference degree values; and obtaining the initial templates in the initial templates whose difference degree intervals match the weighted difference degree values as the corresponding alternative templates.
[0043] Specifically, the weighting coefficients of the customized images can be determined according to the sorting information. Specifically, the weighting coefficients can be determined correspondingly according to formula (6): (6); wherein, 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.
[0044] Perform weighted calculation on the pixel difference degrees of the customized images according to the weighting coefficients. 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 the customized images to obtain the corresponding weighted difference degree value.
[0045] Each combined template in the template library also corresponds to a difference degree interval. The initial templates can be further screened according to the weighted difference degree values, and the initial templates in the initial templates whose difference degree intervals match the weighted difference degree values can be obtained as the screened alternative templates. The obtained alternative templates can be one or more. If the weighted difference degree value is within the difference degree interval 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 interval of the initial template, it is considered that the initial template does not match the weighted difference degree value.
[0046] 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 the alternative templates.
[0047] The custom images included in the custom image information are combined according to the image selection information, the scaling ratio, the sorting information and the alternative templates to obtain design images corresponding to the alternative templates. The custom images are further combined according to the scaling ratio, sorting information and alternative templates obtained in the above steps in combination with the image selection information to obtain the corresponding design image. Since each alternative template can combine the custom 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 adjusting and optimizing the material images by the user is omitted, the time for combining the material images can be greatly saved, and the user can avoid spending a long time adjusting the material images.
[0048] In a specific embodiment, step S150 includes sub-steps: scaling each of the custom images according to the scaling ratio and the original image size of each custom image in the custom image information to obtain a scaled processed image corresponding to each custom image; configuring a background image corresponding to the background color set in the image selection information in the alternative template; stacking and combining the scaled processed images according to the sorting information and the combination positions corresponding to each of the scaled processed images in the alternative template to obtain a corresponding combined image; adding the combined image to the upper layer of the background image of the alternative template and making the center point of the combined image coincide with the template center point of the alternative template to generate a design image corresponding to the alternative template.
[0049] Specifically, the scaling adjustment can be performed according to the scaling ratio and the original image size of the customized image, that is, the original image size of the customized image is adjusted accordingly according to the scaling ratio, so that it is enlarged or reduced based on the original image size. If the scaling ratio of the customized image is greater than 1, it indicates that the customized image is enlarged; if the scaling ratio of the customized image is less than 1, it indicates that the customized image is reduced; if the scaling ratio is 1, the customized image is not scaled. After scaling adjustment, the scaled processed image corresponding to each customized image can be obtained.
[0050] Further, a background image is configured for the candidate template according to the background color set in the image selection information. The background image is a pure color image corresponding to the background color, and the background image fully covers the area included in the candidate template.
[0051] The alternative template includes the combination positions corresponding to each serial number image; the setting level of each customized image can be determined according to the sorting information, and the setting position of each customized image can be determined according to the combination position corresponding to each scaled processing image in the alternative template; the scaled processing images are stacked and combined according to the determined setting levels and setting positions to obtain a combined image.
[0052] Determine the template center point of the alternative template, overlay 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 generated combined image from being offset in the alternative template; add the combined image to the background image of the alternative template to obtain the corresponding design image.
[0053] In actual application, template libraries for printing on clothes, water cups, backpacks and other products can be constructed respectively, and each template library corresponds to an actual product; the generated design images can be printed on clothes, water cups, backpacks according to the usage scenarios of the selected template library, thereby meeting the user's personalized customization needs.
[0054] In the image intelligent combination method for personalized customization disclosed in the above embodiment, the method includes: obtaining customized image information corresponding to the image selection information input by the user from the 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 the corresponding alternative templates in the template library according to the sorting information, image selection information and image parameters and combining the customized images to obtain the design image. The above-mentioned image intelligent combination method for personalized customization can intelligently sort and scale 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.
[0055] The embodiment of the present invention also provides an image intelligent combination device for personalized customization, which can be configured in a terminal device and is used to execute any embodiment of the aforementioned image intelligent combination method for personalized customization. Figure 3 , Figure 3 A schematic block diagram of an image intelligent combination device for personalized customization provided by an embodiment of the present invention.
[0056] like Figure 3 As 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 acquisition unit 130 , an alternative template acquisition unit 140 and a design image acquisition unit 150 .
[0057] The customized image information acquisition unit 110 is used 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.
[0058] The sorting information acquiring unit 120 is 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.
[0059] The scaling ratio acquisition unit 130 is used to acquire the scaling ratio corresponding to each of the customized images according to a preset scaling strategy and the sorting information.
[0060] The candidate template acquisition unit 140 is used 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.
[0061] The design image acquisition unit 150 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 a design image corresponding to each of the candidate templates.
[0062] The image intelligent combination device for personalized customization provided in the embodiment of the present invention applies the above-mentioned image intelligent combination method for personalized customization, obtains the customized image information corresponding to the image selection information input by the user from the image material library, sorts the customized images according to the image parameters in the customized image information to obtain the sorting information and determines the scaling ratio of each customized image; obtains the corresponding alternative templates in the template library according to the sorting information, image selection information and image parameters and combines the customized images to obtain the design image. The above-mentioned image intelligent combination method for personalized customization can intelligently sort and scale 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.
[0063] The above-mentioned image intelligent combination device for personalized customization can be implemented in the form of a computer program, which can be used in Figure 4 Runs on the computer device shown.
[0064] See also Figure 4 , Figure 4 1 is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device may be a terminal device for executing a personalized image intelligent combination method to intelligently combine personalized images.
[0065] See also Figure 4 The computer device 500 includes a processor 502 , a memory and a communication interface 505 connected via a communication bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0066] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may execute an image intelligent combination method for personalized customization, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
[0067] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0068] 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 execute the image intelligent combination method for personalized customization.
[0069] The communication interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will appreciate that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure 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. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0070] 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.
[0071] Those skilled in the art will understand that Figure 4 The embodiments of the computer device shown in the figure 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 shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 4 The embodiments shown are consistent and will not be described again here.
[0072] It should be understood that in the embodiment 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 (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) 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.
[0073] 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, wherein 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.
[0074] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel 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.
[0075] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0076] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
[0077] In addition, each functional unit in various embodiments of the present invention may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0078] If the above-mentioned 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 such an 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 may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in 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.
[0079] The above is only the specific implementation manner 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 by the protection scope of the present invention. Therefore, the protection scope of the present invention should 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; The customized images included in the customized image information are combined 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.
2. The method for intelligent image combination for personalized customization according to claim 1, characterized in that: 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; The customized image and the image parameters are combined into corresponding customized image information.
3. The method for intelligent image combination for personalized customization according to claim 2, 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.
4. The method for intelligent image combination 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.
5. The method for intelligent image combination for personalized customization according to claim 1, characterized in that: 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; A matching initial template is obtained as a candidate template according to the sorting information and the pixel difference.
6. The method for intelligent image combination for personalized customization according to claim 5, 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.
7. The method for intelligent image combination for personalized customization according to claim 1, characterized in that: 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.
8. 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 7, 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.
9. 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 7 when executing the program stored in the memory.
10. 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 7 are implemented.
Citation Information
Patent Citations
Video template generation method and device, electronic equipment and storage medium
CN116866498A
Image generation method and device
CN117635741A
Computer aided systems and methods for creating custom products
US20200159871A1