CN110198418B - Image processing method, device, storage medium and electronic device - Google Patents

Image processing method, device, storage medium and electronic device Download PDF

Info

Publication number
CN110198418B
CN110198418B CN201910579940.3A CN201910579940A CN110198418B CN 110198418 B CN110198418 B CN 110198418B CN 201910579940 A CN201910579940 A CN 201910579940A CN 110198418 B CN110198418 B CN 110198418B
Authority
CN
China
Prior art keywords
image
camera module
raw
raw image
target camera
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.)
Expired - Fee Related
Application number
CN201910579940.3A
Other languages
Chinese (zh)
Other versions
CN110198418A (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 CN201910579940.3A priority Critical patent/CN110198418B/en
Publication of CN110198418A publication Critical patent/CN110198418A/en
Application granted granted Critical
Publication of CN110198418B publication Critical patent/CN110198418B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses image processing method is applied to electronic equipment, the electronic equipment comprises a first camera module and a second camera module, wherein the second camera module is a long-focus camera module, and the method comprises the following steps: determining a first target camera module and a second target camera module from the first camera module and the second camera module; acquiring a first RAW image through the first target camera module, and acquiring a second RAW image and a third RAW image through the second target camera module, wherein the exposure levels of the first RAW image, the second RAW image and the third RAW image are sequentially reduced; taking the second RAW image as a reference image, and performing synthesis processing on the first RAW image, the second RAW image and the third RAW image to obtain a RAW synthesis image with a high dynamic range; the RAW composite image is used to perform image preview, photographing or recording operation. The image processed by the image processing method provided by the application can be suitable for previewing, photographing and recording.

Description

图像处理方法、装置、存储介质及电子设备Image processing method, device, storage medium and electronic device

技术领域technical field

本申请属于图像技术领域,尤其涉及一种图像处理方法、装置、存储介质及电子设备。The present application belongs to the field of image technology, and in particular, relates to an image processing method, device, storage medium and electronic device.

背景技术Background technique

相比于普通的图像,高动态范围图像(High-Dynamic Range,简称HDR)可以提供更多的动态范围和图像细节。电子设备可以在同一场景下拍摄具有不同曝光程度的多帧图像,将过曝光图像的暗部细节、正常曝光图像的中间细节和欠曝光图像的亮部细节合成得到HDR图像。然而,相关的HDR技术处理得到的图像难以同时适用于预览、拍照和录像。Compared with ordinary images, High-Dynamic Range (HDR) images can provide more dynamic range and image details. The electronic device can shoot multiple frames of images with different exposure degrees in the same scene, and synthesize the dark part details of the overexposed image, the intermediate details of the normally exposed image, and the bright part details of the underexposed image to obtain an HDR image. However, the images processed by the related HDR technology are difficult to be used for preview, photography and video recording at the same time.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种图像处理方法、装置、存储介质及电子设备,其处理得到的图像能够适用于预览、拍照和录像。Embodiments of the present application provide an image processing method, device, storage medium, and electronic device, and the image obtained by the processing can be suitable for previewing, photographing, and video recording.

本申请实施例提供一种图像处理方法,应用于电子设备,所述电子设备包括第一摄像模组和第二摄像模组,其中所述第二摄像模组为长焦摄像模组,所述方法包括:An embodiment of the present application provides an image processing method, which is applied to an electronic device, where the electronic device includes a first camera module and a second camera module, wherein the second camera module is a telephoto camera module, and the Methods include:

从所述第一摄像模组和所述第二摄像模组中确定第一目标摄像模组和第二目标摄像模组;Determine a first target camera module and a second target camera module from the first camera module and the second camera module;

通过所述第一目标摄像模组获取第一RAW图像,并通过所述第二目标摄像模组获取第二RAW图像和第三RAW图像,其中,所述第一RAW图像、第二RAW图像和第三RAW图像的曝光度依次降低;A first RAW image is acquired through the first target camera module, and a second RAW image and a third RAW image are acquired through the second target camera module, wherein the first RAW image, the second RAW image and the The exposure of the third RAW image decreases sequentially;

以所述第二RAW图像为基准图像,对第一RAW图像、第二RAW图像以及第三RAW图像进行合成处理,得到具有高动态范围的RAW合成图像;Taking the second RAW image as a reference image, performing synthesis processing on the first RAW image, the second RAW image and the third RAW image to obtain a RAW composite image with a high dynamic range;

利用所述RAW合成图像,进行图像的预览或拍照或录像操作。Using the RAW composite image, image preview or photographing or video recording operations are performed.

本申请实施例提供一种图像处理装置,应用于电子设备,所述电子设备包括第一摄像模组和第二摄像模组,其中所述第二摄像模组为长焦摄像模组,所述装置包括:An embodiment of the present application provides an image processing apparatus, which is applied to an electronic device, where the electronic device includes a first camera module and a second camera module, wherein the second camera module is a telephoto camera module, and the The device includes:

确定模块,用于从所述第一摄像模组和所述第二摄像模组中确定第一目标摄像模组和第二目标摄像模组;a determining module, for determining a first target camera module and a second target camera module from the first camera module and the second camera module;

获取模块,用于通过所述第一目标摄像模组获取第一RAW图像,并通过所述第二目标摄像模组获取第二RAW图像和第三RAW图像,其中,所述第一RAW图像、第二RAW图像和第三RAW图像的曝光度依次降低;An acquisition module, configured to acquire a first RAW image through the first target camera module, and acquire a second RAW image and a third RAW image through the second target camera module, wherein the first RAW image, The exposures of the second RAW image and the third RAW image are sequentially decreased;

合成模块,用于以所述第二RAW图像为基准图像,对第一RAW图像、第二RAW图像以及第三RAW图像进行合成处理,得到具有高动态范围的RAW合成图像;a synthesis module, configured to use the second RAW image as a reference image to perform synthesis processing on the first RAW image, the second RAW image and the third RAW image to obtain a RAW synthesized image with a high dynamic range;

处理模块,用于利用所述RAW合成图像,进行图像的预览或拍照或录像操作。The processing module is used for synthesizing the image by using the RAW, and performing image preview or photographing or video recording operations.

本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行本申请实施例提供的图像处理方法。The embodiments of the present application provide a storage medium on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the image processing method provided by the embodiments of the present application.

本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本申请实施例提供的图像处理方法。Embodiments of the present application further provide an electronic device, including a memory and a processor, where the processor is configured to execute the image processing method provided by the embodiments of the present application by invoking a computer program stored in the memory.

本实施例中,由于第一RAW图像、第二RAW图像以及第三RAW图像均是完整曝光的RAW图像,因此用该第一RAW图像、第二RAW图像以及第三RAW图像去做高动态范围合成处理后得到的图像其分辨率就不会有损失,其信噪比也较高,即本实施例中得到的具有高动态范围的RAW合成图像具有分辨率高和信噪比高的优点。这种分辨率高、信噪比高的具有高动态范围的RAW合成图像可以直接用于图像预览、拍照和录像。In this embodiment, since the first RAW image, the second RAW image and the third RAW image are all fully exposed RAW images, the first RAW image, the second RAW image and the third RAW image are used to perform high dynamic range The image obtained after the synthesis processing will not lose its resolution, and its signal-to-noise ratio is also high, that is, the RAW composite image with high dynamic range obtained in this embodiment has the advantages of high resolution and high signal-to-noise ratio. This high-resolution, high signal-to-noise ratio RAW composite image with high dynamic range can be directly used for image preview, photography and video recording.

附图说明Description of drawings

下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其有益效果显而易见。The technical solutions of the present application and the beneficial effects thereof will be apparent through the detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings.

图1是本申请实施例提供的图像处理方法的流程示意图。FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present application.

图2是本申请实施例提供的图像处理方法的第一种合成示意图。FIG. 2 is a first synthesis schematic diagram of the image processing method provided by the embodiment of the present application.

图3是本申请实施例提供的图像处理方法的另一流程示意图。FIG. 3 is another schematic flowchart of an image processing method provided by an embodiment of the present application.

图4是本申请实施例提供的图像处理方法的第二种合成示意图。FIG. 4 is a second synthesis schematic diagram of the image processing method provided by the embodiment of the present application.

图5为将第一摄像模组确定为第一目标摄像模组,并将第二摄像模组(即长焦摄像模组)确定为第二目标摄像模组时的图像合成示意图。5 is a schematic diagram of image synthesis when the first camera module is determined as the first target camera module, and the second camera module (ie, the telephoto camera module) is determined as the second target camera module.

图6为将第二摄像模组(即长焦摄像模组)确定为第一目标摄像模组,并将第一摄像模组确定为第二目标摄像模组时的图像合成示意图。6 is a schematic diagram of image synthesis when the second camera module (ie the telephoto camera module) is determined as the first target camera module, and the first camera module is determined as the second target camera module.

图7至图11是本申请实施例提供的图像处理方法的场景示意图。7 to 11 are schematic diagrams of scenarios of an image processing method provided by an embodiment of the present application.

图12是本申请实施例提供的图像处理装置的结构示意图。FIG. 12 is a schematic structural diagram of an image processing apparatus provided by an embodiment of the present application.

图13是本申请实施例提供的电子设备的结构示意图。FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

图14是本申请实施例提供的图像处理电路的结构示意图。FIG. 14 is a schematic structural diagram of an image processing circuit provided by an embodiment of the present application.

具体实施方式Detailed ways

请参照图示,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, wherein the same component symbols represent the same components, and the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application and should not be construed as limiting other specific embodiments of the present application not detailed herein.

可以理解的是,本申请实施例的执行主体可以是诸如智能手机或平板电脑等的电子设备。It can be understood that, the executive body of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.

请参阅图1,图1是本申请实施例提供的图像处理方法的流程示意图。该图像处理方法可以应用于电子设备,该电子设备可以具有第一摄像模组和第二摄像模组,其中该第二摄像模组可以为长焦摄像模组。该图像处理方法的流程可以包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present application. The image processing method can be applied to an electronic device, and the electronic device can have a first camera module and a second camera module, wherein the second camera module can be a telephoto camera module. The flow of the image processing method may include:

101、从第一摄像模组和第二摄像模组中确定第一目标摄像模组和第二目标摄像模组。101. Determine a first target camera module and a second target camera module from the first camera module and the second camera module.

102、通过第一目标摄像模组获取第一RAW图像,并通过第二目标摄像模组获取第二RAW图像和第三RAW图像,其中,该第一RAW图像、第二RAW图像和第三RAW图像的曝光度依次降低。102. Obtain a first RAW image through a first target camera module, and obtain a second RAW image and a third RAW image through a second target camera module, wherein the first RAW image, the second RAW image and the third RAW image The exposure of the image decreases sequentially.

相比于普通的图像,高动态范围图像(High-Dynamic Range,简称HDR)可以提供更多的动态范围和图像细节。电子设备可以在同一场景下拍摄具有不同曝光程度的多帧图像,将过曝光图像的暗部细节、正常曝光图像的中间细节和欠曝光图像的亮部细节合成得到HDR图像。然而,相关的HDR技术处理得到的图像难以同时适用于预览、拍照和录像。Compared with ordinary images, High-Dynamic Range (HDR) images can provide more dynamic range and image details. The electronic device can shoot multiple frames of images with different exposure degrees in the same scene, and synthesize the dark part details of the overexposed image, the intermediate details of the normally exposed image, and the bright part details of the underexposed image to obtain an HDR image. However, the images processed by the related HDR technology are difficult to be used for preview, photography and video recording at the same time.

比如,利用zzHDR技术进行图像处理时,因为zzHDR技术是在同一帧图像中既有进行长曝光的像素又有进行短曝光的像素,长、短曝光像素合并生成高动态范围图像时,会降低至少一半的分辨率。因此利用zzHDR技术得到的高动态范围图像无法用于拍照或者录像,否则用户会明显看出分辨率降低的图像显示效果。即,zzHDR技术无法适用于拍照和录像的场景。相关技术中的另一些HDR技术也存在着诸如分辨率降低或者信噪比较低的问题,使得这些HDR技术处理得到的图像无法同时适用于预览、拍照和录像。For example, when using zzHDR technology for image processing, because zzHDR technology has both long-exposure pixels and short-exposure pixels in the same frame of image, when long-exposure pixels and short-exposure pixels are combined to generate a high dynamic range image, the reduction will be reduced by at least half the resolution. Therefore, the high dynamic range images obtained by using zzHDR technology cannot be used for photography or video recording, otherwise the user will obviously see the image display effect with reduced resolution. That is, zzHDR technology cannot be applied to the scene of taking pictures and videos. Other HDR technologies in the related art also have problems such as reduced resolution or low signal-to-noise ratio, so that the images processed by these HDR technologies cannot be used for previewing, photographing and video recording at the same time.

在本申请实施例的101和102的流程中,比如,电子设备可以先从两个摄像模组即第一摄像模组和第二摄像模组(长焦摄像模组)中确定出第一目标摄像模组以及第二目标摄像模组。In the processes of 101 and 102 in this embodiment of the present application, for example, the electronic device may first determine the first target from two camera modules, that is, the first camera module and the second camera module (telephoto camera module). a camera module and a second target camera module.

之后,电子设备可以通过确定出来的第一目标摄像模组获取第一RAW图像,并通过确定出来的第二目标摄像模组获取第二RAW图像和第三RAW图像。其中,该第一RAW图像、第二RAW图像和第三RAW图像的曝光度依次降低。即,第一RAW图像的曝光度可以大于第二RAW图像,第二RAW图像的曝光度可以大于第三RAW图像。After that, the electronic device can obtain the first RAW image through the determined first target camera module, and obtain the second RAW image and the third RAW image through the determined second target camera module. Wherein, the exposure of the first RAW image, the second RAW image and the third RAW image decreases sequentially. That is, the exposure of the first RAW image may be greater than that of the second RAW image, and the exposure of the second RAW image may be greater than that of the third RAW image.

需要说明的是,电子设备的摄像模组由透镜和图像传感器构成,其中透镜用于采集外部的光源信号提供给图像传感器,图像传感器感应来自于透镜的光源信号,将其转换为数字化的原始图像数据,即RAW图像数据。RAW是未经处理、也未经压缩的格式,可以将其形象地称为“数字底片”。It should be noted that the camera module of the electronic device is composed of a lens and an image sensor. The lens is used to collect external light source signals and provide them to the image sensor. The image sensor senses the light source signal from the lens and converts it into a digitized original image. data, that is, RAW image data. RAW is an unprocessed, uncompressed format that can be aptly called a "digital negative".

曝光度是指图像的曝光程度。曝光程度可以包括过曝光、正常曝光以及欠曝光。曝光度也叫曝光值,曝光值代表能够给出同样曝光的所有相机光圈快门组合。Exposure refers to the degree of exposure of an image. Exposure levels can include overexposure, normal exposure, and underexposure. Exposure, also known as exposure value, represents all camera aperture-shutter combinations that give the same exposure.

在本实施例中,第一RAW图像、第二RAW图像和第三RAW图像的曝光度依次降低可以包括如下情形:例如,第一RAW图像可以为过曝光图像、第二RAW图像可以为正常曝光图像,第三RAW图像可以为欠曝光图像。又如,第一RAW图像、第二RAW图像和第三RAW图像可以是曝光时间依次减少的图像,例如相比较而言,第一RAW图像可以为曝光时间较长的长曝光图像,第二RAW图像可以为曝光时间居于中间的中等曝光图像,第三RAW图像可以为曝光时间较短的短曝光图像等等。In this embodiment, the sequentially decreasing exposure of the first RAW image, the second RAW image, and the third RAW image may include the following situations: for example, the first RAW image may be an overexposed image, and the second RAW image may be a normal exposure image, the third RAW image may be an underexposed image. For another example, the first RAW image, the second RAW image, and the third RAW image may be images with successively decreasing exposure times. For example, in comparison, the first RAW image may be a long-exposure image with a longer exposure time, and the second RAW image may be The image may be a medium exposure image with an intermediate exposure time, the third RAW image may be a short exposure image with a shorter exposure time, and so on.

即,本实施例的101和102中,电子设备可以先从第一摄像模组和第二摄像模组中选取用于进行过曝光或长曝光的第一目标摄像模组,并选取用于进行正常曝光和欠曝光或者进行中等曝光和短曝光的第二目标摄像模组。在选取出第一目标摄像模组和第二目标摄像模组之后,电子设备可以通过该第一目标摄像模组获取第一RAW图像,并通过第二目标摄像模组获取第二RAW图像和第三RAW图像。That is, in 101 and 102 of this embodiment, the electronic device may first select a first target camera module for overexposure or long exposure from the first camera module and the second camera module, and select a first target camera module for performing overexposure or long exposure. A second target camera module for normal exposure and underexposure or medium exposure and short exposure. After selecting the first target camera module and the second target camera module, the electronic device can obtain the first RAW image through the first target camera module, and obtain the second RAW image and the first RAW image through the second target camera module Three RAW images.

103、以第二RAW图像为基准图像,对第一RAW图像、第二RAW图像以及第三RAW图像进行合成处理,得到具有高动态范围的RAW合成图像。103. Using the second RAW image as a reference image, perform compositing processing on the first RAW image, the second RAW image, and the third RAW image, to obtain a RAW composite image with a high dynamic range.

比如,在获取到第一RAW图像、第二RAW图像和第三RAW图像之后,电子设备可以第二RAW图像为基准图像,对该第一RAW图像、第二RAW图像以及第三RAW图像进行HDR合成处理,从而得到具有高动态范围的RAW合成图像。For example, after acquiring the first RAW image, the second RAW image and the third RAW image, the electronic device may use the second RAW image as a reference image, and perform HDR on the first RAW image, the second RAW image and the third RAW image Composite processing, resulting in a RAW composite image with high dynamic range.

即,由于第一RAW图像的曝光度最高,第三RAW图像的曝光度最低,因此电子设备可以从第一RAW图像中获取暗部细节,从第三RAW图像中获取亮部细节,并将获取到的暗部细节和亮部细节与第二RAW图像进行HDR合成,从而得到具有高动态范围的RAW合成图像。That is, since the exposure of the first RAW image is the highest and the exposure of the third RAW image is the lowest, the electronic device can obtain the details of the dark parts from the first RAW image, obtain the details of the bright parts from the third RAW image, and obtain the The dark details and highlights of the RAW image are HDR composited with the second RAW image, resulting in a RAW composite image with high dynamic range.

104、利用RAW合成图像,进行图像的预览或拍照或录像操作。104. Use RAW to synthesize images, and perform image preview or photographing or video recording operations.

比如,在得到具有高动态范围的RAW合成图像后,电子设备可以利用该RAW合成图像进行图像的预览或拍照或录像操作。例如,电子设备可以在对该RAW合成图像进行一定处理后显示在该电子设备的相机应用的预览界面供用户预览。或者,当电子设备接收到拍照指令,例如用户按下拍照按钮时,该电子设备可以在对该RAW合成图像进行一定的处理后作为照片输出显示在显示屏上供用户查看。或者,当电子设备接收到录像指令时,电子设备可以在对该RAW合成图像进行一定处理后将其作为录像得到的视频的其中一帧。For example, after obtaining a RAW composite image with a high dynamic range, the electronic device can use the RAW composite image to perform image preview or photographing or video recording operations. For example, the electronic device may display the preview interface of the camera application of the electronic device for the user to preview after performing certain processing on the RAW composite image. Alternatively, when the electronic device receives a photographing instruction, for example, when the user presses the photographing button, the electronic device may perform certain processing on the RAW composite image and display it on the display screen as a photo output for the user to view. Or, when the electronic device receives the video recording instruction, the electronic device may use the RAW composite image as one of the frames of the video obtained by video recording after performing certain processing on the RAW composite image.

请同时参阅图2,图2为本实施例提供的图像处理方法的第一种合成示意图。Please refer to FIG. 2 at the same time. FIG. 2 is a first synthesis schematic diagram of the image processing method provided in this embodiment.

需要说明的是,本实施例中,由于第一RAW图像、第二RAW图像以及第三RAW图像均是完整曝光的RAW图像,因此用该第一RAW图像、第二RAW图像以及第三RAW图像去做高动态范围合成处理后得到的图像其分辨率就不会有损失,其信噪比也较高,即本实施例中得到的具有高动态范围的RAW合成图像具有分辨率高和信噪比高的优点。这种分辨率高、信噪比高的具有高动态范围的RAW合成图像可以直接用于图像预览、拍照和录像。It should be noted that, in this embodiment, since the first RAW image, the second RAW image and the third RAW image are all fully exposed RAW images, the first RAW image, the second RAW image and the third RAW image are used The image obtained after high dynamic range synthesis processing will not lose its resolution, and its signal-to-noise ratio is also high, that is, the RAW composite image with high dynamic range obtained in this embodiment has high resolution and signal-to-noise ratio. higher advantage. This high-resolution, high signal-to-noise ratio RAW composite image with high dynamic range can be directly used for image preview, photography and video recording.

请参阅图3,图3为本申请实施例提供的图像处理方法的另一流程示意图。该图像处理方法可以应用于电子设备。该电子设备可以包括第一摄像模组和第二摄像模组,其中该第二摄像模组可以为长焦摄像模组。该图像处理方法的流程可以包括:Please refer to FIG. 3 , which is another schematic flowchart of an image processing method provided by an embodiment of the present application. The image processing method can be applied to electronic equipment. The electronic device may include a first camera module and a second camera module, wherein the second camera module may be a telephoto camera module. The flow of the image processing method may include:

201、电子设备通过第一摄像模组和第二摄像模组获取拍摄得到的图像的景深。201. The electronic device acquires the depth of field of the captured image through the first camera module and the second camera module.

比如,本申请实施例中,第一摄像模组为普通的摄像模组,而第二摄像模组为长焦摄像模组。电子设备可以先通过第一摄像模组和第二摄像模组获取它们拍摄得到的图像的景深。For example, in the embodiment of the present application, the first camera module is an ordinary camera module, and the second camera module is a telephoto camera module. The electronic device may first obtain the depth of field of the images captured by the first camera module and the second camera module.

需要说明的是,在远焦点和近焦点前后各有一个容许弥散圆,这个范围之间就叫景深,也就是说在对焦点前后,其影像仍然有一段清晰范围的,而被摄体的前后纵深,控制了在感光元件上的影像的模糊度。光圈、镜头及拍摄物的距离是影响景深的重要因素。利用双摄像模组可以计算得到景深信息。例如,在用户点击相机应用进入预览画面后,电子设备可以利用第一摄像模组和第二摄像模组各自拍摄得到一张图像,然后利用第一摄像模组和第二摄像模组拍摄得到的两张图像即可计算得到图像的景深信息。利用双摄像模组计算景深信息的方式可以采用现有技术中的方案,本实施例在此不再赘述。It should be noted that there is a permissible circle of confusion before and after the far focus and near focus. The range between this range is called the depth of field, that is to say, before and after the focus point, the image still has a clear range, and the front and back of the subject is. Depth, controls the blur of the image on the sensor. Aperture, lens and subject distance are important factors that affect depth of field. The depth of field information can be calculated by using the dual camera module. For example, after the user clicks the camera application to enter the preview screen, the electronic device can use the first camera module and the second camera module to capture an image, and then use the first camera module and the second camera module to capture an image. The depth of field information of the image can be calculated from the two images. The method in the prior art may be adopted for calculating the depth of field information by using the dual camera modules, which will not be repeated in this embodiment.

202、若景深大于或等于预设阈值,则电子设备将第一摄像模组确定为第一目标摄像模组,并将第二摄像模组确定为第二目标摄像模组。202. If the depth of field is greater than or equal to the preset threshold, the electronic device determines the first camera module as the first target camera module, and determines the second camera module as the second target camera module.

比如,在获取到景深后,电子设备可以检测该景深是否大于或等于预设阈值。For example, after acquiring the depth of field, the electronic device can detect whether the depth of field is greater than or equal to a preset threshold.

若检测出该景深大于或等于预设阈值,则可以认为当前的拍摄场景以远景居多。此时,电子设备可以将第一摄像模组确定为第一目标摄像模组,并将第二摄像模组(即长焦摄像模组)确定为第二目标摄像模组。If it is detected that the depth of field is greater than or equal to the preset threshold, it can be considered that the current shooting scene is mostly distant. At this time, the electronic device may determine the first camera module as the first target camera module, and determine the second camera module (ie, the telephoto camera module) as the second target camera module.

需要说明的是,在本实施例中,第一目标摄像模组可以是用于拍摄具有最大曝光度的RAW图像(即第一RAW图像)的摄像模组。而第二目标摄像模组可以是用于拍摄具有中间大小的曝光度的RAW图像(即第二RAW图像)以及具有最小曝光度的RAW图像(即第三RAW图像)的摄像模组。由于在进行HDR合成时,本实施例可以使用具有中间大小的曝光度的第二RAW图像作为基准图像,因此本实施例通过在远景居多的拍摄场景下使用长焦摄像模组来拍摄第二RAW图像可以使得第二RAW图像的细节(尤其是远景细节)更加清楚,即利用长焦摄像模组拍摄得到的第二RAW图像的清晰度更好。那么,后续以该第二RAW图像为基准图像进行HDR合成处理(如在进行HDR合成处理时从第一RAW图像中获取暗部细节以及从第三RAW图像中获取亮部细节等,并将获取到的暗部细节和亮部细节融合到第二RAW图像中)所得到的RAW合成图像的成像效果也将更好。It should be noted that, in this embodiment, the first target camera module may be a camera module for capturing a RAW image with maximum exposure (ie, the first RAW image). The second target camera module may be a camera module for capturing a RAW image with an intermediate exposure (ie, a second RAW image) and a RAW image with a minimum exposure (ie, a third RAW image). Since this embodiment can use a second RAW image with an intermediate exposure as a reference image when performing HDR synthesis, this embodiment uses a telephoto camera module to shoot the second RAW image in a shooting scene with a large number of distant views. The image can make the details (especially the distant view details) of the second RAW image clearer, that is, the second RAW image captured by the telephoto camera module has better clarity. Then, use the second RAW image as the reference image to perform HDR composition processing (for example, obtain details of dark parts from the first RAW image and obtain details of bright parts from the third RAW image during HDR composition processing, etc., and obtain the The image quality of the resulting RAW composite image will also be better.

203、电子设备通过第一目标摄像模组获取第一RAW图像,并通过第二目标摄像模组获取第二RAW图像和第三RAW图像,其中,第一RAW图像、第二RAW图像和第三RAW图像的曝光度依次降低,第二目标摄像模组利用交替曝光的方式获取第二RAW图像和第三RAW图像,第一目标摄像模组和第二模组摄像模组的帧率相同。203. The electronic device obtains the first RAW image through the first target camera module, and obtains the second RAW image and the third RAW image through the second target camera module, wherein the first RAW image, the second RAW image and the third RAW image are The exposure of the RAW image decreases sequentially, the second target camera module obtains the second RAW image and the third RAW image by means of alternate exposure, and the frame rates of the first target camera module and the second module camera module are the same.

比如,在确定出第一目标摄像模组和第二目标摄像模组后,电子设备可以通过该第一目标摄像模组获取第一RAW图像,并通过第二目标摄像模组获取第二RAW图像和第三RAW图像。For example, after determining the first target camera module and the second target camera module, the electronic device can obtain the first RAW image through the first target camera module, and obtain the second RAW image through the second target camera module and the third RAW image.

其中,该第一目标摄像模组和该第二目标摄像模组的帧率可以相同。例如,该第一目标摄像模组和该第二目标摄像模组的帧率均为30fps。当然,在一些其它实施方式中,该第一目标摄像模组和该第二目标摄像模组的帧率也可以为其它数值。并且,该第一目标摄像模组和该第二目标摄像模组的帧率可以是不低于20fps的数值。当该第一目标摄像模组和该第二目标摄像模组的帧率不低于20fps时,后续利用该第一目标摄像模组和第二目标摄像模组获取到的图像合成的RAW合成图像进行图像预览或录像时画面会比较流畅而不会出现卡顿现象。The frame rates of the first target camera module and the second target camera module may be the same. For example, the frame rates of the first target camera module and the second target camera module are both 30fps. Of course, in some other embodiments, the frame rates of the first target camera module and the second target camera module can also be other values. Moreover, the frame rate of the first target camera module and the second target camera module may be a value not lower than 20fps. When the frame rate of the first target camera module and the second target camera module is not lower than 20fps, the RAW composite image of the image composite obtained by the first target camera module and the second target camera module is subsequently used. When previewing or recording images, the screen will be smoother and will not be stuck.

并且,该第一RAW图像、第二RAW图像和第三RAW图像的曝光度依次降低。即,第一RAW图像的曝光度可以大于第二RAW图像,第二RAW图像的曝光度可以大于第三RAW图像。在一些实施方式中,第一RAW图像可以为过曝光图像,第二RAW图像可以为正常曝光图像,第三RAW图像可以为欠曝光图像。或者,在其它曝光参数相同的情况下,第一RAW图像的曝光时间可以大于第二RAW图像,而第二RAW图像的曝光时间可以大于第三RAW图像。即,第一RAW图像可以为长曝光图像,第二RAW图像可以为中等曝光图像,第三RAW图像可以为短曝光图像。And, the exposure degrees of the first RAW image, the second RAW image, and the third RAW image are sequentially decreased. That is, the exposure of the first RAW image may be greater than that of the second RAW image, and the exposure of the second RAW image may be greater than that of the third RAW image. In some embodiments, the first RAW image may be an overexposed image, the second RAW image may be a normally exposed image, and the third RAW image may be an underexposed image. Alternatively, under the condition that other exposure parameters are the same, the exposure time of the first RAW image may be longer than that of the second RAW image, and the exposure time of the second RAW image may be longer than that of the third RAW image. That is, the first RAW image may be a long exposure image, the second RAW image may be a medium exposure image, and the third RAW image may be a short exposure image.

在本实施例中,第二目标摄像模组利用交替曝光的方式获取第二RAW图像和第三RAW图像。比如,第二目标摄像模组可以交替地进行中等曝光和短曝光,从而得到相应的图像。即,本实施例中,第一目标摄像模组可以不断地获取到长曝光图像,第二目标摄像模组可以不断地、交替获取到中等曝光图像和短曝光图像。In this embodiment, the second target camera module acquires the second RAW image and the third RAW image by means of alternate exposure. For example, the second target camera module may alternately perform medium exposure and short exposure to obtain corresponding images. That is, in this embodiment, the first target camera module can continuously acquire long-exposure images, and the second target camera module can continuously and alternately acquire medium-exposure images and short-exposure images.

在本实施例中,可以将获取到的过曝图像(或者长曝光图像)统一记为第一RAW图像,将正常曝光图像(或者中等曝光图像)统一记为第二RAW图像,将欠曝图像(或者短曝光图像)统一记为第三RAW图像。In this embodiment, the acquired overexposed images (or long exposure images) may be collectively recorded as the first RAW image, the normal exposure images (or medium exposure images) may be collectively recorded as the second RAW image, and the underexposed images may be collectively recorded as the second RAW image. (or short exposure images) are collectively recorded as the third RAW image.

204、电子设备以第二RAW图像为基准图像,对第一目标摄像模组获取到的第N帧图像、第二目标摄像模组获取到的第N帧图像以及第二目标摄像模组获取到的第N+1帧图像进行合成处理,得到具有高动态范围的RAW合成图像。204. The electronic device uses the second RAW image as a reference image, and obtains the Nth frame image obtained by the first target camera module, the Nth frame image obtained by the second target camera module, and the second target camera module. The N+1-th frame image is synthesized, and a RAW synthesized image with high dynamic range is obtained.

比如,在第一目标摄像模组不断地获取到长曝光图像,并且第二目标摄像模组不断地、交替获取到中等曝光图像和短曝光图像的过程中,电子设备可以对第一目标摄像模组获取到的第N帧图像、第二目标摄像模组获取到的第N帧图像以及第二目标摄像模组获取到的第N+1帧图像进行合成处理,得到具有高动态范围的RAW合成图像。其中,在进行HDR合成时,电子设备可以第二RAW图像为HDR合成的基准图像。即,电子设备可以从第一RAW图像中获取暗部细节,从第三RAW图像中获取亮部细节,并将获取到的暗部细节和亮部细节与第二RAW图像进行HDR合成,从而得到具有高动态范围的RAW合成图像。For example, in the process that the first target camera module continuously acquires long-exposure images, and the second target camera module continuously and alternately acquires medium-exposure images and short-exposure images, the electronic device may The N-th frame image obtained by the group, the N-th frame image obtained by the second target camera module, and the N+1-th frame image obtained by the second target camera module are synthesized and processed to obtain RAW synthesis with high dynamic range. image. Wherein, when performing HDR composition, the electronic device may use the second RAW image as a reference image for HDR composition. That is, the electronic device can obtain the details of the dark parts from the first RAW image, obtain the details of the bright parts from the third RAW image, and perform HDR synthesis on the obtained details of the dark parts and the bright parts with the second RAW image, so as to obtain a high-quality image with high RAW composite images with dynamic range.

请同时参阅图4,图4为本实施例提供的图像处理方法的第二种合成示意图。例如,第一目标摄像模组按照时间先后顺序进行长曝光得到以下图像:L1、L2、L3、L4(即L1为第一目标摄像模组拍摄的第一帧图像,L2为第一目标摄像模组拍摄的第二帧图像,L3为第一目标摄像模组拍摄的第三帧图像,L4为第一目标摄像模组拍摄的第四帧图像)等等。可以理解的是,L1、L2、L3和L4具有相同的曝光度,例如在其它曝光参数相同的情况下,L1、L2、L3和L4具有相同的曝光时间t1。第二目标摄像模组按照时间先后顺序交替进行中等曝光和短曝光得到以下图像:M1、S1、M2、S2、M3(即M1为第二目标摄像模组拍摄的第一帧图像,S1为第二目标摄像模组拍摄的第二帧图像,M2为第二目标摄像模组拍摄的第三帧图像,S2为第二目标摄像模组拍摄的第四帧图像,M3为第二目标摄像模组拍摄的第五帧图像)等等。可以理解的是,M1、M2、M3具有相同的曝光度,例如在其它曝光参数相同的情况下,M1、M2、M3具有相同的曝光时间t2。S1、S2具有相同的曝光度,例如在其它曝光参数相同的情况下,S1、S2具有相同的曝光时间t3。那么,在HDR合成时,电子设备是将L1、M1和S1进行合成得到P1图像(以M1为HDR合成的基准图像),将L2、S1和M2进行合成得到P2图像(以M2为HDR合成的基准图像),将L3、M2和S2进行合成得到P3图像(以M2为HDR合成的基准图像),将L4、S2和M3进行合成得到P4图像(以M3为HDR合成的基准图像)。即,电子设备可以依次得到具有高动态范围的P1、P2、P3和P4图像。Please refer to FIG. 4 at the same time. FIG. 4 is a second synthesizing schematic diagram of the image processing method provided in this embodiment. For example, the first target camera module performs long exposures in chronological order to obtain the following images: L1, L2, L3, L4 (that is, L1 is the first frame image captured by the first target camera module, and L2 is the first target camera module. L3 is the third frame image captured by the first target camera module, L4 is the fourth frame image captured by the first target camera module) and so on. It can be understood that L1 , L2 , L3 and L4 have the same exposure degree, for example, under the condition that other exposure parameters are the same, L1 , L2 , L3 and L4 have the same exposure time t1 . The second target camera module alternately performs medium exposure and short exposure in chronological order to obtain the following images: M1, S1, M2, S2, M3 (that is, M1 is the first frame image captured by the second target camera module, and S1 is the first frame of image captured by the second target camera module. The second frame image captured by the two-target camera module, M2 is the third frame image captured by the second target camera module, S2 is the fourth frame image captured by the second target camera module, and M3 is the second target camera module. The fifth frame image taken) and so on. It can be understood that M1, M2, and M3 have the same exposure. For example, when other exposure parameters are the same, M1, M2, and M3 have the same exposure time t2. S1 and S2 have the same exposure, for example, in the case of other exposure parameters being the same, S1 and S2 have the same exposure time t3. Then, during HDR synthesis, the electronic device synthesizes L1, M1 and S1 to obtain a P1 image (with M1 as the reference image for HDR synthesis), and synthesizes L2, S1 and M2 to obtain a P2 image (with M2 as the HDR synthesis) Baseline image), combine L3, M2, and S2 to obtain a P3 image (use M2 as the base image for HDR synthesis), and synthesize L4, S2, and M3 to obtain a P4 image (use M3 as the base image for HDR synthesis). That is, the electronic device can sequentially obtain P1, P2, P3 and P4 images with high dynamic range.

205、电子设备将RAW合成图像转换为YUV合成图像。205. The electronic device converts the RAW composite image into a YUV composite image.

206、电子设备对YUV合成图像进行预设处理后,进行图像的预览。206. After the electronic device performs preset processing on the YUV composite image, preview the image.

比如,205和206可以包括:For example, 205 and 206 could include:

在得到RAW合成图像后,电子设备可以将该RAW合成图像由RAW格式转换为YUV格式,从而得到YUV合成图像。After obtaining the RAW composite image, the electronic device may convert the RAW composite image from the RAW format to the YUV format, thereby obtaining the YUV composite image.

之后,电子设备可以对该YUV合成图像进行诸如图像锐化、图像降噪等预设处理,并在该预设处理后,利用处理后得到的图像进行图像预览操作。例如,电子设备可以将YUV合成图像经过预设处理后得到的图像显示在该电子设备的相机应用的预览界面供用户预览。After that, the electronic device can perform preset processing such as image sharpening, image noise reduction, etc. on the YUV composite image, and after the preset processing, use the image obtained after the processing to perform an image preview operation. For example, the electronic device may display the image obtained by the preset processing of the YUV composite image on the preview interface of the camera application of the electronic device for the user to preview.

请同时参阅图5和图6。图5为电子设备将第一摄像模组确定为第一目标摄像模组,并将第二摄像模组(即长焦摄像模组)确定为第二目标摄像模组时的图像合成示意图。图6为电子设备将第二摄像模组(即长焦摄像模组)确定为第一目标摄像模组,并将第一摄像模组确定为第二目标摄像模组时的图像合成示意图。See also Figure 5 and Figure 6. 5 is a schematic diagram of image synthesis when the electronic device determines the first camera module as the first target camera module and the second camera module (ie the telephoto camera module) as the second target camera module. 6 is a schematic diagram of image synthesis when the electronic device determines the second camera module (ie the telephoto camera module) as the first target camera module and the first camera module as the second target camera module.

207、电子设备将预设处理后的YUV合成图像存入预设图像缓存队列。207. The electronic device stores the preset processed YUV composite image into a preset image cache queue.

208、在进行拍照操作时,电子设备从预设图像缓存队列中获取一帧YUV合成图像,并将获取到的该YUV合成图像作为照片展示。208. When performing a photographing operation, the electronic device acquires a frame of YUV composite image from a preset image buffer queue, and displays the obtained YUV composite image as a photo.

比如,207和208可以包括:For example, 207 and 208 could include:

在对该YUV合成图像进行诸如图像锐化、图像降噪等预设处理后,电子设备可以将处理后得到的图像存入一个预设图像缓存队列中。After performing preset processing such as image sharpening and image noise reduction on the YUV composite image, the electronic device may store the processed image in a preset image buffer queue.

例如,在对图像进行预览之后,用户点击了电子设备的相机应用的拍照按钮进行拍照操作,那么电子设备可以从预设图像缓存队列中获取一帧经过预设处理的YUV合成图像,并将获取到的该图像作为照片进行展示,如显示在电子设备的显示屏供用户查看拍照效果。For example, after previewing the image, the user clicks the camera button of the camera application of the electronic device to take a photo, then the electronic device can obtain a frame of the pre-processed YUV composite image from the preset image cache queue, and will obtain the The obtained image is displayed as a photo, for example, displayed on the display screen of the electronic device for the user to check the photo effect.

在一种实施方式中,在201之后,还可以包括如下流程:若检测出该景深小于预设阈值,则可以认为当前的拍摄场景为近景,而没有太多远景。此时,电子设备可以将第二摄像模组(即长焦摄像模组)确定为第一目标摄像模组,并将第一摄像模组确定为第二目标摄像模组。在确定出第一目标摄像模组和第二目标摄像模组之后,电子设备可以通过第一目标摄像模组获取第一RAW图像,并通过第二目标摄像模组获取第二RAW图像和第三RAW图像,其中,第一RAW图像、第二RAW图像和第三RAW图像的曝光度依次降低,第二目标摄像模组利用交替曝光的方式获取第二RAW图像和第三RAW图像,第一目标摄像模组和第二模组摄像模组的帧率相同。之后,电子设备对第一目标摄像模组获取到的第N帧图像、第二目标摄像模组获取到的第N帧图像以及第二目标摄像模组获取到的第N+1帧图像进行合成处理,得到具有高动态范围的RAW合成图像。在得到RAW合成图像后,电子设备可以利用该RAW合成图像进行图像的预览或拍照或录像操作。In an embodiment, after 201, the following process may be further included: if it is detected that the depth of field is smaller than a preset threshold, it may be considered that the current shooting scene is a close-up scene, and there is not much distant view. At this time, the electronic device may determine the second camera module (ie, the telephoto camera module) as the first target camera module, and the first camera module as the second target camera module. After the first target camera module and the second target camera module are determined, the electronic device may obtain the first RAW image through the first target camera module, and obtain the second RAW image and the third target camera module through the second target camera module RAW images, wherein the exposure of the first RAW image, the second RAW image, and the third RAW image decreases sequentially, and the second target camera module acquires the second RAW image and the third RAW image by means of alternate exposure, and the first target The frame rates of the camera module and the camera module of the second module are the same. After that, the electronic device synthesizes the Nth frame image obtained by the first target camera module, the Nth frame image obtained by the second target camera module, and the N+1th frame image obtained by the second target camera module processing, resulting in a RAW composite image with high dynamic range. After obtaining the RAW composite image, the electronic device can use the RAW composite image to perform image preview or photographing or video recording operations.

在一种实施方式中,电子设备对第一RAW图像、第二RAW图像以及第三RAW图像进行合成处理,得到具有高动态范围的RAW合成图像的流程,可以包括:In one embodiment, the electronic device performs composite processing on the first RAW image, the second RAW image, and the third RAW image to obtain a RAW composite image with a high dynamic range, which may include:

电子设备将第二RAW图像确定为图像对齐处理的基准图像,该图像对齐处理至少包括图像亮度对齐处理和图像位置对齐处理;The electronic device determines the second RAW image as a reference image for image alignment processing, where the image alignment processing at least includes image brightness alignment processing and image position alignment processing;

在图像对齐后,电子设备对第一RAW图像、第二RAW图像以及第三RAW图像进行合成处理,得到具有高动态范围的RAW合成图像。After the images are aligned, the electronic device performs composite processing on the first RAW image, the second RAW image, and the third RAW image to obtain a RAW composite image with a high dynamic range.

比如,第一RAW图像为过曝光图像,第二RAW图像为正常曝光图像,第三RAW图像为欠曝光图像。那么,电子设备可以将正常曝光的第二RAW图像确定为图像对齐处理的基准图像,其中该图像对齐处理至少包括图像亮度对齐处理和图像位置对齐处理。即,在进行HDR融合之前,电子设备需要对第一RAW图像、第二RAW图像和第三RAW图像进行图像亮度对齐和图像位置对齐。在本申请实施例中,电子设备可以先将正常曝光的第二RAW图像确定为图像对齐处理的基准图像,然后将第一RAW图像和第三RAW图像以第二RAW图像为基准进行图像亮度对齐和位置对齐。在图像对齐之后,电子设备可以对第一RAW图像、第二RAW图像和第三RAW图像进行HDR合成(在进行HDR合成时仍然可以第二RAW图像作为合成的基准图像),从而得到具有高动态范围的RAW合成图像。For example, the first RAW image is an overexposed image, the second RAW image is a normal exposure image, and the third RAW image is an underexposed image. Then, the electronic device may determine the normally exposed second RAW image as a reference image for image alignment processing, where the image alignment processing at least includes image brightness alignment processing and image position alignment processing. That is, before performing HDR fusion, the electronic device needs to perform image brightness alignment and image position alignment on the first RAW image, the second RAW image, and the third RAW image. In this embodiment of the present application, the electronic device may first determine a normally exposed second RAW image as a reference image for image alignment processing, and then perform image brightness alignment on the first RAW image and the third RAW image using the second RAW image as a reference and position alignment. After the images are aligned, the electronic device can perform HDR composition on the first RAW image, the second RAW image and the third RAW image (the second RAW image can still be used as a composite reference image during HDR composition), so as to obtain a high dynamic Range of RAW composite images.

需要说明的是,以中等曝光的第二RAW图像作为图像对齐处理的基准图像,可以使得图像对齐处理更加准确,进而使得最终合成得到的图像的成像效果更好。It should be noted that using the second RAW image with moderate exposure as the reference image for the image alignment process can make the image alignment process more accurate, thereby making the final synthesized image have a better imaging effect.

在本实施例中,用于进行HDR合成的第一RAW图像、第二RAW图像和第三RAW图像可以是拍摄时间间隔小于预设间隔的图像。比如,用于进行HDR合成的长曝光图像、中等曝光图像以及短曝光图像可以是拍摄时间间隔小于预设间隔的图像。电子设备在拍摄图像时可以生成与各图像对应的时间戳。基于拍摄的时间戳,电子设备即可以在HDR合成时检测对应的长曝光图像、中等曝光图像以及短曝光图像是否为拍摄时间间隔小于预设间隔的图像。若是,则电子设备可以进行HDR合成。若否,则电子设备可以不对这些图像进行HDR合成,而是对这些图像进行丢帧处理,如将这些图像删除等。In this embodiment, the first RAW image, the second RAW image, and the third RAW image used for HDR composition may be images whose shooting time interval is shorter than a preset interval. For example, the long-exposure image, the medium-exposure image, and the short-exposure image used for HDR composition may be images whose shooting time interval is shorter than a preset interval. The electronic device may generate a time stamp corresponding to each image when the image is captured. Based on the time stamp of shooting, the electronic device can detect whether the corresponding long-exposure image, medium-exposure image, and short-exposure image are images whose shooting time interval is less than a preset interval during HDR synthesis. If so, the electronic device may perform HDR composition. If not, the electronic device may not perform HDR composition on these images, but perform frame dropping processing on these images, such as deleting these images.

请参阅图7至图11,图7至图11为本申请实施例提供的图像处理方法的场景示意图。Please refer to FIG. 7 to FIG. 11 . FIGS. 7 to 11 are schematic diagrams of scenarios of the image processing method provided by the embodiments of the present application.

比如,如图7所示,电子设备具有第一摄像模组301和第二摄像模组302,其中该第二摄像模组302为长焦摄像模组,而该第一摄像模组301可以为普通摄像模组。例如,第一摄像模组301可以为既非长焦摄像模组也非广角摄像模组的普通摄像模组。并且,第一摄像模组301和第二摄像模组302具有相同的帧率,例如它们的帧率均为30fps或者60fps等等。For example, as shown in FIG. 7, the electronic device has a first camera module 301 and a second camera module 302, wherein the second camera module 302 is a telephoto camera module, and the first camera module 301 can be Ordinary camera module. For example, the first camera module 301 may be a common camera module that is neither a telephoto camera module nor a wide-angle camera module. Moreover, the first camera module 301 and the second camera module 302 have the same frame rate, for example, their frame rates are both 30fps or 60fps, and so on.

例如,如图8所示,用户点击了相机应用的图标,并将摄像头对准某一场景。此时电子设备进入相机应用的预览界面。当检测到进入预览界面后,第一摄像模组可以拍摄一张图像,第二摄像模组也可以拍摄一张图像。之后,电子设备可以通过第一摄像模组和第二摄像模组拍摄得到的图像,获取对应的景深。例如,电子设备可以将第一摄像模组拍摄得到的图像和第二摄像模组拍摄得到的图像合成,并计算合成后的图像的景深信息。For example, as shown in Figure 8, the user clicks the icon of the camera application and points the camera at a certain scene. At this time, the electronic device enters the preview interface of the camera application. When it is detected that the preview interface is entered, the first camera module can capture an image, and the second camera module can also capture an image. After that, the electronic device can obtain the corresponding depth of field through the images captured by the first camera module and the second camera module. For example, the electronic device may synthesize the image captured by the first camera module and the image captured by the second camera module, and calculate the depth of field information of the synthesized image.

在获取到景深后,电子设备可以检测该景深是否大于或等于预设阈值。例如,本实施例中,电子设备检测出该景深大于或等于预设阈值,则可以认为当前的拍摄场景以远景居多。此时,电子设备可以将第一摄像模组确定为第一目标摄像模组,并将第二摄像模组(即长焦摄像模组)确定为第二目标摄像模组。After acquiring the depth of field, the electronic device can detect whether the depth of field is greater than or equal to a preset threshold. For example, in this embodiment, if the electronic device detects that the depth of field is greater than or equal to the preset threshold, it can be considered that the current shooting scene is mostly distant. At this time, the electronic device may determine the first camera module as the first target camera module, and determine the second camera module (ie, the telephoto camera module) as the second target camera module.

又如,若检测出景深小于预设阈值,则可以认为当前的拍摄场景主要为近景,而没有太多远景。此时,电子设备可以将第二摄像模组(即长焦摄像模组)确定为第一目标摄像模组,并将第一摄像模组确定为第二目标摄像模组。For another example, if it is detected that the depth of field is smaller than the preset threshold, it can be considered that the current shooting scene is mainly close-range, and there is not much distant view. At this time, the electronic device may determine the second camera module (ie, the telephoto camera module) as the first target camera module, and the first camera module as the second target camera module.

在确定出第一目标摄像模组和第二目标摄像模组后,电子设备可以进入HDR模式。例如,在该HDR模式下,电子设备可以通过第一目标摄像模组的图像传感器按照拍摄间隔持续地获取RAW图像,例如本实施例记为第一RAW图像,该第一RAW图像的曝光时间为T1。同时,电子设备可以通过第二目标摄像模组的图像传感器交替获取到具有曝光时间为T2和T3的RAW图像,例如将具有曝光时间T2的RAW图像统一记为第二RAW图像,将具有曝光时间T3的RAW图像统一记为第三RAW图像。可以理解的是,第一RAW图像、第二RAW图像和第三RAW图像即为摄像头对准的当前场景的图像。由于第一RAW图像、第二RAW图像和第三RAW图像的拍摄时间间隔很短,因此可以认为它们为同一场景下获取的图像。在一种实施方式中,第一RAW图像、第二RAW图像和第三RAW图像除了曝光时间不同外,其它曝光参数可以相同。After the first target camera module and the second target camera module are determined, the electronic device may enter the HDR mode. For example, in the HDR mode, the electronic device can continuously acquire RAW images according to the shooting interval through the image sensor of the first target camera module. For example, this embodiment is recorded as the first RAW image, and the exposure time of the first RAW image is T1. At the same time, the electronic device can alternately acquire RAW images with exposure times T2 and T3 through the image sensor of the second target camera module. For example, the RAW images with exposure time T2 are collectively recorded as the second RAW images, and The RAW image of T3 is collectively recorded as the third RAW image. It can be understood that the first RAW image, the second RAW image and the third RAW image are the images of the current scene on which the camera is aimed. Since the shooting time interval of the first RAW image, the second RAW image, and the third RAW image is very short, it can be considered that they are images obtained in the same scene. In one embodiment, the exposure parameters of the first RAW image, the second RAW image and the third RAW image may be the same except for different exposure times.

在本实施例中曝光时间T1大于T2,T2大于T3。即,第一目标摄像模组进行长曝光,得到长曝光的RAW图像。第二目标摄像模组交替进行中、短曝光,得到中等曝光和短曝光的RAW图像。例如,如图4所示,按照时间先后顺序,电子设备通过第一目标摄像模组的图像传感器可以获取到长曝光的RAW图像L1、L2、L3和L4,等等。并且,按照时间先后顺序,电子设备通过第二目标摄像模组的图像传感器可以交替获取到中、短曝光的RAW图像M1、S1、M2、S2、M3,等等。In this embodiment, the exposure time T1 is greater than T2, and T2 is greater than T3. That is, the first target camera module performs long exposure to obtain a long-exposure RAW image. The second target camera module alternately performs medium and short exposures to obtain RAW images of medium exposure and short exposure. For example, as shown in FIG. 4 , in chronological order, the electronic device can obtain long-exposure RAW images L1 , L2 , L3 and L4 through the image sensor of the first target camera module, and so on. Moreover, in a chronological order, the electronic device can alternately acquire medium and short exposure RAW images M1 , S1 , M2 , S2 , M3 and so on through the image sensor of the second target camera module.

在获取到长曝光图像、中等曝光图像和短曝光图像后,电子设备可以对长曝光图像、中等曝光图像和短曝光图像进行HDR合成处理,得到具有高动态范围的RAW合成图像。其中,用于进行HDR合成处理的图像可以为第一目标摄像模组获取到的第N帧图像、第二目标摄像模组获取到的第N帧图像以及第二目标摄像模组获取到的第N+1帧图像。并且,在进行HDR合成时,电子设备可以中等曝光图像作为HDR合成的基准图像。After acquiring the long-exposure image, the medium-exposure image, and the short-exposure image, the electronic device may perform HDR composite processing on the long-exposure image, the medium-exposure image, and the short-exposure image, to obtain a RAW composite image with a high dynamic range. The images used for HDR synthesis processing may be the Nth frame image obtained by the first target camera module, the Nth frame image obtained by the second target camera module, and the Nth frame image obtained by the second target camera module. N+1 frames of images. Moreover, when performing HDR composition, the electronic device can use the medium exposure image as a reference image for HDR composition.

例如,如图4所示,当获取到图像L1、M1和S1之后,电子设备可以第图像L1、M1和S1进行HDR合成处理(以M1为HDR合成的基准图像),得到具有高动态范围的图像P1。在获取到图像P1后,电子设备可以将图像P1转换为YUV格式的图像,并对格式转换后的图像进行诸如图像锐化、图像降噪等预设处理,得到处理后的图像。之后,电子设备可以将该处理后的图像显示在显示屏上,即在预览界面中显示给用户查看。For example, as shown in FIG. 4 , after acquiring the images L1, M1 and S1, the electronic device can perform HDR synthesis processing on the first images L1, M1 and S1 (with M1 as the reference image for HDR synthesis) to obtain an image with high dynamic range. Image P1. After acquiring the image P1, the electronic device can convert the image P1 into a YUV format image, and perform preset processing such as image sharpening and image noise reduction on the format-converted image to obtain a processed image. Afterwards, the electronic device may display the processed image on the display screen, that is, display it for the user to view in the preview interface.

当获取到图像L2、M2之后,电子设备可以第图像L2、M2和S1进行HDR合成处理(以M2为HDR合成的基准图像),得到具有高动态范围的图像P2。当获取到图像L3、S2之后,电子设备可以第图像L3、M2和S2进行HDR合成处理(以M2为HDR合成的基准图像),得到具有高动态范围的图像P3。当获取到图像L4、M3之后,电子设备可以第图像L4、M3和S2进行HDR合成处理(以M3为HDR合成的基准图像),得到具有高动态范围的图像P4,等等。After acquiring the images L2 and M2, the electronic device may perform HDR synthesis processing on the first images L2, M2 and S1 (using M2 as the reference image for HDR synthesis) to obtain an image P2 with a high dynamic range. After acquiring the images L3 and S2, the electronic device may perform HDR synthesis processing on the first images L3, M2 and S2 (with M2 as the reference image for HDR synthesis) to obtain an image P3 with a high dynamic range. After acquiring the images L4 and M3, the electronic device may perform HDR synthesis processing on the first images L4, M3 and S2 (using M3 as the reference image for HDR synthesis) to obtain an image P4 with a high dynamic range, and so on.

在依次得到图像P2、P3和P4后,电子设备同样可以将图像P2、P3和P4转换为YUV格式的图像,并对格式转换后的图像进行诸如图像锐化、图像降噪等预设处理,得到处理后的图像。之后,电子设备可以将该处理后的图像显示在显示屏上,即在预览界面中显示给用户查看。即,预览界面上会依次显示由图像P1、P2、P3和P4等经过格式转换和预设处理后的图像。After obtaining the images P2, P3 and P4 in turn, the electronic device can also convert the images P2, P3 and P4 into images in YUV format, and perform preset processing such as image sharpening and image noise reduction on the format-converted images. Get the processed image. Afterwards, the electronic device may display the processed image on the display screen, that is, display it for the user to view in the preview interface. That is, the images P1, P2, P3, and P4 after format conversion and preset processing are sequentially displayed on the preview interface.

可以理解的是,本实施例中可以将显示在预览界面上的图像记为预览帧图像。电子设备在每得到一张预览帧图像后,可以将对应的预览帧图像存入预设图像缓存队列中。该预设图像缓存队列可以是定长队列,也可以是非定长队列。It can be understood that, in this embodiment, the image displayed on the preview interface may be recorded as a preview frame image. Each time the electronic device obtains a preview frame image, the corresponding preview frame image may be stored in the preset image buffer queue. The preset image buffer queue may be a fixed-length queue or a non-fixed-length queue.

例如,本实施例中,预设图像缓存队列为定长队列,队列长度为30帧。例如,电子设备依次得到用于预览的图像Y1、Y2、Y3、Y4等等。那么,电子设备可以将得到的图像Y1、Y2、Y3、Y4依次存入预设图像缓存队列中。可以理解的是,预设图像缓存队列中存储的始终是最新得到的30帧预览帧图像,如图9所示。For example, in this embodiment, the preset image buffer queue is a fixed-length queue, and the queue length is 30 frames. For example, the electronic device sequentially obtains images Y1 , Y2 , Y3 , Y4 and so on for preview. Then, the electronic device may store the obtained images Y1, Y2, Y3, and Y4 in the preset image buffer queue in sequence. It can be understood that, the preset image cache queue always stores the latest 30 frames of preview frame images, as shown in FIG. 9 .

之后,例如如图10所示,用户点击了相机应用界面中的拍照按钮,此时电子设备可以从预设图像缓存队列中获取一帧预览帧,并将该获取的预览帧作为照片显示在显示屏上供用户查看拍照效果。例如,电子设备从预设图像缓存队列中获取到图像Y60。那么,电子设备可以将图像Y60作为照片显示给用户查看,如图11所示。Afterwards, for example, as shown in FIG. 10, the user clicks the camera button in the camera application interface. At this time, the electronic device can obtain a preview frame from the preset image cache queue, and display the obtained preview frame as a photo on the display. On the screen for users to view the photo effect. For example, the electronic device acquires the image Y60 from a preset image buffer queue. Then, the electronic device can display the image Y60 as a photo for the user to view, as shown in FIG. 11 .

可以理解的是,本实施例中,当拍照时,电子设备可以直接从预设图像缓存队列中获取具有高动态范围的图像,并展示给用户查看,从而可以达到零延时拍照的效果。It can be understood that, in this embodiment, when taking pictures, the electronic device can directly acquire images with high dynamic range from the preset image buffer queue, and display them to the user for viewing, so that the effect of taking pictures with zero delay can be achieved.

请参阅图12,图12为本申请实施例提供的图像处理装置的结构示意图。该图像处理装置可以应用于电子设备,该电子设备可以包括第一摄像模组和第二摄像模组,其中该第二摄像模组为长焦摄像模组。图像处理装置400可以包括:确定模块401,获取模块402,合成模块403,处理模块404。Please refer to FIG. 12 , which is a schematic structural diagram of an image processing apparatus provided by an embodiment of the present application. The image processing apparatus can be applied to electronic equipment, and the electronic equipment can include a first camera module and a second camera module, wherein the second camera module is a telephoto camera module. The image processing apparatus 400 may include: a determination module 401 , an acquisition module 402 , a synthesis module 403 , and a processing module 404 .

确定模块401,用于从所述第一摄像模组和所述第二摄像模组中确定第一目标摄像模组和第二目标摄像模组。The determining module 401 is configured to determine a first target camera module and a second target camera module from the first camera module and the second camera module.

获取模块402,用于通过所述第一目标摄像模组获取第一RAW图像,并通过所述第二目标摄像模组获取第二RAW图像和第三RAW图像,其中,所述第一RAW图像、第二RAW图像和第三RAW图像的曝光度依次降低。The acquiring module 402 is configured to acquire a first RAW image through the first target camera module, and acquire a second RAW image and a third RAW image through the second target camera module, wherein the first RAW image , the second RAW image, and the third RAW image are sequentially decreased in exposure.

合成模块403,用于以所述第二RAW图像为基准图像,对第一RAW图像、第二RAW图像以及第三RAW图像进行合成处理,得到具有高动态范围的RAW合成图像。The synthesis module 403 is configured to use the second RAW image as a reference image to perform synthesis processing on the first RAW image, the second RAW image and the third RAW image to obtain a RAW synthesized image with a high dynamic range.

处理模块404,用于利用所述RAW合成图像,进行图像的预览或拍照或录像操作。The processing module 404 is configured to use the RAW composite image to perform image preview or photographing or video recording operations.

在一种实施方式中,所述确定模块401可以用于:In one embodiment, the determining module 401 may be used to:

通过所述第一摄像模组和所述第二摄像模组获取拍摄得到的图像的景深;Obtain the depth of field of the captured image through the first camera module and the second camera module;

根据所述景深,从所述第一摄像模组和所述第二摄像模组中确定第一目标摄像模组和第二目标摄像模组。According to the depth of field, a first target camera module and a second target camera module are determined from the first camera module and the second camera module.

在一种实施方式中,所述确定模块401可以用于:In one embodiment, the determining module 401 may be used to:

若所述景深大于或等于预设阈值,则将所述第一摄像模组确定为第一目标摄像模组,并将所述第二摄像模组确定为第二目标摄像模组;If the depth of field is greater than or equal to a preset threshold, the first camera module is determined as the first target camera module, and the second camera module is determined as the second target camera module;

或者,若所述景深小于预设阈值,则将所述第二摄像模组确定为第一目标摄像模组,并将所述第一摄像模组确定为第二目标摄像模组。Alternatively, if the depth of field is smaller than a preset threshold, the second camera module is determined as the first target camera module, and the first camera module is determined as the second target camera module.

在一种实施方式中,所述第一摄像模组和所述第二摄像模组的帧率相同。In one embodiment, the frame rates of the first camera module and the second camera module are the same.

在一种实施方式中,所述第一RAW图像、所述第二RAW图像和第三RAW图像的曝光时间依次减少。In one embodiment, the exposure times of the first RAW image, the second RAW image and the third RAW image are sequentially decreased.

在一种实施方式中,所述第二目标摄像模组利用交替曝光的方式获取第二RAW图像和第三RAW图像。In one embodiment, the second target camera module acquires the second RAW image and the third RAW image by means of alternate exposure.

所述合成模块403可以用于:对所述第一目标摄像模组获取到的第N帧图像、所述第二目标摄像模组获取到的第N帧图像以及所述第二目标摄像模组获取到的第N+1帧图像进行合成处理,得到具有高动态范围的RAW合成图像。The synthesizing module 403 can be used for: the Nth frame image obtained by the first target camera module, the Nth frame image obtained by the second target camera module, and the second target camera module. The acquired N+1 th frame image is synthesized to obtain a RAW synthesized image with high dynamic range.

在一种实施方式中,所述处理模块404可以用于:In one embodiment, the processing module 404 may be used to:

将所述RAW合成图像转换为YUV合成图像;converting the RAW composite image to a YUV composite image;

对所述YUV合成图像进行预设处理后,进行图像的预览。After the preset processing is performed on the YUV composite image, a preview of the image is performed.

在一种实施方式中,所述处理模块404可以用于:In one embodiment, the processing module 404 may be used to:

将预设处理后的YUV合成图像存入预设图像缓存队列;Store the pre-processed YUV composite image in the preset image cache queue;

在进行拍照操作时,从所述预设图像缓存队列中获取一帧YUV合成图像,并将获取到的所述YUV合成图像作为照片展示。During the photographing operation, a frame of YUV composite image is obtained from the preset image buffer queue, and the obtained YUV composite image is displayed as a photo.

本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本实施例提供的图像处理方法中的流程。An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, causes the computer to execute the process in the image processing method provided in this embodiment.

本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本实施例提供的图像处理方法中的流程。An embodiment of the present application further provides an electronic device, including a memory and a processor, where the processor is configured to execute the process in the image processing method provided by the present embodiment by invoking a computer program stored in the memory.

例如,上述电子设备可以是诸如平板电脑或者智能手机等移动终端。请参阅图13,图13为本申请实施例提供的电子设备的结构示意图。For example, the above-mentioned electronic device may be a mobile terminal such as a tablet computer or a smart phone. Please refer to FIG. 13 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

该电子设备500可以包括摄像模组501、存储器502、处理器503等部件。本领域技术人员可以理解,图13中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The electronic device 500 may include a camera module 501 , a memory 502 , a processor 503 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 13 does not constitute a limitation to the electronic device, and may include more or less components than the one shown, or combine some components, or arrange different components.

摄像模组501可以是电子设备上安装的双摄像模组等等。其中该摄像模组501可以包括第一摄像模组和第二摄像模组。该第二摄像模组可以为长焦摄像模组。The camera module 501 may be a dual camera module installed on an electronic device or the like. The camera module 501 may include a first camera module and a second camera module. The second camera module may be a telephoto camera module.

存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器503通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。Memory 502 may be used to store applications and data. The application program stored in the memory 502 contains executable code. Applications can be composed of various functional modules. The processor 503 executes various functional applications and data processing by running the application programs stored in the memory 502 .

处理器503是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 503 is the control center of the electronic device, uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502. The various functions and processing data of the device are used to monitor the electronic equipment as a whole.

在本实施例中,电子设备中的处理器503会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器502中,并由处理器503来运行存储在存储器502中的应用程序,从而执行:In this embodiment, the processor 503 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 503 executes and stores it in the memory 502 in the application, which executes:

从所述第一摄像模组和所述第二摄像模组中确定第一目标摄像模组和第二目标摄像模组;Determine a first target camera module and a second target camera module from the first camera module and the second camera module;

通过所述第一目标摄像模组获取第一RAW图像,并通过所述第二目标摄像模组获取第二RAW图像和第三RAW图像,其中,所述第一RAW图像、第二RAW图像和第三RAW图像的曝光度依次降低;A first RAW image is acquired through the first target camera module, and a second RAW image and a third RAW image are acquired through the second target camera module, wherein the first RAW image, the second RAW image and the The exposure of the third RAW image decreases sequentially;

以所述第二RAW图像为基准图像,对所述第一RAW图像、第二RAW图像以及第三RAW图像进行合成处理,得到具有高动态范围的RAW合成图像;Taking the second RAW image as a reference image, performing synthesis processing on the first RAW image, the second RAW image and the third RAW image to obtain a RAW composite image with a high dynamic range;

利用所述RAW合成图像,进行图像的预览或拍照或录像操作。Using the RAW composite image, image preview or photographing or video recording operations are performed.

本发明实施例还提供一种电子设备。上述电子设备中包括图像处理电路,图像处理电路可以利用硬件和/或软件组件实现,可包括定义图像信号处理(Image SignalProcessing)管线的各种处理单元。图像处理电路至少可以包括:摄像头、图像信号处理器(Image Signal Processor,ISP处理器)、控制逻辑器、图像存储器以及显示器等。其中摄像头至少可以包括一个或多个透镜和图像传感器。Embodiments of the present invention also provide an electronic device. The above electronic device includes an image processing circuit, and the image processing circuit may be implemented by hardware and/or software components, and may include various processing units that define an image signal processing (Image Signal Processing) pipeline. The image processing circuit may at least include: a camera, an image signal processor (Image Signal Processor, ISP processor), a control logic, an image memory, a display, and the like. The camera may at least include one or more lenses and an image sensor.

图像传感器可包括色彩滤镜阵列(如Bayer滤镜)。图像传感器可获取用图像传感器的每个成像像素捕捉的光强度和波长信息,并提供可由图像信号处理器处理的一组原始图像数据。The image sensor may include an array of color filters (eg, Bayer filters). The image sensor can acquire light intensity and wavelength information captured with each imaging pixel of the image sensor and provide a set of raw image data that can be processed by an image signal processor.

图像信号处理器可以按多种格式逐个像素地处理原始图像数据。例如,每个图像像素可具有8、10、12或14比特的位深度,图像信号处理器可对原始图像数据进行一个或多个图像处理操作、收集关于图像数据的统计信息。其中,图像处理操作可按相同或不同的位深度精度进行。原始图像数据经过图像信号处理器处理后可存储至图像存储器中。图像信号处理器还可从图像存储器处接收图像数据。Image signal processors can process raw image data pixel by pixel in a variety of formats. For example, each image pixel may have a bit depth of 8, 10, 12, or 14 bits, and the image signal processor may perform one or more image processing operations on the raw image data, collecting statistical information about the image data. Among them, the image processing operations can be performed with the same or different bit depth precision. The raw image data can be stored in the image memory after being processed by the image signal processor. The image signal processor may also receive image data from the image memory.

图像存储器可为存储器装置的一部分、存储设备、或电子设备内的独立的专用存储器,并可包括DMA(Direct Memory Access,直接直接存储器存取)特征。The image memory may be a part of a memory device, a storage device, or an independent dedicated memory in an electronic device, and may include a DMA (Direct Memory Access, Direct Memory Access) feature.

当接收到来自图像存储器的图像数据时,图像信号处理器可进行一个或多个图像处理操作,如时域滤波。处理后的图像数据可发送给图像存储器,以便在被显示之前进行另外的处理。图像信号处理器还可从图像存储器接收处理数据,并对所述处理数据进行原始域中以及RGB和YCbCr颜色空间中的图像数据处理。处理后的图像数据可输出给显示器,以供用户观看和/或由图形引擎或GPU(Graphics Processing Unit,图形处理器)进一步处理。此外,图像信号处理器的输出还可发送给图像存储器,且显示器可从图像存储器读取图像数据。在一种实施方式中,图像存储器可被配置为实现一个或多个帧缓冲器。When receiving image data from the image memory, the image signal processor may perform one or more image processing operations, such as temporal filtering. The processed image data can be sent to the image memory for additional processing before being displayed. The image signal processor may also receive processed data from the image memory and process the processed data as image data in the raw domain and in the RGB and YCbCr color spaces. The processed image data may be output to a display for viewing by a user and/or further processed by a graphics engine or a GPU (Graphics Processing Unit, graphics processor). In addition, the output of the image signal processor can also be sent to an image memory, and the display can read image data from the image memory. In one embodiment, the image memory may be configured to implement one or more frame buffers.

图像信号处理器确定的统计数据可发送给控制逻辑器。例如,统计数据可包括自动曝光、自动白平衡、自动聚焦、闪烁检测、黑电平补偿、透镜阴影校正等图像传感器的统计信息。Statistics determined by the image signal processor may be sent to the control logic. For example, the statistics may include statistics of the image sensor for auto exposure, auto white balance, auto focus, flicker detection, black level compensation, lens shading correction, etc.

控制逻辑器可包括执行一个或多个例程(如固件)的处理器和/或微控制器。一个或多个例程可根据接收的统计数据,确定摄像头的控制参数以及ISP控制参数。例如,摄像头的控制参数可包括照相机闪光控制参数、透镜的控制参数(例如聚焦或变焦用焦距)、或这些参数的组合。ISP控制参数可包括用于自动白平衡和颜色调整(例如,在RGB处理期间)的增益水平和色彩校正矩阵等。Control logic may include a processor and/or microcontroller executing one or more routines (eg, firmware). One or more routines may determine camera control parameters and ISP control parameters based on the received statistics. For example, camera control parameters may include camera flash control parameters, lens control parameters (eg, focal length for focusing or zooming), or a combination of these parameters. ISP control parameters may include gain levels and color correction matrices, etc. for automatic white balance and color adjustment (eg, during RGB processing).

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

图像处理电路可以包括:第一摄像模组510、第二摄像模组520、第一图像信号处理器530、第二图像信号处理器540、控制逻辑器550、图像存储器560、显示器570。其中,第一摄像模组510可以包括一个或多个第一透镜511和第一图像传感器512。第二摄像模组520可以包括一个或多个第二透镜521和第二图像传感器522。The image processing circuit may include: a first camera module 510 , a second camera module 520 , a first image signal processor 530 , a second image signal processor 540 , a control logic 550 , an image memory 560 , and a display 570 . The first camera module 510 may include one or more first lenses 511 and a first image sensor 512 . The second camera module 520 may include one or more second lenses 521 and a second image sensor 522 .

第一摄像模组510采集的第一图像传输给第一图像信号处理器530进行处理。第一图像信号处理器530处理第一图像后,可将第一图像的统计数据(如图像的亮度、图像的反差值、图像的颜色等)发送给控制逻辑器550。控制逻辑器550可根据统计数据确定第一摄像模组510的控制参数,从而第一摄像模组510可根据控制参数进行自动对焦、自动曝光等操作。第一图像经过第一图像信号处理器530进行处理后可存储至图像存储器560中。第一图像信号处理器530也可以读取图像存储器560中存储的图像以进行处理。另外,第一图像经过图像信号处理器530进行处理后可直接发送至显示器570进行显示。显示器570也可以读取图像存储器560中的图像以进行显示。The first image collected by the first camera module 510 is transmitted to the first image signal processor 530 for processing. After the first image signal processor 530 processes the first image, the statistical data of the first image (such as the brightness of the image, the contrast value of the image, the color of the image, etc.) may be sent to the control logic 550 . The control logic 550 can determine the control parameters of the first camera module 510 according to the statistical data, so that the first camera module 510 can perform automatic focusing, automatic exposure and other operations according to the control parameters. The first image may be stored in the image memory 560 after being processed by the first image signal processor 530 . The first image signal processor 530 may also read images stored in the image memory 560 for processing. In addition, the first image can be directly sent to the display 570 for display after being processed by the image signal processor 530 . Display 570 may also read images in image memory 560 for display.

第二摄像模组520采集的第二图像传输给第二图像信号处理器540进行处理。第二图像信号处理器540处理第二图像后,可将第二图像的统计数据(如图像的亮度、图像的反差值、图像的颜色等)发送给控制逻辑器550。控制逻辑器550可根据统计数据确定第二摄像模组520的控制参数,从而第二摄像模组520可根据控制参数进行自动对焦、自动曝光等操作。第二图像经过第二图像信号处理器540进行处理后可存储至图像存储器560中。第二图像信号处理器540也可以读取图像存储器560中存储的图像以进行处理。另外,第二图像经过图像信号处理器540进行处理后可直接发送至显示器570进行显示。显示器570也可以读取图像存储器560中的图像以进行显示。The second image collected by the second camera module 520 is transmitted to the second image signal processor 540 for processing. After the second image signal processor 540 processes the second image, the statistical data of the second image (such as the brightness of the image, the contrast value of the image, the color of the image, etc.) may be sent to the control logic 550 . The control logic 550 can determine the control parameters of the second camera module 520 according to the statistical data, so that the second camera module 520 can perform automatic focusing, automatic exposure and other operations according to the control parameters. The second image may be stored in the image memory 560 after being processed by the second image signal processor 540 . The second image signal processor 540 may also read images stored in the image memory 560 for processing. In addition, the second image can be directly sent to the display 570 for display after being processed by the image signal processor 540 . Display 570 may also read images in image memory 560 for display.

在另一些实施方式中,第一图像信号处理器和第二图像信号处理器也可合成为统一的图像信号处理器,分别处理第一图像传感器和第二图像传感器的数据。In other embodiments, the first image signal processor and the second image signal processor can also be combined into a unified image signal processor, which respectively processes the data of the first image sensor and the second image sensor.

此外,图中没有展示的,电子设备还可以包括CPU和供电模块。CPU和逻辑控制器、第一图像信号处理器、第二图像信号处理器、图像存储器和显示器均连接,CPU用于实现全局控制。供电模块用于为各个模块供电。In addition, not shown in the figures, the electronic device may further include a CPU and a power supply module. The CPU is connected to the logic controller, the first image signal processor, the second image signal processor, the image memory, and the display, and the CPU is used to implement global control. The power supply module is used to supply power to each module.

一般的,具有双摄像模组的手机,在某些拍照模式下,双摄像模组均工作。此时,CPU控制供电模块为第一摄像模组和第二摄像模组供电。第一摄像模组中的图像传感器上电,第二摄像模组中的图像传感器上电,从而可以实现图像的采集转换。在某些拍照模式下,可以是双摄像模组中的一个摄像头工作。例如,仅长焦摄像头工作。这种情况下,CPU控制供电模块给相应摄像头的图像传感器供电即可。Generally, for mobile phones with dual camera modules, in some camera modes, the dual camera modules work. At this time, the CPU controls the power supply module to supply power to the first camera module and the second camera module. The image sensor in the first camera module is powered on, and the image sensor in the second camera module is powered on, so that image acquisition and conversion can be implemented. In some camera modes, one camera in the dual camera module can work. For example, only the telephoto camera works. In this case, the CPU controls the power supply module to supply power to the image sensor of the corresponding camera.

以下为运用图14中图像处理技术实现本实施例提供的图像处理方法的流程:The following is the process of implementing the image processing method provided by this embodiment using the image processing technology in FIG. 14 :

从所述第一摄像模组和所述第二摄像模组中确定第一目标摄像模组和第二目标摄像模组;Determine a first target camera module and a second target camera module from the first camera module and the second camera module;

通过所述第一目标摄像模组获取第一RAW图像,并通过所述第二目标摄像模组获取第二RAW图像和第三RAW图像,其中,所述第一RAW图像、第二RAW图像和第三RAW图像的曝光度依次降低;A first RAW image is acquired through the first target camera module, and a second RAW image and a third RAW image are acquired through the second target camera module, wherein the first RAW image, the second RAW image and the The exposure of the third RAW image decreases sequentially;

以所述第二RAW图像为基准图像,对所述第一RAW图像、第二RAW图像以及第三RAW图像进行合成处理,得到具有高动态范围的RAW合成图像;Taking the second RAW image as a reference image, performing synthesis processing on the first RAW image, the second RAW image and the third RAW image to obtain a RAW composite image with a high dynamic range;

利用所述RAW合成图像,进行图像的预览或拍照或录像操作。Using the RAW composite image, image preview or photographing or video recording operations are performed.

在一种实施方式中,电子设备执行从所述第一摄像模组和所述第二摄像模组中确定第一目标摄像模组和第二目标摄像模组时,可以执行:通过所述第一摄像模组和所述第二摄像模组获取拍摄得到的图像的景深;根据所述景深,从所述第一摄像模组和所述第二摄像模组中确定第一目标摄像模组和第二目标摄像模组。In one embodiment, when the electronic device determines the first target camera module and the second target camera module from the first camera module and the second camera module, it may perform: through the first camera module and the second target camera module. A camera module and the second camera module obtain the depth of field of the captured image; according to the depth of field, determine the first target camera module and the second camera module from the first camera module and the second camera module The second target camera module.

在一种实施方式中,电子设备执行根据所述景深信息,从所述第一摄像模组和所述第二摄像模组中确定第一目标摄像模组和第二目标摄像模组时,可以执行:若所述景深大于或等于预设阈值,则将所述第一摄像模组确定为第一目标摄像模组,并将所述第二摄像模组确定为第二目标摄像模组;或者,若所述景深小于预设阈值,则将所述第二摄像模组确定为第一目标摄像模组,并将所述第一摄像模组确定为第二目标摄像模组。In one embodiment, when the electronic device determines the first target camera module and the second target camera module from the first camera module and the second camera module according to the depth of field information, it can Execute: if the depth of field is greater than or equal to a preset threshold, then determine the first camera module as the first target camera module, and determine the second camera module as the second target camera module; or , if the depth of field is smaller than the preset threshold, the second camera module is determined as the first target camera module, and the first camera module is determined as the second target camera module.

在一种实施方式中,所述第一摄像模组和所述第二摄像模组的帧率相同。In one embodiment, the frame rates of the first camera module and the second camera module are the same.

在一种实施方式中,所述第一RAW图像、所述第二RAW图像和第三RAW图像的曝光时间依次减少。In one embodiment, the exposure times of the first RAW image, the second RAW image and the third RAW image are sequentially decreased.

在一种实施方式中,所述第二目标摄像模组利用交替曝光的方式获取第二RAW图像和第三RAW图像。In one embodiment, the second target camera module acquires the second RAW image and the third RAW image by means of alternate exposure.

那么,电子设备执行对所述第一RAW图像、第二RAW图像以及第三RAW图像进行合成处理,得到具有高动态范围的RAW合成图像时,可以执行:对所述第一目标摄像模组获取到的第N帧图像、所述第二目标摄像模组获取到的第N帧图像以及所述第二目标摄像模组获取到的第N+1帧图像进行合成处理,得到具有高动态范围的RAW合成图像。Then, when the electronic device performs synthesis processing on the first RAW image, the second RAW image and the third RAW image to obtain a RAW composite image with a high dynamic range, the electronic device may perform: acquiring the first target camera module The Nth frame image obtained, the Nth frame image obtained by the second target camera module, and the N+1 frame image obtained by the second target camera module are synthesized and processed to obtain a high dynamic range. RAW composite image.

在一种实施方式中,电子设备执行利用所述RAW合成图像,进行图像的预览时,可以执行:将所述RAW合成图像转换为YUV合成图像;对所述YUV合成图像进行预设处理后,进行图像的预览。In one embodiment, when the electronic device performs the preview of the image by using the RAW composite image, it may perform: converting the RAW composite image into a YUV composite image; after performing preset processing on the YUV composite image, Make a preview of the image.

在一种实施方式中,电子设备还可以执行:将预设处理后的YUV合成图像存入预设图像缓存队列;在进行拍照操作时,从所述预设图像缓存队列中获取一帧YUV合成图像,并将获取到的所述YUV合成图像作为照片展示。In one embodiment, the electronic device may also perform: storing the pre-processed YUV composite image into a preset image buffer queue; when performing a photographing operation, obtain a frame of YUV composite image from the preset image buffer queue image, and the obtained YUV composite image is displayed as a photo.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对图像处理方法的详细描述,此处不再赘述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the detailed description of the image processing method above, and details are not repeated here.

本申请实施例提供的所述图像处理装置与上文实施例中的图像处理方法属于同一构思,在所述图像处理装置上可以运行所述图像处理方法实施例中提供的任一方法,其具体实现过程详见所述图像处理方法实施例,此处不再赘述。The image processing apparatus provided in the embodiments of the present application and the image processing methods in the above embodiments belong to the same concept, and any method provided in the image processing method embodiments can be executed on the image processing apparatus. For the implementation process, please refer to the embodiment of the image processing method, which will not be repeated here.

需要说明的是,对本申请实施例所述图像处理方法而言,本领域普通技术人员可以理解实现本申请实施例所述图像处理方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述图像处理方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the image processing methods described in the embodiments of the present application, those of ordinary skill in the art can understand that all or part of the process for implementing the image processing methods described in the embodiments of the present application can be controlled by computer programs. To complete, the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process can include the flow of the embodiment of the image processing method . The storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), and the like.

对本申请实施例的所述图像处理装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the image processing apparatus of the embodiments of the present application, each functional module may be integrated into one processing chip, or each module may exist physically alone, or two or more modules 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 module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .

以上对本申请实施例所提供的一种图像处理方法、装置、存储介质以及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The image processing method, device, storage medium, and electronic device provided by the embodiments of the present application are described in detail above. The principles and implementations of the present application are described with specific examples. The descriptions of the above embodiments are only It is used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scope. In summary, this specification The content should not be construed as a limitation on this application.

Claims (9)

1. An image processing method is applied to electronic equipment, and is characterized in that the electronic equipment comprises a first camera module and a second camera module, wherein the second camera module is a long-focus camera module, and the method comprises the following steps:
acquiring the depth of field of the shot image through the first camera module and the second camera module;
if the depth of field is greater than or equal to a preset threshold value, determining the first camera module as a first target camera module, and determining the second camera module as a second target camera module; if the depth of field is smaller than a preset threshold value, determining the second camera module as a first target camera module, and determining the first camera module as a second target camera module;
acquiring a first RAW image through the first target camera module, and acquiring a second RAW image and a third RAW image through the second target camera module, wherein the exposure levels of the first RAW image, the second RAW image and the third RAW image are sequentially reduced;
taking the second RAW image as a reference image, and performing synthesis processing on the first RAW image, the second RAW image and the third RAW image to obtain a RAW synthesis image with a high dynamic range;
and previewing or photographing or recording the image by using the RAW composite image.
2. The image processing method according to claim 1, wherein frame rates of the first camera module and the second camera module are the same.
3. The image processing method according to claim 2, wherein the sequentially decreasing exposure levels of the first, second, and third RAW images includes:
the exposure time of the first RAW image, the second RAW image, and the third RAW image is sequentially decreased.
4. The image processing method according to claim 2, wherein the second target camera module acquires a second RAW image and a third RAW image by means of alternate exposure;
synthesizing the first RAW image, the second RAW image and the third RAW image to obtain a RAW synthesized image with a high dynamic range, including: and synthesizing the Nth frame of image acquired by the first target camera module, the Nth frame of image acquired by the second target camera module and the (N + 1) th frame of image acquired by the second target camera module to obtain a RAW synthesized image with a high dynamic range.
5. The image processing method according to claim 1, wherein performing a preview of an image using the RAW composite image comprises:
converting the RAW composite image into a YUV composite image;
and previewing the image after performing preset processing on the YUV synthetic image.
6. The image processing method according to claim 5, characterized in that the method further comprises:
storing the YUV synthetic image after the preset processing into a preset image cache queue;
and when the photographing operation is carried out, acquiring a frame of YUV synthetic image from the preset image cache queue, and displaying the acquired YUV synthetic image as a photo.
7. The utility model provides an image processing device, is applied to electronic equipment, its characterized in that, electronic equipment includes first module and the second module of making a video recording, wherein the second module of making a video recording is the long focus module of making a video recording, the device includes:
the determining module is used for acquiring the depth of field of the shot image through the first camera module and the second camera module; if the depth of field is greater than or equal to a preset threshold value, determining the first camera module as a first target camera module, and determining the second camera module as a second target camera module; if the depth of field is smaller than a preset threshold value, determining the second camera module as a first target camera module, and determining the first camera module as a second target camera module;
the acquisition module is used for acquiring a first RAW image through the first target camera module and acquiring a second RAW image and a third RAW image through the second target camera module, wherein the exposure levels of the first RAW image, the second RAW image and the third RAW image are sequentially reduced;
the synthesis module is used for synthesizing the first RAW image, the second RAW image and the third RAW image by taking the second RAW image as a reference image to obtain a RAW synthesis image with a high dynamic range;
and the processing module is used for previewing or photographing or recording the images by using the RAW composite image.
8. A storage medium having stored thereon a computer program, characterized in that the computer program, when executed on a computer, causes the computer to execute the method according to any of claims 1 to 6.
9. An electronic device comprising a memory, a processor, wherein the processor is configured to perform the method of any of claims 1 to 6 by invoking a computer program stored in the memory.
CN201910579940.3A 2019-06-28 2019-06-28 Image processing method, device, storage medium and electronic device Expired - Fee Related CN110198418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910579940.3A CN110198418B (en) 2019-06-28 2019-06-28 Image processing method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910579940.3A CN110198418B (en) 2019-06-28 2019-06-28 Image processing method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110198418A CN110198418A (en) 2019-09-03
CN110198418B true CN110198418B (en) 2020-12-22

Family

ID=67755492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910579940.3A Expired - Fee Related CN110198418B (en) 2019-06-28 2019-06-28 Image processing method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110198418B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111479059B (en) * 2020-04-15 2021-08-13 Oppo广东移动通信有限公司 Photographic processing method, device, electronic device and storage medium
CN113873178B (en) * 2020-06-30 2024-03-22 Oppo广东移动通信有限公司 Multimedia processing chip, electronic device and image processing method
CN117880628A (en) * 2021-08-11 2024-04-12 荣耀终端有限公司 Shooting method and related equipment thereof
CN119299814A (en) 2021-10-09 2025-01-10 荣耀终端有限公司 Image processing method and electronic device
CN115967846B (en) * 2021-10-09 2024-09-17 荣耀终端有限公司 Image processing method and electronic equipment
CN115359105B (en) * 2022-08-01 2023-08-11 荣耀终端有限公司 Depth-of-field extended image generation method, device and storage medium
CN117835077A (en) * 2022-09-27 2024-04-05 华为终端有限公司 Shooting method, electronic device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105308947A (en) * 2013-06-13 2016-02-03 核心光电有限公司 Dual aperture zoom digital camera
CN106791377A (en) * 2016-11-29 2017-05-31 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN107395898A (en) * 2017-08-24 2017-11-24 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN109274939A (en) * 2018-09-29 2019-01-25 成都臻识科技发展有限公司 A kind of parking lot entrance monitoring method and system based on three camera modules

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9531961B2 (en) * 2015-05-01 2016-12-27 Duelight Llc Systems and methods for generating a digital image using separate color and intensity data
CN106791376B (en) * 2016-11-29 2019-09-13 Oppo广东移动通信有限公司 Imaging device, control method, control device, and electronic device
CN106454131B (en) * 2016-11-29 2019-09-06 Oppo广东移动通信有限公司 Terminal photographing method and device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105308947A (en) * 2013-06-13 2016-02-03 核心光电有限公司 Dual aperture zoom digital camera
CN106791377A (en) * 2016-11-29 2017-05-31 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN107395898A (en) * 2017-08-24 2017-11-24 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN109274939A (en) * 2018-09-29 2019-01-25 成都臻识科技发展有限公司 A kind of parking lot entrance monitoring method and system based on three camera modules

Also Published As

Publication number Publication date
CN110198418A (en) 2019-09-03

Similar Documents

Publication Publication Date Title
CN110198418B (en) Image processing method, device, storage medium and electronic device
CN110445988B (en) Image processing method, device, storage medium and electronic device
CN109040609B (en) Exposure control method, exposure control device, electronic equipment and computer-readable storage medium
CN110198417A (en) Image processing method, image processing device, storage medium and electronic equipment
CN110381263B (en) Image processing method, device, storage medium and electronic device
CN110213502B (en) Image processing method, device, storage medium and electronic device
CN109993722B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110445989B (en) Image processing method, device, storage medium and electronic device
CN108833804A (en) Imaging method, device and electronic equipment
CN110012227B (en) Image processing method, device, storage medium and electronic device
CN108322669A (en) The acquisition methods and device of image, imaging device, computer readable storage medium and computer equipment
CN110290325B (en) Image processing method, device, storage medium and electronic device
CN109005342A (en) Panoramic shooting method and device and imaging equipment
CN110198419A (en) Image processing method, device, storage medium and electronic device
CN110430370B (en) Image processing method, device, storage medium and electronic device
CN110266954B (en) Image processing method, device, storage medium and electronic device
CN110572584A (en) Image processing method, device, storage medium and electronic device
CN108833802A (en) Exposure control method and device and electronic equipment
CN108833803A (en) Imaging method, device and electronic equipment
CN108900785A (en) Exposure control method and device and electronic equipment
CN110278375B (en) Image processing method, device, storage medium and electronic device
CN110266967B (en) Image processing method, device, storage medium and electronic device
CN110572585B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110266965B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110581957A (en) Image processing method, device, storage medium and electronic 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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201222