CN108156369B - Image processing method and device - Google Patents
Image processing method and device Download PDFInfo
- Publication number
- CN108156369B CN108156369B CN201711277634.1A CN201711277634A CN108156369B CN 108156369 B CN108156369 B CN 108156369B CN 201711277634 A CN201711277634 A CN 201711277634A CN 108156369 B CN108156369 B CN 108156369B
- Authority
- CN
- China
- Prior art keywords
- image
- target
- main
- brightness
- target scene
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 25
- 238000012545 processing Methods 0.000 claims abstract description 60
- 238000000034 method Methods 0.000 claims abstract description 30
- 230000002194 synthesizing effect Effects 0.000 claims abstract description 11
- 238000003860 storage Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 33
- 238000003384 imaging method Methods 0.000 description 35
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 230000015572 biosynthetic process Effects 0.000 description 9
- 238000003786 synthesis reaction Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 230000009977 dual effect Effects 0.000 description 6
- 230000009467 reduction Effects 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 239000002131 composite material Substances 0.000 description 4
- 238000013136 deep learning model Methods 0.000 description 3
- 238000006073 displacement reaction Methods 0.000 description 3
- 206010034960 Photophobia Diseases 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 238000003705 background correction Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 208000013469 light sensitivity Diseases 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000000872 buffer Substances 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000002301 combined effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000002994 raw material Substances 0.000 description 1
- 238000011946 reduction process Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/951—Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
-
- 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/265—Mixing
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本申请涉及图像处理技术领域,尤其涉及一种图像处理方法和装置。The present application relates to the technical field of image processing, and in particular, to an image processing method and apparatus.
背景技术Background technique
目前,终端设备的拍照功能被应用于用户的日常生产和生活中,拍照依然成为一种广泛的需要,用户通过终端设备的拍照功能记录生活等。At present, the photographing function of the terminal device is used in the daily production and life of the user, and photographing is still a widespread need, and the user records life through the photographing function of the terminal device.
相关技术中,为了保证整张图像的成像效果,根据拍摄场景的平均亮度确定曝光参数,在当前拍摄主体与环境亮度具有差异性,确定的拍摄曝光参数将会受到环境光线的影响,不适合当前拍摄的主体,或者,拍摄曝光参数将会受到环拍摄主体的影响,导致背景区域曝光不足,从而导致拍摄的图像效果较差。In the related art, in order to ensure the imaging effect of the entire image, the exposure parameters are determined according to the average brightness of the shooting scene. There is a difference between the current shooting subject and the ambient brightness, and the determined shooting exposure parameters will be affected by the ambient light, which is not suitable for the current situation. The subject shot, or the exposure parameter of the shot will be affected by the subject of the ring shot, resulting in underexposed background areas, resulting in poorer image quality.
申请内容Application content
本申请提供一种图像处理方法和装置,以解决现有技术中,拍摄主体和背景区域的的亮度互相相应,从而导致拍摄效果较差的技术问题。The present application provides an image processing method and device to solve the technical problem in the prior art that the brightness of the photographed subject and the background area correspond to each other, resulting in poor photographing effect.
本申请实施例提供一种图像处理方法,包括:根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时根据标准曝光参数控制副摄像头拍摄所述目标场景的第一副图像,根据过度曝光参数控制主摄像头拍摄所述目标场景的第二主图像;通过第一线程根据所述第一主图像和所述第一副图像计算所述目标场景中目标图像的第一景深信息,同时,通过第二线程从所述第一主图像中获取第一目标图像,同时,通过第三线程从所述第二主图像中获取第一背景图像;根据所述目标图像的第一景深信息对所述第一目标图像和所述第一背景图像进行合成处理,获取目标场景图像。An embodiment of the present application provides an image processing method, including: controlling a main camera to shoot a first main image of a target scene according to standard exposure parameters, and controlling a sub-camera to shoot a first sub-image of the target scene according to standard exposure parameters; The exposure parameter controls the main camera to shoot the second main image of the target scene; calculates the first depth of field information of the target image in the target scene through the first thread according to the first main image and the first sub-image, and at the same time, The first target image is obtained from the first main image through the second thread, and at the same time, the first background image is obtained from the second main image through the third thread; The first target image and the first background image are synthesized to obtain a target scene image.
本申请另一实施例提供一种图像处理装置,包括:拍摄模块,用于根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时根据所述标准曝光参数控制副摄像头拍摄所述目标场景的第一副图像,以及根据过度曝光参数控制主摄像头拍摄所述目标场景的第二主图像;获取模块,用于通过第一线程根据所述第一主图像和所述第一副图像计算所述目标场景中目标图像的第一景深信息,同时,通过第二线程从所述第一主图像中获取第一目标图像,同时,通过第三线程从所述第二主图像中获取第一背景图像;处理模块,用于根据所述目标图像的第一景深信息对所述第一目标图像和所述第一背景图像进行合成处理,获取目标场景图像。Another embodiment of the present application provides an image processing device, including: a shooting module, configured to control a main camera to shoot a first main image of a target scene according to standard exposure parameters, and control a sub-camera to shoot the target according to the standard exposure parameters a first sub-image of the scene, and controlling the main camera to shoot the second main image of the target scene according to the overexposure parameter; an acquisition module, configured to calculate the first main image and the first sub-image through the first thread The first depth of field information of the target image in the target scene, at the same time, the first target image is obtained from the first main image through the second thread, and the first target image is obtained from the second main image through the third thread. A background image; a processing module configured to perform synthesis processing on the first target image and the first background image according to the first depth of field information of the target image to obtain a target scene image.
本申请又一实施例提供一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行本申请上述实施例所述的图像处理方法。Yet another embodiment of the present application provides a computer device, including a memory and a processor, wherein computer-readable instructions are stored in the memory, and when the instructions are executed by the processor, the processor executes the above implementation of the present application The image processing method described in the example.
本申请还一实施例提供一种非临时性计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如本申请上述实施例所述的图像处理方法。Another embodiment of the present application provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the image processing method described in the foregoing embodiments of the present application.
本申请实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present application may include the following beneficial effects:
根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时控制副摄像头拍摄目标场景的第一副图像,以及根据过度曝光参数控制主摄像头拍摄目标场景的第二主图像,通过第一线程根据第一主图像和第一副图像计算目标场景中目标图像的第一景深信息,同时,通过第二线程从第一主图像中获取第一目标图像,同时,通过第三线程从第二主图像中获取第一背景图像,进而,根据目标图像的第一景深信息对第一目标图像和第一背景图像进行合成处理。由此,不但可以保证整整图像的成像效果,尤其是当环境亮度和拍摄主体的亮度差异较大时整张图像的成像效果,而且提高了图像处理效率。Control the main camera to shoot the first main image of the target scene according to the standard exposure parameters, control the sub-camera to shoot the first sub-image of the target scene, and control the main camera to shoot the second main image of the target scene according to the overexposure parameters, through the first thread Calculate the first depth-of-field information of the target image in the target scene according to the first main image and the first sub-image, at the same time, obtain the first target image from the first main image through the second thread, and at the same time, obtain the first target image from the second main image through the third thread The first background image is obtained from the image, and further, the first target image and the first background image are synthesized according to the first depth information of the target image. In this way, not only the imaging effect of the entire image can be guaranteed, especially when the difference between the brightness of the environment and the brightness of the shooting subject is large, but also the image processing efficiency is improved.
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be set forth, in part, in the following description, and in part will be apparent from the following description, or learned by practice of the present application.
附图说明Description of drawings
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1是根据本申请一个实施例的图像处理方法的流程图;1 is a flowchart of an image processing method according to an embodiment of the present application;
图2是根据本申请一个实施例的三角测距的原理示意图;FIG. 2 is a schematic diagram of the principle of triangulation ranging according to an embodiment of the present application;
图3是根据本申请一个实施例的双摄像头景深信息获取示意图;3 is a schematic diagram of acquiring depth information of dual cameras according to an embodiment of the present application;
图4是据本申请一个实施例的图像处理方法的场景示意图;Fig. 4 is a scene schematic diagram of an image processing method according to an embodiment of the present application;
图5是根据现有技术的图像处理的效果示意图;5 is a schematic diagram of the effect of image processing according to the prior art;
图6是根据本申请一个实施例的图像处理的效果示意图;6 is a schematic diagram of the effect of image processing according to an embodiment of the present application;
图7是根据本申请另一个实施例的图像处理方法的流程图;7 is a flowchart of an image processing method according to another embodiment of the present application;
图8是据本申请另一个实施例的图像处理方法的场景示意图;Fig. 8 is a scene schematic diagram of an image processing method according to another embodiment of the present application;
图9是根据本申请一个实施例的图像处理装置的结构示意图;9 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application;
图10是根据本申请另一个实施例的图像处理装置的结构示意图;10 is a schematic structural diagram of an image processing apparatus according to another embodiment of the present application;
图11是根据本申请又一个实施例的图像处理装置的结构示意图;以及FIG. 11 is a schematic structural diagram of an image processing apparatus according to still another embodiment of the present application; and
图12是根据本申请一个实施例的图像处理电路的示意图。FIG. 12 is a schematic diagram of an image processing circuit according to an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The following describes in detail the embodiments of the present application, 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 with reference to the accompanying drawings are exemplary, and are intended to be used to explain the present application, but should not be construed as a limitation to the present application.
下面参考附图描述本申请实施例的图像处理方法和装置。The image processing method and apparatus according to the embodiments of the present application will be described below with reference to the accompanying drawings.
其中,本申请的图像处理方法和装置的执行主体可以是终端设备,其中,终端设备可以是手机、平板电脑、个人数字助理、穿戴式设备等具有双摄像头的硬件设备。该穿戴式设备可以是智能手环、智能手表、智能眼镜等。Wherein, the execution subject of the image processing method and apparatus of the present application may be a terminal device, wherein the terminal device may be a hardware device with dual cameras, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device, etc. The wearable device may be a smart bracelet, a smart watch, smart glasses, or the like.
基于以上分析可知,拍摄主体的亮度和环境亮度的差异会互相影响,从而导致拍照效果不佳,尤其是当拍摄主体的亮度和环境亮度的差距较大时,对拍摄主体的曝光参数容易受到环境亮度的影响而导致曝光不合适,以及,对背景区域的拍摄参数容易受到拍摄主体亮度的影响而导致曝光不合适,比如,在灯光较暗的观众席上拍摄舞台灯下的演员时,导致演员对应的图像过曝,而观众席位中的相关细腻曝光不充分等。Based on the above analysis, it can be seen that the difference between the brightness of the subject and the brightness of the environment will affect each other, resulting in poor shooting effect, especially when the difference between the brightness of the subject and the brightness of the environment is large, the exposure parameters of the subject are easily affected by the environment. Inappropriate exposure due to the influence of brightness, and the shooting parameters of the background area are easily affected by the brightness of the subject, resulting in inappropriate exposure. The corresponding images are overexposed, and the relevant fine details in the audience seats are underexposed, etc.
为了解决上述技术问题,本申请实施例的图像处理方法,分别基于与拍摄背景和拍摄主体进行合适的曝光,之后对曝光效果较好的拍摄主体和背景区域进行合成,不但提高了图像主体的曝光效果,而且保证了整张图像的细节丰富。In order to solve the above-mentioned technical problems, the image processing method of the embodiment of the present application is based on appropriate exposure with the shooting background and the shooting subject, and then synthesizing the shooting subject and the background area with better exposure effect, which not only improves the exposure of the image subject effect, and ensure that the details of the entire image are rich.
图1是根据本申请一个实施例的图像处理方法的流程图,如图1所示,该方法包括:FIG. 1 is a flowchart of an image processing method according to an embodiment of the present application. As shown in FIG. 1 , the method includes:
步骤101,根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时,根据标准曝光参数控制副摄像头拍摄目标场景的第一副图像。
步骤102,根据过度曝光参数过度控制主摄像头拍摄目标场景的第二主图像。Step 102: Over-control the main camera to shoot the second main image of the target scene according to the over-exposure parameter.
具体地,终端设备通过双摄像头系统进行拍照,双摄像头系统通过主摄像头拍摄的主图像和副摄像头拍摄的副图像计算景深信息,其中,双摄像头系统包括一个获取拍摄主体主图像的主摄像头,和一个辅助主图像获取景深信息的副摄像头,其中,主摄像头和副摄像头的设置方式可以为沿着水平方向设置,或者,也可以是沿着竖直方向设置等,为了更加清楚的描述双摄像头如何获取景深信息,下面参考附图说明双摄像头获取景深信息的原理:Specifically, the terminal device takes pictures through a dual-camera system, and the dual-camera system calculates depth-of-field information through a main image captured by the main camera and a sub-image captured by the sub-camera, wherein the dual-camera system includes a main camera that acquires a main image of the captured subject, and A sub-camera that assists the main image to obtain depth-of-field information, where the main camera and the sub-camera can be set in the horizontal direction, or can also be set in the vertical direction, etc., in order to more clearly describe how the dual cameras To obtain depth of field information, the following describes the principle of obtaining depth of field information with dual cameras with reference to the attached drawings:
在实际应用中,人眼分辩景深信息主要是依靠双目视觉分辨景深信息,这与双摄像头分辨景深信息的原理一样,主要是依靠如图2所示的三角测距的原理实现的,基于图2中,在实际空间中,画出了成像对象,以及两个摄像头所在位置OR和OT,以及两个摄像头的焦平面,焦平面距离两个摄像头所在平面的距离为f,在焦平面位置两个摄像头进行成像,从而得到两张拍摄图像。In practical applications, the human eye mainly relies on binocular vision to distinguish depth information, which is the same as the principle of dual cameras to distinguish depth information. It is mainly realized by the principle of triangular ranging as shown in Figure 2. In 2, in the actual space, the imaging object, the positions O R and O T of the two cameras, and the focal planes of the two cameras are drawn. The distance between the focal plane and the plane where the two cameras are located is f, and in the focal plane Position two cameras for imaging, thereby obtaining two captured images.
其中,P和P’分别是同一对象在不同拍摄图像中的位置。其中,P点距离所在拍摄图像的左侧边界的距离为XR,P’点距离所在拍摄图像的左侧边界的距离为XT。OR和OT分别为两个摄像头,这两个摄像头在同一平面,距离为B。Among them, P and P' are the positions of the same object in different captured images, respectively. Wherein, the distance between point P and the left border of the captured image is X R , and the distance between point P' and the left border of the captured image is X T . O R and O T are two cameras respectively, the two cameras are in the same plane and the distance is B.
基于三角测距原理,图2中的对象与两个摄像头所在平面之间的距离Z,具有如下关系: Based on the principle of triangulation ranging, the distance Z between the object in Figure 2 and the plane where the two cameras are located has the following relationship:
基于此,可以推得其中,d为同一对象在不同拍摄图像中的位置之间的距离差。由于B、f为定值,因此,根据d可以确定出对象的距离Z。Based on this, it can be deduced that Among them, d is the distance difference between the positions of the same object in different captured images. Since B and f are fixed values, the distance Z of the object can be determined according to d.
当然,除了三角测距法,也可以采用其他的方式来计算主图像的景深信息,比如,主摄像头和副摄像头针对同一个场景拍照时,场景中的物体距离摄像头的距离与主摄像头和副摄像头成像的位移差、姿势差等成比例关系,因此,在本申请的一个实施例中,可以根据这种比例关系获取上述距离Z。Of course, in addition to the triangulation method, other methods can also be used to calculate the depth of field information of the main image. The imaging displacement difference, posture difference, etc. are in a proportional relationship. Therefore, in an embodiment of the present application, the above-mentioned distance Z can be obtained according to this proportional relationship.
举例而言,如图3所示,通过主摄像头获取的主图像以及副摄像头获取的副图像,计算出不同点差异的图,这里用视差图表示,这个图上表示的是两张图上相同点的位移差异,但是由于三角定位中的位移差异和Z成正比,因此很多时候视差图就直接被用作景深信息图。For example, as shown in Figure 3, the main image obtained by the main camera and the sub-image obtained by the sub-camera are used to calculate the difference between different points. The displacement difference of the point, but since the displacement difference in triangulation is proportional to Z, the disparity map is often used directly as the depth information map.
具体而言,在本申请实施例中,通过主摄像头拍摄的主图像和副摄像头拍摄的副图像计算得到主图像和副图像中针对同一对象的景深信息,并通过主图像作为最终成像的实际图像的基础图像,而为了避免主图像和副图像计算景深信息时,由于主图像和副图像的差异较大等原因导致景深信息计算不精确,或者,主图像不清晰导致进行最终成像的成像效果不好,根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时控制副摄像头拍摄所述目标场景的第一副图像,其中,标准曝光参数是根据拍摄的目标场景中拍摄主体而言的,即如果拍摄主体亮度较强,则该标准曝光参数对应的光圈大小等较小,如果拍摄主体亮度较暗,则该标准曝光参数对应的光圈较大等,基于先验知识,可以通过聚焦于当前拍摄场景中的拍摄主体获取的曝光参数作为第一曝光参数。Specifically, in the embodiment of the present application, the depth of field information for the same object in the main image and the sub-image is calculated by using the main image captured by the main camera and the sub-image captured by the sub-camera, and the main image is used as the final image of the actual image. In order to avoid calculating the depth of field information between the main image and the sub-image, the calculation of the depth-of-field information is inaccurate due to the large difference between the main image and the sub-image, or the imaging effect of the final imaging is not caused by the unclear main image. Well, control the main camera to shoot the first main image of the target scene according to the standard exposure parameters, and control the sub-camera to shoot the first sub-image of the target scene at the same time, wherein the standard exposure parameters are based on the shooting subject in the target scene. , that is, if the brightness of the subject is strong, the aperture size corresponding to the standard exposure parameter is small, and if the subject brightness is dark, the aperture corresponding to the standard exposure parameter is large, etc. Based on prior knowledge, it can be achieved by focusing on The exposure parameter obtained by the subject in the current shooting scene is used as the first exposure parameter.
由此,上述基于标准曝光参数拍摄的目标场景的第一主图像和第一副图像包含了较为清晰的拍摄主体的图像,基于该第一主图像和第一副图像可以进一步确定出拍摄主体的景深信息。Therefore, the above-mentioned first main image and first sub-image of the target scene captured based on the standard exposure parameters include relatively clear images of the subject, and based on the first main image and the first sub-image, it is possible to further determine the image of the subject. depth of field information.
另外,在当前环境亮度较暗时,曝光参数由于受到光线较亮的拍摄主体的影响,而导致曝光不足,比如,当前环境亮度为50,而拍摄主体的亮度为100,可能受到拍摄主体的亮度的影响,最终确定的拍摄的曝光参数对应的亮度为60,显然会使得拍摄的图像中背景区域由于曝光不足而不清楚,在本申请的实施例中,根据过度曝光参数控制主摄像头拍摄目标场景的第二主图像,从而保证了拍摄的目标场景中背景区域曝光充分,其中,过度曝光参数为相对于上述标准曝光参数而言的,该过度曝光参数与当前拍摄的目标场景中的背景区域的亮度有关,背景区域的亮度相对于拍摄主体的亮度越低,该过度曝光参数越是大于标准曝光参数。In addition, when the current ambient brightness is dark, the exposure parameters are affected by the brightly lit subject, resulting in insufficient exposure. For example, the current ambient brightness is 50 and the subject's brightness is 100, which may be affected by the subject's brightness. The final determined exposure parameter corresponds to a brightness of 60, which obviously makes the background area in the captured image unclear due to underexposure. In the embodiment of this application, the main camera is controlled to capture the target scene according to the overexposure parameter. the second main image, thereby ensuring that the background area in the target scene to be photographed is fully exposed, wherein the overexposure parameter is relative to the above standard exposure parameter, and the overexposure parameter is different from the background area in the currently photographed target scene. The brightness is related. The lower the brightness of the background area relative to the brightness of the subject, the greater the overexposure parameter is than the standard exposure parameter.
当然,有暗光环境下成像效果较差,因此,本申请实施例中仅仅以一种常见的暗光环境下拍摄亮度较高的拍摄主体的场景为例进行解释,在实际应用中,也存在一种拍摄场景,为在强光环境下拍摄亮度较低的拍摄主体,在这种情况下,可以根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时控制副摄像头拍摄目标场景的第一副图像,以及根据欠曝光参数控制主摄像头拍摄目标场景的第二主图像。Of course, the imaging effect is poor in a dark light environment. Therefore, in the embodiments of the present application, only a common scene of shooting a subject with high brightness in a dark light environment is used as an example for explanation. In practical applications, there are also A shooting scene is to shoot a subject with low brightness in a strong light environment. In this case, the main camera can be controlled to shoot the first main image of the target scene according to the standard exposure parameters, and the sub-camera can be controlled to shoot the first main image of the target scene at the same time. The first sub image, and the second main image of the target scene that is controlled by the main camera according to the underexposure parameter.
为了进一步提高本申请的图像处理的灵活性,也可以仅仅在拍摄环境和拍摄主体之间的亮度差较大,从而难以保证整张图像的成像效果较高时,实施本申请实施例的图像处理方法。In order to further improve the flexibility of the image processing of the present application, the image processing of the embodiments of the present application can also be implemented only when the difference in brightness between the shooting environment and the shooting subject is large, so that it is difficult to ensure a high imaging effect of the entire image. method.
具体而言,在本申请的一个实施例中,检测目标场景中拍摄主体所在环境的第一亮度和拍摄主体的第二亮度,比如可以通过对拍摄目标场景的预览画面中拍摄主体所在区域和拍摄主体所在环境区域进行分别对焦测光,根据对焦测光参数值(光圈大小等)确定出第一亮度和第二亮度,比如,在用户经常拍摄的场景比较固定时,比如经常会看表演并针对舞台上的演员进行拍照,则可以预先设置并存储拍摄的场景和第一亮度与第二亮度或第一亮度和第二亮度的差值的对应关系,从而,将当前拍照场景预存的场景进行匹配,获取对应的第一亮度和第二亮度或者第一亮度和第二亮度的差值,又比如,可以预先根据大量试验数据构建深度学习模型,该深度学习模型的输入为拍照场景亮度分布情况,比如是越靠近取景框的边界越亮还是越靠近取景框的中央越亮等,输出为第一亮度和第二亮度或者第一亮度和第二亮度的差值,从而,将当前拍照场景的亮度分布情况输入该深度学习模型,获取输出的第一亮度和第二亮度或者第一亮度和第二亮度的差值。其中,拍摄环境的第一亮度对应于拍摄的目标场景中的目标图像的背景区域的亮度,目标图像的第二亮度对应于当前拍摄主体的亮度,若确定第二亮度与第一亮度的差值大于等于预设阈值,则根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时控制副摄像头拍摄目标场景的第一副图像,以及根据过度曝光参数控制主摄像头拍摄目标场景的第二主图像。Specifically, in an embodiment of the present application, to detect the first brightness of the environment where the subject is located and the second brightness of the subject in the target scene, for example, the area where the subject is located in the preview image of the shooting target scene and the second brightness of the subject can be detected. Focus metering is performed separately in the environmental area where the subject is located, and the first brightness and the second brightness are determined according to the focus metering parameter value (aperture size, etc.). When an actor on the stage takes a photo, the corresponding relationship between the shooting scene and the first brightness and the second brightness or the difference between the first brightness and the second brightness can be preset and stored, so as to match the pre-stored scene of the current shooting scene , to obtain the corresponding first brightness and second brightness or the difference between the first brightness and the second brightness, and for example, a deep learning model can be constructed in advance according to a large amount of experimental data, and the input of the deep learning model is the brightness distribution of the photographing scene, For example, the closer to the border of the viewfinder, the brighter, or the closer to the center of the viewfinder, the brighter, etc., the output is the difference between the first brightness and the second brightness or the first brightness and the second brightness, so that the brightness of the current photographing scene is The distribution is input into the deep learning model, and the outputted first brightness and second brightness or the difference between the first brightness and the second brightness are obtained. The first brightness of the shooting environment corresponds to the brightness of the background area of the target image in the shooting target scene, and the second brightness of the target image corresponds to the brightness of the current shooting subject. If the difference between the second brightness and the first brightness is determined greater than or equal to the preset threshold, control the main camera to capture the first main image of the target scene according to the standard exposure parameters, control the sub-camera to capture the first sub-image of the target scene, and control the main camera to capture the second sub-image of the target scene according to the overexposure parameter main image.
其中,预设阈值可以是根据大量实验的数据标定的用来判断环境亮度和拍摄主体的亮度是否影响成像效果的基准亮度值,该预设阈值还可以与终端设备的成像硬件相关,成像硬件的感光性越好,该预设阈值越高。The preset threshold may be a reference brightness value calibrated according to a large number of experimental data and used to determine whether the brightness of the environment and the brightness of the shooting subject affect the imaging effect, and the preset threshold may also be related to the imaging hardware of the terminal device. The better the light sensitivity, the higher the preset threshold.
步骤103,通过第一线程根据第一主图像和第一副图像计算目标场景中目标图像的第一景深信息,同时,通过第二线程从第一主图像中获取第一目标,同时,通过第三线程从第二主图像中获取第一背景图像。Step 103: Calculate the first depth of field information of the target image in the target scene through the first thread according to the first main image and the first sub-image; at the same time, obtain the first target from the first main image through the second thread; Three threads get the first background image from the second main image.
步骤104,根据目标图像的第一景深信息对第一目标图像和第一背景图像进行合成处理,获取目标场景图像。
基于以上分析可知,双摄像头获取景深信息时,需要获取同一对象在不同拍摄图像中的位置,如果获取景深信息对应的图像越清晰,则获取的景深信息越精确,因而,在本示例中,基于标准曝光参数下的第一主图像和第一副图像进行目标图像(拍摄主体)的第一景深信息的获取,由此,由于标准曝光参数下获取的第一主图像和第一副图像的成像效果较好,图像较清晰,因而获取的第一景深信息越精确。Based on the above analysis, when dual cameras acquire depth information, it is necessary to acquire the position of the same object in different captured images. The clearer the image corresponding to acquired depth information, the more accurate the acquired depth information. Therefore, in this example, based on The first main image and the first sub-image under the standard exposure parameters are used to obtain the first depth-of-field information of the target image (the shooting subject). The effect is better and the image is clearer, so the acquired first depth of field information is more accurate.
其中,正如以上分析的,第一主图像是基于拍摄主体的亮度进行曝光的,因而,第一主图像中的拍摄主体对应的目标图像的成像效果较好,第二主图像是基于的当前拍摄的目标场景的亮度进行曝光的,因此,第二主图像中拍摄的背景区域的成像效果较好,为了提高整张图像的成像效果,在本申请的一个实施例中,基于第一主图像提取第一目标图像,可以通过图像识别、轮廓识别等技术确定出第一目标图像,基于第二主图像获取第一背景图像,进而,根据第一主图像和第一背景图像进行合成处理生成的图像中无论是拍摄主体还是背景区域的细节都很丰富,整张图像的成像效果较好。Among them, as analyzed above, the first main image is exposed based on the brightness of the subject. Therefore, the imaging effect of the target image corresponding to the subject in the first main image is better, and the second main image is based on the current shooting Therefore, the imaging effect of the background area captured in the second main image is better. In order to improve the imaging effect of the entire image, in an embodiment of the present application, based on the first main image extraction For the first target image, the first target image can be determined by techniques such as image recognition, contour recognition, etc., the first background image is obtained based on the second main image, and further, an image generated by synthesizing the first main image and the first background image The details of both the subject and the background area are very rich, and the imaging effect of the whole image is good.
在实际执行过程中,为了使得第一目标图像和第一背景图像的合成效果更加自然,根据目标图像的第一景深信息对第一目标图像和第一背景图像进行合成处理,其中,根据应用场景的不同,根据目标图像的第一景深信息对第一目标图像和第一背景图像进行合成处理的具体实施方式不同:In the actual execution process, in order to make the synthesis effect of the first target image and the first background image more natural, the first target image and the first background image are synthesized according to the first depth of field information of the target image. , the specific implementations of synthesizing the first target image and the first background image according to the first depth-of-field information of the target image are different:
作为一种可能的实现方式,由于景深信息越大,图像中的物体越小,景深信息越小,图像中的物体越大,因而,可以基于第一景深信息适应性的调整第一目标图像的中相关区域的大小,并与第一背景图像进行合成,避免二者在合成的时候,由于大小不合适而导致的畸变等。As a possible implementation manner, since the greater the depth of field information, the smaller the object in the image, the smaller the depth of field information, the larger the object in the image, therefore, the first target image can be adaptively adjusted based on the first depth of field information. The size of the relevant area in the middle is combined with the first background image, so as to avoid the distortion caused by the inappropriate size when the two are combined.
作为另一种可能的实现方式,由于景深信息越大,图像越模糊,景深信息越小,图像越清晰,因而,可以基于第一景深信息对第一目标图像进行像素填充,并与第一背景图像进行合成,使得二者合成效果更加自然。As another possible implementation manner, since the larger the depth of field information is, the blurrier the image is, and the smaller the depth of field information is, the clearer the image is. Therefore, the first target image may be filled with pixels based on the first depth of field information, and the first target image may be filled with pixels and matched with the first background. The images are combined to make the combined effect of the two more natural.
进一步地,为了进一步优化成像效果,在本申请的一个实施例中,还可根据目标图像的第一景深信息对第一背景图像进行虚化处理。Further, in order to further optimize the imaging effect, in an embodiment of the present application, the first background image may also be subjected to blurring processing according to the first depth of field information of the target image.
具体而言,根据应用场景的不同,可采用多种不同的方式根据目标图像的第一景深信息对第一背景图像进行虚化处理:Specifically, according to different application scenarios, the first background image can be blurred according to the first depth of field information of the target image in a variety of different ways:
作为一种可能的实现方式:根据目标图像的第一景深信息确定第一背景图像的虚化强度,进而,根据第一背景区域的虚化强度对相应的背景区域进行虚化处理,从而,根据不同的景深信息进行不同程度的虚化,使得虚化的图像效果更加自然且富有层次感。As a possible implementation manner: determine the blurring intensity of the first background image according to the first depth of field information of the target image, and further perform blurring processing on the corresponding background area according to the blurring strength of the first background area, so that according to the blurring strength of the first background area Different depth of field information is blurred to different degrees, making the blurred image effect more natural and rich in layers.
需要说明的是,根据应用场景的不同,可以采用不同的实现方式,实现根据第一目标图像的景深信息确定第一背景区域的虚化强度,作为一种可能的实现方式,当第一目标图像的景深信息越精确,则证明第一目标对象的轮廓越清晰,此时,即使对第一背景区域进行虚化处理时越不容易导致对第一目标图像的误虚化,此时背景区域对应的虚化强度可以越大,因而,可以预先建立第一目标图像的景深信息的计算精度和第一背景区域对应的虚化强度的对应关系,进而,根据该对应关系获取背景区域对应的虚化强度。It should be noted that, according to different application scenarios, different implementation methods can be used to determine the blurring intensity of the first background area according to the depth of field information of the first target image. As a possible implementation method, when the first target image The more accurate the depth of field information is, the clearer the outline of the first target object is. At this time, even if the blurring process is performed on the first background area, it is less likely to cause false blurring of the first target image. At this time, the background area corresponds to Therefore, the corresponding relationship between the calculation accuracy of the depth information of the first target image and the blurring intensity corresponding to the first background area can be established in advance, and then the blurring corresponding to the background area can be obtained according to the corresponding relationship. strength.
作为另一种可能的实现方式,第一背景图像的第一目标图像的位置越远,证明第一背景区域的第一目标图像越不相关,因而,可以根据第一背景图像中各个像素点距离第一目标图像的距离设置虚化强度,第一背景图像中像素点距离第一目标图像的距离越远,虚化强度越高。As another possible implementation manner, the farther the position of the first target image in the first background image is, the less relevant the first target image in the first background area is. Therefore, the distance between each pixel in the first background image can be determined according to the distance between the pixels in the first background image. The distance of the first target image sets the blurring intensity, and the farther the distance between the pixels in the first background image and the first target image, the higher the blurring strength.
更进一步地,在本申请的实施例中,由于景深信息计算耗时较长,因而,通过第一线程根据第一主图像和第一副图像计算目标场景中目标图像的第一景深信息,同时,通过第二线程从第一主图像中获取第一目标图像,同时,通过第三线程从第二主图像中获取第一背景图像。Furthermore, in the embodiment of the present application, since the calculation of the depth of field information takes a long time, the first thread calculates the first depth of field information of the target image in the target scene according to the first main image and the first sub-image, and simultaneously , obtaining the first target image from the first main image through the second thread, and simultaneously obtaining the first background image from the second main image through the third thread.
由此,一方面,如图4所示,在计算第一景深信息的同时,获取到第一目标图像和第一背景图像,以便于在获取第一景深信息后,可以直接根据第一景深信息、第一目标图像和第一背景图像进行相应的图像合成处理,相比先获取景深信息,再对拍摄的多帧主图像进行合成处理的处理方式,图像处理效率得到了提高,另一方面,根据标准曝光参数和过度曝光参数下拍摄的图像,获取第一目标图像和第一背景图像,对应于图像细节较为丰富的拍摄主体图像和背景图像,相比较于需要采用不同的曝光参数拍摄多帧图像进而合成的方式,本申请仅仅需要拍摄两次即可获取到整整图像均成像效果较好的图像,减轻了终端设备的处理压力,又一方面,继续参照图4,将待合成的第一目标图像和第一背景图像拆分为两个并行的线程运行,进一步缩短了景深计算的时间和第一目标图像和第一背景图像获取的时间差,提高了图像处理效率。Therefore, on the one hand, as shown in FIG. 4 , while calculating the first depth of field information, the first target image and the first background image are obtained, so that after obtaining the first depth of field information, the first depth of field information can be directly , the first target image and the first background image are subjected to corresponding image synthesis processing. Compared with the processing method of first obtaining the depth of field information, and then performing synthesis processing on the multi-frame main images captured, the image processing efficiency has been improved. On the other hand, Obtain the first target image and the first background image according to the images captured under the standard exposure parameters and the overexposure parameters, which correspond to the subject image and the background image with richer image details. Compared with the need to use different exposure parameters to shoot multiple frames In the method of further synthesizing the images, the present application only needs to shoot twice to obtain an image with a good imaging effect for the entire image, which reduces the processing pressure of the terminal device. On the other hand, continue to refer to FIG. The target image and the first background image are split into two parallel threads to run, which further shortens the time for depth calculation and the time difference between the acquisition of the first target image and the first background image, and improves the image processing efficiency.
为了更加清楚的说明本申请实施例的图像处理的效果,下面结合具体的应用场景进行举例:In order to more clearly illustrate the effect of the image processing in the embodiments of the present application, an example is given below in conjunction with specific application scenarios:
第一种场景:The first scenario:
在环境光线较差的观众席对舞台上的演员拍照时,采用现有技术中的拍摄模式拍照时获取的图像如图5所示,背景区域曝光不足从而导致背景区域不清晰,而演员所在区域过度曝光,从而导致演员所在区域也不清晰(图中以图像的灰度表示图像的清晰度,图像越清晰,对应图像区域的灰度值越低)。When taking a picture of an actor on the stage in an auditorium with poor ambient light, the image obtained by using the shooting mode in the prior art is shown in Figure 5. The background area is underexposed, resulting in an unclear background area, while the area where the actor is located is not clear. Excessive exposure, resulting in the area where the actor is not clear (the grayscale of the image in the figure represents the sharpness of the image, the clearer the image, the lower the grayscale value of the corresponding image area).
而采用本申请的图像处理方法后,根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时控制副摄像头拍摄目标场景的第一副图像,以及根据过度曝光参数控制主摄像头拍摄目标场景的第二主图像,通过第一线程根据第一主图像和第一副图像计算目标场景中演员所在区域的第一景深信息,同时,通过第二线程从第一主图像中获取演员的图像,同时,通过第三线程从第二主图像中获取背景图像,根据演员图像的第一景深信息对演员图像和第一背景图像进行合成处理后,如图6所示,无论是演员还是背景区域由于都得到了合适的曝光,从而整张图像较为清晰。After using the image processing method of the present application, the main camera is controlled to capture the first main image of the target scene according to the standard exposure parameter, the sub-camera is controlled to capture the first sub-image of the target scene, and the main camera is controlled to capture the target scene according to the overexposure parameter. The second main image is calculated by the first thread according to the first main image and the first sub-image of the first depth of field information in the area where the actor is located in the target scene, and at the same time, the image of the actor is obtained from the first main image through the second thread, At the same time, the background image is obtained from the second main image through the third thread, and the actor image and the first background image are synthesized according to the first depth of field information of the actor image, as shown in FIG. All have been properly exposed, so the whole image is clearer.
综上所述,本申请实施例的图像处理方法,根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时控制副摄像头拍摄目标场景的第一副图像,以及根据过度曝光参数控制主摄像头拍摄目标场景的第二主图像,通过第一线程根据第一主图像和第一副图像计算目标场景中目标图像的第一景深信息,同时,通过第二线程从第一主图像中获取第一目标图像,同时,通过第三线程从第二主图像中获取第一背景图像,进而,根据目标图像的第一景深信息对第一目标图像和第一背景图像进行合成处理。由此,不但可以保证整整图像的成像效果,尤其是当环境亮度和拍摄主体的亮度差异较大时整张图像的成像效果,而且提高了图像处理效率。To sum up, the image processing method of the embodiment of the present application controls the main camera to capture the first main image of the target scene according to the standard exposure parameters, controls the sub-camera to capture the first sub-image of the target scene at the same time, and controls the main camera to capture the first sub-image of the target scene according to the overexposure parameter. The camera shoots the second main image of the target scene, calculates the first depth of field information of the target image in the target scene according to the first main image and the first sub-image through the first thread, and simultaneously obtains the first depth information from the first main image through the second thread. At the same time, a first background image is obtained from the second main image through a third thread, and further, the first target image and the first background image are synthesized according to the first depth information of the target image. In this way, not only the imaging effect of the entire image can be guaranteed, especially when the difference between the brightness of the environment and the brightness of the shooting subject is large, but also the image processing efficiency is improved.
基于以上实施例的描述,当环境亮度和拍摄主体的亮度差异不大时,基于统一的曝光参数拍摄图像可能对整张图像的显示效果影响不大,该曝光参数既可以保证拍摄主体的清晰成像,也可以保证背景区域的清晰成像,以达到优化拍摄的图像的成像效果。Based on the descriptions of the above embodiments, when the difference between the brightness of the environment and the brightness of the subject is not large, shooting an image based on a unified exposure parameter may have little effect on the display effect of the entire image, and the exposure parameter can ensure a clear image of the subject. , it can also ensure clear imaging of the background area, so as to optimize the imaging effect of the captured image.
具体而言,在本申请的另一个实施例中,如图7所示,上述步骤101还可包括:Specifically, in another embodiment of the present application, as shown in FIG. 7 , the
步骤201,检测拍摄环境的第一亮度和目标图像的第二亮度。Step 201: Detect the first brightness of the shooting environment and the second brightness of the target image.
步骤202,若检测获知第二亮度与第一亮度的差值小于预设阈值,则根据差值确定曝光参数。
具体地,若检测获知第二亮度与第一亮度的差值小于预设阈值,则根据差值确定曝光参数,该曝光参数既适合于背景区域的清晰成像,也适合于拍摄主体的清晰成像。Specifically, if it is detected that the difference between the second brightness and the first brightness is less than a preset threshold, an exposure parameter is determined according to the difference, and the exposure parameter is suitable for both clear imaging of the background area and clear imaging of the subject.
作为一种可能的实现方式,可以预先根据大量实验数据建立第二亮度与第一亮度的差值与曝光参数的对应关系,进而在获取当前第二亮度与第一亮度的差值后,查询该对应关系,获取与当前拍摄的目标场景对应的曝光参数。As a possible implementation, a correspondence relationship between the difference between the second brightness and the first brightness and the exposure parameter can be established in advance according to a large amount of experimental data, and then after obtaining the current difference between the second brightness and the first brightness, query the The corresponding relationship is obtained, and exposure parameters corresponding to the target scene currently shot are obtained.
步骤203,在曝光参数环境下控制主摄像头对目标场景拍摄多组主图像,同时控制副摄像头对目标场景拍摄多组副图像。
具体而言,为了提高成像效果,在曝光参数环境下控制主摄像头对目标场景拍摄多组主图像,同时控制副摄像头对目标场景拍摄多组副图像。Specifically, in order to improve the imaging effect, the main camera is controlled to shoot multiple sets of main images of the target scene under the environment of exposure parameters, and the sub-camera is controlled to shoot multiple sets of secondary images of the target scene at the same time.
步骤204,从多组主图像中获取参考主图像,并从多组副图像中获取与参考主图像同组拍摄的参考副图像。Step 204: Acquire a reference main image from a plurality of groups of main images, and acquire a reference sub-image captured in the same group as the reference main image from the plurality of groups of sub-images.
可以理解,在本申请的实施例中,由于主摄像头和副摄像头同时拍摄多组主图像和多组副图像,因此,在同一时间点拍摄的属于同组的主图像和副图像的图像信息较为接近,且根据源主图像和副图像进行景深信息的计算,可以保证获取的景深信息较为准确。It can be understood that in the embodiments of the present application, since the main camera and the sub-camera simultaneously capture multiple groups of main images and multiple groups of sub-images, the image information of the main images and sub-images belonging to the same group captured at the same time point is relatively high. close, and the depth of field information is calculated according to the source main image and the sub-image, which can ensure that the acquired depth of field information is relatively accurate.
具体而言,从多组主图像中选择参考主图像,并从多组副图像中选择与参考主图像同组拍摄的参考副图像,需要强调的是,在实际拍摄过程中,主图像和副图像按照同样的频率拍摄多组图像,其中,在同一时刻拍摄的主图像和副图像属于同组图像,比如,按照时间先后顺序,主摄像头拍摄的多组主图像包括主图像11、主图像12…,副摄像头拍摄的多组主图像包括副图像21、副图像22…,则主图像11和副图像21为同组图像,主图像12和副图像22为同组图像…为了进一步提高景深信息获取的效率和准确度,还可以从多组主图像中选择清晰度较高的参考主图像等,当然,当获取的图像组中的图像帧数较多时,为了提高选择效率,还可以根据图像清晰度等初步选择几帧主图像和对应的几帧副图像,从清晰度较高的几帧主图像和对应的几帧副图像中选择参考主图像和对应的参考副图像。Specifically, a reference main image is selected from multiple sets of main images, and a reference sub-image captured in the same group as the reference main image is selected from multiple sets of sub-images. It should be emphasized that in the actual shooting process, the main image and the sub-image are The images are captured in multiple groups of images at the same frequency, wherein the main image and the sub-image captured at the same time belong to the same group of images. For example, in chronological order, the main images captured by the main camera include the main Image 12..., the multiple sets of main images captured by the sub-camera include sub-image 21, sub-image 22..., then the main image 11 and the sub-image 21 are the same group of images, and the main image 12 and the sub-image 22 are the same group of images... In order to To further improve the efficiency and accuracy of depth information acquisition, it is also possible to select reference main images with higher definition from multiple groups of main images. Of course, when the number of image frames in the acquired image group is large, in order to improve the selection efficiency, It is also possible to preliminarily select several frames of main images and corresponding several frames of sub-images according to the image definition, and select a reference main image and corresponding several frames of sub-images from the several frames of main images and corresponding several frames of sub-images with higher definition.
步骤205,通过第一线程对多组主图像进行合成降噪生成目标主图像,并从目标主图像中获取第二目标图像,同时,通过第二线程根据参考主图像和参考副图像计算目标场景中目标图像的第二景深信息,同时,通过第三线程从参考主图像中获取第二背景图像。
步骤206,根据目标图像的第二景深信息对第二背景图像和第二目标图像进行合成处理。Step 206: Perform synthesis processing on the second background image and the second target image according to the second depth-of-field information of the target image.
具体地,如图8所示,在本申请的一个实施例中,通过第一线程对多组主图像进行合成降噪生成目标主图像,并从目标主图像中获取第二目标图像,同时,通过第二线程根据参考主图像和参考副图像计算目标场景中目标图像的第二景深信息(参考主图像和参考副图像为主摄像头和副摄像头拍摄的第二帧图像),同时,通过第三线程从参考主图像中获取第二背景图像,进而,根据目标图像的第二景深信息对第二背景图像和第二目标图像进行合成处理,由此,不但提高了图像处理效率,且根据合成降噪后的目标主图像中获取第二目标图像,进一步提高了图像的清晰度。Specifically, as shown in FIG. 8 , in an embodiment of the present application, a target main image is generated by performing synthetic noise reduction on multiple groups of main images through the first thread, and a second target image is obtained from the target main image, and at the same time, The second depth information of the target image in the target scene is calculated according to the reference main image and the reference sub-image by the second thread (the reference main image and the reference sub-image are the second frame images captured by the main camera and the sub-camera), and at the same time, the third The thread obtains the second background image from the reference main image, and then performs synthesis processing on the second background image and the second target image according to the second depth-of-field information of the target image, thereby not only improving the image processing efficiency, but also reducing according to the synthesis. The second target image is obtained from the denoised target main image, which further improves the clarity of the image.
其中,为了便于清楚理解多帧合成降噪过程,下面以光线条件较差的场景中对主图像的多帧合成降噪进行说明。Among them, in order to facilitate a clear understanding of the multi-frame composite noise reduction process, the following describes the multi-frame composite noise reduction of the main image in a scene with poor lighting conditions.
当环境光线不足时,终端设备等成像设备一般采用自动提高感光度的方式拍摄。但这种提高感光度的方式,导致了图像中噪声较多。多帧合成降噪就是为了减少图像中的噪声点,改善高感光情况下所拍摄的图像画质。其原理在于,噪点是无序排列的这一先验知识,具体来说,连拍多组拍摄图像后,同一个位置出现的噪点可能是红噪点,也可能是绿噪点、白噪点,甚至是没有噪点,这样就有了比对筛选的条件,可以依据多组拍摄图像中对应同一位置的各像素点的取值(该像素点的取值包括像素所包含的像素的多少,包含的像素越多,像素点的取值越高,对应的图像也就越清晰),将属于噪声的像素点(即噪点)筛选出来。When the ambient light is insufficient, imaging devices such as terminal equipment generally use the method of automatically increasing the sensitivity to shoot. But this way of increasing the sensitivity results in more noise in the image. Multi-frame composite noise reduction is to reduce the noise points in the image and improve the quality of the image captured under high light sensitivity. The principle lies in the prior knowledge of the disordered arrangement of noise points. Specifically, after shooting multiple sets of images in a row, the noise points appearing in the same position may be red noise points, green noise points, white noise points, or even There is no noise, so there is a condition for comparison and screening, which can be based on the value of each pixel corresponding to the same position in the multiple sets of captured images (the value of the pixel includes the number of pixels contained in the pixel, and the more pixels are contained. The higher the value of the pixel points, the clearer the corresponding image), and the pixels that belong to the noise (ie, the noise points) are screened out.
更进一步地,在筛选出噪点之后,还可以根据进一步法的算法对噪点进行猜色和像素替换处理,达到去除噪点的效果。经过这样的过程,就能够达到画质损失度极低的降噪效果了。Furthermore, after filtering out the noise, color guessing and pixel replacement processing can also be performed on the noise according to the algorithm of the further method, so as to achieve the effect of removing the noise. After this process, a noise reduction effect with extremely low image quality loss can be achieved.
例如,作为一种比较简便的多帧合成降噪方法,可以在获取多组拍摄图像之后,读取多组拍摄图像中对应同一位置的各像素点的取值,通过对这些像素点计算加权平均值,生成合成图像中该位置的像素点的取值。通过这种方式,可以得到清晰的图像。For example, as a relatively simple multi-frame synthesis noise reduction method, after acquiring multiple sets of photographed images, the value of each pixel corresponding to the same position in the multiple sets of photographed images can be read, and the weighted average of these pixels can be calculated. value to generate the value of the pixel at this position in the composite image. In this way, clear images can be obtained.
当然,在本实施例中,为了进一步提高图像处理效果,还可根据目标图像的第二景深信息对第二背景图像进行虚化处理,其虚化处理方式与上述实施例描述的对第一背景图像进行虚化处理的方式类似,在此不再赘述。Of course, in this embodiment, in order to further improve the image processing effect, the second background image can also be blurred according to the second depth of field information of the target image. The image blurring is performed in a similar manner, which is not repeated here.
综上所述,本申请实施例的图像处理方法,在环境亮度和拍摄主体的差异不大时,基于统一的曝光参数进行拍摄,不但减轻了终端设备的处理压力,而且保证了图像的成像效果。To sum up, the image processing method of the embodiment of the present application, when the difference between the ambient brightness and the shooting subject is not large, shooting based on unified exposure parameters, not only reduces the processing pressure of the terminal device, but also ensures the imaging effect of the image .
为了实现上述实施例,本申请还提出了一种图像处理装置,图9是根据本申请一个实施例的图像处理装置的结构示意图,如图9所示,该图像处理装置包括:拍摄模块100、获取模块200和处理模块300。In order to realize the above-mentioned embodiments, the present application also proposes an image processing apparatus. FIG. 9 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application. As shown in FIG. 9 , the image processing apparatus includes: a photographing
其中,拍摄模块100,用于根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时根据标准曝光参数控制副摄像头拍摄目标场景的第一副图像。The
拍摄模块100还用于根据过度曝光参数控制主摄像头拍摄目标场景的第二主图像。The
获取模块200,用于通过第一线程根据第一主图像和第一副图像计算目标场景中目标图像的第一景深信息,同时,通过第二线程从第一主图像中获取第一目标图像,同时,通过第三线程从第二主图像中获取第一背景图像。The obtaining
处理模块300,用于根据目标图像的第一景深信息对第一目标图像和第一背景图像进行合成处理,获取目标场景图像。The
在本申请的一个实施例中,如图10所示,该装置还包括检测模块400和确定模块500,其中,In an embodiment of the present application, as shown in FIG. 10 , the apparatus further includes a
检测模块400,用于检测目标场景中拍摄主体所在环境的第一亮度和所拍摄主体的第二亮度。The
确定模块500,用于确定第二亮度与第一亮度的差值大于等于预设阈值。The
进一步地,在本申请的一个实施例中,如图11所示,拍摄模块100包括虚化单元110。Further, in an embodiment of the present application, as shown in FIG. 11 , the photographing
虚化单元110,用于根据目标图像的第一景深信息对第一背景图像进行虚化处理,获取背景虚化后的所述目标场景图像。The
需要说明的是,前述对方法实施例的描述,也适用于本申请实施例的装置,其实现原理类似,在此不再赘述。It should be noted that the foregoing descriptions of the method embodiments are also applicable to the apparatuses of the embodiments of the present application, and the implementation principles thereof are similar, which will not be repeated here.
上述图像处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将图像装置按照需要划分为不同的模块,以完成上述图像装置的全部或部分功能。The division of each module in the above image processing apparatus is only for illustration. In other embodiments, the image apparatus may be divided into different modules as required to complete all or part of the functions of the above image apparatus.
综上所述,本申请实施例的图像处理装置,根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时根据标准曝光参数控制副摄像头拍摄目标场景的第一副图像,以及根据过度曝光参数控制主摄像头拍摄目标场景的第二主图像,通过第一线程根据第一主图像和第一副图像计算目标场景中目标图像的第一景深信息,同时,通过第二线程从第一主图像中获取第一目标图像,同时,通过第三线程从第二主图像中获取第一背景图像,进而,根据目标图像的第一景深信息对第一目标图像和第一背景图像进行合成处理。由此,不但可以保证整整图像的成像效果,尤其是当环境亮度和拍摄主体的亮度差异较大时整张图像的成像效果,而且提高了图像处理效率。To sum up, the image processing apparatus of the embodiment of the present application controls the main camera to shoot the first main image of the target scene according to the standard exposure parameters, and simultaneously controls the sub-camera to shoot the first sub-image of the target scene according to the standard exposure parameters, and controls the first sub-image of the target scene according to the standard exposure parameters. The exposure parameter controls the main camera to shoot the second main image of the target scene, and calculates the first depth of field information of the target image in the target scene through the first thread according to the first main image and the first sub-image. The first target image is obtained from the image, and at the same time, the first background image is obtained from the second main image through the third thread, and further, the first target image and the first background image are synthesized according to the first depth information of the target image. In this way, not only the imaging effect of the entire image can be guaranteed, especially when the difference between the brightness of the environment and the brightness of the shooting subject is large, but also the image processing efficiency is improved.
为了实现上述实施例,本申请还提出了一种计算机设备,其中,计算机设备为包括包含存储计算机程序的存储器及运行计算机程序的处理器的任意设备,比如,可以为智能手机、个人电脑等,上述计算机设备中还包括图像处理电路,图像处理电路可以利用硬件和/或软件组件实现,可包括定义ISP(Image Signal Processing,图像信号处理)管线的各种处理单元。图12为一个实施例中图像处理电路的示意图。如图12所示,为便于说明,仅示出与本申请实施例相关的图像处理技术的各个方面。In order to realize the above-mentioned embodiments, the present application also proposes a computer device, wherein the computer device is any device including a memory for storing a computer program and a processor for running the computer program, for example, a smart phone, a personal computer, etc., The above computer equipment further includes an image processing circuit, which may be implemented by hardware and/or software components, and may include various processing units that define an ISP (Image Signal Processing, image signal processing) pipeline. FIG. 12 is a schematic diagram of an image processing circuit in one embodiment. As shown in FIG. 12 , for the convenience of description, only various aspects of the image processing technology related to the embodiments of the present application are shown.
如图12所示,图像处理电路包括ISP处理器1040和控制逻辑器1050。成像设备1010捕捉的图像数据首先由ISP处理器1040处理,ISP处理器1040对图像数据进行分析以捕捉可用于确定和/或成像设备1010的一个或多个控制参数的图像统计信息。成像设备1010(照相机)可包括具有一个或多个透镜1012和图像传感器1014的摄像头,其中,为了实施本申请的背景虚化处理方法,成像设备1010包含两组摄像头,其中,继续参照图12,成像设备1010可基于主摄像头和副摄像头同时拍摄场景图像。图像传感器1014可包括色彩滤镜阵列(如Bayer滤镜),图像传感器1014可获取用图像传感器1014的每个成像像素捕捉的光强度和波长信息,并提供可由ISP处理器1040处理的一组原始图像数据,其中,ISP处理器1040可基于传感器1020提供的主摄像头中的图像传感器1014获取的原始图像数据和副摄像头中的图像传感器1014获取的原始图像数据计算景深信息等。传感器1020可基于传感器1020接口类型把原始图像数据提供给ISP处理器1040。传感器1020接口可以利用SMIA(StandardMobile Imaging Architecture,标准移动成像架构)接口、其它串行或并行照相机接口或上述接口的组合。As shown in FIG. 12 , the image processing circuit includes an
ISP处理器1040按多种格式逐个像素地处理原始图像数据。例如,每个图像像素可具有8、10、12或14比特的位深度,ISP处理器1040可对原始图像数据进行一个或多个图像处理操作、收集关于图像数据的统计信息。其中,图像处理操作可按相同或不同的位深度精度进行。The
ISP处理器1040还可从图像存储器1030接收像素数据。例如,从传感器1020接口将原始像素数据发送给图像存储器1030,图像存储器1030中的原始像素数据再提供给ISP处理器1040以供处理。图像存储器1030可为存储器装置的一部分、存储设备、或电子设备内的独立的专用存储器,并可包括DMA(Direct Memory Access,直接直接存储器存取)特征。
当接收到来自传感器1020接口或来自图像存储器1030的原始图像数据时,ISP处理器1040可进行一个或多个图像处理操作,如时域滤波。处理后的图像数据可发送给图像存储器1030,以便在被显示之前进行另外的处理。ISP处理器1040从图像存储器1030接收处理数据,并对所述处理数据进行原始域中以及RGB和YCbCr颜色空间中的图像数据处理。处理后的图像数据可输出给显示器1070,以供用户观看和/或由图形引擎或GPU(GraphicsProcessing Unit,图形处理器)进一步处理。此外,ISP处理器1040的输出还可发送给图像存储器1030,且显示器1070可从图像存储器1030读取图像数据。在一个实施例中,图像存储器1030可被配置为实现一个或多个帧缓冲器。此外,ISP处理器1040的输出可发送给编码器/解码器1060,以便编码/解码图像数据。编码的图像数据可被保存,并在显示于显示器1070设备上之前解压缩。编码器/解码器1060可由CPU或GPU或协处理器实现。When receiving raw image data from the
ISP处理器1040确定的统计数据可发送给控制逻辑器1050单元。例如,统计数据可包括自动曝光、自动白平衡、自动聚焦、闪烁检测、黑电平补偿、透镜1012阴影校正等图像传感器1014统计信息。控制逻辑器1050可包括执行一个或多个例程(如固件)的处理器和/或微控制器,一个或多个例程可根据接收的统计数据,确定成像设备1010的控制参数以及的控制参数。例如,控制参数可包括传感器1020控制参数(例如增益、曝光控制的积分时间)、照相机闪光控制参数、透镜1012控制参数(例如聚焦或变焦用焦距)、或这些参数的组合。ISP控制参数可包括用于自动白平衡和颜色调整(例如,在RGB处理期间)的增益水平和色彩校正矩阵,以及透镜1012阴影校正参数。Statistics determined by the
以下为运用图12中图像处理技术实现图像处理方法的步骤:The following are the steps of implementing the image processing method using the image processing technology in Figure 12:
根据标准曝光参数控制主摄像头拍摄目标场景的第一主图像,同时控制副摄像头拍摄所述目标场景的第一副图像,以及根据过度曝光参数控制主摄像头拍摄所述目标场景的第二主图像;Controlling the main camera to capture the first main image of the target scene according to the standard exposure parameter, simultaneously controlling the sub-camera to capture the first sub-image of the target scene, and controlling the main camera to capture the second main image of the target scene according to the overexposure parameter;
通过第一线程根据所述第一主图像和所述第一副图像计算所述目标场景中目标图像的第一景深信息,同时,通过第二线程从所述第一主图像中获取第一目标图像,同时,通过第三线程从所述第二主图像中获取第一背景图像;The first depth information of the target image in the target scene is calculated by the first thread according to the first main image and the first sub image, and at the same time, the first target is obtained from the first main image by the second thread image, and at the same time, obtain the first background image from the second main image through the third thread;
根据所述目标图像的第一景深信息对所述第一目标图像和所述第一背景图像进行合成处理。The first target image and the first background image are synthesized according to the first depth information of the target image.
为了实现上述实施例,本申请还提出一种非临时性计算机可读存储介质,当所述存储介质中的指令由处理器被执行时,使得能够执行如上述实施例图像处理方法。In order to implement the above-mentioned embodiments, the present application further proposes a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor, the image processing methods of the above-mentioned embodiments can be executed.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。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 application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, without conflicting each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。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. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless expressly and specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description 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 custom logical functions or steps of the process , and the scope of the preferred embodiments of the present application 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 application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in flowcharts or otherwise described herein, for example, may be considered an ordered listing of executable instructions for implementing the logical functions, may be embodied in any computer-readable medium, For use with, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions from an instruction execution system, apparatus, or apparatus) or equipment. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or apparatus. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wiring (electronic devices), portable computer disk cartridges (magnetic devices), random access memory (RAM), Read Only Memory (ROM), Erasable Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, followed by editing, interpretation, or other suitable medium as necessary process to obtain the program electronically and then store it in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of this application 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 of the following techniques known in the art, or a combination thereof: discrete with logic gates for implementing logic functions on data signals 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.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically alone, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。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 application have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limitations to the present application. Embodiments are subject to variations, modifications, substitutions and variations.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711277634.1A CN108156369B (en) | 2017-12-06 | 2017-12-06 | Image processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711277634.1A CN108156369B (en) | 2017-12-06 | 2017-12-06 | Image processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108156369A CN108156369A (en) | 2018-06-12 |
CN108156369B true CN108156369B (en) | 2020-03-13 |
Family
ID=62466064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711277634.1A Active CN108156369B (en) | 2017-12-06 | 2017-12-06 | Image processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108156369B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881730A (en) * | 2018-08-06 | 2018-11-23 | 成都西纬科技有限公司 | Image interfusion method, device, electronic equipment and computer readable storage medium |
CN116308992A (en) * | 2018-10-31 | 2023-06-23 | Oppo广东移动通信有限公司 | Image processing method and device, electronic equipment and computer readable storage medium |
CN109803087B (en) * | 2018-12-17 | 2021-03-16 | 维沃移动通信有限公司 | Image generation method and terminal equipment |
CN109862269B (en) | 2019-02-18 | 2020-07-31 | Oppo广东移动通信有限公司 | Image acquisition method and device, electronic equipment and computer readable storage medium |
CN110191291B (en) * | 2019-06-13 | 2021-06-25 | Oppo广东移动通信有限公司 | Image processing method and device based on multi-frame images |
CN112606402A (en) * | 2020-11-03 | 2021-04-06 | 泰州芯源半导体科技有限公司 | Product manufacturing platform applying multi-parameter analysis |
CN114520880B (en) * | 2020-11-18 | 2023-04-18 | 华为技术有限公司 | Exposure parameter adjusting method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610421A (en) * | 2008-06-17 | 2009-12-23 | 深圳华为通信技术有限公司 | Video communication method, Apparatus and system |
CN106993112A (en) * | 2017-03-09 | 2017-07-28 | 广东欧珀移动通信有限公司 | Background virtualization method and device based on depth of field and electronic device |
JP2017143354A (en) * | 2016-02-08 | 2017-08-17 | キヤノン株式会社 | Image processing apparatus and image processing method |
CN107169939A (en) * | 2017-05-31 | 2017-09-15 | 广东欧珀移动通信有限公司 | Image processing method and related product |
CN107241559A (en) * | 2017-06-16 | 2017-10-10 | 广东欧珀移动通信有限公司 | Portrait photographic method, device and picture pick-up device |
-
2017
- 2017-12-06 CN CN201711277634.1A patent/CN108156369B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610421A (en) * | 2008-06-17 | 2009-12-23 | 深圳华为通信技术有限公司 | Video communication method, Apparatus and system |
JP2017143354A (en) * | 2016-02-08 | 2017-08-17 | キヤノン株式会社 | Image processing apparatus and image processing method |
CN106993112A (en) * | 2017-03-09 | 2017-07-28 | 广东欧珀移动通信有限公司 | Background virtualization method and device based on depth of field and electronic device |
CN107169939A (en) * | 2017-05-31 | 2017-09-15 | 广东欧珀移动通信有限公司 | Image processing method and related product |
CN107241559A (en) * | 2017-06-16 | 2017-10-10 | 广东欧珀移动通信有限公司 | Portrait photographic method, device and picture pick-up device |
Also Published As
Publication number | Publication date |
---|---|
CN108156369A (en) | 2018-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108055452B (en) | Image processing method, device and equipment | |
CN107948519B (en) | Image processing method, device and equipment | |
KR102293443B1 (en) | Image processing method and mobile terminal using dual camera | |
CN108111749B (en) | Image processing method and device | |
CN108024054B (en) | Image processing method, device, equipment and storage medium | |
CN108156369B (en) | Image processing method and device | |
JP7145208B2 (en) | Method and Apparatus and Storage Medium for Dual Camera Based Imaging | |
CN108712608B (en) | Terminal equipment shooting method and device | |
WO2020034737A1 (en) | Imaging control method, apparatus, electronic device, and computer-readable storage medium | |
CN108154514B (en) | Image processing method, device and equipment | |
CN107846556B (en) | Imaging method, imaging device, mobile terminal and storage medium | |
JP2020533697A (en) | Methods and equipment for image processing | |
CN108024057B (en) | Background blurring processing method, device and equipment | |
CN109040607B (en) | Imaging control method, imaging control device, electronic device and computer-readable storage medium | |
CN107872631B (en) | Image shooting method and device based on double cameras and mobile terminal | |
CN108053438B (en) | Depth of field acquisition method, device and equipment | |
CN110717871A (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN113298735A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN109005363B (en) | Imaging control method, device, electronic device, and storage medium | |
CN108052883B (en) | User photographing method, device and device | |
CN107194901A (en) | Image processing method, device, computer device, and computer-readable storage medium | |
CN107682611B (en) | Focusing method and device, computer readable storage medium and electronic equipment |
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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |