WO2023020316A1 - 一种图像处理方法、装置、设备及存储介质 - Google Patents
一种图像处理方法、装置、设备及存储介质 Download PDFInfo
- Publication number
- WO2023020316A1 WO2023020316A1 PCT/CN2022/110798 CN2022110798W WO2023020316A1 WO 2023020316 A1 WO2023020316 A1 WO 2023020316A1 CN 2022110798 W CN2022110798 W CN 2022110798W WO 2023020316 A1 WO2023020316 A1 WO 2023020316A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- matting
- cutout
- result
- image
- preset
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000012545 processing Methods 0.000 claims abstract description 37
- 238000000034 method Methods 0.000 claims abstract description 31
- 230000000694 effects Effects 0.000 claims abstract description 22
- 230000001960 triggered effect Effects 0.000 claims abstract description 21
- 238000004590 computer program Methods 0.000 claims description 15
- 230000004044 response Effects 0.000 claims description 11
- 230000006870 function Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 238000005520 cutting process Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/194—Segmentation; Edge detection involving foreground-background segmentation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/272—Means for inserting a foreground image in a background image, i.e. inlay, outlay
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20092—Interactive image processing based on input by user
- G06T2207/20104—Interactive definition of region of interest [ROI]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
Definitions
- the present disclosure relates to the field of data processing, and in particular to an image processing method, device, equipment and storage medium.
- Cutout is one of the commonly used operations in image processing. Specifically, it is to accurately separate a part of the original image from the original image and become a separate layer, which serves as an important basis for subsequent image processing.
- the cutout mode can be divided into manual cutout mode, automatic cutout mode and semi-automatic cutout mode based on the degree of intelligence, and cutout users can only choose one of the cutout modes to process the original image.
- the same original image cannot be matted using multiple matting modes at the same time.
- the automatic matting mode has a higher degree of intelligence, which can save the user's matting time, while the semi-automatic matting mode and manual matting mode have higher matting precision. , which can improve the matting quality.
- the present disclosure provides an image processing method, device, equipment and storage medium, by drawing the cutout results in different cutout modes on the same canvas, to realize It provides the function of performing matting processing on the same image by using multiple matting modes at the same time.
- the present disclosure provides an image processing method, the method comprising:
- a matting effect map of the image to be processed is determined.
- the first cutout mode and the second cutout mode respectively belong to one of the preset automatic cutout mode, the preset manual cutout mode and the preset semi-automatic cutout mode A cutout mode, and the first cutout mode and the second cutout mode belong to different cutout modes.
- the first cutout mode belongs to a preset semi-automatic cutout mode, and the cutout operation is obtained in response to a cutout operation triggered for an image to be processed in the first cutout mode
- the corresponding matting result includes:
- the previous matting result and the image to be processed and according to a preset semi-automatic matting algorithm, obtain a matting algorithm result map corresponding to the matting operation;
- a matting result corresponding to the matting operation is obtained as a first matting result.
- the previous cutout result corresponding to the cutout operation is stored in a preset array, and the preset array is used to store each cutout in the preset semi-automatic cutout mode according to the order of execution.
- the obtaining a matting result corresponding to the matting operation based on the matting algorithm result graph, as the first matting result includes:
- the drawing the first matting result on the preset canvas includes:
- the present disclosure provides an image processing device, the device comprising:
- An obtaining module configured to obtain a cutout result corresponding to the cutout operation as a first cutout result in response to a cutout operation triggered for the image to be processed in the first cutout mode
- a drawing module configured to draw the first matting result on a preset canvas; wherein, a second matting result is drawn on the preset canvas, and the second matting result is in a second matting mode
- a determining module configured to determine a cutout effect map of the image to be processed based on the first cutout result and the second cutout result on the preset canvas.
- the present disclosure provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the terminal device is made to implement the above method.
- the present disclosure provides a device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program, Implement the above method.
- the present disclosure provides a computer program product, where the computer program product includes a computer program/instruction, and when the computer program/instruction is executed by a processor, the above method is implemented.
- An embodiment of the present disclosure provides an image processing method. First, in the first image matting mode, when a matting operation triggered for an image to be processed is received, the matting result corresponding to the matting operation is obtained as the first matting operation. Cutout result. Then, the first matting result is drawn on the preset canvas; wherein, the second matting result is drawn on the preset canvas, and the second matting result is the matting result of the image to be processed in the second matting mode. Furthermore, based on the first matting result and the second matting result on the preset canvas, a matting effect map of the image to be processed is determined. In the embodiment of the present disclosure, by drawing the matting results of the same image to be processed in different matting modes on the same canvas, the function of matting the same image by using multiple matting modes at the same time is realized.
- FIG. 1 is a flowchart of an image processing method provided by an embodiment of the present disclosure
- FIG. 2 is a schematic diagram of drawing matting results on a preset canvas provided by an embodiment of the present disclosure
- FIG. 3 is a schematic diagram of a cutout result in a semi-automatic cutout mode in the prior art
- FIG. 4 is a schematic diagram of a cutout result in a semi-automatic cutout mode provided by an embodiment of the present disclosure
- FIG. 5 is a schematic structural diagram of an image processing device provided by an embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of an image processing device provided by an embodiment of the present disclosure.
- the cutout mode can be divided into a manual cutout mode, an automatic cutout mode and a semi-automatic cutout mode based on the degree of intelligence.
- the manual cutout mode refers to generating a cutout result based only on the stroke area manually drawn by the user.
- the degree of intelligence is low, but the fineness of the cutout is high, and the user can manually select the cutout region of interest.
- the automatic matting mode refers to the automatic generation of matting results based on matting models or matting algorithms. It is highly intelligent, but the matting results may not meet user needs.
- the semi-automatic matting mode means that after the user draws the stroke area manually, based on the feature correlation between the pixels in the stroke area and the pixels in the surrounding area, a matting result including the stroke area drawn manually by the user is generated.
- an embodiment of the present disclosure provides an image processing method. First, in the first cutout mode, when a cutout operation triggered for an image to be processed is received, a cutout result corresponding to the cutout operation is obtained, As the first matting result; then, draw the first matting result on the preset canvas; wherein, the second matting result is drawn on the preset canvas, and the second matting result is at the The matting result of the image to be processed in the second matting mode. Furthermore, based on the first matting result and the second matting result on the preset canvas, a matting effect map of the image to be processed is determined. In the embodiment of the present disclosure, by drawing the matting results of the same image to be processed in different matting modes on the same canvas, the function of matting the same image by using multiple matting modes at the same time is realized.
- FIG. 1 it is a flowchart of an image processing method provided by an embodiment of the present disclosure. The method includes:
- the first cutout mode may be any one of a preset automatic cutout mode, a preset manual cutout mode, and a preset semi-automatic cutout mode.
- the matting result corresponding to the matting operation is obtained as the first matting result.
- the image cutout operation triggered for the image to be processed may include operations such as clicking or touching a preset automatic image cutout button.
- the image to be processed is automatically cut out to obtain the first image cutout result.
- the embodiment of the present disclosure does not limit the manner in which the image to be processed is automatically matted.
- the cutout operation triggered for the image to be processed may be an operation for the user to draw a stroke on the image to be processed.
- a matting process is performed based on the stroke area of the stroke to obtain a first matting result.
- the area corresponding to the first matting result coincides with the stroke area of the stroke.
- the cutout operation triggered for the image to be processed may also be an operation for the user to draw a stroke on the image to be processed.
- the matting result including the stroke area is obtained as The first cutout result.
- the semi-automatic image matting algorithm adopted by the preset semi-automatic image matting mode in the embodiments of the present disclosure is not limited here.
- S102 Draw the first matting result on the preset canvas; wherein, the second matting result is drawn on the preset canvas, and the second matting result is described in the second matting mode The matting result of the image to be processed.
- the first matting result corresponding to the matting operation is obtained, the first matting result is drawn on a preset canvas.
- the matting results of the same image to be processed in different matting modes are all drawn on the same canvas, that is, the preset canvas in the embodiment of the present disclosure, so as to ensure that different matting modes can be used for image processing.
- the function of performing matting processing on the same image to be processed meets the diverse matting needs of users.
- the preset canvas contains an image drawn based on the matting result of the image to be processed in the second matting mode
- the first matting result in the first matting mode for the pending mode is obtained Afterwards, the first matting result in the first matting mode is drawn on the preset canvas.
- the pixels drawn in the overlapping area on the preset canvas can be The opacity value of the point is set. Specifically, among the pixels having the same position coordinates in the first matting result in the first matting mode and the drawn image on the preset canvas, the transparency value of the pixel with a larger transparency value can be determined as the preset Set the transparency value of the pixel point on the canvas at the same position coordinates, so as to avoid the transparency of the overlapping area being lower than that of other areas, which will affect the display effect of the matting result.
- the first pixel in the first matting result in the first matting mode has the same position coordinates as the second pixel in the drawn image on the preset canvas
- the first pixel and the second pixel are determined
- the greater transparency value among the transparency values of the two pixels is used as the transparency value of the pixel at the same position coordinates on the preset canvas.
- draw the first matting result on the preset canvas based on the transparency values of the pixels on the preset canvas.
- FIG. 2 it is a schematic diagram of drawing matting results on a preset canvas provided by an embodiment of the present disclosure, wherein, for the preset automatic matting mode, the preset manual matting mode and the preset semi-automatic matting mode
- the matting results can be output to the same preset canvas, so as to ensure the matting effect of the image to be processed based on the preset canvas, and improve the matting effect for the matting effect of multiple matting modes at the same time. Cutout user experience.
- the embodiment of the present disclosure after the matting results of the same image to be processed in different matting modes are drawn on the preset canvas, based on the image drawn on the preset canvas, the matting effect of the image to be processed is displayed picture. Since the image drawn on the preset canvas contains the matting results for the same image to be processed in each matting mode, the embodiment of the present disclosure can realize matting processing on the same image by using multiple matting modes at the same time Function.
- the matting result corresponding to the matting operation is obtained as the first matting Figure results. Then, the first matting result is drawn on a preset canvas, wherein a second matting result is drawn on the preset canvas, and the second matting result is the to-be-processed result in the second matting mode. The matting result of the image. Furthermore, based on the first matting result and the second matting result on the preset canvas, a matting effect map of the image to be processed is determined. In the embodiment of the present disclosure, by drawing the matting results of the same image to be processed in different matting modes on the same canvas, the function of matting the same image by using multiple matting modes at the same time is realized.
- the embodiment of the present disclosure provides a method for obtaining a cutout result in a preset semi-automatic cutout mode. Specifically, in the preset semi-automatic cutout mode, the cutout result corresponding to the current cutout operation The determination of is not only related to the stroke area drawn by the user this time, but also related to the previous matting result corresponding to the current matting operation.
- FIG. 3 it is a schematic diagram of a cutout result in a semi-automatic cutout mode in the prior art, wherein the semi-automatic cutout mode corresponds to the “quick cutout” button in FIG. 3 .
- the gap in Figure 3 is not drawn, but in fact the gap in Figure 3 belongs to the matting area of interest of the matting user. Therefore, in the semi-automatic matting mode, it can automatically The seam is identified as being included in the matting result corresponding to the current matting operation.
- the embodiment of the present disclosure needs to at least store the previous image cutout result corresponding to the current image cutout operation in the preset semi-automatic image cutout mode.
- the stroke area corresponding to the matting operation is obtained, and the previous matting result corresponding to the matting operation is obtained.
- the stroke area, the previous matting result and the image to be processed are used as input parameters of the preset semi-automatic matting algorithm, and after processing according to the preset semi-automatic matting algorithm, the corresponding matting operation is obtained.
- the result map of the matting algorithm is used as input parameters of the preset semi-automatic matting algorithm.
- the preset semi-automatic matting algorithm is used based on the stroke area corresponding to the current matting operation, the previous matting result, and the to-be-processed
- the object is to determine the matting algorithm result map corresponding to the matting operation, wherein the preset semi-automatic matting algorithm can identify the gap as shown in FIG. 3 as being included in the matting result corresponding to the matting operation.
- the previous cutout result can be the cutout result generated by the user clicking the "Smart Cutout” button to enter the automatic cutout mode, or the result generated by the user clicking the "Quick Cutout” button to enter the semi-automatic cutout mode
- the cutout result after the user clicks the "Quick Cutout” button again to enter the preset semi-automatic cutout mode, obtain the stroke area drawn by the user this time, and use the preset semi-automatic cutout algorithm based on the previous cutout result, the stroke area and the object to be processed determine the result map of the matting algorithm.
- FIG. 4 it is a schematic diagram of the cutout result in the semi-automatic cutout mode obtained after the processing of the embodiment of the present disclosure. It can be seen that in the semi-automatic cutout mode, the gap shown in FIG. 3 can be automatically identified as included in the current In the cutout result corresponding to the cutout operation.
- the preset array in the semi-automatic matting mode, can be used to store the matting results corresponding to each step of the matting operation according to the execution order of the matting operation, so as to be used to determine the semi-automatic The cutout result of the current cutout operation in cutout mode.
- the semi-automatic image cutout mode has the function of undo operation (undo operation), as shown in FIG. 4 , the undo operation corresponds to the sign of "retracting forward".
- the embodiment of the present disclosure can implement the undo operation based on the cutout results corresponding to the cutout operations stored in the preset array in order of execution. Specifically, when an undo operation for any image cutout operation is received, the cutout result corresponding to the cutout operation in the preset array may be marked as a revocation flag to indicate that the cutout result has performed the undo operation.
- the matting result with the undo flag in the preset array is deleted, and the matting result corresponding to the newly added stroke operation is stored in the In the preset array, to ensure that when the undo operation is performed again, the undo is to the valid cutout result, not the cutout result with the undo flag.
- the matting algorithm result image output by the preset semi-automatic matting algorithm is a small image, usually with a size smaller than 512*512, to save system computing resources.
- the matting result drawn on the preset canvas is a large image, usually with a size of 2048*1080.
- the small image is first enlarged to obtain the corresponding large image. Therefore, the embodiments of the present disclosure can save computing resources of the system under the premise of ensuring the user experience in the semi-automatic cutout mode.
- the embodiments of the present disclosure firstly perform Gaussian blur processing on the result map of the matting algorithm corresponding to the matting operation to obtain the result map of the Gaussian blur. Then, after the Gaussian blur result map is enlarged according to a preset multiple, binarization processing is performed to obtain a cutout result corresponding to the cutout operation. After binarization processing, the edges and corners of the matting result can be made clear, thereby improving the quality of the matting effect map of the image to be processed.
- the operator (m, n) can be used to perform 1 to 3 passes of Gaussian blur processing on the map matting algorithm result image, where m and n both belong to any value in 3 to 5.
- any value in the range of 0.6-0.8 may be used as the threshold of the binarization process, so as to obtain a cutout effect map with clear edges and corners.
- the matting algorithm result map output by the preset semi-automatic matting algorithm in the semi-automatic matting mode is a small image, and the small image is enlarged and drawn before being drawn on the preset canvas, Therefore, on the premise of ensuring the user experience, the computing resources of the system are saved.
- the embodiment of the present disclosure can also reduce the jaggedness of the result map of the matting algorithm by performing Gaussian blur processing on the result map of the matting algorithm, and improve the quality of the matting effect map of the image to be processed.
- the embodiment of the present disclosure can also obtain a cutout effect map with sharp edges and corners through binarization processing, which further improves the quality of the cutout effect map of the image to be processed.
- FIG. 5 it is a schematic structural diagram of an image processing device provided by an embodiment of the present disclosure, and the device includes:
- the obtaining module 501 is configured to obtain a cutout result corresponding to the cutout operation as a first cutout result in response to a cutout operation triggered for the image to be processed in the first cutout mode;
- a drawing module 502 configured to draw the first matting result on a preset canvas; wherein, a second matting result is drawn on the preset canvas, and the second matting result is in the second matting The matting result of the image to be processed in the mode;
- the first determining module 503 is configured to determine a cutout effect map of the image to be processed based on the first cutout result and the second cutout result on the preset canvas.
- the first cutout mode and the second cutout mode respectively belong to one of the preset automatic cutout mode, the preset manual cutout mode and the preset semi-automatic cutout mode A cutout mode, and the first cutout mode and the second cutout mode belong to different cutout modes.
- the first cutout mode belongs to a preset semi-automatic cutout mode
- the obtaining module includes:
- the first acquisition submodule is configured to acquire the stroke area corresponding to the matting operation in response to the matting operation triggered for the image to be processed in the preset semi-automatic matting mode, and obtain the stroke area corresponding to the matting operation The previous matting result of ;
- the processing sub-module is used to input the stroke area, the previous matting result and the image to be processed into a preset semi-automatic matting algorithm, and output the result after being processed by the preset semi-automatic matting algorithm.
- the matting algorithm result map corresponding to the matting operation described above;
- the obtaining sub-module is configured to obtain the matting result corresponding to the matting operation based on the matting algorithm result map corresponding to the matting operation.
- the previous cutout result corresponding to the cutout operation is stored in a preset array, and the preset array is used to store each cutout in the preset semi-automatic cutout mode according to the order of execution.
- Mapping results corresponding to the graph operations respectively; the device also includes:
- a deletion module configured to delete the cutout result with a revocation flag in the preset array; wherein, the revocation mark is marked for the cutout result when the cutout operation corresponding to the cutout result is revoked.
- the obtaining submodule includes:
- the Gaussian sub-module is used to perform Gaussian blur processing on the matting algorithm result map corresponding to the matting operation to obtain a Gaussian blurred result map;
- the binarization sub-module is configured to enlarge the Gaussian blur result image according to a preset multiple, and then perform binarization processing to obtain the image matting result corresponding to the matting operation.
- the device further includes:
- the second determination module is used to determine the transparency value of the pixel with the larger transparency value among the pixels having the same position coordinates in the first matting result and the drawn image on the preset canvas as the preset The transparency value of the pixel at the same position coordinates on the canvas; wherein, the drawn image includes the second matting result;
- drawing module is specifically used for:
- the matting result corresponding to the matting operation is obtained as the first matting Figure results. Then, the first matting result is drawn on a preset canvas, wherein a second matting result is drawn on the preset canvas, and the second matting result is the to-be-processed result in the second matting mode. The matting result of the image. Furthermore, based on the first matting result and the second matting result on the preset canvas, a matting effect map of the image to be processed is determined. In the embodiment of the present disclosure, by drawing the matting results of the same image to be processed in different matting modes on the same canvas, the function of matting the same image by using multiple matting modes at the same time is realized.
- an embodiment of the present disclosure also provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the terminal device realizes this The image processing method described in the embodiment is disclosed.
- Embodiments of the present disclosure further provide a computer program product, including computer programs/instructions, wherein the computer program/instructions implement the image processing method described in the embodiments of the present disclosure when executed by a processor.
- an embodiment of the present disclosure also provides an image processing device, as shown in FIG. 6 , which may include:
- Processor 601 , memory 602 , input device 603 and output device 604 The number of processors 601 in the image processing device may be one or more, and one processor is taken as an example in FIG. 6 .
- the processor 601 , the memory 602 , the input device 603 and the output device 604 may be connected through a bus or in other ways, wherein connection through a bus is taken as an example in FIG. 6 .
- the memory 602 can be used to store software programs and modules, and the processor 601 executes various functional applications and data processing of the image processing device by running the software programs and modules stored in the memory 602 .
- the memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function, and the like.
- the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
- the input device 603 can be used to receive input digital or character information, and generate signal input related to user settings and function control of the image processing device.
- the processor 601 will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the executable files stored in the memory 602. application programs to realize various functions of the above-mentioned image processing device.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
Claims (10)
- 一种图像处理方法,其特征在于,所述方法包括:响应于第一抠图模式下针对待处理图像触发的抠图操作,获得所述抠图操作对应的抠图结果,作为第一抠图结果;将所述第一抠图结果绘制在预设画布上;其中,所述预设画布上绘制有第二抠图结果,所述第二抠图结果是在第二抠图模式下所述待处理图像的抠图结果;基于所述预设画布上的所述第一抠图结果和所述第二抠图结果,确定所述待处理图像的抠图效果图。
- 根据权利要求1所述的方法,其特征在于,所述第一抠图模式和所述第二抠图模式分别属于预设自动抠图模式、预设手动抠图模式和预设半自动抠图模式中的其中一种抠图模式,且所述第一抠图模式和所述第二抠图模式属于不同的抠图模式。
- 根据权利要求1所述的方法,其特征在于,所述第一抠图模式属于预设半自动抠图模式,所述响应于第一抠图模式下针对待处理图像触发的抠图操作,获得所述抠图操作对应的抠图结果,作为第一抠图结果,包括:响应于在所述预设半自动抠图模式下针对待处理图像触发的抠图操作,获取所述抠图操作对应的笔画区域,以及,获取所述抠图操作对应的前一次抠图结果;基于所述笔画区域、所述前一次抠图结果和所述待处理图像,并根据预设半自动抠图算法,获取所述抠图操作对应的抠图算法结果图;基于所述抠图算法结果图,获得所述抠图操作对应的抠图结果,作为第一抠图结果。
- 根据权利要求3所述的方法,其特征在于,所述抠图操作对应的前一次抠图结果存储于预设数组中,所述预设数组用于按照执行顺序存储所述预设半自动抠图模式中各个抠图操作分别对应的抠图结果;所述获取所述抠图操作对应的前一次抠图结果之前,还包括:删除所述预设数组中具有撤销标识的抠图结果;其中,所述撤销标识为在所述抠图结果对应的抠图操作被撤销时为所述抠图结果标记的。
- 根据权利要求3所述的方法,其特征在于,所述基于所述抠图算法结果图,获得所述抠图操作对应的抠图结果,作为第一抠图结果,包括:将所述抠图算法结果图进行高斯模糊处理,得到高斯模糊结果图;将所述高斯模糊结果图按照预设倍数进行放大处理后,执行二值化处理,得到所述抠图操作对应的抠图结果,作为第一抠图结果。
- 根据权利要求1所述的方法,其特征在于,所述将所述第一抠图结果绘制在预设画布上之前,还包括:将所述第一抠图结果与预设画布上的已绘制图像中具有相同位置坐标的像素点中透明度值较大的像素点的透明度值,确定为所述预设画布上处于所述相同位置坐标的像素点的透明度值;其中,所述已绘制图像包括所述第二抠图结果;相应的,所述将所述第一抠图结果绘制在预设画布上,包括:基于所述预设画布上的像素点的透明度值,在所述预设画布上绘制所述第一抠图结果。
- 一种图像处理装置,其特征在于,所述装置包括:获得模块,用于响应于第一抠图模式下针对待处理图像触发的抠图操作,获得所述抠图操作对应的抠图结果,作为第一抠图结果;绘制模块,用于将所述第一抠图结果绘制在预设画布上;其中,所述预设画布上绘制有第二抠图结果,所述第二抠图结果是在第二抠图模式下所述待处理图像的抠图结果;第一确定模块,用于基于所述预设画布上的所述第一抠图结果和所述第二抠图结果,确定所述待处理图像的抠图效果图。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备实现如权利要求1-6任一项所述的方法。
- 一种设备,其特征在于,包括:存储器,处理器,及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求1-6任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序或者指令,所述计算机程序或者指令被处理器执行时实现如权利要求1-6任一项所述的方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP22857628.6A EP4369296A1 (en) | 2021-08-18 | 2022-08-08 | Image processing method and apparatus, and device and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110948815.2 | 2021-08-18 | ||
CN202110948815.2A CN115708126A (zh) | 2021-08-18 | 2021-08-18 | 一种图像处理方法、装置、设备及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023020316A1 true WO2023020316A1 (zh) | 2023-02-23 |
Family
ID=85212495
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/110798 WO2023020316A1 (zh) | 2021-08-18 | 2022-08-08 | 一种图像处理方法、装置、设备及存储介质 |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP4369296A1 (zh) |
CN (1) | CN115708126A (zh) |
WO (1) | WO2023020316A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108460770A (zh) * | 2016-12-13 | 2018-08-28 | 华为技术有限公司 | 抠图方法及装置 |
CN108596913A (zh) * | 2018-03-28 | 2018-09-28 | 众安信息技术服务有限公司 | 一种抠图方法及装置 |
CN110751655A (zh) * | 2019-09-16 | 2020-02-04 | 南京工程学院 | 一种基于语义分割和显著性分析的自动抠图方法 |
CN111179285A (zh) * | 2019-12-31 | 2020-05-19 | 珠海方图智能科技有限公司 | 一种图像处理方法、系统及存储介质 |
-
2021
- 2021-08-18 CN CN202110948815.2A patent/CN115708126A/zh active Pending
-
2022
- 2022-08-08 WO PCT/CN2022/110798 patent/WO2023020316A1/zh active Application Filing
- 2022-08-08 EP EP22857628.6A patent/EP4369296A1/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108460770A (zh) * | 2016-12-13 | 2018-08-28 | 华为技术有限公司 | 抠图方法及装置 |
CN108596913A (zh) * | 2018-03-28 | 2018-09-28 | 众安信息技术服务有限公司 | 一种抠图方法及装置 |
CN110751655A (zh) * | 2019-09-16 | 2020-02-04 | 南京工程学院 | 一种基于语义分割和显著性分析的自动抠图方法 |
CN111179285A (zh) * | 2019-12-31 | 2020-05-19 | 珠海方图智能科技有限公司 | 一种图像处理方法、系统及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
EP4369296A1 (en) | 2024-05-15 |
CN115708126A (zh) | 2023-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7453471B2 (ja) | ピクチャ処理方法、装置、デバイス及び記憶媒体 | |
WO2016112619A1 (zh) | 一种实现区域屏幕截图的方法、装置和终端 | |
US10152213B2 (en) | Techniques for selecting objects in images | |
CN107844953B (zh) | 会议文件的管理方法、装置、终端和计算机可读存储介质 | |
WO2022001648A1 (zh) | 图像处理方法、装置、设备及介质 | |
JP3725368B2 (ja) | 画像の表示択方法、コンピュータ・システムおよび記録媒体 | |
CN112055244B (zh) | 图像获取方法、装置、服务器和电子设备 | |
JP5704863B2 (ja) | 画像処理装置、画像処理方法及び記憶媒体 | |
WO2022206476A1 (zh) | 水印处理方法、装置、电子设备及介质 | |
WO2023273700A1 (zh) | 一种交互窗口显示方法、装置、设备及存储介质 | |
WO2023020316A1 (zh) | 一种图像处理方法、装置、设备及存储介质 | |
CN113538623A (zh) | 确定目标图像的方法、装置、电子设备及存储介质 | |
WO2022160946A1 (zh) | 一种文字的阴影效果处理方法、装置、设备及存储介质 | |
US20240355013A1 (en) | Image processing method, apparatus, device and storage medium | |
CN110458202B (zh) | 图片处理方法、装置、设备及计算机可读存储介质 | |
CN112784541A (zh) | 一种文档中图片的替换方法、装置、电子设备及存储介质 | |
US20170017370A1 (en) | Device and method for processing data | |
WO2017054637A1 (zh) | 图像处理方法及系统 | |
WO2022228373A1 (zh) | 图片管理方法、装置、电子设备和可读存储介质 | |
CN113452920B (zh) | 一种对焦点确定方法、装置、设备及介质 | |
CN112465931B (zh) | 图像文本抹除方法、相关设备及可读存储介质 | |
CN110427153B (zh) | 书写内容显示方法、装置、设备及介质 | |
CN114879897B (zh) | 一种笔画处理方法、装置、设备及存储介质 | |
CN111754487B (zh) | 一种黑框区域裁剪方法、装置及电子设备 | |
WO2023016310A1 (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: 22857628 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 18682400 Country of ref document: US |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2022857628 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2022857628 Country of ref document: EP Effective date: 20240209 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |