[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107370958B - Image blurring processing method and device and shooting terminal - Google Patents

Image blurring processing method and device and shooting terminal Download PDF

Info

Publication number
CN107370958B
CN107370958B CN201710756408.5A CN201710756408A CN107370958B CN 107370958 B CN107370958 B CN 107370958B CN 201710756408 A CN201710756408 A CN 201710756408A CN 107370958 B CN107370958 B CN 107370958B
Authority
CN
China
Prior art keywords
image
area
depth
foreground
target filtering
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.)
Active
Application number
CN201710756408.5A
Other languages
Chinese (zh)
Other versions
CN107370958A (en
Inventor
丁佳铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710756408.5A priority Critical patent/CN107370958B/en
Publication of CN107370958A publication Critical patent/CN107370958A/en
Priority to PCT/CN2018/101997 priority patent/WO2019042216A1/en
Application granted granted Critical
Publication of CN107370958B publication Critical patent/CN107370958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides an image blurring processing method, an image blurring processing device and a shooting terminal, wherein the method comprises the following steps: acquiring a depth-of-field image to be processed; determining a foreground region and a background region in the depth image; when blurring processing is carried out on a background region, if it is determined that a target filtering region corresponding to a pixel point to be blurred contains a pixel point located in the foreground region, the weighted value of each pixel point in the target filtering region is adjusted. According to the method, the weighted value of each pixel point in the target filtering area containing the pixel points in the foreground area is adjusted, so that after blurring operation, the boundary between the foreground area and the background area of the image is clear, the blurring edge of the background area is effectively protected, the overall image quality of the image is improved, and the user experience degree is improved.

Description

图像虚化处理方法、装置及拍摄终端Image blur processing method, device and shooting terminal

技术领域technical field

本发明涉及图像处理技术领域,尤其涉及一种图像虚化处理方法、装置及拍摄终端。The present invention relates to the technical field of image processing, and in particular, to an image blurring processing method, device and shooting terminal.

背景技术Background technique

目前,在对拍摄图像进行处理时,为了突出图像中的主体部分,通常可以将图像背景部分进行虚化处理。比如可以使用高斯模糊技术将图像中的背景部分进行虚化,以保留主体部分。At present, when processing a captured image, in order to highlight the main part in the image, the background part of the image can usually be blurred. For example, Gaussian blurring can be used to blur the background part of the image to preserve the main part.

具体的,高斯模糊是指一种根据距离作为权重的模糊算法,通常是将待虚化的某一点及周围相邻点的像素值进行统计,并利用加权平均的计算方式得到待虚化像素点点对应的像素值。然而,发明人发现,在使用高斯模糊技术处理图像后,整个图像中主体部分与背景部分的衔接边缘处不清晰,有重影,处理之后的拍摄图像的整体画质不佳,具体如图1所示。Specifically, Gaussian blur refers to a blur algorithm that uses distance as a weight. Usually, the pixel values of a point to be blurred and the surrounding adjacent points are counted, and the calculation method of weighted average is used to obtain the pixels to be blurred. corresponding pixel value. However, the inventor found that after using the Gaussian blur technology to process the image, the edge of the connection between the main part and the background part in the whole image is not clear, there is ghosting, and the overall image quality of the captured image after processing is not good, as shown in Figure 1. shown.

发明内容SUMMARY OF THE INVENTION

本发明旨在至少在一定程度上解决相关技术中的技术问题之一。The present invention aims to solve one of the technical problems in the related art at least to a certain extent.

为此,本发明的第一个目的在于提出一种图像虚化处理方法,该方法通过将包含有前景区域像素点的目标滤波区域中的各像素点的权重值进行调整,使得虚化操作时,图像的前景区域与后景区域之间界限更清楚,有效保护了后景区域的虚化边缘,提高了图像的整体画质,提升了用户的体验度。Therefore, the first object of the present invention is to propose an image blurring processing method, which adjusts the weight value of each pixel point in the target filtering area including the foreground area pixel point, so that the blurring operation , the boundary between the foreground area and the background area of the image is clearer, which effectively protects the blurred edge of the background area, improves the overall image quality of the image, and improves the user experience.

本发明的第二个目的在于提出一种图像虚化处理装置。The second object of the present invention is to provide an image blur processing device.

本发明的第三个目的在于提出一种拍摄终端。The third object of the present invention is to provide a shooting terminal.

本发明的第四个目的在于提出一种计算机可读存储介质。A fourth object of the present invention is to provide a computer-readable storage medium.

为达上述目的,本发明第一方面实施例提出了一种图像虚化处理方法,包括:In order to achieve the above purpose, an embodiment of the first aspect of the present invention proposes an image blurring processing method, including:

获取待处理的景深图像;Get the depth of field image to be processed;

确定所述景深图像中的前景区域及后景区域;determining a foreground area and a background area in the depth-of-field image;

在对所述后景区域进行虚化处理时,若确定待虚化的像素点对应的目标滤波区域中包含位于所述前景区域的像素点,则对所述目标滤波区域中各像素点的权重值进行调整。When performing the blurring process on the background area, if it is determined that the target filtering area corresponding to the pixel to be blurred includes pixels located in the foreground area, then the weight of each pixel in the target filtering area is determined. value to adjust.

本发明实施例提供的图像虚化处理方法,通过获取待处理的景深图像,以确定获取的景深图像的前景区域和后景区域,然后在对确定的后景区域进行虚化处理时,先确定待虚化的像素点对应的目标滤波区域中是否包含位于前景区域的像素点,如果包含则对目标滤波区域中各像素点的权重值进行调整。由此,通过将包含有前景区域像素点的目标滤波区域中的各像素点的权重值进行调整,使得对后景区域进行虚化操作时,图像的前景区域与后景区域之间界限更清楚,有效保护了后景区域的虚化边缘,提高了图像的整体画质,提升了用户的体验度。In the image blurring processing method provided by the embodiment of the present invention, the foreground area and the background area of the obtained depth image are determined by acquiring the depth image to be processed, and then when performing the blurring processing on the determined background area, first determine the foreground area and the background area of the obtained depth image Whether the target filtering area corresponding to the pixel to be blurred includes pixels located in the foreground area, and if so, adjust the weight value of each pixel in the target filtering area. Therefore, by adjusting the weight value of each pixel in the target filtering area including the pixels in the foreground area, when the background area is blurred, the boundary between the foreground area and the background area of the image is clearer , which effectively protects the blurred edge of the background area, improves the overall quality of the image, and enhances the user experience.

另外,本发明上述实施例提出的图像虚化处理方法还可以具有如下附加的技术特征:In addition, the image blurring processing method proposed by the above embodiments of the present invention may also have the following additional technical features:

在本发明的一个实施例中,所述确定所述景深图像中的前景区域及后景区域,包括:In an embodiment of the present invention, the determining of the foreground area and the background area in the depth-of-field image includes:

根据预设的范围,确定所述景深图像中的前景区域及后景区域。According to a preset range, the foreground area and the background area in the depth-of-field image are determined.

在本发明的另一个实施例中,所述待处理的景深图像中包括人像;In another embodiment of the present invention, the depth-of-field image to be processed includes a portrait;

所述确定所述景深图像中的前景区域及后景区域,包括:The determining of the foreground area and the background area in the depth-of-field image includes:

对所述景深图像进行人脸识别,确定人脸区域;performing face recognition on the depth-of-field image to determine the face area;

根据所述人脸区域对应的景深值,确定所述景深图像中的前景区域及后景区域。The foreground area and the background area in the depth image are determined according to the depth of field value corresponding to the face area.

在本发明的另一个实施例中,所述确定待虚化的像素点对应的目标滤波区域中包含位于所述前景区域的像素点,包括:In another embodiment of the present invention, the target filtering area corresponding to the pixels to be blurred includes pixels located in the foreground area, including:

若所述目标滤波区域中包含的任一像素点对应的景深值,在所述预设的范围内,则确定所述任一像素点为所述前景区域的像素点;If the depth of field value corresponding to any pixel included in the target filtering area is within the preset range, then determine that the any pixel is a pixel of the foreground area;

或者,or,

若所述目标滤波区域中两个相邻像素点分别对应的景深值的差值,大于预设的值,则确定所述目标滤波区域中包含位于所述前景区域的像素点。If the difference between the depth values corresponding to two adjacent pixels in the target filtering area is greater than a preset value, it is determined that the target filtering area includes pixels located in the foreground area.

在本发明的另一个实施例中,所述对所述目标滤波区域中各像素点的权重值进行调整,包括:In another embodiment of the present invention, the adjusting the weight value of each pixel in the target filtering area includes:

将位于所述前景区域的像素点的权重值置零;set the weight value of the pixel in the foreground area to zero;

调整所述目标滤波区域中剩余像素点的权重值,使剩余像素点的权重值的和等于一。The weight values of the remaining pixels in the target filtering area are adjusted so that the sum of the weight values of the remaining pixels is equal to one.

在本发明的另一个实施例中,所述调整所述目标滤波区域中剩余像素点的权重值,包括:In another embodiment of the present invention, the adjusting the weight value of the remaining pixels in the target filtering area includes:

将所述剩余像素点的权重值等比例扩大;expanding the weight values of the remaining pixels in equal proportions;

或者,or,

根据所述剩余像素点分别对应的景深值,调整所述剩余像素点的权重值。The weight value of the remaining pixels is adjusted according to the depth of field values corresponding to the remaining pixels respectively.

为达上述目的,本发明第二方面实施例提出了一种图像虚化处理装置,包括:In order to achieve the above purpose, the embodiment of the second aspect of the present invention provides an image blurring processing device, including:

获取模块,用于获取待处理的景深图像;an acquisition module, used to acquire the depth-of-field image to be processed;

确定模块,用于确定所述景深图像中的前景区域及后景区域;a determination module for determining the foreground area and the background area in the depth of field image;

调整模块,用于在对所述后景区域进行虚化处理时,若确定待虚化的像素点对应的目标滤波区域中包含位于所述前景区域的像素点,则对所述目标滤波区域中各像素点的权重值进行调整。The adjustment module is used to perform the blurring process on the background area, if it is determined that the target filtering area corresponding to the pixels to be blurred includes the pixels located in the foreground area, then the target filtering area The weight value of each pixel is adjusted.

本发明实施例提供的图像虚化处理装置,通过获取待处理的景深图像,以确定获取的景深图像的前景区域和后景区域,然后在对确定的后景区域进行虚化处理时,先确定待虚化的像素点对应的目标滤波区域中是否包含位于前景区域的像素点,如果包含则对目标滤波区域中各像素点的权重值进行调整。由此,通过将包含有前景区域像素点的目标滤波区域中的各像素点的权重值进行调整,使得对后景区域进行虚化操作时,图像的前景区域与后景区域之间界限更清楚,有效保护了后景区域的虚化边缘,提高了图像的整体画质,提升了用户的体验度。The image blurring processing device provided by the embodiment of the present invention determines the foreground area and the background area of the obtained depth-of-field image by acquiring the depth-of-field image to be processed. Whether the target filtering area corresponding to the pixel to be blurred includes pixels located in the foreground area, and if so, adjust the weight value of each pixel in the target filtering area. Therefore, by adjusting the weight value of each pixel in the target filtering area including the pixels in the foreground area, when the background area is blurred, the boundary between the foreground area and the background area of the image is clearer , which effectively protects the blurred edge of the background area, improves the overall quality of the image, and enhances the user experience.

另外,本发明上述实施例提出的图像虚化处理装置还可以具有如下附加的技术特征:In addition, the image blur processing apparatus proposed by the above embodiments of the present invention may also have the following additional technical features:

在本发明的一个实施例中,所述确定模块,具体用于:In an embodiment of the present invention, the determining module is specifically used for:

根据预设的范围,确定所述景深图像中的前景区域及后景区域。According to a preset range, the foreground area and the background area in the depth-of-field image are determined.

在本发明的另一个实施例中,所述待处理的景深图像中包括人像;In another embodiment of the present invention, the depth-of-field image to be processed includes a portrait;

所述确定模块,包括:The determining module includes:

第一确定子单元,用于对所述景深图像进行人脸识别,确定人脸区域;a first determination subunit, used for performing face recognition on the depth-of-field image to determine a face area;

第二确定子单元,用于根据所述人脸区域对应的景深值,确定所述景深图像中的前景区域及后景区域。The second determination subunit is configured to determine the foreground area and the background area in the depth-of-field image according to the depth-of-field value corresponding to the face area.

在本发明的另一个实施例中,所述调整模块具体用于:In another embodiment of the present invention, the adjustment module is specifically used for:

若所述目标滤波区域中包含的任一像素点对应的景深值,在所述预设的范围内,则确定所述任一像素点为所述前景区域的像素点;If the depth of field value corresponding to any pixel included in the target filtering area is within the preset range, then determine that the any pixel is a pixel of the foreground area;

或者,or,

若所述目标滤波区域中两个相邻像素点分别对应的景深值的差值,大于预设的值,则确定所述目标滤波区域中包含位于所述前景区域的像素点。If the difference between the depth values corresponding to two adjacent pixels in the target filtering area is greater than a preset value, it is determined that the target filtering area includes pixels located in the foreground area.

在本发明的另一个实施例中,所述调整模块还包括:In another embodiment of the present invention, the adjustment module further includes:

第一调整子单元,用于将位于所述前景区域的像素点的权重值置零;a first adjustment subunit, used for zeroing the weight value of the pixels located in the foreground area;

第二调整子单元,用于调整所述目标滤波区域中剩余像素点的权重值,使剩余像素点的权重值的和等于一。The second adjustment subunit is configured to adjust the weight values of the remaining pixels in the target filtering area, so that the sum of the weight values of the remaining pixels is equal to one.

在本发明的另一个实施例中,所述第二调整子单元具体用于:In another embodiment of the present invention, the second adjustment subunit is specifically used for:

将所述剩余像素点的权重值等比例扩大;expanding the weight values of the remaining pixels in equal proportions;

或者,or,

根据所述剩余像素点分别对应的景深值,调整所述剩余像素点的权重值。The weight value of the remaining pixels is adjusted according to the depth of field values corresponding to the remaining pixels respectively.

为达上述目的,本发明第三方面实施例提出了一种拍摄终端,包括:存储器、处理器以及图像处理电路;In order to achieve the above purpose, an embodiment of the third aspect of the present invention provides a shooting terminal, including: a memory, a processor, and an image processing circuit;

所述存储器,用于存储所述处理器的可执行指令;the memory for storing executable instructions of the processor;

所述图像处理电路,用于处理景深图像;The image processing circuit is used to process the depth of field image;

所述处理器,用于调用所述存储器中的程序代码,并根据所述图像处理电路输出的景深图像,以实现第一方面实施例所述的图像虚化处理方法。The processor is configured to call the program code in the memory, and implement the image blurring processing method according to the embodiment of the first aspect according to the depth image output by the image processing circuit.

本发明实施例提供的拍照终端,通过获取待处理的景深图像,以确定获取的景深图像的前景区域和后景区域,然后在对确定的后景区域进行虚化处理时,先确定待虚化的像素点对应的目标滤波区域中是否包含位于前景区域的像素点,如果包含则对目标滤波区域中各像素点的权重值进行调整。由此,通过将包含有前景区域像素点的目标滤波区域中的各像素点的权重值进行调整,使得对后景区域进行虚化操作时,图像的前景区域与后景区域之间界限更清楚,有效保护了后景区域的虚化边缘,提高了图像的整体画质,提升了用户的体验度。The photographing terminal provided by the embodiment of the present invention determines the foreground area and the background area of the acquired depth image by acquiring the depth image to be processed, and then, when performing the blurring process on the determined background area, firstly determines the background area to be blurred Whether the target filtering area corresponding to the pixel points of the target filter area includes pixels located in the foreground area, and if so, adjust the weight value of each pixel point in the target filtering area. Therefore, by adjusting the weight value of each pixel in the target filtering area including the pixels in the foreground area, when the background area is blurred, the boundary between the foreground area and the background area of the image is clearer , which effectively protects the blurred edge of the background area, improves the overall quality of the image, and enhances the user experience.

为达上述目的,本发明第四方面实施例提出了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时,实现第一方面实施例所述的图像虚化处理方法。In order to achieve the above purpose, the embodiment of the fourth aspect of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the image blurring process described in the embodiment of the first aspect is implemented method.

本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.

附图说明Description of drawings

本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:

图1为目前使用高斯模糊技术对图像进行虚化处理后的示意图;Fig. 1 is the schematic diagram after the image is blurred by using Gaussian blur technology at present;

图2为本发明一个实施例的图像虚化处理方法的流程图;2 is a flowchart of an image blurring processing method according to an embodiment of the present invention;

图3为本发明实施例中确定待虚化像素点的目标滤波区域的示意图;3 is a schematic diagram of determining a target filtering area of a pixel to be blurred in an embodiment of the present invention;

图4为本发明另一个实施例的图像虚化处理方法的流程图;4 is a flowchart of an image blurring processing method according to another embodiment of the present invention;

图5为本发明实施例中对目标滤波区域中包含有前景区域的像素点的前景区域像素点进行处理的示意图;5 is a schematic diagram of processing a foreground area pixel that includes a foreground area pixel in a target filtering area according to an embodiment of the present invention;

图6为本发明一个对图像进行虚化处理后的效果图;6 is an effect diagram of the present invention after the image is blurred;

图7为本发明一个实施例的图像虚化处理装置的结构示意图;7 is a schematic structural diagram of an image blurring processing apparatus according to an embodiment of the present invention;

图8为本发明的另一个实施例的图像虚化处理装置的结构示意图;8 is a schematic structural diagram of an image blurring processing apparatus according to another embodiment of the present invention;

图9为本发明的再一个实施例的图像虚化处理装置的结构示意图;9 is a schematic structural diagram of an image blurring processing apparatus according to still another embodiment of the present invention;

图10为本发明的一个实施例的拍摄终端的结构示意图;10 is a schematic structural diagram of a shooting terminal according to an embodiment of the present invention;

图11为本发明的一个实施例的图像处理电路的结构示意图。FIG. 11 is a schematic structural diagram of an image processing circuit according to an embodiment of the present invention.

具体实施方式Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.

本发明主要针对现有技术中,通过高斯模糊技术对图像进行虚化处理时,处理后的图像中的前景区域与后景区域的衔接边界处不清晰,出现重影的问题,提出了一种图像虚化处理方法。The present invention mainly aims at the problem that in the prior art, when the image is blurred by the Gaussian blurring technology, the connection boundary between the foreground area and the background area in the processed image is not clear, and ghosting occurs, and a method is proposed. Image blur processing method.

本发明提出的图像处理方法,首先获取待处理的景深图像,然后再确定获取的景深图像中的前景区域和后景区域,并且在对确定的后景区域进行虚化处理时,先确定待虚化的像素点对应的目标滤波区域中是否包含前景区域中的像素点,如果包含位于前景区域的像素点则对目标滤波区域中的各像素点的权重值进行调整。由此,通过将包含有前景区域像素点的目标滤波区域中的各像素点的权重值进行调整,使得虚化操作后,图像的前景区域与后景区域之间界限清楚,有效保护了后景区域的虚化边缘,提高了图像的整体画质,提升了用户的体验度。The image processing method proposed by the present invention first acquires the depth-of-field image to be processed, and then determines the foreground area and the background area in the acquired depth-of-field image. Whether the target filtering area corresponding to the converted pixels includes pixels in the foreground area, if it includes pixels located in the foreground area, adjust the weight value of each pixel in the target filtering area. Therefore, by adjusting the weight value of each pixel in the target filtering area including the pixels in the foreground area, after the blurring operation, the boundary between the foreground area and the background area of the image is clear, and the background area is effectively protected. The blurred edge of the area improves the overall image quality of the image and improves the user experience.

下面结合附图对本发明实施例提出的图像虚化处理方法进行详细描述。The image blurring processing method proposed by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

图2为本发明的一个实施例的图像虚化处理方法的流程图。FIG. 2 is a flowchart of an image blurring processing method according to an embodiment of the present invention.

如图2所示,该图像虚化处理方法可以包括以下步骤:As shown in Figure 2, the image blurring processing method may include the following steps:

步骤201,获取待处理的景深图像。Step 201, acquiring a depth-of-field image to be processed.

本发明实施例提供的图像虚化处理方法,可以由本发明提供图像虚化处理装置执行,该装置可以被配置在拍摄终端中,以实现对拍摄的图像进行图像虚化处理。The image blurring processing method provided by the embodiment of the present invention may be executed by an image blurring processing apparatus provided by the present invention, and the apparatus may be configured in a shooting terminal to implement image blurring processing on a captured image.

其中,本申请中拍摄终端可以是任一具有拍摄功能的硬件设备,比如,相机、智能手机、个人数字助理(Personal Digital Assistant,简称为PDA)等等。Wherein, the shooting terminal in this application may be any hardware device with a shooting function, such as a camera, a smart phone, a personal digital assistant (Personal Digital Assistant, PDA for short), and so on.

在具体实现时,可通过现有技术手段来获取待处理的景深图像,本实施例在此不对其进行详细描述。During specific implementation, the depth-of-field image to be processed may be acquired by means of the prior art, which will not be described in detail in this embodiment.

需要说明的是,在本实施例中获取的景深图像可以是风景图像,也可以是人物图像,或者还可以是建筑类图像等,本申请对此不作具体限定。It should be noted that the depth-of-field image obtained in this embodiment may be a landscape image, a person image, or an architectural image, etc., which is not specifically limited in this application.

步骤202,确定景深图像中的前景区域及后景区域。Step 202: Determine the foreground area and the background area in the depth-of-field image.

具体实现时,本申请可以根据景深图像的类型确定前景区域和后景区域,或者还可以根据景深图像中拍摄物的亮度来确定前景区域和后景区域。During specific implementation, the present application may determine the foreground area and the background area according to the type of the depth image, or may also determine the foreground area and the background area according to the brightness of the object in the depth image.

具体的,若本实施例是根据景深图像的类型确定前景区域和后景区域,则先确定景深图像是属于人物图像还是风景图像,在确定待处理的景深图像的具体类型之后,可通过以下方式来确定获取的待处理景深图像的前景区域以及后景区域:Specifically, if the foreground area and the background area are determined according to the type of the depth-of-field image in this embodiment, it is first determined whether the depth-of-field image belongs to a person image or a landscape image, and after the specific type of the depth-of-field image to be processed is determined, the following methods can be used. To determine the foreground area and background area of the acquired depth-of-field image:

方式一,若待处理的景深图像是风景图像或者建筑类的图像,则可以根据预设的范围,来确定待处理的景深图像中的前景区域以及后景区域。Manner 1, if the depth-of-field image to be processed is a landscape image or an architectural image, the foreground area and the background area in the depth-of-field image to be processed may be determined according to a preset range.

具体的,本实施例中预设的范围可以是用户设置的,或者还可以是拍摄设备根据景深图像自动配置的,在此不对其做具体限定。Specifically, the preset range in this embodiment may be set by the user, or may also be automatically configured by the photographing device according to the depth-of-field image, which is not specifically limited herein.

举例来说,若预设的范围为20厘米(cm)至50cm。终端当前获取的景深图像中包括一朵花,且该朵花对应的景深范围为55cm-60cm,因此,可以确定该朵花位于该深度图像中的后景区域。For example, if the predetermined range is 20 centimeters (cm) to 50 cm. The depth-of-field image currently acquired by the terminal includes a flower, and the depth-of-field range corresponding to the flower is 55cm-60cm. Therefore, it can be determined that the flower is located in the background area in the depth image.

方式二,若待处理的景深图像是人物图像,则可以先对待处理的景深图像进行人脸识别,以确定该景深图像中人脸区域,然后根据人脸区域对应的景深值确定景深图像中前景区域及后景区域。Method 2: If the depth-of-field image to be processed is a human image, face recognition can be performed on the depth-of-field image to be processed to determine the face area in the depth-of-field image, and then the foreground in the depth-of-field image is determined according to the depth-of-field value corresponding to the face area. area and background area.

例如,检测到的人脸区域的景深值为15,那么可以根据确定景深值在12-17范围内的区域为前景区域,其他区域则为后景区域。For example, if the detected face area has a depth of field value of 15, it can be determined that an area with a depth of field value within the range of 12-17 is a foreground area, and other areas are background areas.

需要说明的是,上述人脸区域的景深值可以指人脸区域内所有像素点对应的景深值的均值,或者,也可以是人脸区域中任意一个像素点的景深值,本实施例对此不做限定。It should be noted that the depth of field value of the above-mentioned face area may refer to the mean value of the depth of field values corresponding to all pixels in the face area, or may also be the depth of field value of any pixel in the face area. Not limited.

若本实施例是根据景深图像中拍摄物的亮度来确定前景区域和后景区域,则获取景深图像的亮度情况,根据亮度情况确定前景区域和后景区域。If in this embodiment, the foreground area and the background area are determined according to the brightness of the object in the depth-of-field image, the brightness of the depth-of-field image is acquired, and the foreground area and the background area are determined according to the brightness.

具体的,在实际拍摄过程中,可能因为环境因素需要对拍摄物进行补光,那么在补光过程中,不同距离的物体所接受的光的强度不同,因此在拍摄设备的显示屏幕上显示的亮度不相同。例如,距离拍摄设备近的区域亮度比较高,距离拍摄设备距离远的区域亮度就比较低。Specifically, in the actual shooting process, the subject may need to be supplemented with light due to environmental factors. In the process of supplementary light, objects at different distances receive different light intensities. Therefore, the light displayed on the display screen of the shooting device is displayed on the display screen of the shooting device. Brightness is not the same. For example, the brightness of the area close to the photographing device is relatively high, and the brightness of the area far away from the photographing device is relatively low.

基于上述分析,本申请可根据图像中物体所在不同位置的亮度情况来确定景深图像的前景区域和后景区域。也就是说,可以将拍摄图像中亮度高的区域确定为前景区域,将亮度低的区域确定为后景区域。Based on the above analysis, the present application can determine the foreground area and the background area of the depth-of-field image according to the brightness of different positions of the object in the image. That is, an area with high brightness in the captured image may be determined as a foreground area, and an area with low brightness may be determined as a background area.

步骤203,在对后景区域进行虚化处理时,若确定待虚化的像素点对应的目标滤波区域中包含位于前景区域的像素点,则对目标滤波区域中各像素点的权重值进行调整。Step 203, when performing the blurring process on the background area, if it is determined that the target filtering area corresponding to the pixel to be blurred includes pixels located in the foreground area, then the weight value of each pixel in the target filtering area is adjusted. .

具体的,在确定出景深图像的前景区域和后景区域之后,可对确定的后景区域进行虚化处理。其中,在对确定的后景区域进行虚化处理时,需要对后景区域中待虚化像素点的目标滤波区域进行确定。Specifically, after the foreground area and the background area of the depth-of-field image are determined, blurring processing may be performed on the determined background area. Wherein, when performing the blurring process on the determined background area, it is necessary to determine the target filtering area of the pixels to be blurred in the background area.

在本实施例中,可根据现有高斯模糊技术中的确定方式来确定待虚化像素点的目标滤波区域。In this embodiment, the target filtering area of the pixels to be blurred can be determined according to the determination method in the existing Gaussian blurring technology.

例如,如图3所示,可在图像中取包含待处理像素点的3*3矩阵,若待处理像素点的位置坐标为(0,0),则其余8个像素点的坐标为(-1,1),(0,1),(1,1),(-1,0),(1,0),(-1,-1),(0,-1),(1,-1)。For example, as shown in Figure 3, a 3*3 matrix containing the pixels to be processed can be taken in the image. If the position coordinates of the pixels to be processed are (0, 0), the coordinates of the remaining 8 pixels are (- 1,1),(0,1),(1,1),(-1,0),(1,0),(-1,-1),(0,-1),(1,-1 ).

进一步地,在确定出待虚化像素点的目标滤波区域之后,可判断该目标滤波区域中是否包含有前景区域中的像素点。Further, after the target filtering area of the pixels to be blurred is determined, it can be determined whether the target filtering area includes pixels in the foreground area.

具体的,可通过以下方式确定目标滤波区域中是否包含有位于前景区域的像素点。Specifically, whether the target filtering region contains pixels located in the foreground region can be determined in the following manner.

一种实现情形,若目标滤波区域中包含的任一像素点对应的景深值,在预设的范围内,则确定任一像素点为前景区域的像素点;In an implementation situation, if the depth of field value corresponding to any pixel included in the target filtering area is within a preset range, then determine that any pixel is a pixel in the foreground area;

具体实现时,可获取目标滤波区域中所有像素点的景深值,然后将所有像素点对应的景深值,与预设的范围进行一一进行匹配,如果像素点的景深值在预设范围内,则说明该像素点属于前景区域,否则说明像素点属于后景区域。In specific implementation, the depth of field values of all pixels in the target filtering area can be obtained, and then the depth of field values corresponding to all pixels are matched with the preset range one by one. If the depth of field value of the pixel points is within the preset range, It means that the pixel belongs to the foreground area, otherwise, it means that the pixel belongs to the background area.

举例来说,假设目标滤波区域中某个像素点的景深值为12,预设的范围为10-20,则经过匹配可以得出该像素点位于预设范围内,即该像素点属于前景区域。For example, assuming that the depth of field value of a certain pixel in the target filtering area is 12 and the preset range is 10-20, after matching, it can be concluded that the pixel is within the preset range, that is, the pixel belongs to the foreground area. .

又例如,目标滤波区域中的某个像素点的景深值为30,则经过匹配可以得出该像素点属于后景区域。For another example, if the depth of field value of a certain pixel in the target filtering area is 30, after matching, it can be concluded that the pixel belongs to the background area.

或者,另一种实现情形,若目标滤波区域中两个相邻像素点分别对应的景深值的差值,大于预设的值,则确定目标滤波区域中包含位于前景区域的像素点。Or, in another implementation situation, if the difference between the depth of field values corresponding to two adjacent pixels in the target filtering area is greater than a preset value, it is determined that the target filtering area includes pixels located in the foreground area.

具体的,由于通常前景区域的景深与后景区域的景深差值较大,因此本实施例中,还可以根据相邻像素点间的景深变化值,确定各像素点所属的区域。Specifically, because the difference between the depth of field of the foreground area and the depth of field of the background area is generally large, in this embodiment, the area to which each pixel belongs may also be determined according to the change value of the depth of field between adjacent pixels.

首先获取目标滤波区间中所有的像素点对应的景深值,然后将相邻像素点的景深值两两作差,并将差值与预设值进行比对,如果差值大于预设的值,则说明该目标滤波区域中包含前景区域的像素点。First obtain the depth of field values corresponding to all the pixels in the target filtering interval, then make a difference between the depth of field values of adjacent pixels, and compare the difference with the preset value. If the difference is greater than the preset value, It means that the target filtering area includes the pixels of the foreground area.

例如,目标滤波区域中某两个相邻像素点的景深值分别为24和25,那么将这两个像素点的景深值作差得到差值为1。若预设值为10,那么说明这两个像素点的差值小于预设值,则该目标滤波区域中不包含前景区域的像素点。For example, if the depth of field values of two adjacent pixels in the target filtering area are 24 and 25 respectively, then the difference value is 1 by taking the difference of the depth of field values of these two pixels. If the preset value is 10, it means that the difference between the two pixel points is smaller than the preset value, and the target filtering area does not include pixels in the foreground area.

在本实施例中,如果判断出待虚化的像素点对应的目标滤波区域中包含前景区域的像素点,则调整该目标滤波区域中各像素点的权重值,以使得对待虚化的像素点进行虚化处理时,前景区域中的像素点不会影响后景区域的虚化效果,从而使虚化后前、后景区域的界限清晰,不仅保护了虚化的边缘,且使得主体更突出。In this embodiment, if it is determined that the target filtering area corresponding to the pixel to be blurred includes pixels of the foreground area, the weight value of each pixel in the target filtering area is adjusted so that the pixel to be blurred When blurring is performed, the pixels in the foreground area will not affect the blurring effect of the background area, so that the boundaries between the front and background areas after blurring are clear, which not only protects the edges of the blur, but also makes the subject more prominent. .

本发明实施例提供的图像虚化处理方法,通过获取待处理的景深图像,以确定获取的景深图像的前景区域和后景区域,然后在对确定的后景区域进行虚化处理时,先确定待虚化的像素点对应的目标滤波区域中是否包含位于前景区域的像素点,如果包含则对目标滤波区域中各像素点的权重值进行调整。由此,通过将包含有前景区域像素点的目标滤波区域中,各像素点的权重值进行调整,使得获得的后景区域虚化处理后的图像中,前景区域与后景区域之间的界限干净、清晰,有效保护了后景区域的虚化边缘,且使得主体更突出,提高了图像的整体画质,提升了用户的体验度。In the image blurring processing method provided by the embodiment of the present invention, the foreground area and the background area of the obtained depth image are determined by acquiring the depth image to be processed, and then when performing the blurring processing on the determined background area, first determine the foreground area and the background area of the obtained depth image Whether the target filtering area corresponding to the pixel to be blurred includes pixels located in the foreground area, and if so, adjust the weight value of each pixel in the target filtering area. Therefore, by adjusting the weight value of each pixel in the target filtering area including the pixels of the foreground area, the boundary between the foreground area and the background area in the obtained image after the blurring of the background area is obtained. Clean and clear, it effectively protects the blurred edge of the background area, and makes the subject more prominent, improving the overall image quality of the image and enhancing the user experience.

通过上述分析可知,在对后景区域进行虚化处理时,需要先判断待虚化像素点所对应的目标滤波区域中,是否包含前景区域中的像素点,如果确定该目标滤波区域中包含前景区域的像素点时,则对目标滤波区域中的各像素点的权重值进行调整。在本发明一种可能的实现情景中,对包含有前景区域的像素点的目标滤波区域中的各像素点的权重值进行调整,可通过多种方式实现,从而使得获得的后景区域虚化处理后的图像中,前景区域与后景区域之间的界限干净、清晰。下面结合图4,对上述情况下的图像虚化处理方法进行进一步说明。It can be seen from the above analysis that when blurring the background area, it is necessary to first determine whether the target filtering area corresponding to the pixels to be blurred includes pixels in the foreground area, and if it is determined that the target filtering area contains the foreground When the pixel points of the target filter area are selected, the weight value of each pixel point in the target filter area is adjusted. In a possible implementation scenario of the present invention, the adjustment of the weight value of each pixel in the target filtering area including the pixels of the foreground area can be implemented in various ways, so that the obtained background area is blurred In the processed image, the boundaries between foreground and background regions are clean and clear. The image blurring processing method in the above case will be further described below with reference to FIG. 4 .

图4本发明的另一个实施例的图像虚化处理方法的流程图。FIG. 4 is a flowchart of an image blurring processing method according to another embodiment of the present invention.

如图4所示,该图像虚化处理方法可以包括以下步骤:As shown in Figure 4, the image blurring processing method may include the following steps:

步骤401,获取待处理的景深图像。Step 401, acquiring a depth-of-field image to be processed.

步骤402,确定景深图像中的前景区域及后景区域。Step 402: Determine the foreground area and the background area in the depth-of-field image.

步骤403,在对后景区域进行虚化处理时,若确定待虚化的像素点对应的目标滤波区域中包含位于前景区域的像素点,则将位于前景区域的像素点的权重值置零。Step 403: When performing the blurring process on the background area, if it is determined that the target filtering area corresponding to the pixel to be blurred includes pixels located in the foreground area, the weight value of the pixels located in the foreground area is set to zero.

步骤404,调整目标滤波区域中剩余像素点的权重值,使剩余像素点的权重值的和等于一。Step 404: Adjust the weight values of the remaining pixels in the target filtering area so that the sum of the weight values of the remaining pixels is equal to one.

具体的,在确定目标滤波区域中包含位于前景区域的像素点时,可通过将前景区域的像素点的权重值置为零,以使得对后景区域进行虚化处理时,不会因为待虚化像素点的目标滤波区域中包含有前景区域的像素点的信息,而导致虚化处理后的后景区域与前景区域之间的边界不清楚,具体可参见图5所示。Specifically, when it is determined that the target filtering area includes pixels located in the foreground area, the weight value of the pixels in the foreground area can be set to zero, so that when the background area is blurred, The target filtering area of the blurred pixels contains the information of the pixels of the foreground area, so that the boundary between the background area and the foreground area after the blurring process is unclear, as shown in FIG. 5 for details.

其中,由图5可知,待虚化的像素点为A,并且在像素点A的附近存在前景区域的像素点B,那么在对像素点A进行虚化处理之前,先将包含有像素点B的左侧区域的权重值置为0。Among them, it can be seen from FIG. 5 that the pixel point to be blurred is A, and there is a pixel point B in the foreground area near the pixel point A, then before the blurring process is performed on the pixel point A, the pixel point B will be included first. The weight value of the left area of is set to 0.

进一步地,在将前景区域的像素点的权重值置为零之后,为了保证虚化处理的像素点的标准始终符合预设虚化处理的标准,对此,本申请可对目标滤波区域中的其余像素点的权重进行调整。Further, after the weight value of the pixels in the foreground area is set to zero, in order to ensure that the standard of the pixels in the blurring process always meets the standard of the preset blurring processing, the present application may The weights of the remaining pixels are adjusted.

具体实现时,可通过以下几种方式来调整目标滤波区域中的剩余像素点的权重值。During specific implementation, the weight values of the remaining pixels in the target filtering area can be adjusted in the following ways.

一种实现方式,将剩余像素点的权重值等比例扩大。In an implementation manner, the weight values of the remaining pixels are proportionally enlarged.

具体的,假设对图像后景区域的像素点进行虚化处理的统一标准为1,那么在将前景区域的像素点的权重值置为零之后,目标滤波区域中的像素点的权重值之和就不等于1,因此通过将剩余像素点的权重值进行等比例扩大之后,使得剩余像素点的权重值相加之和始终等于1。由此保证了对待虚化处理的像素点进行虚化处理时,不会出现虚化失真的现象,并且使得图像的前景区域与后景区域之间的界限更干净、清晰,不出现重影的情况。Specifically, assuming that the uniform standard for blurring the pixels in the background area of the image is 1, then after the weight value of the pixels in the foreground area is set to zero, the sum of the weight values of the pixels in the target filtering area is not equal to 1, so after the weight values of the remaining pixels are proportionally enlarged, the sum of the weight values of the remaining pixels is always equal to 1. This ensures that when the pixels to be blurred are blurred, there will be no blurring and distortion, and the boundary between the foreground area and the background area of the image is cleaner and clearer, and no ghosting occurs. Happening.

或者,另一种实现方式,根据剩余像素点分别对应的景深值,调整剩余像素点的权重值。Or, in another implementation manner, the weight value of the remaining pixels is adjusted according to the depth of field values corresponding to the remaining pixels respectively.

具体的,由于图像中不同区域中的像素点的景深值差别比较大,因此在对剩余像素点的权重值进行调整时,可根据剩余像素点分别对应的景深值进行相应调整。Specifically, since the depth of field values of pixels in different regions in the image are quite different, when adjusting the weight values of the remaining pixels, corresponding adjustments may be made according to the depth values corresponding to the remaining pixels.

例如,可将与待虚化像素点处于同一景深水平的像素点的权重值增加的多一些,将与待虚化像素点不处于同一景深水平的像素点的权重值增加的少一点。For example, the weight value of the pixel point at the same depth level as the pixel point to be blurred may be increased more, and the weight value of the pixel point not at the same depth level as the pixel point to be blurred may be increased less.

可以理解的是,通过将与待虚化的像素点处于同一景深水平的像素点的权重值增大多一些,以使得对后景区域虚化处理后的图像中,在实现前景区域与后景区域之间的边界干净、清晰的基础上,保证后景区域不失真。It can be understood that by increasing the weight value of the pixels at the same depth of field as the pixels to be blurred, in the image after the blurring of the background area, the foreground area and the background area are realized. The boundary between them is clean and clear to ensure that the background area is not distorted.

综上,本申请中通过上述图像虚化处理方法对图像进行虚化处理后的效果,如图6所示。To sum up, in the present application, the effect of performing the blurring processing on the image by the above-mentioned image blurring processing method is shown in FIG. 6 .

本发明实施例提供的图像虚化处理方法,通过对包含有前景区域像素点的目标滤波区域中各像素点的权重值进行调整,使得获得的后景区域虚化处理后的图像中,前景区域与后景区域之间的界限干净、清晰,有效保护了后景区域的虚化边缘,且使得主体更突出,提高了图像的整体画质,提升了用户的体验度。The image blurring processing method provided by the embodiment of the present invention adjusts the weight value of each pixel point in the target filtering area including the foreground area pixel points, so that in the obtained image after the blurring processing of the background area, the foreground area is The boundary between the background area and the background area is clean and clear, effectively protecting the blurred edge of the background area, making the subject more prominent, improving the overall image quality of the image, and improving the user experience.

为了实现上述实施例,本发明还提出一种图像虚化处理装置。In order to realize the above-mentioned embodiments, the present invention also provides an image blurring processing apparatus.

图7为本发明一个实施例的图像虚化处理装置的结构示意图。FIG. 7 is a schematic structural diagram of an image blurring processing apparatus according to an embodiment of the present invention.

参照图7,该图像虚化处理装置包括:获取模块10、确定模块20以及调整模块30。Referring to FIG. 7 , the image blur processing apparatus includes: an acquisition module 10 , a determination module 20 and an adjustment module 30 .

其中,获取模块10用于获取待处理的景深图像;Wherein, the acquisition module 10 is used to acquire the depth-of-field image to be processed;

确定模块20用于确定景深图像中的前景区域及后景区域;The determining module 20 is used for determining the foreground area and the background area in the depth-of-field image;

在一种可能实现情形中,确定模块20具体用于:根据预设的范围,确定景深图像中的前景区域及后景区域。In a possible implementation situation, the determining module 20 is specifically configured to: determine the foreground area and the background area in the depth-of-field image according to a preset range.

进一步地,如图8所示,当待处理的景深图像中包括人像,确定模块20包括:第一确定子单元21和第二确定子单元22。Further, as shown in FIG. 8 , when the depth-of-field image to be processed includes a portrait, the determination module 20 includes: a first determination subunit 21 and a second determination subunit 22 .

其中,第一确定子单元21用于对景深图像进行人脸识别,确定人脸区域;Wherein, the first determination subunit 21 is used to perform face recognition on the depth-of-field image, and determine the face area;

第二确定子单元22用于根据人脸区域对应的景深值,确定景深图像中的前景区域及后景区域。The second determination subunit 22 is configured to determine the foreground area and the background area in the depth-of-field image according to the depth-of-field value corresponding to the face area.

调整模块30用于在对后景区域进行虚化处理时,若确定待虚化的像素点对应的目标滤波区域中包含位于前景区域的像素点,则对目标滤波区域中各像素点的权重值进行调整。The adjustment module 30 is used to perform the blurring process on the background area, if it is determined that the target filtering area corresponding to the pixel to be blurred includes pixels located in the foreground area, then the weight value of each pixel in the target filtering area is determined. make adjustments.

在本发明的一种实现形式中,调整模块30具体用于:In an implementation form of the present invention, the adjustment module 30 is specifically used for:

若目标滤波区域中包含的任一像素点对应的景深值,在预设的范围内,则确定任一像素点为前景区域的像素点;If the depth of field value corresponding to any pixel included in the target filtering area is within the preset range, then determine that any pixel is the pixel of the foreground area;

或者,or,

若目标滤波区域中两个相邻像素点分别对应的景深值的差值,大于预设的值,则确定目标滤波区域中包含位于前景区域的像素点。If the difference between the depth values corresponding to two adjacent pixels in the target filtering area is greater than a preset value, it is determined that the target filtering area includes pixels located in the foreground area.

在另一种可能实现的情形中,如图9所示,该装置中调整模块30还包括:第一调整子单元31和第二调整子单元32。In another possible implementation situation, as shown in FIG. 9 , the adjustment module 30 in the apparatus further includes: a first adjustment subunit 31 and a second adjustment subunit 32 .

其中,第一调整子单元31用于将位于前景区域的像素点的权重值置零;Wherein, the first adjustment subunit 31 is used to set the weight value of the pixel in the foreground area to zero;

第二调整子单元32用于调整目标滤波区域中剩余像素点的权重值,使剩余像素点的权重值的和等于一。The second adjustment subunit 32 is configured to adjust the weight values of the remaining pixels in the target filtering area, so that the sum of the weight values of the remaining pixels is equal to one.

进一步地,第二调整子单元32具体用于:Further, the second adjustment subunit 32 is specifically used for:

将剩余像素点的权重值等比例扩大;The weight value of the remaining pixels is proportionally expanded;

或者,or,

根据剩余像素点分别对应的景深值,调整剩余像素点的权重值。The weight value of the remaining pixels is adjusted according to the depth of field values corresponding to the remaining pixels respectively.

需要说明的是,本实施例的图像虚化处理装置的实施过程和技术原理参见前述对图像虚化处理方法实施例的解释说明,此处不再赘述。It should be noted that, for the implementation process and technical principle of the image blurring processing apparatus in this embodiment, reference may be made to the foregoing explanations of the image blurring processing method embodiments, which will not be repeated here.

本发明实施例提供的图像虚化处理装置,通过获取待处理的景深图像,以确定获取的景深图像的前景区域和后景区域,然后在对确定的后景区域进行虚化处理时,先确定待虚化的像素点对应的目标滤波区域中是否包含位于前景区域的像素点,如果包含则对目标滤波区域中各像素点的权重值进行调整。由此,通过将包含有前景区域像素点的目标滤波区域中,各像素点的权重值进行调整,使得获得的后景区域虚化处理后的图像中,前景区域与后景区域之间的界限干净、清晰,有效保护了后景区域的虚化边缘,且使得主体更突出,提高了图像的整体画质,提升了用户的体验度。The image blurring processing device provided by the embodiment of the present invention determines the foreground area and the background area of the obtained depth-of-field image by acquiring the depth-of-field image to be processed. Whether the target filtering area corresponding to the pixel to be blurred includes pixels located in the foreground area, and if so, adjust the weight value of each pixel in the target filtering area. Therefore, by adjusting the weight value of each pixel in the target filtering area including the pixels of the foreground area, the boundary between the foreground area and the background area in the obtained image after the blurring of the background area is obtained. Clean and clear, it effectively protects the blurred edge of the background area, and makes the subject more prominent, improving the overall image quality of the image and enhancing the user experience.

为了实现上述实施例,本发明还提出了一种拍摄终端。In order to realize the above embodiments, the present invention also provides a shooting terminal.

图10为本发明一个实施例的拍摄终端的结构示意图。FIG. 10 is a schematic structural diagram of a photographing terminal according to an embodiment of the present invention.

如图10所示,该拍摄终端100,包括存储器111、处理器112以及图像处理电路113。As shown in FIG. 10 , the photographing terminal 100 includes a memory 111 , a processor 112 and an image processing circuit 113 .

其中,存储器111用于存储处理器112的可执行指令;Wherein, the memory 111 is used for storing executable instructions of the processor 112;

处理器112用于调用存储器111中的程序代码,并根据图像处理电路113输出的景深图像,以实现第一方面实施例的图像虚化处理方法。The processor 112 is configured to call the program code in the memory 111, and implement the image blurring processing method of the embodiment of the first aspect according to the depth image output by the image processing circuit 113.

具体的,图像处理电路113可以利用硬件和/或软件组件实现,可包括定义ISP(Image Signal Processing,图像信号处理)管线的各种处理单元。Specifically, the image processing circuit 113 may be implemented using hardware and/or software components, and may include various processing units that define an ISP (Image Signal Processing, image signal processing) pipeline.

图11为一个实施例中图像处理电路的示意图。如图11所示,为便于说明,仅示出与本发明实施例相关的图像处理技术的各个方面。FIG. 11 is a schematic diagram of an image processing circuit in one embodiment. As shown in FIG. 11 , for the convenience of description, only various aspects of the image processing technology related to the embodiments of the present invention are shown.

如图11所示,图像处理电路113包括成像设备1140、ISP处理器1150和控制逻辑器1160。成像设备1140可包括具有一个或多个透镜1141、图像传感器1142的照相机和结构光投射器1143。结构光投射器1143将结构光投影至被测物。其中,该结构光图案可为激光条纹、格雷码、正弦条纹、或者,随机排列的散斑图案等。图像传感器1142捕捉投影至被测物形成的结构光图像,并将结构光图像发送至ISP处理器1150,由ISP处理器1150对结构光图像进行解调获取被测物的深度信息。同时,图像传感器1142也可以捕捉被测物的色彩信息。当然,也可以由两个图像传感器1142分别捕捉被测物的结构光图像和色彩信息。As shown in FIG. 11 , the image processing circuit 113 includes an imaging device 1140 , an ISP processor 1150 and a control logic 1160 . Imaging device 1140 may include a camera with one or more lenses 1141 , image sensor 1142 and structured light projector 1143 . The structured light projector 1143 projects the structured light to the measured object. Wherein, the structured light pattern may be a laser stripe, a Gray code, a sinusoidal stripe, or a randomly arranged speckle pattern, or the like. The image sensor 1142 captures the structured light image projected onto the measured object, and sends the structured light image to the ISP processor 1150, which demodulates the structured light image to obtain depth information of the measured object. Meanwhile, the image sensor 1142 can also capture the color information of the measured object. Of course, the structured light image and color information of the measured object can also be captured by the two image sensors 1142 respectively.

其中,以散斑结构光为例,ISP处理器1150对结构光图像进行解调,具体包括,从该结构光图像中采集被测物的散斑图像,将被测物的散斑图像与参考散斑图像按照预定算法进行图像数据计算,获取被测物上散斑图像的各个散斑点相对于参考散斑图像中的参考散斑点的移动距离。利用三角法转换计算得到散斑图像的各个散斑点的深度值,并根据该深度值得到被测物的深度信息。Wherein, taking the speckle structured light as an example, the ISP processor 1150 demodulates the structured light image, which specifically includes collecting the speckle image of the measured object from the structured light image, and comparing the speckle image of the measured object with the reference The speckle image performs image data calculation according to a predetermined algorithm, and obtains the moving distance of each speckle of the speckle image on the measured object relative to the reference speckle in the reference speckle image. The depth value of each speckle of the speckle image is calculated by triangulation transformation, and the depth information of the measured object is obtained according to the depth value.

当然,还可以通过双目视觉的方法或基于飞行时差TOF的方法来获取该深度图像信息等,在此不做限定,只要能够获取或通过计算得到被测物的深度信息的方法都属于本实施方式包含的范围。Of course, the depth image information can also be obtained by a binocular vision method or a method based on time-of-flight TOF, which is not limited here, as long as the method that can obtain or obtain the depth information of the measured object by calculation belongs to this implementation. the scope of the method.

在ISP处理器1150接收到图像传感器1142捕捉到的被测物的色彩信息之后,可被测物的色彩信息对应的图像数据进行处理。ISP处理器1150对图像数据进行分析以获取可用于确定和/或成像设备1140的一个或多个控制参数的图像统计信息。图像传感器1142可包括色彩滤镜阵列(如Bayer滤镜),图像传感器1142可获取用图像传感器1142的每个成像像素捕捉的光强度和波长信息,并提供可由ISP处理器1150处理的一组原始图像数据。After the ISP processor 1150 receives the color information of the measured object captured by the image sensor 1142, the image data corresponding to the color information of the measured object can be processed. The ISP processor 1150 analyzes the image data to obtain image statistics that can be used to determine and/or control one or more parameters of the imaging device 1140 . Image sensor 1142 may include an array of color filters (eg, Bayer filters), image sensor 1142 may obtain light intensity and wavelength information captured with each imaging pixel of image sensor 1142 and provide a set of raw materials that may be processed by ISP processor 1150. image data.

ISP处理器1150按多种格式逐个像素地处理原始图像数据。例如,每个图像像素可具有8、10、12或14比特的位深度,ISP处理器1150可对原始图像数据进行一个或多个图像处理操作、收集关于图像数据的图像统计信息。其中,图像处理操作可按相同或不同的位深度精度进行。The ISP processor 1150 processes raw image data pixel by pixel in various formats. For example, each image pixel may have a bit depth of 8, 10, 12, or 14 bits, and the ISP processor 1150 may perform one or more image processing operations on the raw image data, collect image statistics about the image data. Among them, the image processing operations can be performed with the same or different bit depth precision.

ISP处理器1150还可从图像存储器1170接收像素数据。图像存储器1170可为存储器装置的一部分、存储设备、或电子设备内的独立的专用存储器,并可包括DMA(DirectMemory Access,直接直接存储器存取)特征。ISP processor 1150 may also receive pixel data from image memory 1170 . The image memory 1170 may be a part of a memory device, a storage device, or an independent dedicated memory within an electronic device, and may include a DMA (Direct Memory Access) feature.

当接收到原始图像数据时,ISP处理器1150可进行一个或多个图像处理操作。When raw image data is received, the ISP processor 1150 may perform one or more image processing operations.

在ISP处理器1150获取到被测物的色彩信息和深度信息后,可对其进行融合,得到三维图像。其中,可通过外观轮廓提取方法或轮廓特征提取方法中的至少一种提取相应的被测物的特征。例如通过主动形状模型法ASM、主动外观模型法AAM、主成分分析法PCA、离散余弦变换法DCT等方法,提取被测物的特征,在此不做限定。再将分别从深度信息中提取到被测物的特征以及从色彩信息中提取到被测物的特征进行配准和特征融合处理。这里指的融合处理可以是将深度信息以及色彩信息中提取出的特征直接组合,也可以是将不同图像中相同的特征进行权重设定后组合,也可以有其他融合方式,最终根据融合后的特征,生成三维图像。After the ISP processor 1150 obtains the color information and depth information of the measured object, it can fuse them to obtain a three-dimensional image. The feature of the corresponding measured object can be extracted by at least one of the appearance contour extraction method or the contour feature extraction method. For example, the features of the measured object are extracted by methods such as active shape model method ASM, active appearance model method AAM, principal component analysis method PCA, discrete cosine transform method DCT, etc., which are not limited here. Then, the features of the measured object extracted from the depth information and the features of the measured object extracted from the color information are respectively processed for registration and feature fusion. The fusion processing referred to here can be the direct combination of the features extracted from the depth information and color information, or the combination of the same features in different images after weight setting, or other fusion methods. features to generate a 3D image.

三维图像的图像数据可发送给图像存储器1170,以便在被显示之前进行另外的处理。ISP处理器1150从图像存储器1170接收处理数据,并对所述处理数据进行原始域中以及RGB和YCbCr颜色空间中的图像数据处理。三维图像的图像数据可输出给显示器1180,以供用户观看和/或由图形引擎或GPU(Graphics Processing Unit,图形处理器)进一步处理。此外,ISP处理器1150的输出还可发送给图像存储器1170,且显示器1180可从图像存储器1170读取图像数据。在一个实施例中,图像存储器1170可被配置为实现一个或多个帧缓冲器。此外,ISP处理器1150的输出可发送给编码器/解码器1190,以便编码/解码图像数据。编码的图像数据可被保存,并在显示于显示器1180设备上之前解压缩。编码器/解码器1190可由CPU或GPU或协处理器实现。The image data for the three-dimensional image may be sent to image memory 1170 for additional processing before being displayed. The ISP processor 1150 receives processed data from the image memory 1170 and performs image data processing in the original domain and in the RGB and YCbCr color spaces on the processed data. The image data of the three-dimensional image may be output to the display 1180 for viewing by the user and/or further processed by a graphics engine or a GPU (Graphics Processing Unit, graphics processor). In addition, the output of the ISP processor 1150 may also be sent to the image memory 1170 , and the display 1180 may read image data from the image memory 1170 . In one embodiment, image memory 1170 may be configured to implement one or more frame buffers. Also, the output of the ISP processor 1150 may be sent to the encoder/decoder 1190 for encoding/decoding the image data. The encoded image data can be saved and decompressed prior to display on the display 1180 device. The encoder/decoder 1190 may be implemented by a CPU or GPU or a coprocessor.

ISP处理器1150确定的图像统计信息可发送给控制逻辑器1160单元。控制逻辑器1160可包括执行一个或多个例程(如固件)的处理器和/或微控制器,一个或多个例程可根据接收的图像统计信息,确定成像设备1140的控制参数。The image statistics determined by the ISP processor 1150 may be sent to the control logic 1160 unit. Control logic 1160 may include a processor and/or microcontroller executing one or more routines (eg, firmware) that may determine control parameters of imaging device 1140 based on received image statistics.

本发明实施例提供的拍照终端,通过获取待处理的景深图像,以确定获取的景深图像的前景区域和后景区域,然后在对确定的后景区域进行虚化处理时,先确定待虚化的像素点对应的目标滤波区域中是否包含位于前景区域的像素点,如果包含则对目标滤波区域中各像素点的权重值进行调整。由此,通过将包含有前景区域像素点的目标滤波区域中,各像素点的权重值进行调整,使得获得的后景区域虚化处理后的图像中,前景区域与后景区域之间的界限干净、清晰,有效保护了后景区域的虚化边缘,且使得主体更突出,提高了图像的整体画质,提升了用户的体验度。The photographing terminal provided by the embodiment of the present invention determines the foreground area and the background area of the acquired depth image by acquiring the depth image to be processed, and then, when performing the blurring process on the determined background area, firstly determines the background area to be blurred Whether the target filtering area corresponding to the pixel points of the target filter area includes pixels located in the foreground area, and if so, adjust the weight value of each pixel point in the target filtering area. Therefore, by adjusting the weight value of each pixel in the target filtering area including the pixels of the foreground area, the boundary between the foreground area and the background area in the obtained image after the blurring of the background area is obtained. Clean and clear, it effectively protects the blurred edge of the background area, and makes the subject more prominent, improving the overall image quality of the image and enhancing the user experience.

为了实现上述实施例,本发明还提出了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时,实现第一方面实施例的图像虚化处理方法。In order to implement the above-mentioned embodiments, the present invention also provides a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, implements the image blurring processing method of the embodiment of the first aspect.

本发明实施例提供的计算机可读存储介质,可设置在需要进行图像虚化处理的拍摄终端中,在终端设备进行图像虚化处理时,通过获取待处理的景深图像,以确定获取的景深图像的前景区域和后景区域,然后在对确定的后景区域进行虚化处理时,先确定待虚化的像素点对应的目标滤波区域中是否包含位于前景区域的像素点,如果包含则对目标滤波区域中各像素点的权重值进行调整。由此,通过将包含有前景区域像素点的目标滤波区域中,各像素点的权重值进行调整,使得获得的后景区域虚化处理后的图像中,前景区域与后景区域之间的界限干净、清晰,有效保护了后景区域的虚化边缘,且使得主体更突出,提高了图像的整体画质,提升了用户的体验度。The computer-readable storage medium provided by the embodiment of the present invention can be set in a shooting terminal that needs to perform image blurring processing. When the terminal device performs image blurring processing, the acquired depth-of-field image is determined by acquiring the depth-of-field image to be processed. The foreground area and the background area of The weight value of each pixel in the filter area is adjusted. Therefore, by adjusting the weight value of each pixel in the target filtering area including the pixels of the foreground area, the boundary between the foreground area and the background area in the obtained image after the blurring of the background area is obtained. Clean and clear, it effectively protects the blurred edge of the background area, and makes the subject more prominent, improving the overall image quality of the image and enhancing the user experience.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。In addition, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any description of a process or method in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing a specified logical function or step of the process , and the scope of the preferred embodiments of the invention includes alternative implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending upon the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present invention belong.

应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, Programmable Gate Arrays (PGA), Field Programmable Gate Arrays (FPGA), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those skilled in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the program can be stored in a computer-readable storage medium. When executed, one or a combination of the steps of the method embodiment is included.

上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present invention have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and should not be construed as limiting the present invention. Embodiments are subject to variations, modifications, substitutions and variations.

Claims (10)

1. An image blurring processing method, comprising:
acquiring a depth-of-field image to be processed;
determining a foreground region and a background region in the depth image;
when blurring processing is carried out on the background area, if it is determined that a target filtering area corresponding to a pixel point to be blurred contains a pixel point located in the foreground area, the weighted value of each pixel point in the target filtering area is adjusted.
2. The method of claim 1, wherein said determining foreground and background regions in said range image comprises:
and determining a foreground region and a background region in the depth image according to a preset range.
3. The method according to claim 1, wherein the depth image to be processed includes a portrait;
the determining a foreground region and a background region in the depth image comprises:
carrying out face recognition on the depth-of-field image to determine a face area;
and determining a foreground region and a background region in the depth-of-field image according to the depth-of-field value corresponding to the face region.
4. The method of claim 2, wherein the determining that the target filtering region corresponding to the pixel point to be blurred includes a pixel point located in the foreground region comprises:
if the depth of field value corresponding to any pixel point contained in the target filtering area is within the preset range, determining that any pixel point is a pixel point of the foreground area;
or,
and if the difference value of the depth of field values respectively corresponding to two adjacent pixel points in the target filtering area is greater than a preset value, determining that the target filtering area contains the pixel points positioned in the foreground area.
5. The method according to any one of claims 1 to 3, wherein the adjusting the weight value of each pixel point in the target filtering region includes:
setting the weighted value of the pixel point positioned in the foreground area to be zero;
and adjusting the weighted values of the residual pixel points in the target filtering area to enable the sum of the weighted values of the residual pixel points to be equal to one.
6. The method of claim 5, wherein the adjusting the weight values of the remaining pixels in the target filtering region comprises:
expanding the weight values of the residual pixel points in equal proportion;
or,
and adjusting the weight values of the residual pixel points according to the depth of field values respectively corresponding to the residual pixel points.
7. An image blurring processing apparatus, comprising:
the acquisition module is used for acquiring a depth-of-field image to be processed;
the determining module is used for determining a foreground region and a background region in the depth image;
and the adjusting module is used for adjusting the weight value of each pixel point in the target filtering area if it is determined that the target filtering area corresponding to the pixel point to be blurred contains the pixel point positioned in the foreground area when blurring the background area.
8. The apparatus of claim 7, wherein the adjustment module is specifically configured to:
if the depth of field value corresponding to any pixel point contained in the target filtering area is within a preset range, determining that any pixel point is a pixel point of the foreground area;
or,
and if the difference value of the depth of field values respectively corresponding to two adjacent pixel points in the target filtering area is greater than a preset value, determining that the target filtering area contains the pixel points positioned in the foreground area.
9. A photographing terminal, comprising: a memory, a processor, and an image processing circuit;
the memory for storing executable instructions of the processor;
the image processing circuit is used for processing the depth image;
the processor is used for calling the executable instructions in the memory and realizing the image blurring processing method according to any one of claims 1 to 6 according to the depth image output by the image processing circuit.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out an image blurring processing method according to any one of claims 1 to 6.
CN201710756408.5A 2017-08-29 2017-08-29 Image blurring processing method and device and shooting terminal Active CN107370958B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710756408.5A CN107370958B (en) 2017-08-29 2017-08-29 Image blurring processing method and device and shooting terminal
PCT/CN2018/101997 WO2019042216A1 (en) 2017-08-29 2018-08-23 Image blurring processing method and device, and photographing terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710756408.5A CN107370958B (en) 2017-08-29 2017-08-29 Image blurring processing method and device and shooting terminal

Publications (2)

Publication Number Publication Date
CN107370958A CN107370958A (en) 2017-11-21
CN107370958B true CN107370958B (en) 2019-03-29

Family

ID=60310445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710756408.5A Active CN107370958B (en) 2017-08-29 2017-08-29 Image blurring processing method and device and shooting terminal

Country Status (2)

Country Link
CN (1) CN107370958B (en)
WO (1) WO2019042216A1 (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107370958B (en) * 2017-08-29 2019-03-29 Oppo广东移动通信有限公司 Image blurring processing method and device and shooting terminal
CN108024058B (en) * 2017-11-30 2019-08-02 Oppo广东移动通信有限公司 Image blurring processing method and device, mobile terminal and storage medium
CN108322639A (en) * 2017-12-29 2018-07-24 维沃移动通信有限公司 A kind of method, apparatus and mobile terminal of image procossing
CN110009556A (en) 2018-01-05 2019-07-12 广东欧珀移动通信有限公司 Image background weakening method, device, storage medium and electronic equipment
CN108495030A (en) * 2018-03-16 2018-09-04 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108629745B (en) * 2018-04-12 2021-01-19 Oppo广东移动通信有限公司 Image processing method and device based on structured light and mobile terminal
WO2020107187A1 (en) * 2018-11-26 2020-06-04 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Systems and methods for taking telephoto-like images
TWI701639B (en) * 2018-12-11 2020-08-11 緯創資通股份有限公司 Method of identifying foreground object in image and electronic device using the same
TWI693576B (en) * 2019-02-26 2020-05-11 緯創資通股份有限公司 Method and system for image blurring processing
CN110349080B (en) * 2019-06-10 2023-07-04 北京迈格威科技有限公司 Image processing method and device
CN112395912B (en) * 2019-08-14 2022-12-13 中移(苏州)软件技术有限公司 A face segmentation method, electronic device and computer-readable storage medium
CN112395922B (en) * 2019-08-16 2024-12-06 杭州海康威视数字技术股份有限公司 Facial action detection method, device and system
CN112785487B (en) * 2019-11-06 2023-08-04 RealMe重庆移动通信有限公司 Image processing method and device, storage medium and electronic equipment
CN110910304B (en) * 2019-11-08 2023-12-22 北京达佳互联信息技术有限公司 Image processing method, device, electronic equipment and medium
WO2021102704A1 (en) * 2019-11-26 2021-06-03 深圳市大疆创新科技有限公司 Image processing method and apparatus
CN111161136B (en) * 2019-12-30 2023-11-03 深圳市商汤科技有限公司 Image blurring method, image blurring device, equipment and storage device
CN111242843B (en) * 2020-01-17 2023-07-18 深圳市商汤科技有限公司 Image blurring method, image blurring device, equipment and storage device
CN113138387B (en) * 2020-01-17 2024-03-08 北京小米移动软件有限公司 Image acquisition method and device, mobile terminal and storage medium
CN111314602B (en) * 2020-02-17 2021-09-17 浙江大华技术股份有限公司 Target object focusing method, target object focusing device, storage medium and electronic device
CN111275045B (en) * 2020-02-28 2024-02-06 Oppo广东移动通信有限公司 Image main body recognition method and device, electronic equipment and medium
CN112639867A (en) * 2020-05-07 2021-04-09 深圳市大疆创新科技有限公司 Image processing method and device
CN111626924B (en) * 2020-05-28 2023-08-15 维沃移动通信有限公司 Image blurring processing method and device, electronic equipment and readable storage medium
CN113938578B (en) * 2020-07-13 2024-07-30 武汉Tcl集团工业研究院有限公司 Image blurring method, storage medium and terminal equipment
CN113965663B (en) * 2020-07-21 2024-09-20 深圳Tcl新技术有限公司 Image quality optimization method, intelligent terminal and storage medium
CN114079725B (en) * 2020-08-13 2023-02-07 华为技术有限公司 Video anti-shake method, terminal device, and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1766927A (en) * 2004-05-20 2006-05-03 豪威科技有限公司 Methods and systems for locally adaptive image processing filters
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, device and terminal
CN105574818A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 Depth-of-field rendering method and device
CN105979165A (en) * 2016-06-02 2016-09-28 广东欧珀移动通信有限公司 Blurred photos generation method, blurred photos generation device and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TR200907868A2 (en) * 2009-10-16 2011-05-23 Vestel Elektron�K Sanay� Ve T�Caret Anon�M ��Rket�@ Automated test method with black transparent regions
US8466980B2 (en) * 2010-04-06 2013-06-18 Alcatel Lucent Method and apparatus for providing picture privacy in video
CN105744173B (en) * 2016-02-15 2019-04-16 Oppo广东移动通信有限公司 A kind of method, device and mobile terminal of differentiation image front and back scene area
CN105629631B (en) * 2016-02-29 2020-01-10 Oppo广东移动通信有限公司 Control method, control device and electronic device
CN107370958B (en) * 2017-08-29 2019-03-29 Oppo广东移动通信有限公司 Image blurring processing method and device and shooting terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1766927A (en) * 2004-05-20 2006-05-03 豪威科技有限公司 Methods and systems for locally adaptive image processing filters
CN105574818A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 Depth-of-field rendering method and device
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, device and terminal
CN105979165A (en) * 2016-06-02 2016-09-28 广东欧珀移动通信有限公司 Blurred photos generation method, blurred photos generation device and mobile terminal

Also Published As

Publication number Publication date
CN107370958A (en) 2017-11-21
WO2019042216A1 (en) 2019-03-07

Similar Documents

Publication Publication Date Title
CN107370958B (en) Image blurring processing method and device and shooting terminal
CN107864337B (en) Sketch image processing method, device and equipment and computer readable storage medium
CN107948517B (en) Preview image blur processing method, device and device
CN107680128B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN107977940B (en) Background blurring processing method, device and equipment
CN108111749B (en) Image processing method and device
WO2019105154A1 (en) Image processing method, apparatus and device
JP6903816B2 (en) Image processing method and equipment
US10304164B2 (en) Image processing apparatus, image processing method, and storage medium for performing lighting processing for image data
KR101662846B1 (en) Apparatus and method for generating bokeh in out-of-focus shooting
CN110276734A (en) Image distortion correction method and device
CN107945105B (en) Background blurring processing method, device and equipment
CN107509031B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
CN107316326B (en) Edge-based disparity map calculation method and device applied to binocular stereo vision
CN108989699B (en) Image synthesis method, image synthesis device, imaging apparatus, electronic apparatus, and computer-readable storage medium
WO2019105254A1 (en) Background blur processing method, apparatus and device
CN107820019B (en) Virtual image acquisition method, device and device
CN108053363A (en) Background blurring processing method, device and equipment
CN107480615B (en) Beauty treatment method and device and mobile equipment
CN110942427A (en) Image noise reduction method and device, equipment and storage medium
CN107360354B (en) Photographing method, photographing device, mobile terminal and computer-readable storage medium
CN113674303B (en) Image processing method, device, electronic equipment and storage medium
TW201947536A (en) Image processing method and image processing device
CN107517346A (en) Photographing method, device and mobile device based on structured light
CN107392874A (en) Beauty treatment method, device and mobile device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant