Image processing method and device, electronic equipment and storage medium

By receiving object images and description information, determining the target fusion image and fusion, the limitations of single object fusion in the prior art are solved, and multi-object fusion is realized to meet the diverse image effect needs of users.

CN120298830APending Publication Date: 2025-07-11BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410039053.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-10
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

The existing technology can only complete the fusion of single objects, and the application scenarios are limited and cannot meet the diverse and rich image effect needs of users.

Method used

By receiving the object image and description information in the image to be processed, the target fusion image is determined from the fusion image to be selected based on the object description information, and the object image is fused into the target fusion image, so that the fusion of multiple objects is achieved.

Benefits of technology

It improves the widespread application of image processing and meets the diverse and rich image effect needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120298830A_ABST
    Figure CN120298830A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image processing method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving an object image of at least one display object in a to-be-processed image and object description information comprising the at least one display object; determining a target fusion image from the at least one to-be-selected fusion image based on the object description information; based on the object description information and target fusion information of the target fusion image, fusing the object image into the target fusion image to obtain a target image; wherein the object description information corresponds to fusion object information in the target fusion information, and the fusion object information corresponds to a fusion object displayed in the target fusion image. According to the technical scheme provided by the embodiment of the invention, the application universality can be improved, and diversified and rich image effect requirements of users can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to image processing technology, and in particular, to an image processing method, apparatus, electronic device, and storage medium. Background Art

[0002] With the development of information technology, the application of image processing technology has become more and more popular. Through image processing technology, photos with different background images can be created to provide different photo effects for users.

[0003] In related technologies, image processing technology is usually applied to single object fusion, that is, creating photos with different background images for a single object. However, related technologies have at least the following technical problems: Since related technologies can only complete single object fusion, the application scenarios are limited and cannot meet the diverse and rich image effect requirements of users. Summary of the Invention

[0004] The present disclosure provides an image processing method, apparatus, electronic device, and storage medium to achieve the purpose of meeting the diverse and rich image effect requirements of users.

[0005] In a first aspect, an embodiment of the present disclosure provides an image processing method, including:

[0006] Receiving object images of at least one display object in the image to be processed and object description information including the at least one display object;

[0007] Based on the object description information, determining a target fusion image from at least one to-be-selected fusion image;

[0008] Based on the object description information and the target fusion information of the target fusion image, fusing the object image into the target fusion image to obtain a target image;

[0009] Wherein, the fusion object information in the object description information corresponds to the fusion object information in the target fusion information, and the fusion object information corresponds to the fusion object displayed in the target fusion image.

[0010] In a second aspect, an embodiment of the present disclosure further provides an image processing apparatus, and the apparatus includes:

[0011] An image receiving module, configured to receive object images of at least one display object in the image to be processed and object description information including the at least one display object;

[0012] A target fusion image determining module, configured to determine a target fusion image from at least one to-be-selected fusion image based on the object description information;

[0013] An object image fusion module, configured to fuse the object image into the target fusion image based on the object description information and the target fusion information of the target fusion image, so as to obtain a target image;

[0014] Wherein, the fusion object information in the object description information corresponds to the target fusion information, and the fusion object information corresponds to the fusion object displayed in the target fusion image.

[0015] In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:

[0016] At least one processor; and

[0017] A memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute any one of the image processing methods of the embodiments of the present disclosure.

[0019] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement any one of the image processing methods of the embodiments of the present disclosure when executed by a processor.

[0020] In the embodiments of the present disclosure, by receiving the object image of at least one display object in the image to be processed and the object description information including at least one display object; determining a target fusion image from at least one candidate fusion image based on the object description information; fusing the object image into the target fusion image based on the object description information and the target fusion information of the target fusion image to obtain a target image; wherein, the fusion object information in the object description information corresponds to the target fusion information; since the fusion object information corresponds to the fusion object displayed in the target fusion image, it indicates that there is a fusion object in the target fusion image. When obtaining the target image based on the object description information and the target fusion information, it is possible to fuse a single object into the target fusion image or fuse multiple objects into the target fusion image based on the number of display objects included in the image to be processed, solving the problem in the prior art that only a single object can be fused, improving the application versatility, and meeting the diverse and rich image effect requirements of users. Description of the Drawings

[0021] In conjunction with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic and that the original and the elements are not necessarily drawn to scale.

[0022] Figure 1 It is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure;

[0023] Figure 2 It is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure;

[0024] Figure 3 It is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure;

[0025] Figure 4 It is a schematic structural diagram of an image processing apparatus provided by an embodiment of the present disclosure;

[0026] Figure 5 It is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Specific Embodiments

[0027] The embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.

[0028] It should be understood that the various steps recited in the method embodiments of the present disclosure can be executed in a different order and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.

[0029] As used herein, the term "including" and its variants are open-ended, i.e., "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0030] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules, or units, and are not used to limit the order of the functions performed by these devices, modules, or units or their interdependent relationships.

[0031] It should be noted that the modifications of "one" and "multiple" mentioned in this disclosure are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise clearly specified in the context, it should be understood as "one or more".

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

[0033] It can be understood that before using the technical solutions disclosed in the embodiments of this disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0034] For example, when responding to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that performs the operations of the technical solutions of this disclosure according to the prompt message.

[0035] As an optional but non-limiting implementation manner, the manner of sending a prompt message to the user in response to receiving an active request from the user can be, for example, in the form of a pop-up window, and the prompt message can be presented in text in the pop-up window. In addition, the pop-up window can also carry selection controls for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0036] It can be understood that the above process of notifying and obtaining the user's authorization is only illustrative and does not limit the implementation manners of this disclosure. Other manners that meet relevant laws and regulations can also be applied to the implementation manners of this disclosure.

[0037] Before introducing the technical solution, an exemplary description of the application scenario can be given first. This technical solution can be applied to the scenario of fusing at least one object image into a fused image showing at least one fused object. Through this technical solution, multi-object fusion can be achieved to obtain a target image including the image information of at least one object image and the image information of the fused image. Exemplarily, the object image can be a partial image of an item, a partial body part image of a person, or a partial body part image of an animal; at least one object image can be fused into the fused image, and the fused image includes a foreground part and a background part, and the background part can include natural scenery, solid color background, illustrations, etc. Based on the solution of this embodiment, it can not only meet the image fusion of a single object; moreover, for the case where the number of object images is multiple, multiple object images can be fused into one fused image, realizing multi-object fusion, improving the application universality, and meeting the diverse and rich image effect requirements of users.

[0038] Figure 1 The following is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation of fusing at least one object image into a fused image to obtain a target image. This method can be executed by an image processing device, and the device can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, and the electronic device can be a mobile terminal, a PC terminal, a server, etc.

[0039] As Figure 1 shown, the method includes:

[0040] S110. Receive at least one object image of at least one displayed object in the image to be processed and object description information including at least one displayed object.

[0041] Among them, the image to be processed is an image containing the object image of the displayed object, and the displayed object is the object that needs to be displayed in the fused target image in the image to be processed; for example, when obtaining a user's portrait, the displayed object is the user who needs to be displayed in the user's portrait. The object image can correspond to the displayed object.

[0042] In this embodiment, the object image corresponds to at least one target part of the displayed object, or can also correspond to the whole displayed object. Exemplarily, when the displayed object is a person, the object image can correspond to at least one target part of the face, legs, abdomen, back, and feet, so as to reflect the characteristics of the target part of the displayed object through the object image and realize the fusion of the image of the target part of the displayed object. Or, the object image is an image corresponding to the whole person to complete the fusion of the image of the whole person. This embodiment makes the displayed object correspond to at least one target part, thus facilitating the fusion of the image corresponding to any part of the displayed object, improving the flexibility of the image processing process, and better meeting the user's needs.

[0043] In this embodiment, the object image can be an image of a display object from the same image to be processed, or an image of a display object from different images to be processed. That is to say, the number of images to be processed can be one or more.

[0044] Exemplarily, the image to be processed A contains object image 1, object image 2, and object image 3; the image to be processed B contains object image 4. In order to include object image 1, object image 2, object image 3, and object image 4 in the target image obtained after fusion, object image 1, object image 2, and object image 3 from the image to be processed A can be received, and object image 4 from the image to be processed B can be received, so as to generate a target image based on object image 1, object image 2, object image 3, and object image 4.

[0045] It should be noted that those skilled in the art can set the corresponding relationship between the object image and the image to be processed according to the actual application situation, and this embodiment does not make any limitation thereto. Exemplarily, for the scenario of a group photo of a large number of people, in order to better meet the actual needs of users, object images from different images to be processed can be received, and each object image can be fused onto the same image, thereby improving the convenience for users to obtain the group photo.

[0046] In this embodiment, the object description information includes data of at least one display object in at least one reference dimension, and in at least one reference dimension, the characteristics of the display object are described in detail and clearly.

[0047] Optionally, the reference dimension includes at least one of an object category dimension, a single object quantity dimension under different object categories, a total object quantity dimension, and a single object maturity dimension under different object categories. The data under each reference dimension can reflect the quantity distribution of the display object in this reference dimension.

[0048] Among them, the object category dimension is divided according to different types of display objects. For example, the object category dimension can divide the display objects into animals, people, and plants. The single object quantity dimension is used to reflect the quantity of a certain single object included in each object category. For example, when the object category is people, the single object quantity dimension can include the number of males and / or the number of females. The total object quantity dimension can be the total quantity of the display objects. The single object maturity dimension is used to reflect the maturity degree of a certain single object included in each object category; for example, when the object category dimension is people, the single object maturity dimension can be the age distribution range of people; when the object category dimension is trees, the single object maturity dimension can be the number of tree rings, and the number of tree rings is used to reflect the maturity degree of the tree.

[0049] This embodiment provides at least one reference dimension among the object category dimension, the single object quantity dimension under different object categories, the total object quantity dimension, and the single object maturity dimension under different object categories, so as to facilitate the object description information to comprehensively describe the display object from multiple different reference dimensions, which is beneficial to improving the accuracy when performing image fusion on the object image.

[0050] S120. Determine a target fusion image from at least one to-be-selected fusion image based on the object description information.

[0051] Among them, the to-be-selected fusion image is a base map provided in advance for fusing with the object image; the target fusion image is the finally determined image that needs to fuse the display object. It should be noted that the image to be processed can be a three-dimensional stereoscopic image or a two-dimensional planar image. To ensure that the obtained target image is more vivid and realistic after image fusion processing, the image type of the determined target fusion image needs to be consistent with that of the image to be processed. For example, if the image to be processed is a three-dimensional stereoscopic image, the target fusion image is also a three-dimensional stereoscopic image.

[0052] In this embodiment, based on the at least one reference dimension described by the object description information, the to-be-selected fusion image that matches the object image in this reference dimension can be determined as the target fusion image. Specifically, if the number of reference dimensions described by the object description information is one, only this unique reference dimension needs to be considered, and among the at least one to-be-selected fusion image, the to-be-selected fusion image that matches the object image in this reference dimension is determined as the target fusion image. If the number of reference dimensions described by the object description information is multiple, each reference dimension needs to be considered, and among the at least one to-be-selected fusion image, the to-be-selected fusion image that matches the object image in each reference dimension is determined as the target fusion image.

[0053] Exemplarily, when the reference dimension described by the object description information is the object category dimension, the to-be-selected fusion image that matches the object image in the object category dimension is determined as the target fusion image among the at least one to-be-selected fusion image. For example, if the object description information reflects that the total number of objects of the object category of people is 5, then an image that can fuse 5 people can be selected as the target fusion image among the at least one to-be-selected fusion image.

[0054] In this embodiment, determining a target fusion image from at least one to-be-selected fusion image based on the object description information includes: determining the fusion attribute between the object description information and the to-be-matched fusion information of the at least one to-be-selected fusion image; determining the target fusion information based on the fusion attribute, and using the to-be-selected fusion image corresponding to the target fusion information as the target fusion image.

[0055] Among them, the fusion information to be matched is determined by pre-processing the to-be-selected fusion image, including fusion object information and part key point information of at least one target part of the fusion object. The fusion object information includes data of at least one fusion object in at least one reference dimension. The fusion attribute is used to reflect the matching degree between the object description information and the fusion object information in the fusion information to be matched. Specifically, when the target part corresponds to the facial part, the part key point information includes the facial part key points of the fusion object.

[0056] To increase the selectable range of the target fusion image, the fusion attribute between the object description information and the fusion information to be matched of each to-be-selected fusion image can be determined. If the number of to-be-selected fusion images is large and it is time-consuming to determine the target fusion image, then a preset number of to-be-selected fusion images can be determined from the to-be-selected fusion images, and the fusion attribute between the fusion information to be matched of the selected to-be-selected fusion images and the object description information can be determined.

[0057] It should be noted that the higher the fusion attribute, the higher the matching degree between the object description information and the fusion information to be matched of this to-be-selected fusion image; on the contrary, it means that the matching degree between the object description information and the fusion information to be matched of this to-be-selected fusion image is lower. Since the object description information corresponds to the fusion object information, the matching degree between the object description information and the fusion information to be matched of this to-be-selected fusion image can be understood as: the matching degree between the object description information and the fusion object information of the fusion information to be matched of the to-be-selected fusion image.

[0058] To be able to determine the target fusion image that is most suitable for the object description information, based on the fusion attribute, the method for determining the target fusion information includes: determining the fusion information to be matched with the highest fusion attribute as the target fusion information. Or, among the fusion information to be matched whose corresponding value of the fusion attribute is greater than the preset threshold, any one of the fusion information to be matched is selected as the target fusion information. After determining the target fusion information, the to-be-selected fusion image corresponding to the target fusion information can be used as the target fusion image.

[0059] In this embodiment, by determining the fusion attribute, the target fusion image is determined, so that the matching degree between the object description information and the fusion information to be matched is considered when determining the target fusion image, which is beneficial to determining the target fusion image that is most suitable for the object description information.

[0060] In this embodiment, determining the fusion attribute between the object description information and the to-be-matched fusion information of at least one to-be-selected fusion image includes: determining the fusion attribute between at least one to-be-matched fusion information and the object description information by performing data similarity processing on the data under different reference dimensions in the object description information and at least one to-be-matched fusion information; correspondingly, determining the target fusion information based on the fusion attribute includes: if there are multiple fusion attributes that meet the preset conditions, determining the target fusion information based on the preset rules.

[0061] It should be noted that the reference dimension of the object description information corresponds to the fusion object information in the to-be-matched fusion information. In order to comprehensively and accurately determine the fusion attribute between the to-be-matched fusion information and the object description information, for each reference dimension in the to-be-matched fusion information, the fusion sub-attribute between the to-be-matched fusion information and the object description information can be determined respectively, so as to determine the fusion attribute based on the fusion sub-attribute.

[0062] Among them, the fusion sub-attribute is used to reflect the matching degree between the to-be-matched fusion information and the object description information under this reference dimension. Through the fusion sub-attribute, the fusion attribute between the object description information and the to-be-matched fusion information of at least one to-be-selected fusion image is determined under each reference dimension.

[0063] In a specific implementation, the way to determine the fusion sub-attribute can be to perform similarity processing on the data of the object description information and the to-be-matched fusion information under the current reference dimension for the current reference dimension, and determine the processing result used to reflect the matching degree as the fusion sub-attribute; based on the fusion sub-attribute corresponding to each reference dimension, determine the fusion attribute. Exemplarily, the fusion sub-attributes can be integrated to obtain the fusion attribute; or, any one of the fusion sub-attributes can be determined as the fusion attribute.

[0064] In this embodiment, if the fusion attribute is greater than the preset attribute value, it can be determined that the fusion attribute meets the preset conditions; or, the numerical values of the fusion attributes corresponding to each to-be-matched fusion information can be sorted in descending order, and the largest preset number of fusion attributes can be determined as the fusion attributes that meet the preset conditions.

[0065] In a specific implementation, if the number of fusion attributes that meet the preset conditions is multiple, then one of the to-be-matched fusion information corresponding to the fusion attributes that meet the preset conditions needs to be determined as the target fusion information according to the preset rules. Exemplarily, the specific implementation method of determining the target fusion information according to the preset rules can be: randomly selecting one of the to-be-matched fusion information corresponding to the fusion attributes that meet the preset conditions as the target fusion information; or, determining the to-be-matched fusion information with the largest numerical value of the fusion attribute as the target fusion information.

[0066] In this embodiment, for the case where there are multiple fusion attributes that meet the preset conditions, the target fusion information can be quickly determined according to the preset rules, which is beneficial to improving the image processing efficiency.

[0067] Further, the method further includes: if there is no fusion attribute that meets the preset conditions, then according to the priority of at least one preset reference dimension, the fusion attributes of at least one to-be-matched fusion image relative to the object description information are sequentially determined under the same reference dimension, so as to determine the target fusion information based on the fusion attributes.

[0068] In a specific implementation, if there is no fusion attribute that meets the preset conditions, in order to ensure that the target image is output to the user, the target fusion information can be determined based on the priority of at least one preset reference dimension. Among them, the priority is used to reflect the influence degree of each reference dimension on determining the target fusion information when determining the target fusion information. The higher the priority, the greater the influence of the reference dimension on the determined target fusion information; on the contrary, the smaller the influence.

[0069] Specifically, the fusion sub-attributes between the to-be-matched fusion information of at least one to-be-matched fusion image and the object description information can be sequentially determined under the reference dimension corresponding to the current priority in the order from high to low of the priority, and the fusion sub-attributes are determined as the fusion attributes of the object description information and the to-be-matched fusion information under the reference dimension.

[0070] After the fusion attributes corresponding to each reference dimension are respectively determined according to the priority, the reference dimensions are sorted in the order from high to low of the priority, and the fusion attributes that meet the preset dimension conditions under the first reference dimension are determined based on the sorting order. If the number of fusion attributes that meet the preset dimension conditions is 1, the to-be-matched fusion information corresponding to the fusion attribute can be determined as the target fusion information. Among them, the preset dimension condition is a condition for screening fusion attributes preset for each reference dimension. Exemplarily, the preset dimension condition corresponds to the preset condition.

[0071] Further, if the number of fusion attributes that meet the preset dimension conditions under the first reference dimension is multiple, the to-be-matched fusion information corresponding to the fusion attributes that meet the preset dimension conditions is determined as the alternative fusion information; then according to the sorting order, the fusion attributes that meet the preset dimension conditions under the remaining reference dimensions are respectively determined in the alternative fusion information. Finally, the alternative fusion information with the most fusion attributes that meet the preset dimension conditions is determined as the target fusion information.

[0072] Further, if there is no fusion attribute that satisfies the preset dimension condition under the first reference dimension, a fusion attribute that satisfies the preset dimension condition under the second reference dimension can be determined, and the corresponding to-be-matched fusion information is used as alternative fusion information, and the target fusion information is determined from the alternative fusion information. It should be noted that if there is no fusion attribute that satisfies the preset dimension condition under the second reference dimension, it can be determined in turn whether there is a fusion attribute that satisfies the preset dimension condition under the next reference dimension in descending order of priority until a fusion attribute that satisfies the preset dimension condition is determined.

[0073] To ensure the accuracy and effectiveness of the generated target image, in the case where it is determined that there is no fusion attribute that satisfies the preset condition, a prompt message can be generated and fed back to the user terminal to inform that if the image processing continues, there may be a situation where the maturity of the displayed object in the target image and the object category are incorrect. If the user terminal feeds back the information to continue processing, the target fusion information can be determined according to the above steps, and the target image is generated based on the target fusion information.

[0074] In this embodiment, for the case where there is no fusion attribute that satisfies the preset condition, the target fusion information can be determined based on the priority of the pre-set reference dimension, so as to ensure that the target image can be provided for the user; and a prompt message can also be generated and sent to the user terminal to prompt the existing risks and better meet the actual needs of the user.

[0075] S130. Based on the object description information and the target fusion information of the target fusion image, fuse the object image into the target fusion image to obtain the target image.

[0076] Among them, a fusion object is displayed in the target fusion image, and the fusion object information corresponds to the fusion object displayed in the target fusion image. The target fusion information includes the fusion object information of at least one fusion object in the target fusion image and the part key point information of at least one target part of the fusion object. The data of at least one fusion object in at least one reference dimension can be reflected by the fusion object information.

[0077] In this embodiment, the object description information corresponds to the fusion object information in the target fusion information, that is, the reference dimension described by the object description information matches the reference dimension described by the fusion object information. In a specific implementation, based on the object description information and the target fusion information of the target fusion image, the method of fusing the object image into the target fusion image may be: based on the object description information and the target fusion information of the target fusion image, determine whether the number of object images is consistent with the number of fusion objects in the target fusion image. If they are consistent, based on the data of each reference dimension described by the object description information and the fusion object information, determine the correspondence between the fusion objects displayed in the target fusion image and the display objects, and fuse the object image corresponding to each display object into the target fusion image according to this correspondence, and determine the target fusion image after fusing with the object image as the target image.

[0078] Alternatively, the method of fusing the object image into the target fusion image may be: when the number of object images is less than the number of fusion objects, fuse the object images with some of the fusion objects in the target fusion image to obtain the target image.

[0079] Specifically, some fusion objects with the same number as the object images can be randomly selected in the target fusion image as the target fusion objects, and the object images are fused with the selected target fusion objects. Alternatively, based on the data of each reference dimension described by the object description information and the fusion object information, determine the matching fusion objects that match the object images in the target fusion image, select the target fusion objects with the same number as the object images from the matching fusion objects, determine the correspondence between the display objects and the target fusion objects, and fuse each object image into the target fusion image based on this correspondence to obtain the target image.

[0080] In this embodiment, for the case where the number of object images is less than the number of fusion objects, a method for obtaining the target image is set, so that the target image can be effectively obtained for different situations, ensuring that the user's needs can be met.

[0081] Further, the method further includes: determining some of the fusion objects in the target fusion image for the object image according to a preset second fusion reference dimension.

[0082] Among them, the second fusion reference dimension may be at least one of an object category dimension, a single object quantity dimension under different object categories, a total object quantity dimension, and a single object maturity dimension under different object categories.

[0083] It should be noted that the second fusion reference dimension can be preset according to the importance degree of the target image in the fusion reference dimension, so that the object image can be determined according to the second fusion reference dimension. Specifically, at least one fusion object matching each object image in the target fusion image can be determined based on the second fusion reference dimension. Among the matching fusion objects, one fusion object is respectively selected as the target fusion object, and the partial fusion object is composed of the target fusion objects corresponding to each object image. It should be noted that there are no duplicate fusion objects in the selected target fusion objects.

[0084] In this embodiment, the second fusion reference dimension is preset, so that the factor of the second fusion reference dimension is considered when determining the partial fusion object, and the user's needs can be better met.

[0085] Alternatively, the method of fusing the object image into the target fusion image may be: if the number of fusion objects is less than the number of display objects, abnormal information may be generated and the abnormal information may be fed back to the user terminal to prompt that the number of object images exceeds the range and whether to continue the image processing operation.

[0086] The technical solution of the embodiment of the present disclosure is to receive the object images of at least one display object in the image to be processed and the object description information including at least one display object; determine the target fusion image from at least one to-be-selected fusion image based on the object description information; fuse the object image into the target fusion image based on the object description information and the target fusion information of the target fusion image to obtain the target image; wherein, the fusion object information in the object description information and the target fusion information corresponds; since the fusion object information corresponds to the fusion objects displayed in the target fusion image, it shows that there are fusion objects in the target fusion image. When obtaining the target image based on the object description information and the target fusion information, the single object can be fused into the target fusion image or multiple objects can be fused into the target fusion image based on the number of display objects included in the image to be processed, solving the problem in the prior art that only a single object can be fused, improving the application universality, and meeting the diverse and rich image effect requirements of users.

[0087] Figure 2 It is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure. On the basis of the foregoing embodiment, the fusion position of at least one display object in the target fusion image can be determined according to the object description information and the target fusion information. Further, the target image can be obtained based on the fusion position. The explanations of the same or corresponding terms as those in the above embodiments are not repeated here.

[0088] As Figure 2 shown, the method includes:

[0089] S210. Receive the object images of at least one display object in the image to be processed and the object description information including at least one display object.

[0090] S220. Determine the target fusion image from at least one to-be-selected fusion image based on the object description information.

[0091] In practical applications, in order to quickly determine the target fusion image during image fusion, it further includes: receiving the to-be-matched fusion information of at least one to-be-fused image, and generating a configuration file based on the to-be-matched fusion information, so as to determine the target fusion image from at least one to-be-selected fusion image based on the to-be-matched fusion information and the object description information in the configuration file.

[0092] In specific implementation, before determining the target fusion image, the to-be-matched fusion information of at least one to-be-fused image can be determined. Wherein, the to-be-fused image is an image used for fusion processing with the object image; for example, it is a landscape background image, a science fiction background image, etc. The to-be-matched fusion information includes fusion object information and part key point information of at least one target part of the fusion object. The fusion object information includes data of at least one fusion object in at least one reference dimension. Exemplarily, when the target part is the face, the part key point information may include position information such as the tip of the nose position, the center of the eyebrows position, the corners of the mouth position, the eyes position, and the ears position of the face. The fusion object information can be consistent with the reference dimension described in the object description information. Exemplarily, when the object description information describes the data of the display object in the object category dimension, the fusion object information can also describe the data of the fusion object in the object category dimension.

[0093] In this embodiment, at least one to-be-fused image can be received, and the to-be-fused image is detected based on the part detection algorithm to determine the to-be-matched fusion information. Exemplarily, when the fusion object is a human face, the to-be-matched fusion information may include information such as the maturity of the face and the total number of faces; it also includes the part key point information of the face.

[0094] Specifically, the determined to-be-matched fusion information can be written, and the file written with the to-be-matched fusion information is determined as the configuration file. Further, the configuration file can also be compressed and packaged, and the configuration file is updated based on the file obtained after compression and packaging. When determining the target fusion image, the to-be-matched fusion information in the configuration file can be called, and the to-be-selected fusion image corresponding to the to-be-matched fusion information that matches the object description information is determined as the target fusion image. In this embodiment, directly determining the target fusion image based on the to-be-matched fusion information and the object description information in the configuration file without re-detecting each to-be-fused image is beneficial to improving the speed of generating the target image.

[0095] S230. Determine the fusion positions of at least one display object in the target fusion image based on the object description information and the target fusion information; and fuse the object image of the display object to the fusion positions according to the part key point information of the fusion object in the target fusion information to obtain the target image.

[0096] In a specific implementation, in order to make the target image more compliant with the distribution requirements of the display object during image fusion, the method for determining the fusion positions may include: determining the fusion positions of at least one display object in the target fusion image based on the object description information, the target fusion information, and the object information of the display object; where the object information includes information such as object category and object maturity.

[0097] When determining the fusion positions, for each display object, a preset image processing method for fusing a single object can be used for determination. Further, according to the correspondence between the fusion object and the fusion positions in the target fusion image, determine the part key point information corresponding to each fusion position, perform an alignment operation on the object image of the display object based on the part key point information, and fuse the aligned object image to the corresponding fusion position to obtain the target image.

[0098] Exemplarily, when the display object is a face, for each face to be fused, determine the fusion position corresponding to the face to be fused in the target fusion image, and based on the face key point information corresponding to each fusion position, adjust the part key points such as the nose, mouth, eyes, eyebrows, and ears in the face image to be fused, so that the key point positions in the adjusted face image are consistent with the part key point information of the corresponding fusion position, and fuse the adjusted face image to the corresponding fusion position. After the image fusion operation is completed for all faces, the target image is obtained.

[0099] In this embodiment, through the object description information and the target fusion information, the fusion positions of at least one display object in the target fusion image can be quickly determined; and the object image to be fused is adjusted according to the part key point information, so as to ensure that the object image can be fused according to the key point requirements of the target fusion image, which is beneficial to improving the aesthetics of the target image after the object image fusion operation and enhancing the user experience.

[0100] In practical applications, for different reference dimensions, the determined fusion positions for the same object image may be different. To better meet the user's needs, determining the fusion positions of at least one display object in the target fusion image based on the object description information and the target fusion information includes: determining the fusion position of the object image in the target fusion image according to the preset first fusion reference dimension, the object description information, and the target fusion information.

[0101] Among them, the first fusion reference dimension corresponds to the object category dimension.

[0102] In a specific implementation, through the preset first fusion reference dimension, the object category of the display object to be fused into the target fusion image can be determined. Exemplarily, if the first fusion reference dimension is a person, then the object images of the display objects belonging to the person can be fused into the target fusion image. Specifically, based on the preset first fusion reference dimension, the first data corresponding to the first fusion reference dimension in the object description information and the second data corresponding to the first fusion reference dimension in the target fusion information can be determined, and the fusion position of the object image in the target fusion image can be determined based on the first data and the second data. Exemplarily, when the first fusion reference dimension is a person, the first data is the total number of person images in the object image, and the total number can be 5, and the second data is the total number of person images in the fusion image, and the total number can be greater than or equal to 5, then any 5 positions in the positions corresponding to the fusion image can be selected as the fusion positions corresponding to the object images.

[0103] In this embodiment, by presetting the first fusion reference dimension and determining the fusion position based on the first fusion reference dimension, the personalized needs of users can be better met.

[0104] The corresponding embodiments of the image processing method are described in detail above. In order to make those skilled in the art further clear the technical solution of this method, the following specifically describes the scenario of fusing facial images.

[0105] In this embodiment, the target part corresponds to the facial part, the object image corresponds to the facial image of the display object, the part key point information includes the facial part key points of the fusion object, the background information of the target fusion image is different from the background information of the image to be processed, and the to-be-matched fusion image corresponds to different style types.

[0106] Among them, the background information is used to represent the information of the remaining image in the image except the display object. The to-be-matched fusion image corresponds to different style types. For example, the style types of the to-be-matched fusion image include solid color type, landscape type, science fiction type, and anime type, etc.

[0107] For a clearer and more detailed description of the processing process of facial image fusion, reference can be made to Figure 3。The method provided in this embodiment can be applied to the server. In a specific implementation, in order to improve the image processing performance, a configuration file can be pre-generated before performing image fusion on the facial image. Specifically, at least one image to be fused is pre-stored; through a part detection algorithm, image information such as the maturity, object category, and key point positions corresponding to each facial image in each image to be fused is determined. Exemplarily, for each facial image, 106 key point positions can be determined; for example, it can include the tip of the nose position, the center of the eyebrows position, the corners of the mouth position, etc. Based on the determined information such as maturity, object category, and key point positions, image data such as the number of people in each image to be fused, the number of people corresponding to each object category, and the maturity distribution quantity can be determined. For example, the maturity distribution quantity includes the number of teenagers, the number of middle-aged people, and the number of elderly people. Further, under the reference dimension of each object category, it can also be arranged in ascending order of maturity. The determined image information and image data can be written into the configuration file, and the image to be fused can be used as the image to be selected for fusion, compressed and packaged, and then transferred and stored to obtain an image package. Thus, in the subsequent multi-facial fusion matching process, the image information and image data in the configuration file can be directly used without using the part detection algorithm again, greatly improving the speed of image generation.

[0108] In practical applications, after receiving the facial image and the corresponding object description information sent by the user terminal for image fusion, the target fusion image matching the object description information can be determined from the images to be selected for fusion through an image retrieval and matching algorithm. It should be noted that if the number of images to be selected for fusion matching the object description information is multiple, one image to be selected for fusion can be randomly selected and determined as the target fusion image, and information such as the object category and facial key points of the fusion object in the target fusion image is obtained. Using the part fusion algorithm, object category, and facial key points, the facial image to be fused is made to correspond one by one with the facial key points in the target fusion image, and an image fusion operation is performed to obtain a target image.

[0109] In a specific implementation, if the number of facial images to be fused is multiple, the above method can be used to loop through the images corresponding to each fusion object in the target fusion image multiple times to implement the fusion operation between multiple facial images and the target fusion image.

[0110] This embodiment can correspond the target part to the facial part and the object image to the facial image of the display object, so as to fuse the facial image with the target fusion image to achieve the effect of facial fusion. By pre-generating a matching file, it is beneficial to improve the performance of image processing; and it realizes fusing a single object or multiple objects into the target fusion image, improving the application universality and meeting the diverse and rich image effect requirements of users.

[0111] Figure 4 is another schematic flowchart of an image processing method provided by an embodiment of the present disclosure. As Figure 4 shown, the device includes: an image receiving module 410, a target fusion image determining module 420, and an object image fusion module 430.

[0112] The image receiving module 410 is configured to receive object images of at least one display object in the image to be processed and object description information including at least one display object.

[0113] The target fusion image determining module 420 is configured to determine a target fusion image from at least one to-be-selected fusion image based on the object description information.

[0114] The object image fusion module 430 is configured to fuse the object image into the target fusion image based on the object description information and the target fusion information of the target fusion image to obtain a target image.

[0115] Wherein, the fusion object information in the object description information and the target fusion information corresponds, and the fusion object information corresponds to the fusion object displayed in the target fusion image.

[0116] Based on the above optional technical solutions, optionally, it further includes:

[0117] A configuration file generating module, configured to receive to-be-matched fusion information of at least one to-be-fused image and generate a configuration file based on the to-be-matched fusion information, so as to determine a target fusion image from at least one to-be-selected fusion image based on the to-be-matched fusion information and the object description information in the configuration file.

[0118] Based on the above optional technical solutions, optionally, the object image corresponds to at least one target part of the display object, the object description information includes data of at least one display object in at least one reference dimension, the to-be-matched fusion information includes fusion object information and part key point information of at least one target part of the fusion object, and the fusion object information includes data of at least one fusion object in at least one reference dimension.

[0119] Based on the above optional technical solutions, optionally, the reference dimension includes at least one of an object category dimension, a single object quantity dimension under different object categories, a total object quantity dimension, and a single object maturity dimension under different object categories.

[0120] Based on the above optional technical solutions, optionally, the target fusion image determining module 420 includes:

[0121] A fusion attribute determination sub-module, configured to determine a fusion attribute between object description information and to-be-matched fusion information of at least one to-be-selected fusion image; wherein, the to-be-matched fusion information is determined by processing the to-be-selected fusion image in advance.

[0122] A target fusion information determination sub-module, configured to determine target fusion information based on the fusion attribute, and use the to-be-selected fusion image corresponding to the target fusion information as the target fusion image.

[0123] Wherein, the to-be-matched fusion information includes fusion object information of at least one fusion object in the to-be-selected fusion image.

[0124] Based on the above optional technical solutions, optionally, the fusion attribute determination sub-module includes:

[0125] A fusion attribute determination unit, configured to determine a fusion attribute between at least one to-be-matched fusion information and object description information by performing data similarity processing on the object description information and the to-be-matched fusion information under different reference dimensions.

[0126] Correspondingly, the target fusion information determination sub-module includes:

[0127] A first target fusion information determination unit, configured to, if there are multiple fusion attributes that meet the preset conditions, determine the target fusion information based on the preset rules.

[0128] Based on the above optional technical solutions, optionally, it further includes:

[0129] A second target fusion information determination unit, configured to, if there is no fusion attribute that meets the preset conditions, determine the fusion attributes of at least one to-be-selected fusion image relative to the object description information under the same reference dimension in sequence according to the priority of at least one preset reference dimension, so as to determine the target fusion information based on the fusion attributes.

[0130] Based on the above optional technical solutions, optionally, the object image fusion module 430 includes:

[0131] A fusion position determination sub-module, configured to determine the fusion positions of at least one display object in the target fusion image according to the object description information and the target fusion information.

[0132] An image fusion sub-module, configured to fuse the object image of the display object to the fusion positions according to the part key point information of the fusion object in the target fusion information to obtain the target image.

[0133] Based on the above optional technical solutions, optionally, the fusion position determination sub-module includes:

[0134] A fusion position determination unit, configured to determine the fusion position of the object image in the target fusion image according to a preset first fusion reference dimension, object description information, and target fusion information;

[0135] Wherein, the first fusion reference dimension corresponds to the object category dimension.

[0136] Based on the above optional technical solutions, optionally, the object image fusion module 430 includes:

[0137] A fusion sub-module, configured to fuse the object image with some of the fusion objects in the target fusion image to obtain a target image when the number of object images is less than the number of fusion objects.

[0138] Based on the above optional technical solutions, optionally, the fusion sub-module is further configured to determine some of the fusion objects of the object image in the target fusion image according to a preset second fusion reference dimension.

[0139] Based on the above optional technical solutions, optionally, the target part corresponds to the facial part, the object image corresponds to the facial image of the display object, the part key point information includes the facial part key points of the fusion object, the background information of the target fusion image is different from the background information of the image to be processed, and the to-be-matched fusion image corresponds to different style types.

[0140] The technical solution provided by the embodiments of the present disclosure receives the object images of at least one display object in the image to be processed and the object description information including at least one display object; determines the target fusion image from at least one to-be-selected fusion image based on the object description information; fuses the object image into the target fusion image based on the object description information and the target fusion information of the target fusion image to obtain a target image; wherein, the fusion object information in the object description information and the target fusion information corresponds; since the fusion object information corresponds to the fusion objects displayed in the target fusion image, it shows that there are fusion objects in the target fusion image. When obtaining the target image based on the object description information and the target fusion information, it is possible to fuse a single object into the target fusion image or fuse multiple objects into the target fusion image based on the number of display objects included in the image to be processed, solving the problem in the prior art that only a single object can be fused, improving the application universality, and meeting the diverse and rich image effect requirements of users.

[0141] The image processing device provided by the embodiments of the present disclosure can execute the image processing method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the method.

[0142] It should be noted that the various units and modules included in the above device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the embodiments of the present disclosure.

[0143] Figure 5 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. The following refers to Figure 5 , which shows a schematic structural diagram of an electronic device (such as a Figure 5 terminal device or a server in) 500 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.

[0144] As Figure 5 shown, the electronic device 500 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 501, which may perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage device 508 into the random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. The editing / output (I / O) interface 505 is also connected to the bus 504.

[0145] Generally, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 5 shows the electronic device 500 having various devices, it should be understood that it is not required to implement or have all the shown devices. More or fewer devices may be alternatively implemented or had.

[0146] In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present disclosure includes a computer program product that includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program code for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above functions defined in the method of the embodiment of the present disclosure are performed.

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

[0148] The electronic device provided in the embodiment of the present disclosure and the image processing method provided in the above embodiment belong to the same concept. Technical details not described in detail in this embodiment can be referred to in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0149] The embodiment of the present disclosure provides a computer storage medium, on which a computer program is stored, and when the program is executed by a processor, the image processing method provided in the above embodiment is implemented.

[0150] It should be noted that the computer-readable medium described above can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0151] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0152] The above computer-readable medium can be included in the above electronic device; or it can exist separately without being assembled into the electronic device.

[0153] The above computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is caused to:

[0154] The above computer-readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receive an object image of at least one display object in the image to be processed and object description information including at least one display object; determine a target fusion image from at least one fusion image to be selected based on the object description information; fuse the object image into the target fusion image based on the object description information and target fusion information of the target fusion image to obtain a target image; wherein, the fusion object information in the object description information corresponds to the target fusion information, and the fusion object information corresponds to the fusion object displayed in the target fusion image.

[0155] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, execute as a stand-alone software package, execute partially on the user's computer and partially on a remote computer, or execute entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0156] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0157] The units involved in the embodiments of the present disclosure can be implemented in software or in hardware. Among them, the name of the unit does not constitute a limitation to the unit itself in some cases. For example, the first acquisition unit can also be described as "the unit for acquiring at least two Internet protocol addresses".

[0158] The functions described above in this article can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), and so on.

[0159] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard disks, Random Access Memory (RAM), Read Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM or Flash Memory), optical fibers, portable compact disc read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0160] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with other technical features (but not limited to) having similar functions disclosed in the present disclosure.

[0161] Moreover, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in a sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the foregoing discussion, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.

[0162] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. An image processing method, characterized in that, Including: Receiving an object image of at least one display object in the image to be processed and object description information including the at least one display object; Determining a target fusion image from at least one fusion image to be selected based on the object description information; Fusing the object image into the target fusion image based on the object description information and target fusion information of the target fusion image to obtain a target image; Wherein, the fusion object information in the object description information and the target fusion information corresponds, and the fusion object information corresponds to the fusion object displayed in the target fusion image.

2. The method according to claim 1, characterized in that, The method further includes: Receiving the to-be-matched fusion information of the at least one fusion image to be fused, and generating a configuration file based on the to-be-matched fusion information, so as to determine a target fusion image from at least one fusion image to be selected based on the to-be-matched fusion information and the object description information in the configuration file.

3. The method according to claim 1 or 2, characterized in that, The object image corresponds to at least one target part of the display object, the object description information includes data of the at least one display object in at least one reference dimension, the to-be-matched fusion information includes fusion object information and part key point information of at least one target part of the fusion object, and the fusion object information includes data of the at least one fusion object in the at least one reference dimension.

4. The method according to claim 3, wherein The reference dimension includes at least one of an object category dimension, a single object quantity dimension under different object categories, a total object quantity dimension, and a single object maturity dimension under different object categories.

5. The method according to claim 3, wherein The determining a target fusion image from at least one fusion image to be selected based on the object description information includes: Determining a fusion attribute between the object description information and the to-be-matched fusion information of the at least one fusion image to be selected; wherein, the to-be-matched fusion information is determined after pre-processing the fusion image to be selected; Based on the fusion attribute, determining the target fusion information, and using the fusion image to be selected corresponding to the target fusion information as the target fusion image; Wherein, the to-be-matched fusion information includes fusion object information of at least one fusion object in the fusion image to be selected.

6. The method according to claim 5, characterized in that, The determining the fusion attribute between the object description information and the to-be-matched fusion information of the at least one fusion image to be selected includes: Determining at least one fusion attribute between the to-be-matched fusion information and the object description information by performing data similarity processing on the data in different reference dimensions of the object description information and at least one of the to-be-matched fusion information; Correspondingly, the determining the target fusion information based on the fusion attribute includes: If there are multiple fusion attributes that meet the preset conditions, determining the target fusion information based on the preset rules.

7. The method according to claim 6, characterized in that, The method further includes: If there is no fusion attribute that meets the preset conditions, determining in sequence the fusion attributes of the at least one fusion image to be selected relative to the object description information in the same reference dimension according to the priority of at least one pre-set reference dimension, so as to determine the target fusion information based on the fusion attribute.

8. The method according to claim 1, characterized in that, Fusing the object image into the target fusion image based on the object description information and the target fusion information of the target fusion image to obtain a target image, including: Determining the fusion position of the at least one display object in the target fusion image according to the object description information and the target fusion information; Fusing the object image of the display object to the fusion position according to the part key point information of the fusion object in the target fusion information to obtain the target image.

9. The method according to claim 8, wherein The determining the fusion position of the at least one display object in the target fusion image according to the object description information and the target fusion information includes: Determining the fusion position of the object image in the target fusion image according to a preset first fusion reference dimension, the object description information and the target fusion information; Wherein, the first fusion reference dimension corresponds to the object category dimension.

10. The method according to claim 1, wherein The fusing the object image into the target fusion image to obtain a target image includes: When the number of the object images is less than the number of the fusion objects, fusing the object images with some of the fusion objects in the target fusion image to obtain the target image.

11. The method according to claim 10, characterized in that, It further includes: Determining some of the fusion objects of the object image in the target fusion image according to a preset second fusion reference dimension.

12. The method according to claim 3, characterized in that, The target part corresponds to the facial part, the object image corresponds to the facial image of the display object, the part key point information includes the facial part key points of the fusion object, the background information of the target fusion image is different from the background information of the image to be processed, and the image to be matched and fused corresponds to different style types.

13. An image processing apparatus, characterized in that, It includes: An image receiving module, configured to receive the object images of at least one display object in the image to be processed and the object description information including the at least one display object; A target fusion image determining module, configured to determine a target fusion image from at least one to-be-selected fusion image based on the object description information; An object image fusion module, configured to fuse the object image into the target fusion image based on the object description information and the target fusion information of the target fusion image to obtain a target image; Wherein, the fusion object information in the object description information and the target fusion information corresponds, and the fusion object information corresponds to the fusion object displayed in the target fusion image.

14. An electronic device, characterized in that, The electronic device includes: One or more processors; A storage device, configured to store one or more programs, When the one or more programs are executed by the one or more processors, enabling the one or more processors to implement the image processing method according to any one of claims 1-12.

15. A storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute the image processing method according to any one of claims 1-12 when executed by a computer processor.