Image processing method and device

By receiving user input and redetermining the fusion ratio of the source image, the problem that the fusion image cannot be adjusted in the prior art is solved, and the function of re-editing images according to user preferences is realized to meet user needs.

CN112991248BActive Publication Date: 2024-12-20VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110262382.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-10
Publication Date
2024-12-20
Estimated Expiration
2041-03-10

AI Technical Summary

Technical Problem

In the prior art, when performing image fusion, the terminal cannot adjust the fusion ratio of different regions in the final fusion image according to the user's preferences, resulting in the inability to obtain the most ideal fusion result for the user.

Method used

By receiving user input, the proportion of fusion of each source image in the fused image is determined, and re-fusion is performed based on these proportions to generate a target image to realize re-editing of the fused image.

Benefits of technology

It allows users to adjust the fusion image according to their own preferences to meet the needs of current image viewing users, and avoids the defects that the fusion result cannot be modified in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112991248B_ABST
    Figure CN112991248B_ABST
Patent Text Reader

Abstract

The present application discloses an image processing method and device, belonging to the field of images. The method includes: obtaining a first image, the first image being an image obtained by fusion based on at least two source images; receiving a first input from a user; in response to the first input, determining the fusion ratios of each source image in at least two source images corresponding to the first image; wherein the sum of the fusion ratios of all source images corresponding to the first image is 1; based on the fusion ratios of each source image, re-fusing each source image to obtain a target image; and displaying the target image. In an embodiment of the present application, the defect that the fusion result cannot be modified is avoided, and the fusion method of the fused image can be re-edited according to the current image viewing user or his preference to meet the needs of the current image viewing user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of images, and specifically relates to an image processing method and device. Background Art

[0002] With the popularization and development of terminals, users have more and more demands for image effects stored in terminals. Current terminals can fuse multiple stored source images, fuse multiple source images together through a preset algorithm, and the final fused image includes the scene content of the multiple source images, so that different scene images are fused into one image to achieve a "virtual and real combination" dream effect.

[0003] In the process of implementing this application, the inventors found that there are at least the following problems in the prior art: when the current terminal performs image fusion, the fusion ratio of different images in different areas of the final fused image is automatically analyzed and set by a preset algorithm, and the fusion result cannot be modified, which may not necessarily obtain the most ideal fusion result for the user. As the user who views the fused image changes or the preferences of the user who views the same fused image change at different times, the fused image cannot be adjusted according to the preferences of the user who views it. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an image processing method and device, which can solve the problem that the fused image cannot be adjusted according to the preferences of the viewing user as the viewing user of the fused image changes or the preferences of the viewing user of the same fused image change at different times.

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

[0006] Acquire a first image, where the first image is an image obtained by fusing at least two source images;

[0007] receiving a first input from a user;

[0008] In response to the first input, determining a fusion degree ratio corresponding to each source image of at least two source images corresponding to the first image; wherein the sum of the fusion degree ratios corresponding to all source images corresponding to the first image is 1;

[0009] Based on the fusion degree proportions respectively corresponding to the source images, the source images are re-fused to obtain a target image;

[0010] The target image is displayed.

[0011] In a second aspect, an embodiment of the present application provides an image processing device, the device comprising:

[0012] An acquisition module, used to acquire a first image, where the first image is an image obtained by fusing at least two source images;

[0013] A receiving module receives a first input from a user;

[0014] a determination module, configured to determine, in response to the first input, a fusion degree ratio corresponding to each of at least two source images corresponding to the first image; wherein the sum of the fusion degree ratios corresponding to all source images corresponding to the first image is 1;

[0015] A fusion module, configured to re-fuse each of the source images based on the fusion degree ratios respectively corresponding to each of the source images to obtain a target image;

[0016] A display module is used to display the target image.

[0017] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0018] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0019] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0020] In an embodiment of the present application, by receiving a first input from a user, the first input is used to trigger subsequent re-editing of the fused image based on user preferences, thereby avoiding the defect in the prior art that the fusion result cannot be modified, and further avoiding the problem that the fused image cannot be adjusted according to the preferences of the viewing user as the viewing user of the fused image changes or the preferences of the same viewing user at different times. This achieves the ability to re-edit the fused image according to the current image viewing user or his preferences to meet the needs of the current image viewing user. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 This is one of the flowcharts of the image processing method provided in the embodiment of the present application;

[0022] Figure 2 is a schematic diagram of an interface form where a first input operation is provided in an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of an interface form where a second input operation is provided in an embodiment of the present application;

[0024] Figure 4 It is a schematic diagram of the operation of the sliding bar of the fusion ratio of two source images corresponding to the area to be edited provided in an embodiment of the present application;

[0025] Figure 5 This is the second flowchart of the content publishing method provided in the embodiment of the present application;

[0026] Figure 6 This is the third flow chart of the content publishing method provided in the embodiment of the present application;

[0027] Figure 7 is a structural schematic diagram of an image processing device provided in an embodiment of the present application;

[0028] Figure 8 One of the hardware structure diagrams of the electronic device provided in the embodiment of the present application;

[0029] Fig. 9 The second schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0032] The content publishing method and device provided by the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0033] Figure 1 is one of the flowcharts of the image processing method provided in the embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0034] Step 100, obtaining a first image, where the first image is an image obtained by fusing at least two source images;

[0035] Step 110, receiving a first input from a user;

[0036] Step 120, in response to the first input, determining the fusion degree ratio corresponding to each source image of at least two source images corresponding to the first image; wherein the sum of the fusion degree ratios corresponding to all source images corresponding to the first image is 1;

[0037] Step 130, based on the fusion degree proportions respectively corresponding to the source images, re-fusing the source images to obtain a target image;

[0038] Step 140: display the target image.

[0039] Optionally, a first image may be first acquired, the first image being a fused image obtained by fusion processing using at least two source images as image source data. There are multiple ways to acquire the first image, such as a fused image obtained by double exposure or multiple exposure, or a fused image obtained by processing a source image downloaded from the Internet using a simple fusion algorithm provided by the mobile phone, which is not specifically limited here. Then, a first input from the user is received, and the proportion of the fusion degree corresponding to each of the at least two source images corresponding to the first image when the first image is fused again is determined, wherein the first input is used to provide the terminal with the parameters required by the user for re-fusion processing of the first image.

[0040] Optionally, the first input may be that the user opens any first image by voice control of the mobile phone, and then continues to inform the terminal currently displaying any first image to re-integrate the any first image through voice instructions, so that the terminal enters the process of re-integrating the any first image. It can also be an operation of manually triggering the subsequent re-integration process on the first image interface displayed on the terminal screen after opening any first image, such as long pressing the first image interface displayed on the screen for a preset time, or clicking the re-editing control on the first image interface displayed on the screen, etc., so as to trigger the terminal to subsequently re-integrate the first image, that is, trigger the terminal to continue to determine the fusion degree proportion corresponding to each source image in the at least two source images corresponding to the first image.

[0041] Optionally, the first input may simply be a click operation by the user to open the first image. After completing the click operation to open the first image, the terminal automatically collects the user's information through the sensor device or camera device terminal equipped by itself, and determines the fusion degree ratio corresponding to each of the at least two source images corresponding to the first image based on the collected user information. The collected user information may be the user's gender, age and appearance, for example, obtained by collecting the user's portrait through the front camera of the terminal.

[0042] Optionally, the first input may also be a specified selection operation from a plurality of methods for users to participate in the re-fusion processing and select the first image. For example, the terminal may provide two methods for re-fusion of the first image based on the preferences of the user viewing the first image, one of which requires the user to set it by himself, and the other is that the terminal collects user information through the sensor or camera device carried by itself, and then infers the preferences of the viewing user, and automatically re-fusion of the first image based on the preferences; therefore, under the provision of multiple re-fusion methods, the user is required to specify the user-selected re-fusion method through the first input, if the user clicks to open the first image, and then clicks the "manual edit" control on the first image display interface within a preset time, or notifies the terminal through a voice command within a preset time to enter the user manually set the relevant parameters of the re-fusion processing, then the terminal enters the process of the user manually setting the relevant parameters of the re-fusion processing, if the user clicks to open the first image, and there is no manual operation or voice input within the preset time, then the terminal automatically collects user information, infers the user preference based on the user information, and then uses the corresponding image fusion processing method to process the first image to complete the re-fusion.

[0043] It can be understood that, for the case where the terminal has only one method for user participation in re-fusion processing of the first image, the user's first input only serves to trigger the terminal to enter the re-fusion processing of the first image. As for the subsequent re-fusion processing, the relevant parameters that need to be determined and the method for obtaining the fusion degree ratio corresponding to each of the at least two source images corresponding to the first image are required to be obtained. According to the method for user participation in re-fusion processing of the first image provided by the terminal, the terminal actively collects the data, or the user inputs and sets the data again through manual operation or voice command. For the case where the terminal provides multiple methods for user participation in re-fusion processing of the first image, the user's first input not only serves to trigger the terminal to enter the re-fusion processing of the first image, but also needs to inform the terminal which method of participating in the re-fusion processing of the first image is selected by the current user. Therefore, based on the first input, the terminal needs to enter the process corresponding to the user-selected participation in the re-fusion processing of the first image. For example, the terminal provides two schemes: the user manually operates to set the relevant parameters for the re-fusion processing and the user information is extracted to automatically generate the re-fusion algorithm corresponding to the user information. The first input also includes selecting one of the above two schemes to trigger the terminal to continue to enter the process of re-fusion processing of the first image corresponding to the scheme.

[0044] Optionally, the parameters related to the re-fusion processing only limit the fusion ratio corresponding to each source image in at least two source images corresponding to the first image. The simplest fusion processing is the traditional double exposure or multiple exposure operation, which sets the corresponding fusion ratios for the two or more captured images as a whole and then performs fusion processing with the corresponding fusion ratios. Among them, the source images are derived from all source images corresponding to the first image, and the first image is formed by fusion of all source images, and the number of all source images is at least 2, and the sum of the fusion ratios corresponding to all source images is 1. Therefore, the simplest fusion processing algorithm is to use the entire image of the corresponding source image as a fusion processing area, set a unified fusion ratio for all areas of each source image, and then fuse the entire image of all source images with the corresponding fusion ratio. Furthermore, if a more sophisticated fusion processing is adopted, it is necessary to set different corresponding fusion degree ratios of each source image in at least two source images for different areas in the first image. For example, the first image is divided into three areas, and the fusion degree ratios of each source image in at least two source images corresponding to each area are different because the fusion purposes in the above three areas are different. For example, the first area is to highlight the sun in the first source image, the second area is to highlight the banyan tree in the second source image, and the third area is to highlight the puppy in the second source image. Therefore, it is necessary to set different corresponding fusion degree ratios of each source image in at least two source images for different areas.

[0045] Optionally, after the parameters required for re-fusion are determined, when re-fusion is performed based on the parameters, the source images are fused according to the proportion of the fusion degree of each source image corresponding to the first image to obtain a re-fused image.

[0046] Optionally, the source images are fused based on the fusion degree ratio of each source image of the first image, which can be expressed by the following formula:

[0047]

[0048]

[0049]

[0050] Among them, R T (x, y) is the R channel value of any pixel point (x, y) in the fusion result image T after the fusion process, G T (x, y) is the G channel value of any pixel point (x, y) in the fusion result image T after the fusion process, B T (x, y) is the B channel value of any pixel (x, y) in the fusion result image T after the fusion process, α i is the fusion ratio of the i-th source image corresponding to the first image, i = 1, 2, ..., N, N is the total number of source images corresponding to the first image, is the R channel value of any pixel point (x, y) in the to-be-processed area of ​​the fusion result image T in the i-th source image corresponding to the first image, is the G channel value of any pixel point (x, y) in the to-be-processed area of ​​the fusion result image T in the i-th source image corresponding to the first image, is the B channel value of any pixel point (x, y) in the to-be-processed area of ​​the fusion result image T in the i-th source image corresponding to the first image. The first image, all source images corresponding to the first image, and the fusion result image after the second fusion process are all RGB format images.

[0051] In an embodiment of the present application, by receiving a first input from a user, the first input is used to trigger subsequent re-editing of the fused image based on user preferences, thereby avoiding the defect in the prior art that the fusion result cannot be modified, and further avoiding the problem that the fused image cannot be adjusted according to the preferences of the viewing user as the viewing user of the fused image changes or the preferences of the same viewing user at different times. This achieves the ability to re-edit the fused image according to the current image viewing user or his preferences to meet the needs of the current image viewing user.

[0052] Optionally, in response to the first input, determining a fusion degree ratio corresponding to each of at least two source images corresponding to the first image includes:

[0053] In response to the first input, a region to be edited in the first image and a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image are determined.

[0054] Optionally, it is further limited that in response to the user's first input operation, the parameters related to the re-fusion processing that need to be determined include, in addition to the fusion degree ratio corresponding to each source image in the at least two source images corresponding to the first image as a whole, the area to be edited selected in the first image, that is, the algorithm refinement of the re-fusion processing is improved, and the first image may include multiple areas to be edited, and different fusion degree ratios corresponding to each source image in the at least two source images are set for different areas to be edited.

[0055] For example, there are three source images corresponding to the first image. The current first image is obtained by fusing the three source images based on the terminal's own preset fusion algorithm, or is obtained by re-fusion processing according to the last user's editing operation after the last user's editing operation. After determining a to-be-edited area A in the current first image, it is also necessary to determine the respective fusion degree ratios of the three source images corresponding to the to-be-edited area A. For example, the three source images are source image a, source image b, and source image c. The fusion degree ratio of source image a corresponding to the to-be-edited area A is 0.2, the fusion degree ratio of source image b corresponding to the to-be-edited area A is 0.5, and the fusion degree ratio of source image c corresponding to the to-be-edited area A is 0.3. After the editing parameters are determined in this way, when the three source images are re-fused subsequently, the fusion processing of the to-be-edited area A is to convert source image a corresponding to the to-be-edited area A to be processed in the to-be-edited area A. a , b source image corresponds to the processing area A of the area to be edited A b and c source image corresponding to the area to be edited A c The fusion is performed with fusion ratios of 0.2, 0.5 and 0.3 to obtain the re-fused area A to be edited.

[0056] Optionally, after determining the parameters required for re-fusion, when re-fusion is performed based on the parameters, the corresponding areas to be processed in the areas to be edited in each source image should be segmented out, and then the corresponding areas to be processed in each source image should be fused according to the proportion of the fusion degree of each source image corresponding to the areas to be edited, to obtain a re-fused image. Since there is at least one area to be edited, when the area to be edited is greater than one, after completing the fusion processing of the corresponding areas to be processed of the source images for each area to be edited, the target fused image after the re-fusion processing is output and displayed.

[0057] Optionally, the determining the area to be edited in the first image and the fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image includes:

[0058] A second input from the user is received, and in response to the second input, a region to be edited in the first image and a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image are determined.

[0059] Optionally, the subsequent determination of the area to be edited in the first image and the fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image also requires the user's second input operation to set. The first input may be an operation that includes user re-input after opening the first image, wherein the user's re-input may be clicking on the "Re-edit" control floating on the displayed first image on the screen, or long pressing the screen for a preset time, etc.

[0060] Optionally, the user's second input needs to determine two types of parameters, one type is the area to be edited, where there is at least one area to be edited, and the other type is the fusion ratio of each source image corresponding to each area to be edited. Therefore, the second input can be that the user selects the first area to be edited through the first preset operation, and then enters the fusion ratio of each source image corresponding to the first area to be edited, and then selects the second area to be edited, and then enters the fusion ratio of each source image corresponding to the second area to be edited, and so on until the user no longer selects the next area to be edited; the second input can also be that the user selects all areas to be edited through the second preset operation, and then enters the fusion ratio of each source image corresponding to each area to be edited, which is not specifically limited here.

[0061] Optionally, in order to facilitate the user to select the area to be edited in the first image through the second input, and the fusion ratio corresponding to each source image in the at least two source images corresponding to the first image, the terminal will call up all the source images corresponding to the first image on the screen in response to the first input for display, so that the user can select the area to be edited through the preset first operation or the preset second operation. It should be noted here that the reason why the user's first input can trigger the terminal to call up all the source images corresponding to the first image is that the source file of the first image clicked by the user to view is a package file of the first image and all the corresponding source images. When the package file is clicked to open, the terminal displays the first image in full screen. When the user inputs again, the user inputs again, which can be clicking the "Re-Edit" control floating on the displayed first image on the screen, or long pressing the screen for a preset time, etc., then each source image in the corresponding at least two source images is called up and displayed simultaneously with the first image. Here, the source file of the first image, that is, the packaged file, is illustrated by example: if the first image and the corresponding source image are both JPEG, since data can be added after the JPEG image file, the corresponding at least two source images are respectively added with head and tail marks and then added as file data behind the JPEG file data of the first image at one time, and the complete data formed after the addition is packaged into a .jpg format file for saving. In this way, when the .jpg format file is clicked, it is equivalent to opening the first image, that is, the terminal screen only displays the first image. When the user completes the first input to trigger the terminal to receive the second input used by the user to determine the area to be edited and the proportion of each fusion degree, the first input will trigger the terminal to call out the source image file added after the first image in the .jpg format file for display. At this time, the first image and the corresponding source images will be displayed on the terminal screen at the same time.

[0062] For example, Figure 2 is a schematic diagram of the interface form of the first input operation provided in an embodiment of the present application, Figure 3 is a schematic diagram of the interface form of the second input operation provided in the embodiment of the present application, such as Figure 2 As shown, the current state displayed on the terminal screen is that after the first image is opened, the terminal screen displays the first image in full screen. At the same time, there is an "edit again" option control on the first image. The user completes the first input by clicking the "edit again" control, and then enters Figure 3 In the case where the source image for the user to select the area to be edited is displayed on the terminal screen, in response to the click "re-edit" operation in the first input, all source images corresponding to the first image are called out, Figure 3 There are two source images in the image, and then the user selects the area to be edited in the source image by clicking, painting or outlining.

[0063] Optionally, the first preset operation may be a click operation, a paint operation or a sketch operation, etc., and the second preset operation may be multiple consecutive click operations, paint operations or sketch operations to select all the areas to be edited, wherein the click operation is to select the area to be edited in the source image, the user clicks on an area in the source image, and the object in the click area is segmented and extracted based on a preset segmentation algorithm and contour extraction algorithm, and the complete area where the object is located is automatically popped up, and the complete area and the corresponding area in the first image are used as the area to be edited; the painting operation is similar to the form of a "brush", and the user controls The change of the touch point between the finger and the display screen "paints" an area. When the painting operation is performed on the first image, the "painted" area is directly used as the area to be edited. When the painting operation is performed on the source image, the "painted" area and the corresponding area in the first image are used as the area to be edited; the outlining operation is that the user circles a closed area with his fingers. When the outlining operation is performed on the first image, the closed area is directly used as the area to be edited. When the outlining operation is performed on the source image, the closed area and the corresponding area in the first image are used as the area to be edited.

[0064] Optionally, the second input includes:

[0065] A first sub-input for determining the area to be edited, and a second sub-input for determining the fusion ratio, wherein the second sub-input is an operation on a fusion ratio input control displayed on the re-editing interface.

[0066] Optionally, the operations in the second input are divided into two categories in sequence, the first category is the first sub-input for determining the area to be edited, and the second category is the operation of continuing to set the fusion ratio of each source image corresponding to the area to be edited determined in the first category of operations. Among them, the first image and each source image are displayed on the re-editing interface at the same time, and the first sub-input includes the above-mentioned click operation, painting operation or outlining operation, etc., and the area to be edited of the first image is selected on the first image or each source image through the above-mentioned operation. After each area to be edited is selected, the fusion ratio of each source image corresponding to the area to be edited is determined through the second sub-input, and the second sub-input is to operate the fusion ratio input control displayed on the re-editing interface to realize the setting of the fusion ratio of each source image.

[0067] Optionally, the fusion ratio control can be an input box arranged next to any source image for inputting the fusion ratio value of any source image, that is, when the user completes the selection of the area to be edited through the first sub-input, a numerical input box will appear next to each source image, and the input of the fusion ratio of the source image can be started by clicking the blank space in the input box to generate a cursor prompt, and the rationality of the input value is ensured by a verification mechanism that the sum of the final input values ​​of all input boxes is 1. The fusion ratio control can also be a sliding bar for the fusion ratio value. For example, when the number of source images is M, M>2 and M is a positive integer, then the first M-1 source images are arranged with their own sliding bars for the fusion ratio values ​​on the re-editing interface, and the Mth source image does not need to be arranged, because the fusion ratio corresponding to the Mth source image is Among them, α i is the fusion ratio corresponding to the i-th source image. When the user slides the sliders to adjust the fusion ratios of the source images, the fusion results of the corresponding to-be-edited area in the first image displayed on the editing interface are updated in real time according to the adjustment, so that the user can select the fusion method of his / her preference by directly observing the fusion results. When there are two source images, the fusion ratio control can be a fusion ratio slider for the two source images. Figure 4 is a schematic diagram of the operation of the sliding bar of the fusion ratio of the area to be edited corresponding to the two source images provided in the embodiment of the present application, as described above. Figure 3 As shown, first, the operation prompt "Please click to select area" displayed on the left terminal interface informs the user that the user can perform the first sub-input on the two source images of the first image displayed on the current interface, that is, select the area to be edited in the source image by clicking, painting or outlining. Figure 4 On the terminal interface, the user selects the complete area where the moon is located in the source image 1 as the area to be edited corresponding to the first image by clicking. The user's requirement is to highlight the moon in the target fusion image to be edited. Therefore, the fusion degree ratio of the source image 1 in the area to be edited where the moon is located is increased to at least more than 50%. Therefore, Figure 4 The user operates the fusion ratio slider to adjust the fusion ratio of source image 1 to 80%, which can achieve the effect of highlighting the moon in the target fused image. Source image 1 is an image including the moon and two children, and source image 2 is an image including the portrait of a young man. Figure 4 The original left side of the fusion ratio slider on the middle terminal interface Figure 1 Corresponding to the source image above it, which includes the moon and two children, the fusion ratio is the original image on the right side of the slider. Figure 2The terminal screen on the right corresponds to the source image including the portrait of the young man directly above it. By clicking the circular control in the middle of the slider, you can drag it left and right, which causes the fusion ratios of the two source images to change at the same time and ensures that the sum of the fusion ratios of the two source images is 1. Figure 4 The user's hand in the terminal screen adjusts the fusion ratio of source image 1 to 80%, so the fusion ratio of source image 2 is 20%.

[0068] Optionally, the first input operation of the corresponding user may also be determined as an operation corresponding to a function provided by the terminal for the user to set parameters related to the re-fusion processing by manual operation or voice command. Therefore, the first input operation may be that after the user opens or slides to the first image, the user clicks on the "re-edit control" on the first image display interface to trigger the terminal to enter the process of the user manually setting the parameters related to the re-fusion processing, or after the user opens or slides to the first image, the user triggers the terminal to enter the process of the user manually setting the parameters related to the re-fusion processing through a voice command.

[0069] Optionally, in response to the first input, determining a fusion degree ratio corresponding to each of at least two source images corresponding to the first image includes:

[0070] In response to the first input, capturing a user's facial image by a camera device;

[0071] Based on the collected user facial image, a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image is determined.

[0072] Optionally, the method for further limiting the terminal to determine the relevant parameters required for the re-fusion processing, the proportion of the fusion degree corresponding to each of the at least two source images corresponding to the first image, is obtained by the terminal collecting the user's facial image and automatically analyzing it. The user's first input operation triggers the terminal to use the terminal's built-in camera device, usually the front camera, to collect the facial photo of the current terminal holder, i.e., the viewer of the first image. Based on the collected user's facial photo, the user's facial information can be analyzed through a mature algorithm for extracting features such as age, gender, and facial accessories included in face recognition, to obtain a user portrait, determine the user's favorite style based on the user portrait, and then determine the proportion of the fusion degree corresponding to each of the at least two source images corresponding to the first image based on the user's favorite style. Optionally, determining the area to be edited in the first image includes:

[0073] In response to the first input, capturing a user's facial image by a camera device;

[0074] Based on the acquired facial image of the user, a region to be edited in the first image is determined.

[0075] Optionally, the re-fusion processing algorithm is further refined, that is, the parameters related to the re-fusion processing algorithm include, in addition to the fusion ratio corresponding to each of the at least two source images corresponding to the first image, a plurality of areas to be edited segmented from the first image, and different fusion ratios corresponding to each of the at least two source images are set for different areas to be edited. Therefore, when the method of automatically performing fusion processing on the user's facial image collected by the camera device is adopted, the collected user's facial image is subjected to face recognition to determine the user's gender and youthful features, and the user's portrait analysis is performed to obtain the user's preferences, and the area to be edited in the first image is also determined based on the preferences. That is, the relevant parameters of the re-fusion processing determined based on the user's preferences are more refined. In addition to determining the fusion ratio based on the user's preferences, the area to be edited must also be determined, that is, by analyzing the user's preferences, different preference areas are separated for fusion, so as to achieve more refined fusion processing.

[0076] Optionally, based on the collected user facial information, a mature algorithm for extracting features such as age, gender, and facial accessories included in face recognition can be used to analyze the user's facial information, obtain a user portrait, determine the user's preferred style based on the user portrait, and then determine the area to be edited in the first image that still needs to adjust the fusion method based on the user's preferred style.

[0077] For example, if facial recognition analysis shows that the current viewer of the first image is a young woman, the young woman's preferred style can be obtained, such as flowers, plants, and small animals. In this case, the source image is screened for objects that young women like, including flowers, plants, and small animals. If the above objects exist, they are extracted through existing segmentation and contour extraction algorithms, and the complete area where the above objects are located is determined to correspond to the area in the first image as the area to be edited.

[0078] For example, if the face recognition analysis shows that the viewer of the current processed fused image is an elderly male, the elderly male's preferred style can be obtained, such as liking natural scenery such as mountains, rivers, and the moon. In this case, the source image will be screened for objects that the elderly male likes, such as mountains, rivers, and the moon. If the above objects exist, they will be extracted through the existing segmentation and contour extraction algorithms, and the complete area where the above objects are located will be determined to correspond to the area in the first image as the area to be edited.

[0079] Optionally, the first input operation of the corresponding user can also be determined as an operation corresponding to the function provided by the terminal that the terminal collects the user's facial information through the camera device carried by itself and automatically performs the re-fusion processing related parameter setting based on the user's facial information. Therefore, the first input operation can be only the operation of the user opening or sliding to the first image, and only the operation of opening the first image or sliding to the first image can trigger the terminal to use the camera device to collect the facial information of the current holder of the terminal, or the first input is the user opening or sliding to the first image and then adding other manual operations or voice operations, and the other additional manual operations or voice operations are to select the method of the terminal automatically collecting the user's facial image to determine the user's preference and then re-fusion processing from a plurality of user participation re-fusion processing methods that can be provided by the terminal. The other additional manual operations or voice operations can be that the "manual re-editing" control on the first image display interface is not clicked for more than a preset time, or the "automatic re-fusion" control on the first image display interface is clicked, or the user triggers the terminal to enter the process of extracting the user's facial information and automatically re-fusion processing through voice instructions.

[0080] Optionally, determining the area to be edited in the first image based on the collected user facial image includes:

[0081] In a case where the target source image includes a user image corresponding to the user facial image, determining a region in the target source image where the user image is located as the region to be edited; and / or

[0082] The personalized preferences of the user are determined based on the user facial image, and when the target source image includes an object image corresponding to the personalized preferences of the user, the area where the object image is located in the target source image is determined as the area to be edited.

[0083] Optionally, determining the area to be edited in the first image based on the collected user facial image includes:

[0084] In a case where the target source image includes a user image corresponding to the user facial image, determining a region in the target source image where the user image is located as the region to be edited; and / or

[0085] The personalized preferences of the user are determined based on the user facial image, and when the target source image includes an object image corresponding to the personalized preferences of the user, the area where the object image is located in the target source image is determined as the area to be edited.

[0086] Optionally, determining the area to be edited based on the user facial image may include three situations: determining the area to be edited only based on the user's personalized preferences determined based on the user facial image; in a case where the target source image includes a user image corresponding to the user facial image, determining the area to be edited only based on highlighting the user in the target fused image; and, in a case where the target source image includes a user image corresponding to the user facial image, determining the area to be edited based on both highlighting the user in the target fused image and determining the area to be edited based on the user's personalized preferences determined based on the user facial image.

[0087] For example, in the case where the target source image includes a user image corresponding to the user's facial image, the area to be edited is determined based on both highlighting the user in the target fused image and the user's personalized preferences determined by the user facial image: if it is determined through face matching that the viewer of the current first image is a young woman, and she exists in the target source image, then the area in the target source image where the user image is located is determined as the area to be edited, and based on the personalized preferences of the young woman, the objects corresponding to the personalized preferences of the young woman in the source images corresponding to the current first image are analyzed, and segmentation and contour extraction are performed to determine that the area in the first image corresponding to the complete area where the above-mentioned objects are located is the area to be edited.

[0088] Optionally, determining a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image includes:

[0089] Determining, based on a default fusion degree ratio, a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image; or

[0090] receiving a third input from the user, and determining, in response to the third input, a fusion ratio corresponding to each of the at least two source images corresponding to the first image; wherein the third input is an operation on a fusion ratio input control displayed on the re-editing interface;

[0091] The default fusion ratio is determined based on the personalized preferences of the user.

[0092] Optionally, after the area to be edited is determined, it is also necessary to determine the fusion ratio of each source image corresponding to the area to be edited, and the fusion ratio of each source image is determined based on the personalized preferences of the user, that is, the personalized preferences of the user obtained through face recognition analysis are not only used to screen out the area where the object of interest to the user is located as the area to be edited, but also used to determine the degree of prominence of the object of interest to the user relative to the objects corresponding to other source images in the area to be edited.

[0093] For example, if the user is identified as a young female, then a kitten identified in one of the target source images is segmented out as the user's personalized preference and an object of interest to the user, and the complete area where the kitten is located is extracted as the area to be edited. The setting of the fusion ratio of each source image in the area to be edited also needs to consider the user's personalized preference. If there are only two source images, the object in the area to be edited in the first source image is a kitten, and the object in the area to be edited in the second source image is a teapot. Since it can be known from the personalized preference of the young female that the teapot is not her preferred object, the fusion ratio of the first source image in the currently selected area to be edited will be very large and have an absolute weight, such as 100%, while the fusion ratio of the second image in the currently selected area to be edited will be very small, 0%, so as to fully highlight the kitten and hide the teapot, wherein 100% and 0% are both determined based on the degree of emphasis of the user's personalized preference on the kitten and the teapot.

[0094] Optionally, a semi-automatic re-editing and fusion method combining manual operation with face recognition analysis is also provided: after determining the area to be edited based on face information by analyzing the face, the fusion ratio of each source image corresponding to the area to be edited can be set by manual input or adjustment by the user. Receive the third input of the user, and in response to the third input, determine the fusion ratio corresponding to each source image of the at least two source images corresponding to the first image; wherein the third input is an operation on the fusion ratio input control displayed on the re-editing interface. The fusion ratio input control can be a numerical input box corresponding to each source image, and the user directly inputs the numerical value of the fusion ratio of the corresponding source image. The fusion ratio input control can also be a fusion ratio sliding bar, and the user adjusts the fusion ratio of each source image by sliding operation, and observes the fusion effect after adjusting the fusion ratio in real time through the target fusion image preview result.

[0095] Optionally,

[0096] The acquiring of the first image specifically comprises:

[0097] Acquire a first image file package, where the first image file package includes all source images corresponding to the first image and the first image;

[0098] The method further comprises:

[0099] Based on the target image and each of the source images, a second image file package is generated and stored.

[0100] Optionally, after a preset period of time without any editing operation or after automatic re-fusion based on facial information is completed, the re-fusion process is completed, and the re-fused target fused image is packaged and stored as the result of this re-editing and fusion. The packaging process is still the data file format packaging method formed by the first image described above, and the source image files with head and tail marks are added in sequence after the target fused image file to package them into a .jpg format file.

[0101] Figure 5 This is a second flow chart of the content publishing method provided in the embodiment of the present application, such as Figure 5 As shown, the method comprises the following steps:

[0102] First, a double-exposure photo is taken by a terminal and the double-exposure photo is used as a source image for fusion processing based on a preset fusion algorithm of the terminal to obtain a fusion result image;

[0103] Then the fusion result viewer opens the fusion result view and clicks the "Re-Edit" button on the photo viewing interface to trigger the interface to display the source images and the fusion ratio control for setting the fusion ratio value of each source image;

[0104] The user selects the region where a certain object in the source image is located corresponding to the region in the fusion result image as the re-editing region of the fusion result image by clicking, painting or outlining, and sets the fusion ratio of each source image corresponding to the re-editing region by operating the fusion ratio control;

[0105] The terminal re-fuse the re-edited area according to the preset fusion algorithm and the parameters to be adjusted in the determined algorithm (i.e., the re-edited area obtained in the previous step and the fusion degree ratio of each source image corresponding to the re-edited area) and displays the re-fusion effect in real time;

[0106] After completing the reintegration of the last re-edited area, the user chooses whether to continue selecting the next re-edited area and setting the fusion degree ratio and then reintegrate the next re-edited area. If so, repeat the above process, otherwise end the re-editing and reintegration processing and save the target fusion image of the last fusion.

[0107] Figure 6 This is a third flow chart of the content publishing method provided in the embodiment of the present application, such as Figure 6 As shown, the method comprises the following steps:

[0108] Step 600, taking a double exposure photo;

[0109] Optionally, the user uses the double exposure function of the camera to obtain the original images of the two scenes and the final image fused by the software. When the images are saved to the album, the original images of the two scenes and the final image fused by the software are packaged into the same file and saved in the album;

[0110] Step 610, the user views the double exposure photo;

[0111] Optionally, when the user views the double-exposure image, if the user does not perform other operations within a preset time period, for example, the user does not manually click the "re-edit" control on the screen, indicating that the user does not want to operate the re-fusion process by himself, then the background is triggered to start the front camera to take a photo to obtain the current image viewer's avatar;

[0112] Step 620, the background opens the front camera to obtain the current viewer's head portrait;

[0113] Step 630, extracting the double-exposed two scene original images based on the head portrait analysis to obtain the area where the object of interest is located;

[0114] Optionally, the backend uses a built-in algorithm to identify and analyze the avatar to form a user portrait, and selects objects of interest to the user from the two original images of the double-exposed scenes according to the user's personalized preferences provided by the user portrait, and selects the area where the objects of interest to the user are located based on existing segmentation and contour extraction algorithms; the objects of interest to the user include preferred objects that meet the user's gender and age, and also include the user's own image;

[0115] Step 640, predicting user preferences based on the avatar information and selecting a fusion style that suits the current viewer's preferences;

[0116] Optionally, the user's face and facial information in the image can be analyzed through mature algorithms such as face recognition and age and gender checking. If the current viewer's face exists in the original image, the area where the viewer is located in the original image is judged and edited, and the fusion ratio of the image in the area where the current viewer is located is appropriately increased to highlight the image viewer; at the same time, the age and gender of the current viewer are analyzed, and the styles of different preferences of age and gender are integrated. For example, if the viewer is a young woman, it is judged that the user may like flowers, plants, small animals, etc., and when these objects exist in the original image during integration, the fusion ratio of the corresponding object area is appropriately increased to make it more prominent;

[0117] Step 650 , the background fuses the two scene original images based on the area where the object of interest is located and the fusion style preferred by the current viewer and dynamically presents them;

[0118] Optionally, the background fuses the two original scene images based on the area where the object of interest is located determined in step 630 and the fusion style determined in step 640 to complete the "re-editing" and then presents the new image to the user for viewing.

[0119] It should be noted that the image processing method provided in the embodiment of the present application can be executed by an image processing device or a control module in the image processing device for executing the image processing method. In the embodiment of the present application, the image processing device provided in the embodiment of the present application is described by taking the image processing device executing the image processing method as an example.

[0120] Figure 7 is a schematic diagram of the structure of an image processing device provided in an embodiment of the present application, such as Figure 7 As shown, the device includes: an acquisition module 710, a receiving module 720, a determination module 730, a fusion module 740 and a display module 750, wherein:

[0121] The acquisition module 710 is used to acquire a first image, where the first image is an image obtained by fusing at least two source images;

[0122] The receiving module 720 is used to receive a first input from a user;

[0123] The determination module 730 is used to determine, in response to the first input, a fusion degree ratio corresponding to each source image of at least two source images corresponding to the first image; wherein the sum of the fusion degree ratios corresponding to all source images corresponding to the first image is 1;

[0124] The fusion module 740 is used to re-fuse each of the source images based on the fusion degree proportions respectively corresponding to each of the source images to obtain a target image;

[0125] The display module 750 is used to display the target image.

[0126] Optionally, the image processing apparatus determines processing parameters for reintegration processing by the determination module 730 in response to the receiving module 720 receiving the first input of the user, and the fusion module 740 performs reintegration based on the processing parameters to obtain the target image and the display module 750 displays the target image.

[0127] In an embodiment of the present application, a first user input is received through a terminal, and the first input is used to trigger subsequent re-editing of the fused image based on user preferences, thereby avoiding the defect in the prior art that the fusion result cannot be modified, and further avoiding the problem that the fused image cannot be adjusted according to the preferences of the viewing user as the viewing user of the fused image changes or the preferences of the same viewing user of the fused image change at different times, thereby achieving the re-editing of the fused image according to the current image viewing user or his preferences to meet the needs of the current image viewing user.

[0128] Optionally, in response to the first input, determining a fusion degree ratio corresponding to each of at least two source images corresponding to the first image includes:

[0129] In response to the first input, a region to be edited in the first image and a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image are determined.

[0130] Optionally, the determining the area to be edited in the first image and the fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image includes:

[0131] A second input from the user is received, and in response to the second input, a region to be edited in the first image and a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image are determined.

[0132] Optionally, in response to the first input, determining a fusion degree ratio corresponding to each of at least two source images corresponding to the first image includes:

[0133] In response to the first input, capturing a user's facial image by a camera device;

[0134] Based on the collected user facial image, a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image is determined.

[0135] Optionally, determining the area to be edited in the first image includes:

[0136] In response to the first input, capturing a user's facial image by a camera device;

[0137] Based on the acquired facial image of the user, a region to be edited in the first image is determined.

[0138] Optionally, determining the area to be edited in the first image based on the collected user facial image includes:

[0139] In a case where the target source image includes a user image corresponding to the user facial image, determining a region in the target source image where the user image is located as the region to be edited; and / or

[0140] The personalized preferences of the user are determined based on the user facial image, and when the target source image includes an object image corresponding to the personalized preferences of the user, the area where the object image is located in the target source image is determined as the area to be edited.

[0141] Optionally, determining a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image includes:

[0142] Determining, based on a default fusion degree ratio, a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image; or

[0143] receiving a third input from the user, and determining, in response to the third input, a fusion ratio corresponding to each of the at least two source images corresponding to the first image; wherein the third input is an operation on a fusion ratio input control displayed on the re-editing interface;

[0144] The default fusion ratio is determined based on the personalized preferences of the user.

[0145] Optionally, acquiring the first image specifically includes:

[0146] Acquire a first image file package, where the first image file package includes all source images corresponding to the first image and the first image;

[0147] The image processing device further includes a storage module, which is used for:

[0148] Based on the target fused image and each source image, images are packaged and stored.

[0149] Optionally, an embodiment of the present application further provides an electronic device, Figure 8 This is one of the hardware structure diagrams of the electronic device provided in the embodiment of the present application. Figure 8 As shown, the electronic device includes a processor 810, a memory 809, and a program or instruction stored in the memory 809 and executable on the processor 810. When the program or instruction is executed by the processor 810, each process of the above-mentioned screenshot method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0150] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0151] Fig. 9 The second schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application.

[0152] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components.

[0153] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0154] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 941 and a microphone 942, and the graphics processor 941 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 may include a display panel 961, and the display panel 961 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 971 and other input devices 972. The touch panel 971 is also called a touch screen. The touch panel 971 may include two parts: a touch detection device and a touch controller. Other input devices 972 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0155] In the embodiment of the present application, the radio frequency unit 901 obtains information and then sends it to the processor 910 for processing. Generally, the radio frequency unit 901 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.

[0156] The memory 909 can be used to store software programs or instructions and various data. The memory 909 can mainly include a program or instruction storage area and a data storage area, wherein the program or instruction storage area can store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 909 can include a high-speed random access memory, and can also include a non-volatile memory, wherein the non-volatile memory can be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or a flash memory. For example, at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0157] The processor 910 may include one or more processing units; optionally, the processor 910 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs or instructions, etc., and the modem processor mainly processes wireless communications, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 910.

[0158] The user input unit 907 is used for:

[0159] receiving a first input from a user for re-editing the first image;

[0160] The processor 910 is used to:

[0161] Acquire a first image, where the first image is an image obtained by fusing at least two source images;

[0162] In response to the first input, determining a fusion degree ratio corresponding to each source image of at least two source images corresponding to the first image; wherein the sum of the fusion degree ratios corresponding to all source images corresponding to the first image is 1;

[0163] Based on the fusion degree proportions respectively corresponding to the source images, the source images are re-fused to obtain a target image;

[0164] The target image is displayed.

[0165] In the embodiment of the present application, by receiving a first input from a user for re-editing a first image, the first input is used to trigger subsequent re-editing of the fused image based on user preferences, thereby avoiding the defect in the prior art that the fusion result cannot be modified, and further avoiding the problem that the fused image cannot be adjusted according to the preferences of the viewing user as the viewing user of the fused image changes or the preferences of the same viewing user at different times, thereby achieving the re-editing of the fused image according to the current image viewing user or his preferences to meet the needs of the current image viewing user.

[0166] Optionally, the processor 910 is further configured to:

[0167] In response to the first input, a region to be edited in the first image and a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image are determined.

[0168] Optionally, the processor 910 is further configured to:

[0169] A second input from the user is received, and in response to the second input, a region to be edited in the first image and a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image are determined.

[0170] Optionally, the processor 910 is further configured to:

[0171] In response to the first input, capturing a user's facial image by a camera device;

[0172] Based on the collected user facial image, a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image is determined.

[0173] Optionally, the processor 910 is further configured to:

[0174] In response to the first input, capturing a user's facial image by a camera device;

[0175] Based on the acquired facial image of the user, a region to be edited in the first image is determined.

[0176] Optionally, the processor 910 is further configured to:

[0177] In a case where the target source image includes a user image corresponding to the user facial image, determining a region in the target source image where the user image is located as the region to be edited; and / or

[0178] The personalized preferences of the user are determined based on the user facial image, and when the target source image includes an object image corresponding to the personalized preferences of the user, the area where the object image is located in the target source image is determined as the area to be edited.

[0179] Optionally, the processor 910 is further configured to:

[0180] Determining, based on a default fusion degree ratio, a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image; or

[0181] receiving a third input from the user, and determining, in response to the third input, a fusion ratio corresponding to each of the at least two source images corresponding to the first image; wherein the third input is an operation on a fusion ratio input control displayed on the re-editing interface;

[0182] The default fusion ratio is determined based on the personalized preferences of the user.

[0183] Optionally, the processor 910 is further configured to:

[0184] Acquire a first image file package, where the first image file package includes all source images corresponding to the first image and the first image;

[0185] Based on the target image and each of the source images, a second image file package is generated and stored.

[0186] In an embodiment of the present application, by receiving a first input from a user, the first input is used to trigger subsequent re-editing of the fused image based on user preferences, thereby avoiding the defect in the prior art that the fusion result cannot be modified, and further avoiding the problem that the fused image cannot be adjusted according to the preferences of the viewing user as the viewing user of the fused image changes or the preferences of the same viewing user at different times. This achieves the ability to re-edit the fused image according to the current image viewing user or his preferences to meet the needs of the current image viewing user.

[0187] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned content publishing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0188] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0189] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned content publishing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0190] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0191] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0192] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0193] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An image processing method, characterized in that: include: Acquire a first image, where the first image is an image obtained by fusing at least two source images; receiving a first input from a user; In response to the first input, determining a fusion degree ratio corresponding to each source image of at least two source images corresponding to the first image; wherein the sum of the fusion degree ratios corresponding to all source images corresponding to the first image is 1; Based on the fusion degree proportions respectively corresponding to the source images, the source images are re-fused to obtain a target image; displaying the target image; The step of determining, in response to the first input, a fusion degree ratio corresponding to each of at least two source images corresponding to the first image, includes: In response to the first input, capturing a user's facial image by a camera device; A portrait analysis is performed based on the user's facial image to obtain the user's preference, and a to-be-edited area in the first image is determined based on the preference, as well as a fusion degree ratio corresponding to each of at least two source images corresponding to the first image.

2. The image processing method according to claim 1, characterized in that: The step of determining, in response to the first input, a fusion degree ratio corresponding to each of at least two source images corresponding to the first image, includes: In response to the first input, determining a region to be edited in the first image; For the area to be edited, the fusion degree ratios corresponding to the source images are determined.

3. The image processing method according to claim 2, characterized in that: The determining of the to-be-edited area in the first image and the fusion degree ratios of the respective source images in at least two source images corresponding to the first image includes: A second input from the user is received, and in response to the second input, a region to be edited in the first image and a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image are determined.

4. The image processing method according to claim 2, characterized in that: The determining the area to be edited in the first image includes: Collecting a user's facial image through a camera device; Based on the user facial image, a region to be edited in the first image is determined.

5. The image processing method according to claim 4, characterized in that: The determining, based on the user facial image, a region to be edited in the first image includes: In a case where the target source image includes a user image corresponding to the user facial image, determining a region in the target source image where the user image is located as the region to be edited; and / or The personalized preferences of the user are determined based on the user facial image, and when the target source image includes an object image corresponding to the personalized preferences of the user, the area where the object image is located in the target source image is determined as the area to be edited.

6. The image processing method according to claim 1 or 5, characterized in that: Determining the fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image includes: Determining, based on a default fusion degree ratio, a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image; or receiving a third input from the user, and determining, in response to the third input, a fusion ratio corresponding to each of the at least two source images corresponding to the first image; wherein the third input is an operation on a fusion ratio input control displayed on the re-editing interface; The default fusion ratio is determined based on the personalized preferences of the user.

7. The image processing method according to any one of claims 1 to 5, characterized in that: The acquiring of the first image specifically comprises: Acquire a first image file package, where the first image file package includes all source images corresponding to the first image and the first image; After obtaining the target image, the method further includes: Based on the target image and each of the source images, a second image file package is generated and stored.

8. An image processing device, characterized in that: include: An acquisition module, used to acquire a first image, where the first image is an image obtained by fusing at least two source images; A receiving module receives a first input from a user; a determination module, configured to determine, in response to the first input, a fusion degree ratio corresponding to each of at least two source images corresponding to the first image; wherein the sum of the fusion degree ratios corresponding to all source images corresponding to the first image is 1; A fusion module, configured to re-fuse each of the source images based on the fusion degree ratios respectively corresponding to each of the source images to obtain a target image; A display module, used for displaying the target image; The determination module is used to collect a user's facial image through a camera device in response to the first input; perform portrait analysis based on the user's facial image to obtain the user's preference, determine the area to be edited in the first image based on the preference, and determine the fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image.

9. The image processing device according to claim 8, characterized in that: The determining of the fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image includes: Determine a region to be edited in the first image and a fusion degree ratio corresponding to each source image in at least two source images corresponding to the first image.