Image processing method and apparatus, and electronic device and storage medium
By using image receiving and fusion processing methods, the problem of single-object fusion in existing technologies has been solved, and multi-object fusion has been achieved to meet users' diverse image effect needs.
Patent Information
- Application Number
- PCT/CN2024/138114
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-10
- Filing Date
- 2024-12-10
- Publication Date
- 2025-10-30
AI Technical Summary
Existing technologies can only achieve single-object fusion, limiting their application scenarios and failing to meet users' diverse and rich image effect needs.
By receiving the object image and its description information of at least one displayed object in the image to be processed, a target fusion image is determined from multiple images to be selected for fusion, and the object image is fused into the target fusion image based on the object description information and the target fusion information, thereby achieving multi-object fusion.
It improves the flexibility and applicability of image processing, meeting users' diverse and rich image effect needs.
Smart Images

Figure CN2024138114_30102025_PF_FP_ABST
Abstract
Description
Image processing methods, apparatus, electronic devices and storage media
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese Patent Application No. 202410039053.8, filed on January 10, 2024, entitled "Image Processing Method, Apparatus, Electronic Device and Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This disclosure relates to image processing technology, and more particularly to an image processing method, apparatus, electronic device, and storage medium. Background Technology
[0004] With the development of information technology, the application of image processing technology has become increasingly widespread. Image processing technology can create photos with different backgrounds to provide users with different photo effects. Summary of the Invention
[0005] This disclosure provides an image processing method, apparatus, electronic device, and storage medium to meet the diverse and rich image effect needs of users.
[0006] In a first aspect, embodiments of this disclosure provide an image processing method, including:
[0007] Receive an object image of at least one display object in an image to be processed, and object description information including the at least one display object;
[0008] Based on the object description information, a target fusion image is determined from at least one candidate fusion image;
[0009] Based on the object description information and the target fusion information of the target fusion image, the object image is fused into the target fusion image to obtain the target image;
[0010] The object description information and the fusion object information in the target fusion information correspond to the fusion object displayed in the target fusion image.
[0011] Secondly, embodiments of this disclosure also provide an image processing apparatus, the apparatus comprising:
[0012] The image receiving module is used to receive 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;
[0013] A target fusion image determination module is used to determine a target fusion image from at least one candidate fusion image based on the object description information.
[0014] An object image fusion module is used 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;
[0015] The object description information and the fusion object information in the target fusion information correspond to the fusion object displayed in the target fusion image.
[0016] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:
[0017] At least one processor; and
[0018] A memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform any of the image processing methods described in the embodiments of this disclosure.
[0020] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing computer instructions that cause a processor to execute and implement any of the image processing methods described in the embodiments of this disclosure.
[0021] In this embodiment of the disclosure, an object image of at least one display object in an image to be processed and object description information including at least one display object are received; a target fusion image is determined from at least one selectable fusion image based on the object description information; and the object image is fused 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 to the fusion object displayed in the target fusion image. Attached Figure Description
[0022] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. 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 the originals and elements are not necessarily drawn to scale.
[0023] Figure 1 is a schematic flowchart of an image processing method provided in an embodiment of this disclosure;
[0024] Figure 2 is a schematic flowchart of an image processing method provided in an embodiment of this disclosure;
[0025] Figure 3 is a schematic flowchart of an image processing method provided in an embodiment of this disclosure;
[0026] Figure 4 is a schematic diagram of the structure of an image processing device provided in an embodiment of this disclosure;
[0027] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0028] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0029] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0030] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "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". Definitions of other terms will be given in the description below.
[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0032] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0033] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0034] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0035] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0036] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0037] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0038] In related technologies, image processing techniques are typically applied to single-object fusion, that is, creating photos of a single object with different background images. However, these technologies suffer from at least the following technical problems: because they can only perform single-object fusion, their application scenarios are limited, and they cannot meet users' diverse and rich image effect needs.
[0039] Before introducing the technical solution, an exemplary application scenario can be provided. This technical solution can be applied to scenarios where at least one object image is fused into a fused image displaying at least one fused object. This technical solution enables multi-object fusion, resulting in a target image containing image information of at least one object image and image information of the fused image. For example, the object image can be a partial image of an object, a partial image of a person, or a partial image of an animal; at least one object image can be fused into the fused image, which includes a foreground portion and a background portion. The background portion can include natural scenery, a solid color background, and illustrations, etc. Based on this embodiment, the solution not only satisfies the image fusion requirement for a single object, but also, when there are multiple object images, multiple object images can be fused into a single fused image, achieving multi-object fusion, improving application versatility, and meeting users' diverse and rich image effect needs.
[0040] Figure 1 is a schematic flowchart of an image processing method provided in an embodiment of this disclosure. This embodiment is applicable to situations where at least one object image is fused into a fused image to obtain a target image. The method can be executed by an image processing device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server.
[0041] As shown in Figure 1, the method includes:
[0042] S110, 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.
[0043] In this context, the image to be processed is an image containing an object image of the display object, and the display object is the object in the image to be processed that needs to be displayed in the merged target image; for example, when obtaining a user portrait, the display object is the user that needs to be displayed in the user portrait. The object image can correspond to the display object.
[0044] In this embodiment, the object image corresponds to at least one target part of the displayed object, or it can correspond to the entire displayed object. For example, if 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, thereby reflecting the characteristics of the target parts of the displayed object and achieving image fusion of the target parts. Alternatively, the object image can correspond to the entire person, thus completing the image fusion of the entire person. This embodiment assigns the displayed object to at least one target part, facilitating the fusion of images corresponding to any part of the displayed object, improving the flexibility of the image processing process, and better meeting user needs.
[0045] In this embodiment, the object image can be an image of a display object from the same image to be processed, or it can be an image of a display object from different images to be processed. In other words, the number of images to be processed can be one or more.
[0046] For example, image A to be processed contains object image 1, object image 2 and object image 3; image B to be processed 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 image A to be processed can be received, and object image 4 from image B to be processed can be received, so as to generate the target image based on object image 1, object image 2, object image 3 and object image 4.
[0047] It should be noted that those skilled in the art can set the correspondence between the object image and the image to be processed according to the actual application, and this embodiment does not limit this. For example, in 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 merged into the same image, thereby improving the convenience for users to obtain group photos.
[0048] In this embodiment, the object description information includes data of at least one display object in at least one reference dimension, and the characteristics of the display object are described in detail and clearly in at least one reference dimension.
[0049] Optionally, the reference dimensions may include at least one of the following: object category dimension, number of individual objects under different object categories, total number of objects dimension, and maturity of individual objects under different object categories. The data under each reference dimension reflects the distribution of the number of objects displayed under that reference dimension.
[0050] The object category dimension is divided according to the different types of displayed objects. For example, the object category dimension can divide displayed objects into animals, people, and plants. The single object quantity dimension reflects the quantity of a single object contained in each object category. For example, if the object category is people, the single object quantity dimension can include the number of males and / or females. The total object quantity dimension can be the total number of displayed objects. The single object maturity dimension reflects the maturity level of a single object contained 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, using the number of tree rings to reflect the maturity level of the tree.
[0051] This embodiment provides at least one reference dimension among the following: object category dimension, number of single objects under different object categories, total number of objects dimension, and maturity of single objects under different object categories. This facilitates the comprehensive description of the displayed object from multiple different reference dimensions, which helps improve the accuracy of image fusion of object images.
[0052] S120. Based on object description information, determine the target fusion image from at least one candidate fusion image.
[0053] The image to be fused is a pre-provided base image used for fusion with the object image; the target image to be fused is the final image of the object to be displayed. It should be noted that the image to be processed can be a 3D image or a 2D image. To ensure that the target image obtained after image fusion is more vivid and realistic, the image type of the determined target image to be fused must be consistent with that of the image to be processed. For example, if the image to be processed is a 3D image, then the target image to be fused must also be a 3D image.
[0054] In this embodiment, based on at least one reference dimension described by the object description information, the candidate fusion image that matches the object image under that reference dimension can be determined as the target fusion image. Specifically, if the object description information describes only one reference dimension, then only that single reference dimension needs to be considered, and among the at least candidate fusion images, the candidate fusion image that matches the object image under that reference dimension is determined as the target fusion image. If the object description information describes multiple reference dimensions, each reference dimension needs to be considered, and among the at least candidate fusion images, the candidate fusion image that matches the object image under each reference dimension is determined as the target fusion image.
[0055] For example, when the reference dimension described by the object description information is the object category dimension, the target fusion image is determined from at least one candidate fusion image that matches the object image in the object category dimension. For instance, if the object description information reflects that the total number of objects in the category of "people" is 5, then an image that can be fused with 5 people can be selected from at least one candidate fusion image as the target fusion image.
[0056] In this embodiment, determining a target fusion image from at least one candidate fusion image based on object description information includes: determining the fusion attribute between the object description information and the matching fusion information of at least one candidate fusion image; determining the target fusion information based on the fusion attribute, and using the candidate fusion image corresponding to the target fusion information as the target fusion image.
[0057] The fusion information to be matched is determined in advance after processing the selected images to be fused. It includes fusion object information and 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 attributes are used to reflect the degree of matching between the object description information and the fusion object information in the fusion information to be matched. Specifically, when the target part corresponds to a facial part, the key point information includes the facial key points of the fusion object.
[0058] To increase the selectable range of target fusion images, the fusion attributes between object description information and the matching fusion information of each candidate fusion image can be determined. If the number of candidate fusion images is large and determining the target fusion image is time-consuming, a preset number of candidate fusion images can be determined from the candidate fusion images, and the fusion attributes between the matching fusion information of the selected candidate fusion images and the object description information can be determined.
[0059] It should be noted that a higher fusion attribute indicates a higher degree of matching between the object description information and the matching fusion information of the selected fusion image; conversely, a lower attribute indicates a lower degree of matching. Since the object description information and the fusion object information correspond, the degree of matching between the object description information and the matching fusion information of the selected fusion image can be understood as the degree of matching between the object description information and the fusion object information of the selected fusion image.
[0060] To determine the target fused image that best matches the object description information, the target fused information can be determined based on fusion attributes. This can be done by: selecting the fused information with the highest fusion attribute as the target fused information; or, arbitrarily selecting one fused information from those whose fusion attribute values are greater than a preset threshold as the target fused information. After determining the target fused information, the selected fused image corresponding to that target fused information can be used as the target fused image.
[0061] This embodiment determines the target fused image by determining the fusion attributes. Therefore, when determining the target fused image, the degree of matching between the object description information and the fusion information to be matched is taken into account, which is beneficial to determining the target fused image that best matches the object description information.
[0062] In this embodiment, determining the fusion attribute between object description information and at least one matching fusion information of a candidate fusion image includes: determining the fusion attribute between at least one matching fusion information and object description information by performing data similarity processing on the object description information and at least one matching fusion information under different reference dimensions; correspondingly, determining the target fusion information based on the fusion attribute includes: if there are multiple fusion attributes that meet preset conditions, then determining the target fusion information based on preset rules.
[0063] It should be noted that the reference dimensions of the object description information and the fusion object information in the information to be matched and fused correspond to each other. In order to comprehensively and accurately determine the fusion attributes between the information to be matched and fused and the object description information, the fusion sub-attributes between the information to be matched and the object description information can be determined for each reference dimension in the information to be matched and fused, so as to determine the fusion attributes based on the fusion sub-attributes.
[0064] The fusion sub-attribute reflects the degree of matching between the fusion information to be matched and the object description information under that reference dimension. The fusion sub-attribute determines the fusion properties between the object description information and the fusion information to be matched of at least one selected fusion image under each reference dimension.
[0065] In practical implementation, the method for determining the fusion sub-attribute can be as follows: for the current reference dimension, perform similarity processing on the object description information and the data to be matched and fused under the current reference dimension, and determine the processing result that reflects the degree of matching as the fusion sub-attribute; based on the fusion sub-attribute corresponding to each reference dimension, determine the fusion attribute. For example, each fusion sub-attribute can be integrated to obtain the fusion attribute; or, any fusion sub-attribute can be determined as the fusion attribute.
[0066] 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 condition; or, the values of the fusion attributes corresponding to each fusion information to be matched can be sorted in descending order, and the fusion attribute with the largest number of preset attributes can be determined as the fusion attribute that meets the preset condition.
[0067] In practical implementation, if there are multiple fusion attributes that meet the preset conditions, then one of the fusion attributes corresponding to the fusion attributes that meet the preset conditions must be determined as the target fusion information according to the preset rules. For example, the specific implementation of determining the target fusion information according to the preset rules can be as follows: randomly select one of the fusion attributes corresponding to the fusion attributes that meet the preset conditions as the target fusion information; or, determine the fusion attribute with the largest value as the target fusion information.
[0068] In this embodiment, when there are multiple fusion attributes that meet preset conditions, the target fusion information can be quickly determined according to preset rules, which is beneficial to improving image processing efficiency.
[0069] Furthermore, the method also includes: if there is no fusion attribute that meets the preset conditions, then according to the priority of at least one preset reference dimension, sequentially determine the fusion attribute of at least one image to be matched and fused relative to the object description information under the same reference dimension, so as to determine the target fusion information based on the fusion attribute.
[0070] In practical implementation, if no fusion attribute 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 pre-set reference dimension. The priority reflects the degree of influence of each reference dimension on the determination of the target fusion information; a higher priority indicates a greater influence of that reference dimension on the determined target fusion information, and vice versa.
[0071] Specifically, in descending order of priority, the fusion sub-attributes between the fusion information to be matched and the object description information of at least one image to be matched and fused under the reference dimension corresponding to the current priority can be determined sequentially, and the fusion sub-attributes can be determined as the fusion attributes between the object description information and the fusion information to be matched and fused under that reference dimension.
[0072] After determining the fusion attributes corresponding to each reference dimension according to priority, the reference dimensions are sorted in descending order of priority. Based on the sorting order, fusion attributes that satisfy the preset dimension conditions of the first reference dimension are determined. If there is only one fusion attribute that satisfies the preset dimension conditions, the fusion information to be matched corresponding to that fusion attribute can be determined as the target fusion information. The preset dimension conditions are the pre-defined criteria for filtering fusion attributes for each reference dimension. For example, the preset dimension conditions correspond to the preset conditions.
[0073] Furthermore, if there are multiple fusion attributes that satisfy the preset dimension conditions under the first reference dimension, the fusion information to be matched corresponding to the fusion attributes that satisfy the preset dimension conditions is determined as candidate fusion information; then, according to the sorting order, the fusion attributes that satisfy the preset dimension conditions under the remaining reference dimensions are determined respectively among the candidate fusion information; finally, the candidate fusion information with the most fusion attributes that satisfy the preset dimension conditions is determined as the target fusion information.
[0074] Furthermore, if no fusion attribute satisfies the preset dimension conditions under the first reference dimension, then a fusion attribute satisfying the preset dimension conditions under the second reference dimension can be identified. The corresponding fusion information to be matched is then used as candidate fusion information, and the target fusion information is determined from among these candidate fusion information. It should be noted that if no fusion attribute satisfies the preset dimension conditions under the second reference dimension, the existence of a fusion attribute satisfying the preset dimension conditions under the next reference dimension can be determined sequentially in descending order of priority, until a fusion attribute satisfying the preset dimension conditions is identified.
[0075] To ensure the accuracy and effectiveness of the generated target image, if it is determined that no fusion attribute meets the preset conditions, a prompt message can be generated and fed back to the user. This message informs the user that if image processing continues, errors may occur in the maturity and category of the objects displayed in the target image. If the user requests continued processing, the target fusion information can be determined according to the above steps, and the target image can be generated based on the target fusion information.
[0076] In this embodiment, for cases where there are no fusion attributes that meet the preset conditions, the target fusion information can be determined based on the priority of the preset reference dimension, thereby ensuring that the target image can be provided to the user; in addition, a prompt message can be generated and sent to the user to indicate the existing risks, so as to better meet the user's actual needs.
[0077] S130. Based on the object description information and the target fusion information of the target fusion image, the object image is fused into the target fusion image to obtain the target image.
[0078] The target fused image displays fused objects, and the fused object information corresponds to the fused objects displayed in the target fused image. The target fusion information includes fused object information for at least one fused object in the target fused image and location key point information for at least one target region of the fused object. The fused object information can reflect the data of at least one fused object in at least one reference dimension.
[0079] In this embodiment, the object description information and the fusion object information in the target fusion information correspond to each other, 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, the method of 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 can be as follows: 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, then 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 displayed objects. According to this correspondence, the object image corresponding to each displayed object is fused into the target fusion image, and the target fusion image after fusing with the object images is determined as the target image.
[0080] Alternatively, the object image can be fused into the target fused image in the following way: when the number of object images is less than the number of objects to be fused, the object images are fused with a portion of the objects to be fused in the target fused image to obtain the target image.
[0081] Specifically, the same number of objects as the object images can be randomly selected from the target fusion image as target fusion objects, and the object images can be fused with the selected target fusion objects. Alternatively, based on the reference dimensions described by the object description information and the fusion object information, matching fusion objects that match the object images can be determined in the target fusion image. Among the matching fusion objects, target fusion objects with the same number as the object images can be selected, and the correspondence between the display objects and the target fusion objects can be determined. Based on this correspondence, each object image can be fused into the target fusion image to obtain the target image.
[0082] This embodiment addresses the situation where the number of object images is less than the number of objects to be fused. It sets a method for obtaining the target image, thus ensuring that the target image can be effectively obtained in different situations and meeting the user's needs.
[0083] Furthermore, the method also includes: determining a portion of the fused objects in the target fused image based on a pre-set second fusion reference dimension.
[0084] The second fusion reference dimension can be at least one of the following: object category dimension, number of single objects under different object categories, total number of objects dimension, and maturity of single objects under different object categories.
[0085] It should be noted that a second fusion reference dimension can be pre-set according to its importance to the target image, thereby allowing the object image to be determined based on the second fusion reference dimension. Specifically, based on the second fusion reference dimension, at least one fusion object matching each object image in the target fusion image can be identified. Among the matching fusion objects, one fusion object is selected as the target fusion object, and the fusion object is composed of the target fusion object corresponding to each object image. It should be noted that there are no duplicate fusion objects among the selected target fusion objects.
[0086] This embodiment pre-sets a second fusion reference dimension, thereby taking into account the factors of the second fusion reference dimension when determining some fusion objects, which can better meet the needs of users.
[0087] Alternatively, the method of merging object images into the target merged image can be as follows: if the number of merged objects is less than the number of displayed objects, an error message can be generated and fed back to the user to indicate that the number of object images exceeds the range and whether to continue the image processing operation.
[0088] The technical solution of this disclosure embodiment involves receiving an object image of at least one display object in an image to be processed and object description information including at least one display object; determining a target fusion image from at least one selectable fusion image based on the object description information; and 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. The object description information and the fusion object information in the target fusion information correspond to each other. Since the fusion object information corresponds to the fusion object displayed in the target fusion image, it indicates that a fusion object is provided 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 contained in the image to be processed. This solves the problem that the prior art can only fuse a single object, improves the applicability, and meets the diverse and rich image effect needs of users.
[0089] Figure 2 is a schematic flowchart of an image processing method provided in an embodiment of this disclosure. Based on the foregoing embodiments, at least one display object can be determined in the target fused image according to object description information and target fusion information, and then the target image can be obtained based on the fusion position. The explanations of terms that are the same as or corresponding to those in the above embodiments will not be repeated here.
[0090] As shown in Figure 2, the method includes:
[0091] S210, 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.
[0092] S220. Based on object description information, determine the target fusion image from at least one candidate fusion image.
[0093] In practical applications, in order to quickly determine the target fusion image during image fusion, the method further includes: receiving the matching fusion information of at least one image to be fused, and generating a configuration file based on the matching fusion information, so as to determine the target fusion image from at least one image to be selected for fusion based on the matching fusion information and object description information in the configuration file.
[0094] In practice, before determining the target fusion image, at least one image to be fused can be determined for matching fusion information. The image to be fused is the image used for fusion processing with the object image; for example, a landscape background image, a science fiction background image, etc. The matching fusion information includes fusion object information and 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. For example, when the target part is the face, the key point information may include positional information such as the tip of the nose, the center of the eyebrows, the corners of the mouth, the eyes, and the ears. The fusion object information can be consistent with the reference dimension described by the object description information. For example, when the object description information describes the data of the displayed object in the object category dimension, the fusion object information can also describe the data of the fusion object in the object category dimension.
[0095] In this embodiment, at least one image to be fused can be received, and the at least one image to be fused can be detected based on a part detection algorithm to determine the matching and fusion information. For example, when the fusion object is a human face, the matching and fusion information may include information such as the maturity of the face and the total number of faces; it may also include key point information of facial parts.
[0096] Specifically, the identified fusion information to be matched can be written to a file, which is then designated as a configuration file. Furthermore, the configuration file can be compressed and packaged, and updated based on the compressed file. When determining the target fusion image, the fusion information to be matched in the configuration file can be retrieved, and the candidate fusion images corresponding to the fusion information matching the object description information are selected as the target fusion image. In this embodiment, the target fusion image is determined directly based on the fusion information to be matched and the object description information in the configuration file, eliminating the need to re-detect each candidate image, thus improving the speed of target image generation.
[0097] S230. Based on the object description information and the target fusion information, determine the fusion position of at least one display object in the target fusion image; based on the key point information of the fusion object in the target fusion information, fuse the object image of the display object to the fusion position to obtain the target image.
[0098] In specific implementation, in order to make the target image more consistent with the distribution requirements of the display objects during image fusion, the method of determining the fusion position may include: determining the fusion position of at least one display object in the target fused image based on object description information, target fusion information and object information of the display objects; wherein, object information includes object category, object maturity and other information.
[0099] When determining the fusion location, a preset image processing method for fusion of a single object can be used for each displayed object. Further, based on the correspondence between the fusion object and the fusion location in the target fusion image, the key point information of the corresponding part is determined for each fusion location. Based on the key point information, the object images of the displayed objects are aligned, and the aligned object images are fused to the corresponding fusion location to obtain the target image.
[0100] For example, when the displayed object is a face, for each face to be fused, the fusion position corresponding to the face to be fused is determined in the target fusion image. Based on the facial key point information corresponding to each fusion position, the key points of the nose, mouth, eyes, eyebrows, and ears in the face image to be fused are adjusted so that the key point positions in the adjusted face image are consistent with the key point information of the corresponding fusion position. The adjusted face image is then fused into the corresponding fusion position. After the image fusion operation is completed for all faces, the target image is obtained.
[0101] In this embodiment, by using object description information and target fusion information, the fusion position of at least one display object in the target fusion image can be quickly determined; and by adjusting the object image to be fused based on the key point information of the parts, the object image can be fused according to the key point requirements of the target fusion image, which helps to improve the visual appeal of the target image after the object image is fused, and improves the user experience.
[0102] In practical applications, the fusion position determined for the same object image may be different for different reference dimensions. In order to better meet user needs, at least one display object in the target fusion image is determined based on object description information and target fusion information. This includes: determining the fusion position of the object image in the target fusion image based on a pre-set first fusion reference dimension, object description information and target fusion information.
[0103] The first fusion reference dimension corresponds to the object category dimension.
[0104] In practical implementation, the object category of the display object to be merged into the target merged image can be determined by a pre-set first fusion reference dimension. For example, if the first fusion reference dimension is "person," then object images belonging to "person" can be merged into the target merged image. Specifically, based on the pre-set first fusion reference dimension, first data corresponding to the first fusion reference dimension in the object description information and second data corresponding to the first fusion reference dimension in the target fusion information can be determined. The fusion position of the object image in the target merged image is then determined based on the first and second data. For example, when the first fusion reference dimension is "person," the first data is the total number of person images in the object image (which can be 5), and the second data is the total number of person images in the merged image (which can be greater than or equal to 5). Therefore, any 5 positions can be arbitrarily selected from the corresponding positions in the merged image as the fusion positions corresponding to the object images.
[0105] In this embodiment, by pre-setting a first fusion reference dimension and determining the fusion position based on the first fusion reference dimension, the user's personalized needs can be better met.
[0106] The above text provides a detailed description of the embodiments corresponding to the image processing method. In order to enable those skilled in the art to further understand the technical solution of this method, the following text provides a specific description in the context of fusing facial images.
[0107] In this embodiment, the target part corresponds to the facial part, the object image corresponds to the facial image of the displayed object, the key point information of the part includes the key points of the facial part of the fused object, the background information of the target fused image is different from the background information of the image to be processed, and the fused image to be matched corresponds to different style types.
[0108] Background information is used to represent information about the remaining image after removing the displayed object. The images to be matched and blended correspond to different style types. For example, the style types of the images to be matched and blended include solid color, landscape, science fiction, and anime.
[0109] To illustrate the facial image fusion process more clearly and in detail, please refer to Figure 3. The method provided in this embodiment can be applied to the server. In specific implementation, to improve image processing performance, a configuration file can be pre-generated before performing image fusion on facial images. Specifically, at least one image to be fused is pre-stored; using a part detection algorithm, image information such as maturity, object category, and key point positions corresponding to each facial image in each image to be fused is determined. For example, for each facial image, 106 key point positions can be determined; for example, these may include the tip of the nose, the center of the eyebrows, and the corners of the mouth. Based on the determined 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 can be determined. For example, the maturity distribution includes the number of teenagers, middle-aged people, and elderly people. Furthermore, under the reference dimension of each object category, they 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 selected as the fusion image, compressed, packaged and transferred to obtain the image package. In the subsequent multi-face fusion matching process, the image information and image data in the configuration file can be used directly without using the part detection algorithm again, which greatly improves the speed of image generation.
[0110] In practical applications, after receiving facial images and corresponding object description information sent by the user terminal for image fusion, an image retrieval and matching algorithm can be used to determine the target fusion image that matches the object description information from the candidate fusion images. It should be noted that if there are multiple candidate fusion images that match the object description information, one candidate fusion image can be randomly selected as the target fusion image. Information such as the object category and facial key points of the fusion object in the target fusion image is then obtained. Using a part fusion algorithm, object category, and facial key points, the facial key points in the candidate fusion image are matched one-to-one with those in the target fusion image, and the image fusion operation is performed to obtain the target image.
[0111] In practice, if there are multiple facial images to be fused, the above method can be used to iterate through the images corresponding to each fusion object in the target fusion image multiple times to achieve the fusion operation between multiple facial images and the target fusion image.
[0112] This embodiment maps the target area to the facial area and the object image to the facial image of the displayed object, thereby fusing the facial image with the target fusion image to achieve a facial fusion effect. Pre-generating a matching file improves image processing performance; furthermore, it enables the fusion of single or multiple objects into the target fusion image, increasing its applicability and meeting diverse and rich image effect needs of users.
[0113] Figure 4 is a schematic flowchart of another image processing method provided in this embodiment. As shown in Figure 4, the device includes: an image receiving module 410, a target fusion image determination module 420, and an object image fusion module 430.
[0114] Image receiving module 410 is used to receive an object image of at least one display object in an image to be processed and object description information including at least one display object;
[0115] The target fusion image determination module 420 is used to determine a target fusion image from at least one candidate fusion image based on object description information;
[0116] The object image fusion module 430 is used 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 the target image;
[0117] Among them, the object description information and the fusion object information in the target fusion information correspond to the fusion object displayed in the target fusion image.
[0118] In addition to the above-mentioned optional technical solutions, the following may also be included:
[0119] The configuration file generation module is used to receive the matching fusion information of at least one image to be fused, and generate a configuration file based on the matching fusion information, so as to determine the target fused image from at least one image to be selected for fusion based on the matching fusion information and object description information in the configuration file.
[0120] 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 information to be matched and fused includes fused object information and part key point information of at least one target part of the fused object, and the fused object information includes data of at least one fused object in at least one reference dimension.
[0121] Based on the above-mentioned optional technical solutions, the reference dimensions may optionally include at least one of the following: object category dimension, number of single objects under different object categories, total number of objects dimension, and maturity of single objects under different object categories.
[0122] Based on the above-mentioned optional technical solutions, optionally, the target fusion image determination module 420 includes:
[0123] The fusion attribute determination submodule is used to determine the fusion attribute between the object description information and the fusion information to be matched of at least one fusion image to be selected; wherein, the fusion information to be matched is determined after the fusion image to be selected is processed in advance;
[0124] The target fusion information determination submodule is used to determine the target fusion information based on the fusion attributes, and to use the candidate fusion image corresponding to the target fusion information as the target fusion image;
[0125] The information to be matched and fused includes fusion object information of at least one fusion object in the image to be fused.
[0126] Based on the above-mentioned optional technical solutions, optionally, the attribute determination submodule includes:
[0127] The fusion attribute determination unit is used to determine the fusion attribute between at least one fusion information to be matched and the object description information by performing data similarity processing on the object description information and at least one fusion information to be matched under different reference dimensions;
[0128] Correspondingly, the target fusion information determination submodule includes:
[0129] The first target fusion information determination unit is used to determine the target fusion information based on preset rules if there are multiple fusion attributes that meet preset conditions.
[0130] In addition to the above-mentioned optional technical solutions, the following may also be included:
[0131] The second target fusion information determination unit is used to determine the fusion attribute of at least one image to be matched relative to the object description information in the same reference dimension according to the priority of at least one reference dimension in the preset if there is no fusion attribute that meets the preset conditions, so as to determine the target fusion information based on the fusion attribute.
[0132] Based on the above-mentioned optional technical solutions, optionally, the object image fusion module 430 includes:
[0133] The fusion position determination submodule is used to determine the fusion position of at least one display object in the target fusion image based on object description information and target fusion information;
[0134] The image fusion submodule is used to fuse the object image of the displayed object to the fusion location based on the key point information of the fusion object in the target fusion information, so as to obtain the target image.
[0135] Based on the above-mentioned optional technical solutions, optionally, the fusion location determination submodule includes:
[0136] The fusion location determination unit is used to determine the fusion location of the object image in the target fusion image based on the pre-set first fusion reference dimension, object description information and target fusion information;
[0137] The first fusion reference dimension corresponds to the object category dimension.
[0138] Based on the above-mentioned optional technical solutions, optionally, the object image fusion module 430 includes:
[0139] The fusion submodule is used to fuse object images with a portion of the fusion objects in the target fusion image to obtain the target image when the number of object images is less than the number of fusion objects.
[0140] Based on the above optional technical solutions, the fusion submodule is optionally used to determine the fusion objects of the object image in the target fusion image according to the pre-set second fusion reference dimension.
[0141] 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 displayed object, the key point information of the part includes the key points of the facial part of the fused object, the background information of the target fused image is different from the background information of the image to be processed, and the fused image to be matched corresponds to different style types.
[0142] The technical solution provided in this disclosure involves receiving an object image of at least one display object in an image to be processed, along with object description information including at least one display object; determining a target fusion image from at least one selectable fusion image based on the object description information; and 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. The object description information and the fusion object information in the target fusion information correspond to each other. Since the fusion object information corresponds to the fusion object displayed in the target fusion image, it indicates that a fusion object is provided 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 contained in the image to be processed. This solves the problem in the prior art that only single objects can be fused, improves the applicability, and meets the diverse and rich image effect needs of users.
[0143] The image processing apparatus provided in this disclosure can execute the image processing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method.
[0144] It is worth noting that the various units and modules included in the above-mentioned 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 each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0145] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Referring to Figure 5 below, a schematic diagram of the structure of an electronic device (e.g., the terminal device or server in Figure 5) 500 suitable for implementing embodiments of this disclosure is shown. The terminal device in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in Figure 5 is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this disclosure.
[0146] As shown in Figure 5, the electronic device 500 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0147] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 shows an electronic device 500 with various devices, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0148] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.
[0149] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0150] The electronic device provided in this embodiment and the image processing method provided in the above embodiments belong to the same concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0151] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the image processing method provided in the above embodiments.
[0152] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. 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 thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can 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 connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0153] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0154] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0155] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to:
[0156] The aforementioned 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 an image to be processed and object description information including at least one display object; determine a target fusion image from at least one selectable fusion image based on the object description information; and 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 to the fusion object displayed in the target fusion image.
[0157] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0158] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0159] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0160] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0161] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction 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 be, 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 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 fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0162] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0163] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0164] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. An image processing method, comprising: Receive an object image of at least one display object in an image to be processed, and object description information including the at least one display object; Based on the object description information, a target fusion image is determined from at least one candidate fusion image; as well as Based on the object description information and the target fusion information of the target fusion image, the object image is fused into the target fusion image to obtain the target image; The object description information and the fusion object information in the target fusion information correspond to the fusion object displayed in the target fusion image.
2. The method according to claim 1, further comprising: The system receives the matching fusion information of the at least one image to be fused, and generates a configuration file based on the matching fusion information, so as to determine the target fused image from the at least one image to be selected for fusion based on the matching fusion information in the configuration file and the object description information.
3. The method according to claim 1 or 2, wherein 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 matching and 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 the following: object category dimension, number of single objects under different object categories dimension, total number of objects dimension, and maturity of single objects under different object categories dimension.
5. The method of claim 3, wherein determining the target fusion image from at least one candidate fusion image based on the object description information comprises: Determine the fusion attribute between the object description information and the matching fusion information of the at least one candidate fusion image; wherein the matching fusion information is determined after pre-processing the candidate fusion images; and Based on the fusion attributes, the target fusion information is determined, and the candidate fusion image corresponding to the target fusion information is taken as the target fusion image; The information to be matched and fused includes fusion object information of at least one fusion object in the image to be selected for fusion.
6. The method according to claim 5, wherein determining the fusion attribute between the object description information and the matching fusion information of the at least one candidate fusion image comprises: By performing data similarity processing on different reference dimensions of the object description information and at least one of the fusion information to be matched, a fusion attribute between at least one of the fusion information to be matched and the object description information is determined. Accordingly, determining the target fusion information based on the fusion attribute includes: If there are multiple fusion attributes that meet the preset conditions, the target fusion information is determined based on the preset rules.
7. The method according to claim 6, further comprising: If no fusion attribute satisfies the preset conditions, then based on the priority of at least one preset reference dimension, the fusion attributes of at least one image to be matched and fused relative to the object description information under the same reference dimension are determined in sequence, so as to determine the target fusion information based on the fusion attribute.
8. The method according to claim 1, wherein 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 the target image comprises: Based on the object description information and the target fusion information, the fusion position of the at least one display object in the target fusion image is determined; as well as Based on the key point information of the fusion object in the target fusion information, the object image of the display object is fused to the fusion position to obtain the target image.
9. The method according to claim 8, wherein determining the fusion position of the at least one display object in the target fusion image based on the object description information and the target fusion information comprises: Based on a pre-set first fusion reference dimension, object description information, and the target fusion information, the fusion position of the object image in the target fusion image is determined; The first fusion reference dimension corresponds to the object category dimension.
10. The method according to claim 1, wherein fusing the object image into the target fused image to obtain the target image comprises: When the number of object images is less than the number of fusion objects, the object images are fused with a portion of the fusion objects in the target fusion image to obtain the target image.
11. The method of claim 10, further comprising: The partial fusion objects of the object image in the target fusion image are determined based on a pre-set second fusion reference dimension.
12. The method according to claim 3, wherein the target part corresponds to a facial part, the object image corresponds to a facial image of a displayed object, the key point information of the part includes key points of the facial part of the fused object, the background information of the target fused image is different from the background information of the image to be processed, and the fused image to be matched corresponds to a different style type.
13. An image processing apparatus, comprising: The image receiving module is used to receive 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; A target fusion image determination module is used to determine a target fusion image from at least one candidate fusion image based on the object description information. as well as An object image fusion module is used 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; The object description information and the fusion object information in the target fusion information correspond to the fusion object displayed in the target fusion image.
14. An electronic device, comprising: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the image processing method according to any one of claims 1-12.
15. A storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to perform the image processing method according to any one of claims 1-12.