WO2024251092A1 - 图像处理方法、装置、设备、存储介质和程序产品 - Google Patents
图像处理方法、装置、设备、存储介质和程序产品 Download PDFInfo
- Publication number
- WO2024251092A1 WO2024251092A1 PCT/CN2024/097128 CN2024097128W WO2024251092A1 WO 2024251092 A1 WO2024251092 A1 WO 2024251092A1 CN 2024097128 W CN2024097128 W CN 2024097128W WO 2024251092 A1 WO2024251092 A1 WO 2024251092A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- target element
- target
- cutout
- background
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
Definitions
- the present disclosure relates to the field of image processing technology, and in particular to an image processing method, apparatus, device, storage medium and program product.
- the embodiments of the present disclosure provide an image processing method, apparatus, device, storage medium and program product for editing target element images in an image to be edited, so as to achieve rapid creation of high-quality images while improving image creation efficiency.
- an embodiment of the present disclosure provides an image processing method, including:
- an image to be edited wherein the image to be edited includes a target element image and a background image;
- a background generation page is displayed; wherein a first area of the background generation page is used to display the target element, and a second area of the background generation page is used to display a target style option control;
- the target element image in the to-be-edited image is replaced with the target element style map.
- an image processing device including:
- the to-be-edited image acquisition module is used to acquire the to-be-edited image, wherein the to-be-edited image includes a target element image and a background image;
- a background generation page display module for displaying a background generation page in response to a triggering operation on an editing control corresponding to the target element image; wherein a first area of the background generation page is used to display the target element, and a second area of the background generation page is used to display a target style option control;
- a target element style map generating module used for generating a target element style map in response to a triggering operation on the target style option control
- the to-be-edited image processing module is configured to replace the target element image in the to-be-edited image with the target element style map in response to a confirmation operation on the target element style map.
- an embodiment of the present disclosure provides an electronic device, the electronic device comprising:
- processors one or more processors
- a storage device for storing one or more programs
- the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the image processing method as described in any one of the first aspects above.
- an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the image processing method as described in any one of the above-mentioned first aspects.
- an embodiment of the present disclosure provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the image processing method as described in any one of the first aspects above is implemented.
- the embodiments of the present disclosure provide an image processing method, apparatus, device, storage medium and program product, the method comprising: acquiring an image to be edited, wherein the image to be edited comprises a target element image and a background image; in response to a triggering operation on an editing control corresponding to the target element image, displaying a background generation page; wherein a first area of the background generation page is used to display a target element, and a second area of the background generation page is used to display a target style option control; in response to a triggering operation on the target style option control, generating a target element style map; in response to a confirmation operation on the target element style map, replacing the target element image in the image to be edited with the target element style map.
- FIG1 is a schematic diagram of replacing an image background in the prior art
- FIG2 is a schematic flow chart of an image processing method according to an embodiment of the present invention.
- FIG3 is a schematic diagram of an image processing page in an embodiment of the present disclosure.
- FIG4 is a schematic diagram of an image generation page including cutout prompt information in an embodiment of the present disclosure
- FIG5 is a schematic diagram of an image generation page including a mask image in an embodiment of the present disclosure
- FIG6 is a schematic diagram of a cutout page in an embodiment of the present disclosure.
- FIG. 7 is an image generation page including a prompt message of image cutout failure in an embodiment of the present disclosure
- FIG8 is a schematic diagram of the structure of an image processing device in an embodiment of the present disclosure.
- FIG. 9 is a schematic diagram of the structure of an electronic device in an embodiment of the present disclosure.
- the method of adaptively adjusting the background image of an image is to replace the background of the image.
- the commonly used method of replacing the background of an image is: as shown in Figure 1, one of the background images is selected from multiple background images as the target background image 11, and the target element image 12 whose background needs to be replaced is added to the target background image 11 as an image element.
- the added background image can only be selected from a limited number of candidate background images, and a completely new background image cannot be automatically generated. It is difficult to create a high-quality image that meets the requirements.
- the present disclosure provides an image processing method, which includes: obtaining an image to be edited, wherein the image to be edited includes a target element image and a background image; in response to a triggering operation on an editing control corresponding to the target element image, a background generation page is displayed; wherein the first area of the background generation page is used to display the target element, and the second area of the background generation page is used to display the target style option control; in response to a triggering operation on the target style option control, a target element style map is generated; in response to a confirmation operation on the target element style map, the target element image in the image to be edited is replaced with the target element style map, wherein the target element style map is related to the aesthetic attributes of the background image.
- the disclosed embodiment implements editing processing of the target element image in the image to be edited by performing style processing on the element image included in the image to be edited, so as to achieve rapid creation of high-quality images while improving image creation efficiency.
- the disclosed embodiment performs style processing on the background image of the element image included in the image to be edited, thereby performing editing processing on the target element image in the image to be edited, so as to achieve rapid creation of high-quality images and improve image creation efficiency.
- the image processing method provided by the present disclosure can be used to automatically generate a new image background to improve the image quality.
- the image background is not perfect, but too monotonous, and the atmosphere is not strong enough to attract the user's attention.
- the image processing method provided by the present invention can be used to automatically generate a new image background to provide an atmosphere for the image and attract the user's attention.
- FIG2 is a flow chart of an image processing method in an embodiment of the present disclosure.
- the present embodiment is applicable to the case of automatically generating an image background.
- the method can be executed by an image processing device, and the image processing device can be implemented in software and/or hardware.
- the image processing method provided by the embodiment of the present disclosure mainly includes steps S110 - S140 .
- S110 Acquire an image to be edited, wherein the image to be edited includes a target element image and a background image.
- the image to be edited may be an editable poster or magazine cover. As shown in FIG3 , the image to be edited 21 is displayed in the image processing page 20, and the image to be edited 21 includes at least one element image in the form of a picture and a background image 22, and the element images in the form of pictures are element images 23, element images 24, and element images 25. Any element image in the image to be edited can be used as a target element image.
- the element image includes a target element image and a background element image, wherein the target element image refers to the main photographed object in the target element image, that is, the foreground element image in the target element image, and the background element image refers to the image of the background area included in the target element image.
- the target element may be a person, an object, etc., wherein the person may be the entire human body or a specific part of the human body, such as the face, hands, upper body, etc.
- the object may be a table, clothes, beauty tools, etc.
- the specific type of the target element is not limited in the embodiments of the present disclosure.
- the image to be edited includes at least one After acquiring the image to be edited, the method further comprises: in response to a selection operation on any of the element images to be processed, taking the element image to be processed corresponding to the selection operation as the target element image.
- the selected element image to be processed in response to a user selecting any element image to be processed in the image to be edited, is used as a target element image.
- the element image 25 to be processed is used as a target element image.
- the user can select the element image to be processed displayed in the image to be edited, or can select it through the image identifier in the image selection area 26.
- the element image to be processed corresponding to the selected image identifier is used as the target element image, wherein the image identifier and the element image to be processed in the image to be edited are in a one-to-one correspondence.
- the method further includes: in response to an operation of adding a control to an element image, acquiring an added image corresponding to the operation, and using the added image as a target element image.
- the image selection area 26 further includes an image adding control 27. Specifically, in response to an operation on the image adding control 27, an image adding page is displayed, and in response to a selection operation on the image adding page, the selected adding image is used as a target element image. Further, the adding image is added to the image to be edited.
- an editing function area in response to a trigger operation for an image identifier corresponding to the target element image, an editing function area is displayed, wherein the editing function area displays at least one editing control, specifically, a background generation control is displayed in the editing function area, and the element Image replacement control and image capture control.
- the background generation control is used to respond to the user's trigger operation to enter the background generation page, so that the user can stylize the background area of the target element image.
- the element image replacement control is used to respond to the user's trigger operation to enter the image replacement page to select a new element image to replace the current target element image.
- the image capture control is used to respond to the user's trigger operation to enter the screenshot page, so that the user can screenshot the target element image.
- the target element displayed in the first area of the background generation page is obtained by performing a cutout process on the target element image, and the background of the target element displayed in the first area is a transparent background.
- the target element image in response to the user's triggering operation on the background generation control, is automatically cut out.
- a cutout prompt box 31 is displayed, and the cutout prompt box 31 displays cutout prompt information, and the cutout prompt information is used to prompt the user that the cutout process is in progress, wherein the cutout prompt information also includes the cutout progress, wherein the cutout progress is used to prompt the user the proportion of the automatic cutout that has been completed.
- the cutout progress can be displayed in the form of a progress bar or in the form of a number, which is not specifically limited in the embodiment of the present disclosure.
- the image obtained by the cutout processing is displayed in the background generation page 30.
- the cutout prompt box in the background generation page 30 is controlled to no longer be displayed.
- the background generation page 30 includes a first area 32 and a second area 33.
- the first area 32 is used to display the target element after the cutout, and the background area of the target element is transparent.
- the second area 33 is used to display multiple image style option controls to be selected.
- the target element with transparent background is displayed in the first area 32 included in the background generation page 30, and the target element editing control 34 is also displayed in the background generation page 30.
- the target element editing control 34 is used to edit the target element in response to a trigger operation by the user.
- the target element editing control 34 is an edit box, and the edit box is in a selected state. Furthermore, the edit box in the selected state edits the target element in response to an operation on the edit box.
- the above-mentioned editing of the target element may include scaling the target element, and may also include moving the target element, and rotating the target element.
- the scaling process is used to control the size of the target element in the entire image
- the moving process is used to control the position of the target element in the entire image
- the rotation process is used to control the direction of the target element in the entire image.
- a style map of the target element is generated based on the editing results of the target element, such as its position, size, rotation angle and other parameters.
- control edit box disappears, and the second image can no longer be edited. If the user wants to edit the second image again, the control edit box can be selected again to edit the second image again.
- the target style option control refers to an image style option control selected by a user.
- S130 In response to a triggering operation on the target style option control, generate a target element style map.
- a plurality of image style option controls are included in the background generation page 30, and the image style option controls can display more by sliding left and right.
- the image style option controls include a style image and a style name.
- Each image style option control corresponds to a stylized processing model.
- Each image style option control is used to identify a type of image style, such as summer beach, wild jungle, snowy mountain top, etc.
- the target element style map is generated in response to a triggering operation on the target style option control, including: obtaining a target stylization model corresponding to the target style option control; inputting the target element into the target stylization model so that the target stylization model performs stylization processing on the background area in the target element, and outputting a target element style map, wherein the style information of the background image in the target element style map is consistent with the style information corresponding to the target style option control.
- the image style option control corresponding to the selection operation in response to receiving a selection operation on any of the image style option controls, is used as a target style option control; a target stylization model corresponding to the target style option control is obtained, and the background area in the target element image is stylized using the target stylization model to obtain a target element style map, wherein the style information of the background element in the target original color style map is consistent with the style information corresponding to the target style option control, and the target element style map is related to the aesthetic attributes of the background image.
- the image style option control 1 in response to a selection operation on the image style option control 1, is used as a target style option control, and a stylized model corresponding to the image style option control 1 is obtained as a target stylized model, and the target stylized model is used to perform stylized processing on the background area in the target element image.
- the aesthetic attribute is used to describe the attribute of the image, and the aesthetic attribute may include balance elements, content, color harmony, depth of field, light, object, rule of thirds, color vividness, repetitiveness, symmetry, motion blur, etc.
- the target element style map is related to the aesthetic attribute of the background image, including: the target element style map is consistent with the aesthetic attribute of the background image, making the image to be edited more harmonious.
- the target element style map is related to the aesthetic attribute of the background image, including: the target element style map is opposite to the aesthetic attribute of the background image, making the elements in the image to be edited more conflicting.
- a target element image with a transparent background area is input into the target stylization model, so that the target stylization model The target element image with transparent background area is stylized and the target element style map is output.
- the target element image with a transparent background area is processed using a summer beach stylized model corresponding to the summer beach to obtain a target element style map, wherein the background style of the target element style map is summer beach.
- a background generation animation is displayed. After the background is generated, a target element style map is obtained. As shown in FIG5 , the target element style map is displayed in the first area 32 in the background generation page 30.
- the background generation animation supports cancellation. Clicking the cancel button will cause the animation to disappear and stop the process of stylizing the background area by the target stylization model.
- a background image of a target element is automatically generated through a stylized model, thereby avoiding the need to select a background image from an existing image and improving the image quality and the atmosphere of the image.
- the method also includes: in response to receiving a repeated trigger operation on the target style option control, inputting the target element image with a transparent background area into the target stylization model again, so that the target stylization model performs stylization processing on the target element image with a transparent background area again, and outputs a new target element style map, wherein the target elements included in the new target element style map are the same as the target elements included in the target element style map output for the first time, the new target element style map is different from the background elements included in the target element style map output for the first time, and the style information corresponding to the background elements of the target element style map output for the first time is the same as the style information corresponding to the background elements included in the new target element style map.
- the target element stylized image obtained after the background image is generated is displayed in the first area 32 of the background generation page 30 as shown in FIG. 5 .
- the user can also select a new image style option control again and use the new
- the stylized model corresponding to the image style option control performs stylized processing on the background area in the target element image where the background area is transparent.
- the new image style option control selected by the user again may be an image style option control selected before, for example, the image style option control selected by the user for the first time is image style option control 1, and the image style option control selected again is still image style option control 1.
- the stylized model corresponding to image style option control 1 is still called to perform stylized processing on the background area of the target element image whose background area is transparent.
- the stylized model since the stylized model performs stylized processing on the background area of the target element image in which the background area is transparent, the image of the background area is generated after the stylized model performs stylized processing. Therefore, even if the same image style option control is selected twice at the same time, the specific elements in the background area in the generated image are different.
- the target style is a summer beach as an example for explanation.
- a target element style map is generated, and when the summer beach is selected again, a new target element style map is generated, and the target elements in the two target element style maps are completely consistent.
- the style information of the background area in the two target element style maps is also consistent.
- the style of the background area of the target element style map is a summer beach
- the style of the background area of the new target element style map is also a summer beach.
- the specific image elements in the background area of the two target element style maps are different. For example: when both are in the summer beach style, the number, position, and size of the shells in the image are inconsistent. It can also be that the proportion of the area occupied by the sea water is inconsistent, the color of the sea water is inconsistent, and so on.
- the style information in the image background generated each time is consistent, but the specific image elements are inconsistent. In this way, users can generate different background images for the same style, so that users can get images that they are satisfied with.
- S140 In response to a confirmation operation on the target element style map, replace the target element image in the image to be edited with the target element style map.
- a background generation operation is performed on a target element image.
- an image confirmation control is included in the background generation page.
- an image processing page as shown in FIG3 is displayed, and the target element image in the image to be edited is replaced with the target element style map.
- aesthetic attribute information in the background image is extracted, and based on the aesthetic attribute information of the background image, an image style option control related to the aesthetic attribute information is pulled.
- the above operation can be performed for all element images included in the image to be edited.
- the image processing page includes an image export control, and in response to a trigger operation on the image export control, a picture is generated for the image to be edited in the image processing page.
- a technical solution for generating backgrounds for multiple images in the same image to be edited is provided to improve the image processing efficiency.
- the cutout process can be performed again on the second image.
- the cutout process can be performed again on the second image including the target element and the transparent background.
- the embodiments of the present disclosure further optimize the above-mentioned embodiments.
- the target element image in response to the user's triggering operation on the background generation control, the target element image is automatically cut out and the background generation page is entered.
- the embodiments of the present disclosure provide a solution for optimizing the cutout after the automatic cutout is successful.
- the first area of the background generation page also includes: a cutout entry control, which displays the cutout entry control in response to receiving the triggering operation on the cutout entry control.
- the cutout page includes at least one cutout operation control and a mask image corresponding to the target element; in response to an operation on the cutout operation control, the mask image corresponding to the target element is cutout processed.
- the cutout page 40 in response to the trigger operation on the cutout entry control 36, the cutout page is entered.
- the cutout page 40 includes an image display area 41 and a cutout operation control display area 42.
- the mask image corresponding to the target element is displayed in the image display area 41.
- the mask image corresponding to the target element maintains the position and size before entering the cutout page 40, and cannot be moved, scaled, or rotated.
- the cutout operation control display area 42 includes a plurality of cutout operation controls for responding to user operations to the mask image corresponding to the target element.
- the cutout operation control display area 42 includes a smart brush control, a manual smear control, an eraser control, a reset control, and a cutout completion control.
- the corresponding cutout area of the mask image corresponding to the target element is automatically drawn and the cutout processing is performed.
- the manual painting mode is entered.
- the cutout area corresponding to the mask image corresponding to the target element is determined, and the cutout processing is performed.
- the smart brush or manual painting mode when using a brush to paint the screen with the mask image corresponding to the target element, the mask image needs to be displayed in real time at the painting position.
- the brush supports adjustment parameters: size, hardness, and transparency. As shown in Figure 6, the brush parameters are adjusted in the form of sliders: the slider value is 1-100.
- the smear traces of the mask image corresponding to the target element are erased.
- the eraser brush supports adjustment parameters: size, hardness, transparency, and the brush parameters are adjusted in the form of a slider: the slider value is 1-100. The sliders of the eraser and the brush are set separately.
- a mask image corresponding to the target element is reset.
- a reset operation is performed, that is, the cutout operation of the mask image corresponding to the target element is deleted, and the mask image corresponding to the target element is restored to the initial state when the cutout page is entered.
- the cutout page also includes a cutout completion control.
- the cutout processing of the mask image corresponding to the target element is ended, and the cutout operation performed on the cutout page is applied, and the background generation page is returned to as shown in FIG5 .
- the user can perform manual cutout to optimize the cutout effect and improve the quality of the image.
- the embodiment of the present disclosure further optimizes the above-mentioned embodiment.
- the target element image in response to the user's triggering operation on the background generation control, the target element image is automatically cut out. If an instruction of successful automatic cutout is received, the background generation page is entered.
- the target element image and the cutout entry control are displayed in the first area of the background generation page; in response to receiving a triggering operation for the cutout entry control, a cutout page is displayed, wherein the cutout page includes at least one cutout operation control and the target element image; in response to the operation on the cutout operation control, the target element image is cut out.
- the target element image and the cutout entry control are displayed in the background generation page.
- the background generation page 30 displays the target element image of the original background element in the background area and a cutout failure prompt box 36, wherein the cutout failure prompt box 36 includes a cutout failure prompt message, a cutout entry control, and a cancel control.
- a cutout page in response to a trigger operation on the cutout entry control, a cutout page is displayed.
- the cutout page is consistent with the layout and control content display in the cutout page in the above embodiment.
- the background area is displayed in the image display area of the cutout page as The target element image of the original background element.
- the cutout entry control is displayed, and in response to the triggering operation of the cutout entry control, the cutout page is displayed, and the target element image with the background area being the original background element is displayed in the image display area of the cutout page.
- the cutout page is entered through the cutout control 35 in the background generation page, and the mask image corresponding to the target element in the target element image is displayed in the image display area of the cutout page, and the background is transparent.
- cutout page except for the image displayed in the image display area, other contents are the same.
- the cutout method for the target element image is the same as the cutout method for the mask image corresponding to the target element of the target element image described in the above embodiment. Please refer to the description in the above embodiment for details, and will not be repeated in the present disclosed embodiment.
- a manual cutout solution is provided to improve the success rate of background generation and avoid the situation where the background generation fails due to the cutout failure.
- a background generation page in response to a trigger operation for a cancel control, a background generation page is displayed, and the background generation page is shown in FIG6.
- the background generation page is entered by triggering the cancel control, and the image display area in the background generation page is used to display the target element image, that is, including the target element and the original background element in the target element image.
- the background generation page is entered, and the image display area in the background generation page is used to display an image including the target element and a transparent background.
- the target element image can still be further processed through the controls in the background generation page.
- further processing includes cutting out the target element image. It also includes directly using the target element after manual cutout to perform background stylization processing.
- FIG8 is a schematic diagram of the structure of an image processing device in an embodiment of the present disclosure.
- the present embodiment is applicable to the case of generating an image background.
- the image processing device can be implemented in software and/or hardware.
- the image processing device 80 mainly includes: an image acquisition module 81 for editing, a background generation page display module 82 , a target element style map generation module 83 and an image processing module 84 for editing.
- the image to be edited acquisition module 81 is used to acquire the image to be edited, wherein the image to be edited includes a target element image and a background image;
- the background generation page display module 82 is used to display the background generation page in response to the triggering operation of the editing control corresponding to the target element image; wherein the first area of the background generation page is used to display the target element, and the second area of the background generation page is used to display the target style option control;
- the target element style map generation module 83 is used to generate a target element style map in response to the triggering operation of the target style option control;
- the image to be edited processing module 84 is used to replace the target element image in the image to be edited with the target element style map in response to the confirmation operation of the target element style map.
- the image to be edited includes at least one element image to be processed
- the device also includes: a target element image determination module, which is used to, after acquiring the image to be edited, respond to a selection operation on any of the element images to be processed and use the element image to be processed corresponding to the selection operation as the target element image.
- the target element image determination module is further used to, after acquiring the image to be edited, in response to an operation of adding a control to the element image, acquire an added image corresponding to the operation, and use the added image as the target element image.
- the target element displayed in the first area of the background generation page is obtained by performing a cutout process on the target element image, and the background of the target element displayed in the first area is a transparent background.
- the target element style map generation module 83 includes: a target stylized model acquisition unit, used to acquire the target stylized model corresponding to the target style option control; a target stylized model processing unit, used to input the target element into the target stylized model so that the target stylized model can be used to generate the target element style map;
- the background area in the target element is stylized and a target element style map is output, wherein style information of the background element in the target element style map is consistent with style information corresponding to the target style option control, wherein the target element style map is related to the aesthetic attributes of the background image.
- the first area of the background generation page further includes: a target element editing control, and the target element editing control is used to edit the target element in response to a trigger operation of the user.
- the first area of the background generation page also includes: a cutout entry control
- the device also includes: a cutout page display module, which is used to display a cutout page in response to receiving a trigger operation for the cutout entry control, wherein the cutout page includes at least one cutout operation control and a mask image corresponding to the target element; a cutout processing module, which is used to perform cutout processing on the mask image corresponding to the target element in response to an operation on the cutout operation control.
- the background generation page display module 82 is further used to display the target element image and the cutout entry control in the first area of the background generation page in response to receiving an instruction of cutout failure; the cutout page display module is further used to display the cutout page in response to receiving a trigger operation for the cutout entry control, wherein the cutout page includes at least one cutout operation control and the target element image; the cutout processing module is further used to perform cutout processing on the target element image in response to an operation on the cutout operation control.
- the image processing device provided in the embodiment of the present disclosure can execute the steps executed in the image processing method provided in the method embodiment of the present disclosure, and the execution steps and beneficial effects are no longer repeated here.
- FIG9 is a schematic diagram of the structure of an electronic device in an embodiment of the present disclosure. Referring to FIG9 in detail below, it shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure.
- the electronic device 900 in the embodiment of the present disclosure may include but is not limited to a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD
- the electronic device shown in FIG9 is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
- the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903 to implement the image processing method of the embodiment described in the present disclosure.
- a processing device e.g., a central processing unit, a graphics processing unit, etc.
- RAM random access memory
- Various programs and data required for the operation of the terminal device 900 are also stored in the RAM 903.
- the processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904.
- An input/output (I/O) interface 905 is also connected to the bus 904.
- the following devices may be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909.
- the communication devices 909 may allow the terminal device 900 to communicate wirelessly or wired with other devices to exchange data.
- FIG. 9 shows a terminal device 900 with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
- an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart, thereby implementing the image processing method as described above.
- the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902.
- the processing device 901 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
- the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two.
- the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above.
- Computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
- a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.
- a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried.
- This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above.
- the computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device.
- the program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
- the client and server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network).
- HTTP HyperText Transfer Protocol
- Examples of communication networks include a local area network ("LAN”), a wide area network ("WAN”), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
- the computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
- the above-mentioned computer-readable medium carries one or more programs.
- the terminal device obtains an image to be edited, wherein the image to be edited includes a target element image and a background image; in response to a triggering operation on an editing control corresponding to the target element image, displays a background generation page; wherein a first area of the background generation page is used to display a target element, and a second area of the background generation page is used to display a target style option control; in response to a triggering operation on the target style option control, generates a target element style map; in response to a confirmation operation on the target element style map, replaces the target element image in the image to be edited with the target element style map, wherein the target element style map is related to the aesthetic properties of the background image.
- the terminal device may also execute other steps described in the above embodiments.
- Computer program code for performing the operations of the present disclosure may 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, C++, and conventional procedural programming languages, such as "C" or similar programming languages.
- the program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server.
- the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
- LAN local area network
- WAN wide area network
- Internet service provider e.g., AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
- each box in the flowchart or block diagram may represent a module, a program segment, or a portion of code, which contains one or more executable instructions for implementing the specified logical functions.
- the box The functions noted in the figures may also occur in a different order than that noted in the figures. For example, two boxes shown in succession may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending on the functions involved.
- each box in the block diagram and/or flow chart, and combinations of boxes in the block diagram and/or flow chart may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
- the units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
- exemplary types of hardware logic components include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
- FPGAs field programmable gate arrays
- ASICs application specific integrated circuits
- ASSPs application specific standard products
- SOCs systems on chips
- CPLDs complex programmable logic devices
- a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment.
- a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
- a machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing.
- a more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
- RAM random access memory
- ROM read-only memory
- EPROM or flash memory erasable programmable read-only memory
- CD-ROM portable compact disk read-only memory
- CD-ROM compact disk read-only memory
- magnetic storage device or any suitable combination of the foregoing.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
Claims (12)
- 一种图像处理方法,包括:获取待编辑图像,其中,所述待编辑图像包括目标元素图像和背景图像;响应于对与所述目标元素图像对应的编辑控件的触发操作,展示背景生成页面;其中,所述背景生成页面的第一区域用于展示目标元素,所述背景生成页面的第二区域用于展示目标风格选项控件;响应于对所述目标风格选项控件的触发操作,生成目标元素风格图;响应于对所述目标元素风格图的确认操作,将所述待编辑图像中的所述目标元素图像替换为所述目标元素风格图。
- 根据权利要求1所述的图像处理方法,其中所述待编辑图像包括至少一个待处理元素图像,所述获取待编辑图像之后,所述方法还包括:响应于针对任一所述待处理元素图像的选取操作,将所述选取操作对应的待处理元素图像作为目标元素图像。
- 根据权利要求1所述的图像处理方法,其中所述获取待编辑图像之后,所述方法还包括:响应于针对元素图像添加控件的操作,获取所述操作对应的添加图像,并将所述添加图像作为目标元素图像。
- 根据权利要求1所述的图像处理方法,其中所述背景生成页面的第一区域展示的目标元素由所述目标元素图像进行抠图处理后得到,所述第一区域中展示的目标元素的背景为透明背景。
- 根据权利要求1所述的图像处理方法,其中所述响应于对所述 目标风格选项控件的触发操作,生成目标元素风格图,包括:获取所述目标风格选项控件对应的目标风格化模型;将所述目标元素中输入至所述目标风格化模型,以使得所述目标风格化模型对所述目标元素中的背景区域进行风格化处理,并输出目标元素风格图,其中,目标元素风格图中的背景区域的风格信息与目标风格选项控件对应的风格信息一致,所述目标元素风格图与所述背景图像的美学属性相关。
- 根据权利要求1所述的图像处理方法,其中所述背景生成页面的第一区域中还包括:目标元素编辑控件,所述目标元素编辑控件用于响应于用户的触发操作,对所述目标元素进行编辑。
- 根据权利要求4所述的图像处理方法,其中所述背景生成页面的第一区域中还包括:抠图入口控件,所述方法还包括:响应于接收到针对所述抠图入口控件的触发操作,显示抠图页面,其中,所述抠图页面中包括至少一个抠图操作控件以及所述目标元素对应的掩膜图像;响应于针对所述抠图操作控件的操作,对所述目标元素对应的掩膜图像进行抠图处理。
- 根据权利要求4所述的图像处理方法,所述方法还包括:响应于接收到抠图失败的指令,在所述背景生成页面的第一区域中显示所述目标元素图像以及抠图入口控件;响应于接收到针对所述抠图入口控件的触发操作,显示抠图页面,其中,所述抠图页面中包括至少一个抠图操作控件以及所述目标元素图像;响应于针对所述抠图操作控件的操作,对所述目标元素图像进行 抠图处理。
- 一种图像处理装置,包括:待编辑图像获取模块,用于获取待编辑图像,其中,所述待编辑图像包括目标元素图像和背景图像;背景生成页面展示模块,用于响应于对与所述目标元素图像对应的编辑控件的触发操作,展示背景生成页面;其中,所述背景生成页面的第一区域用于展示目标元素,所述背景生成页面的第二区域用于展示目标风格选项控件;目标元素风格图生成模块,用于响应于对所述目标风格选项控件的触发操作,生成目标元素风格图;待编辑图像处理模块,用于响应于对所述目标元素风格图的确认操作,将所述待编辑图像中的所述目标元素图像替换为所述目标元素风格图。
- 一种电子设备,所述电子设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-8中任一项所述的图像处理方法。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-8中任一项所述的图像处理方法。
- 一种计算机程序产品,该计算机程序产品包括计算机程序或指令,该计算机程序或指令被处理器执行时实现如权利要求1-8中任一项所述的图像处理方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP24818624.9A EP4726519A1 (en) | 2023-06-06 | 2024-06-03 | Image processing method and apparatus, and device, storage medium and program product |
| KR1020257042509A KR20260011767A (ko) | 2023-06-06 | 2024-06-03 | 이미지 처리 방법 및 장치, 및 디바이스, 저장 매체 및 프로그램 제품 |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310666538.5A CN116578226A (zh) | 2023-06-06 | 2023-06-06 | 图像处理方法、装置、设备、存储介质和程序产品 |
| CN202310666538.5 | 2023-06-06 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024251092A1 true WO2024251092A1 (zh) | 2024-12-12 |
Family
ID=87545261
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/097128 Ceased WO2024251092A1 (zh) | 2023-06-06 | 2024-06-03 | 图像处理方法、装置、设备、存储介质和程序产品 |
Country Status (4)
| Country | Link |
|---|---|
| EP (1) | EP4726519A1 (zh) |
| KR (1) | KR20260011767A (zh) |
| CN (1) | CN116578226A (zh) |
| WO (1) | WO2024251092A1 (zh) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116578226A (zh) * | 2023-06-06 | 2023-08-11 | 北京字跳网络技术有限公司 | 图像处理方法、装置、设备、存储介质和程序产品 |
| CN117112826A (zh) * | 2023-08-24 | 2023-11-24 | 北京火山引擎科技有限公司 | 一种图像生成方法、装置、计算机设备及存储介质 |
| CN116977493A (zh) * | 2023-08-31 | 2023-10-31 | 抖音视界有限公司 | 图像生成方法、装置、计算机可读介质及电子设备 |
| CN117392280A (zh) * | 2023-10-24 | 2024-01-12 | 北京字跳网络技术有限公司 | 图像处理方法、装置、设备、计算机可读存储介质及产品 |
| CN117908743A (zh) * | 2024-01-18 | 2024-04-19 | 北京字跳网络技术有限公司 | 一种媒体数据处理方法、装置、电子设备及存储介质 |
| CN121170044A (zh) * | 2024-06-19 | 2025-12-19 | 华为云计算技术有限公司 | 图像处理方法及设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113763233A (zh) * | 2021-08-04 | 2021-12-07 | 深圳盈天下视觉科技有限公司 | 一种图像处理方法、服务器及拍照设备 |
| CN114913061A (zh) * | 2022-06-02 | 2022-08-16 | 北京字跳网络技术有限公司 | 一种图像处理方法、装置、存储介质及电子设备 |
| CN115578278A (zh) * | 2022-09-30 | 2023-01-06 | 北京字跳网络技术有限公司 | 图像处理方法、装置、设备、计算机可读存储介质及产品 |
| US20230091423A1 (en) * | 2021-11-22 | 2023-03-23 | Beijing Baidu Netcom Science Technology Co., Ltd. | Method of displaying image, electronic device and storage medium |
| CN116578226A (zh) * | 2023-06-06 | 2023-08-11 | 北京字跳网络技术有限公司 | 图像处理方法、装置、设备、存储介质和程序产品 |
-
2023
- 2023-06-06 CN CN202310666538.5A patent/CN116578226A/zh active Pending
-
2024
- 2024-06-03 WO PCT/CN2024/097128 patent/WO2024251092A1/zh not_active Ceased
- 2024-06-03 KR KR1020257042509A patent/KR20260011767A/ko active Pending
- 2024-06-03 EP EP24818624.9A patent/EP4726519A1/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113763233A (zh) * | 2021-08-04 | 2021-12-07 | 深圳盈天下视觉科技有限公司 | 一种图像处理方法、服务器及拍照设备 |
| US20230091423A1 (en) * | 2021-11-22 | 2023-03-23 | Beijing Baidu Netcom Science Technology Co., Ltd. | Method of displaying image, electronic device and storage medium |
| CN114913061A (zh) * | 2022-06-02 | 2022-08-16 | 北京字跳网络技术有限公司 | 一种图像处理方法、装置、存储介质及电子设备 |
| CN115578278A (zh) * | 2022-09-30 | 2023-01-06 | 北京字跳网络技术有限公司 | 图像处理方法、装置、设备、计算机可读存储介质及产品 |
| CN116578226A (zh) * | 2023-06-06 | 2023-08-11 | 北京字跳网络技术有限公司 | 图像处理方法、装置、设备、存储介质和程序产品 |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4726519A1 (en) | 2026-04-15 |
| KR20260011767A (ko) | 2026-01-23 |
| CN116578226A (zh) | 2023-08-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2024251092A1 (zh) | 图像处理方法、装置、设备、存储介质和程序产品 | |
| JP7568378B2 (ja) | 画像表示方法、装置、機器及び媒体 | |
| US20110113361A1 (en) | Adjustment presets for digital images | |
| WO2024251228A1 (zh) | 媒体内容展示方法、装置、电子设备及存储介质 | |
| CN113613067A (zh) | 视频处理方法、装置、设备及存储介质 | |
| CN110134300A (zh) | 一种图片编辑方法及装置 | |
| WO2024140166A1 (zh) | 特效处理方法、装置、电子设备及存储介质 | |
| WO2024198947A1 (zh) | 虚拟场景处理方法、装置、电子设备及存储介质 | |
| WO2024067144A1 (zh) | 图像处理方法、装置、设备、计算机可读存储介质及产品 | |
| CN113705156A (zh) | 字符处理方法及装置 | |
| WO2025118949A1 (zh) | 特效处理方法、装置、电子设备及存储介质 | |
| WO2025031371A1 (zh) | 特效的生成方法、装置、电子设备和存储介质 | |
| WO2025011490A1 (zh) | 视频特效添加方法、装置、设备、存储介质和程序产品 | |
| WO2024099353A1 (zh) | 视频处理方法、装置、电子设备及存储介质 | |
| CN118411436A (zh) | 漫画生成方法、装置、电子设备和存储介质 | |
| WO2026002162A1 (zh) | 图像处理方法、装置、电子设备及存储介质 | |
| WO2025087159A1 (zh) | 图像处理方法、装置、设备、计算机可读存储介质及产品 | |
| WO2025036409A1 (zh) | 媒体内容处理方法、设备、存储介质及程序产品 | |
| WO2025011491A1 (zh) | 视频处理方法、装置、设备、存储介质和程序产品 | |
| WO2025098269A1 (zh) | 视频处理方法、装置、电子设备及存储介质 | |
| CN108536510B (zh) | 基于人机交互应用程序的实现方法和装置 | |
| WO2024078409A1 (zh) | 图像预览方法、装置、电子设备及存储介质 | |
| CN113559503B (zh) | 视频生成方法、设备及计算机可读介质 | |
| WO2023185968A1 (zh) | 相机功能页面切换方法、装置、电子设备及存储介质 | |
| CN116459516A (zh) | 分屏特效道具生成方法、装置、设备和介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24818624 Country of ref document: EP Kind code of ref document: A1 |
|
| ENP | Entry into the national phase |
Ref document number: 1020257042509 Country of ref document: KR Free format text: ST27 STATUS EVENT CODE: A-0-1-A10-A15-NAP-PA0105 (AS PROVIDED BY THE NATIONAL OFFICE) |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 1020257042509 Country of ref document: KR |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2024818624 Country of ref document: EP |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| ENP | Entry into the national phase |
Ref document number: 2024818624 Country of ref document: EP Effective date: 20260107 |
|
| ENP | Entry into the national phase |
Ref document number: 2024818624 Country of ref document: EP Effective date: 20260107 |
|
| WWP | Wipo information: published in national office |
Ref document number: 1020257042509 Country of ref document: KR |
|
| ENP | Entry into the national phase |
Ref document number: 2024818624 Country of ref document: EP Effective date: 20260107 |
|
| ENP | Entry into the national phase |
Ref document number: 2024818624 Country of ref document: EP Effective date: 20260107 |
|
| ENP | Entry into the national phase |
Ref document number: 2024818624 Country of ref document: EP Effective date: 20260107 |
|
| WWP | Wipo information: published in national office |
Ref document number: 2024818624 Country of ref document: EP |