[go: up one dir, main page]

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

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

Info

Publication number
CN110874829B
CN110874829B CN201811012444.1A CN201811012444A CN110874829B CN 110874829 B CN110874829 B CN 110874829B CN 201811012444 A CN201811012444 A CN 201811012444A CN 110874829 B CN110874829 B CN 110874829B
Authority
CN
China
Prior art keywords
image
resolution
pixel arrangement
preset
arrangement mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811012444.1A
Other languages
Chinese (zh)
Other versions
CN110874829A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811012444.1A priority Critical patent/CN110874829B/en
Publication of CN110874829A publication Critical patent/CN110874829A/en
Application granted granted Critical
Publication of CN110874829B publication Critical patent/CN110874829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

本公开是关于一种图像处理方法及装置、电子设备及存储介质,所述方法包括:当接收到拍照指令时,利用感光元件同时输出具有第一像素排列方式的第一图像和具有第二像素排列方式的第二图像;其中,在所述第一像素排列方式中同一颜色分量的像素呈正方形阵列分布,所述第二像素排列方式为标准Bayer排列模式;对所述第一图像和所述第二图像进行融合,得到需要显示的图像。本公开技术方案可以使得到的需要显示的图像能够平衡分辨率和感光度,达到画质增强的效果。

Figure 201811012444

The present disclosure relates to an image processing method and device, an electronic device and a storage medium. The method includes: when a photographing instruction is received, using a photosensitive element to simultaneously output a first image with a first pixel arrangement and a second pixel The second image of the arrangement; wherein, in the first pixel arrangement, the pixels of the same color component are distributed in a square array, and the second pixel arrangement is a standard Bayer arrangement; The second image is fused to obtain the image to be displayed. The technical solution of the present disclosure can make the obtained image to be displayed can balance the resolution and the sensitivity, and achieve the effect of image quality enhancement.

Figure 201811012444

Description

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

技术领域technical field

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

背景技术Background technique

相关技术中,手机通过前置摄像头拍摄得到的图像根据环境光照的不同其分辨率也不同。通过调整分辨率,可以实现高亮环境下的高分辨率以及低光照环境下较高的图像质量。然而,高亮环境下为确保图像的高分辨率会损失图像质量,低光照环境下为确保图像质量会损失图像分辨率,因此,相关技术中的拍照方式不能够使照片兼顾图像质量和图像分辨率。In the related art, images captured by the mobile phone through the front camera have different resolutions according to different ambient lighting. By adjusting the resolution, high resolution in bright environments and higher image quality in low light environments can be achieved. However, in a high-brightness environment, the image quality will be lost to ensure the high resolution of the image, and in a low-light environment, the image resolution will be lost to ensure the image quality. Therefore, the photographing method in the related art cannot achieve both image quality and image resolution. Rate.

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开实施例提供一种图像处理方法及装置、电子设备及存储介质,能够平衡图像分辨率和感光度,达到画质增强的效果。In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide an image processing method and device, an electronic device, and a storage medium, which can balance image resolution and sensitivity, and achieve the effect of image quality enhancement.

根据本公开实施例的第一方面,提供一种图像处理方法,包括:According to a first aspect of the embodiments of the present disclosure, an image processing method is provided, including:

当接收到拍照指令时,利用感光元件同时输出具有第一像素排列方式的第一图像和具有第二像素排列方式的第二图像;When receiving the photographing instruction, use the photosensitive element to simultaneously output the first image with the first pixel arrangement and the second image with the second pixel arrangement;

其中,在所述第一像素排列方式中同一颜色分量的像素呈正方形阵列分布,所述第二像素排列方式为标准Bayer排列模式;Wherein, in the first pixel arrangement, the pixels of the same color component are distributed in a square array, and the second pixel arrangement is a standard Bayer arrangement;

对所述第一图像和所述第二图像进行融合,得到需要显示的图像。The first image and the second image are fused to obtain the image to be displayed.

根据本公开实施例的第二方面,提供一种图像处理装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided an image processing apparatus, including:

图像输出模块,用于当接收到拍照指令时,利用感光元件同时输出具有第一像素排列方式的第一图像和具有第二像素排列方式的第二图像;an image output module for simultaneously outputting a first image with a first pixel arrangement and a second image with a second pixel arrangement by using the photosensitive element when a photographing instruction is received;

其中,在所述第一像素排列方式中同一颜色分量的像素呈正方形阵列分布,所述第二像素排列方式为标准Bayer排列模式;Wherein, in the first pixel arrangement, the pixels of the same color component are distributed in a square array, and the second pixel arrangement is a standard Bayer arrangement;

图像融合模块,用于对所述图像输出模块输出到的所述第一图像和所述第二图像进行融合,得到需要显示的图像。An image fusion module, configured to fuse the first image and the second image output by the image output module to obtain an image to be displayed.

根据本公开实施例的第三方面,提供一种电子设备,所述电子设备包括:According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, the electronic device comprising:

感光元件,用于当接收到拍照指令时,同时输出具有第一像素排列方式的第一图像和具有第二像素排列方式的第二图像;其中,在所述第一像素排列方式中同一颜色分量的像素呈正方形阵列分布,所述第二像素排列方式为标准Bayer排列模式;a photosensitive element for simultaneously outputting a first image with a first pixel arrangement and a second image with a second pixel arrangement when receiving a photographing instruction; wherein, in the first pixel arrangement, the same color component The pixels are distributed in a square array, and the second pixel arrangement is a standard Bayer arrangement;

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

处理器,用于对所述第一图像和所述第二图像进行融合,得到需要显示的图像。The processor is configured to fuse the first image and the second image to obtain an image to be displayed.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

通过感光元件的同一颜色分量的四个像素点得到第一图像上的一个像素点,相当于增加了像素点的感光面积,因此可以使第一图像具有低分辨率高感光度;通过对感光元件固有的像素点进行像素重排得到第二图像,相当于保留了感光元件固有的分辨率,可以使第二图像具有高分辨率低感光度;通过对第一图像和第二图像进行融合,可以使得到的需要显示的图像能够平衡分辨率和感光度,达到画质增强的效果。Obtaining one pixel on the first image through four pixels of the same color component of the photosensitive element is equivalent to increasing the photosensitive area of the pixel, so the first image can have low resolution and high sensitivity; The inherent pixel points are rearranged to obtain the second image, which is equivalent to retaining the inherent resolution of the photosensitive element, which can make the second image have high resolution and low sensitivity; by fusing the first image and the second image, it can be The resulting image to be displayed can balance the resolution and sensitivity to achieve the effect of image quality enhancement.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1A是根据一示例性实施例示出的图像处理方法的流程图。FIG. 1A is a flowchart of an image processing method according to an exemplary embodiment.

图1B是图1A所示实施例中的感光元件上的像素排列方式的示意图。FIG. 1B is a schematic diagram of the arrangement of pixels on the photosensitive element in the embodiment shown in FIG. 1A .

图1C是图1A所示实施例中的感光元件的第一像素排列方式的示意图。FIG. 1C is a schematic diagram of a first pixel arrangement of the photosensitive element in the embodiment shown in FIG. 1A .

图1D是图1A所示实施例中的感光元件的第二像素排列方式的示意图。FIG. 1D is a schematic diagram of a second pixel arrangement of the photosensitive element in the embodiment shown in FIG. 1A .

图2是根据另一示例性实施例示出的图像处理方法的流程图。Fig. 2 is a flowchart of an image processing method according to another exemplary embodiment.

图3是如何确定图2所示一示例性实施例的预设分辨率的流程图。FIG. 3 is a flowchart of how to determine the preset resolution of the exemplary embodiment shown in FIG. 2 .

图4A是如何确定图2所示另一示例性实施例的预设分辨率的流程图。FIG. 4A is a flowchart of how to determine the preset resolution of another exemplary embodiment shown in FIG. 2 .

图4B是图4A所示示例性实施例中的设置选项的示意图。FIG. 4B is a schematic diagram of setting options in the exemplary embodiment shown in FIG. 4A .

图5是根据一示例性实施例示出的图像处理装置的框图。FIG. 5 is a block diagram of an image processing apparatus according to an exemplary embodiment.

图6是根据另一示例性实施例示出的图像处理装置的框图。FIG. 6 is a block diagram of an image processing apparatus according to another exemplary embodiment.

图7是根据又一示例性实施例示出的图像处理装置的框图。FIG. 7 is a block diagram of an image processing apparatus according to yet another exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the invention as recited in the appended claims.

图1A是根据一示例性实施例示出的图像处理方法的流程图,图1B是图1A所示实施例中的感光元件上的像素排列方式的示意图,图1C是图1A所示实施例中的感光元件的第一像素排列方式的示意图,图1D是图1A所示实施例中的感光元件的第二像素排列方式的示意图;该图像处理方法可以应用在电子设备(例如:智能手机、平板电脑、数码相机等设备)上,如图1A所示,该图像处理方法包括以下步骤S101-S103:FIG. 1A is a flowchart of an image processing method according to an exemplary embodiment, FIG. 1B is a schematic diagram of an arrangement of pixels on a photosensitive element in the embodiment shown in FIG. 1A , and FIG. 1C is a A schematic diagram of the first pixel arrangement of the photosensitive element, FIG. 1D is a schematic diagram of the second pixel arrangement of the photosensitive element in the embodiment shown in FIG. 1A ; the image processing method can be applied to electronic devices (such as smart phones, tablet computers) , digital cameras and other equipment), as shown in Figure 1A, the image processing method includes the following steps S101-S103:

在步骤S101中,当接收到拍照指令时,利用感光元件同时输出具有第一像素排列方式的第一图像和具有第二像素排列方式的第二图像;其中,在第一像素排列方式中同一颜色分量的像素呈正方形阵列分布,第二像素排列方式为标准Bayer排列模式。In step S101, when a photographing instruction is received, a first image with a first pixel arrangement and a second image with a second pixel arrangement are simultaneously output using the photosensitive element; wherein, in the first pixel arrangement, the same color is The pixels of the component are distributed in a square array, and the second pixel arrangement is a standard Bayer arrangement.

在一实施例中,基于感光元件的第一像素排列方式获取第一图像;在与获取第一图像的同一帧原生图像数据内,基于第二像素排列方式获取第二图像;同时输出第一图像和所述第二图像。In one embodiment, the first image is acquired based on the first pixel arrangement of the photosensitive element; the second image is acquired based on the second pixel arrangement within the same frame of native image data as the first image; and the first image is output simultaneously and the second image.

在一实施例中,正方形阵列可以为N×N的阵列,其中,N大于或者等于2。如图1B所示,以正方形阵列为2×2的正方形阵列为例进行示例性说明,感光元件固有的像素排列模式为四合一(4in1)的像素排列方式,即,将同一颜色分量对应的2×2的阵列作为一个大像素点,则第一图像的分辨率为感光元件的分辨率的四分之一。基于图1B所示的2×2的阵列中的颜色分量,可确定出该2×2的阵列对应的大像素点的颜色分量,进而得到图1C所示的第一像素排列方式,本公开所述的第一像素排列方式可称为Quad Bayer排列模式。在一实施例中,通过感光元件采集如图1B所示的一帧原生图像数据,将原生图像数据转换成图1C所示的第一像素排列方式,得到第一图像。In one embodiment, the square array may be an N×N array, where N is greater than or equal to two. As shown in FIG. 1B , the square array is a 2×2 square array as an example for illustration. The inherent pixel arrangement pattern of the photosensitive element is a four-in-one (4in1) pixel arrangement, that is, the pixel arrangement pattern corresponding to the same color component is The 2×2 array is used as a large pixel point, and the resolution of the first image is a quarter of the resolution of the photosensitive element. Based on the color components in the 2×2 array shown in FIG. 1B , the color components of the large pixels corresponding to the 2×2 array can be determined, and then the first pixel arrangement shown in FIG. 1C can be obtained. The first pixel arrangement described above may be referred to as a Quad Bayer arrangement. In one embodiment, a frame of original image data as shown in FIG. 1B is collected by a photosensitive element, and the original image data is converted into the first pixel arrangement shown in FIG. 1C to obtain the first image.

在一实施例中,标准Bayer排列模式如图1D所示,通过将如图1B所示的原生图像数据按照成图1D所示的第二像素排列方式进行像素重排,得到第二图像。可通过传感器获取的第一图像和第二图像,并通过传感器将第一图像和第二图像同时输出给处理器,处理器执行下述步骤S102。In one embodiment, the standard Bayer arrangement pattern is shown in FIG. 1D , and the second image is obtained by rearranging the pixels of the original image data shown in FIG. 1B according to the second pixel arrangement pattern shown in FIG. 1D . The first image and the second image can be acquired through the sensor, and the first image and the second image can be simultaneously output to the processor through the sensor, and the processor executes the following step S102.

在步骤S102中,对第一图像和所述第二图像进行融合,得到需要显示的图像。In step S102, the first image and the second image are fused to obtain an image to be displayed.

在一实施例中,可以通过对第一图像进行插值运算,得到第一RGB图像,对第二图像进行插值运算,得到第二RGB图像;对第一RGB图像与第二RGB图像进行融合,得到需要在相机应用程序的用户界面上显示的图像。具体的插值算法可参见相关技术的描述,本公开不再详述。In one embodiment, the first RGB image can be obtained by performing an interpolation operation on the first image, the second RGB image can be obtained by performing an interpolation operation on the second image, and the first RGB image and the second RGB image can be fused to obtain The image that needs to be displayed on the user interface of the camera application. For the specific interpolation algorithm, reference may be made to the description of the related art, which will not be described in detail in the present disclosure.

本实施例中,通过感光元件的同一颜色分量的四个像素点得到第一图像上的一个像素点,相当于增加了像素点的感光面积,因此可以使第一图像具有低分辨率高感光度;通过对感光元件固有的像素点进行像素重排得到第二图像,相当于保留了感光元件固有的分辨率,可以使第二图像具有高分辨率低感光度;通过对第一图像和第二图像进行融合,可以使得到的需要显示的图像能够平衡分辨率和感光度,达到画质增强的效果。In this embodiment, one pixel on the first image is obtained from four pixels of the same color component of the photosensitive element, which is equivalent to increasing the photosensitive area of the pixel, so the first image can have low resolution and high sensitivity ; The second image is obtained by rearranging the pixels inherent in the photosensitive element, which is equivalent to retaining the inherent resolution of the photosensitive element, so that the second image can have high resolution and low sensitivity; Fusion of images can make the images to be displayed can balance the resolution and sensitivity, and achieve the effect of image quality enhancement.

下面以具体实施例来说明本公开实施例提供的技术方案。The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.

图2是根据另一示例性实施例示出的图像处理方法的流程图;本实施例利用本公开实施例提供的上述方法,以如何基于第一图像和第二图像生成需要显示的图像为例进行示例性说明,如图2所示,包括如下步骤:FIG. 2 is a flowchart of an image processing method according to another exemplary embodiment; this embodiment uses the above-mentioned method provided by the embodiment of the present disclosure, and takes how to generate an image to be displayed based on the first image and the second image as an example. An exemplary illustration, as shown in Figure 2, includes the following steps:

在步骤S201中,当接收到拍照指令时,利用感光元件同时输出具有第一像素排列方式的第一图像和具有第二像素排列方式的第二图像;其中,在第一像素排列方式中同一颜色分量的像素呈正方形阵列分布,第二像素排列方式为标准Bayer排列模式。In step S201, when a photographing instruction is received, a first image with a first pixel arrangement and a second image with a second pixel arrangement are simultaneously output by using the photosensitive element; wherein, in the first pixel arrangement, the same color is The pixels of the component are distributed in a square array, and the second pixel arrangement is a standard Bayer arrangement.

步骤S201的描述可参见上述图1A所示实施例中的步骤S101的描述,在此不再详述。For the description of step S201, reference may be made to the description of step S101 in the embodiment shown in FIG. 1A above, which will not be described in detail here.

在步骤S202中,将第一图像从第一分辨率放大至预设分辨率,得到第三图像。In step S202, the first image is enlarged from the first resolution to a preset resolution to obtain a third image.

在一实施例中,第一分辨率为感光元件固有的分辨率的四分之一,例如,如图1B所示,感光元件固有的分辨率为16×16,则第一分辨率为4×4。In one embodiment, the first resolution is a quarter of the inherent resolution of the photosensitive element. For example, as shown in FIG. 1B , the inherent resolution of the photosensitive element is 16×16, and the first resolution is 4× 4.

如何确定预设分辨率的描述可参见下面图3和图4A实施例,本实施例先不详述。在一实施例中,对第一图像的放大算法可参见相关技术的描述,本实施例对放大算法不做限制。For a description of how to determine the preset resolution, reference may be made to the following embodiments in FIG. 3 and FIG. 4A , which will not be described in detail in this embodiment. In an embodiment, reference may be made to the description of the related art for the enlargement algorithm of the first image, and the enlargement algorithm is not limited in this embodiment.

在步骤S203中,将第二图像从第二分辨率缩小至预设分辨率,得到第四图像。In step S203, the second image is reduced from the second resolution to a preset resolution to obtain a fourth image.

在一实施例中,对第二图像的缩小算法可参见相关技术的描述,本实施例对缩小算法不做限制。In an embodiment, reference may be made to the description of the related art for the reduction algorithm of the second image, and the reduction algorithm is not limited in this embodiment.

在步骤S204中,对第三图像和第四图像进行融合,得到需要显示的图像。In step S204, the third image and the fourth image are fused to obtain an image to be displayed.

在一实施例中,可以先对第三图像进行插值运算,得到第三图像对应的第五RGB图像;类似地,先对第四图像进行插值运算,得到第四图像对应的第六RGB图像;最后基于第五RGB图像和第六RGB图像进行融合,得到需要显示的图像。In one embodiment, an interpolation operation may be performed on the third image first to obtain a fifth RGB image corresponding to the third image; similarly, an interpolation operation may be performed on the fourth image first to obtain a sixth RGB image corresponding to the fourth image; Finally, fusion is performed based on the fifth RGB image and the sixth RGB image to obtain the image to be displayed.

在一实施例中,还可以对需要显示的图像进行边缘锐化、图像增强等处理,进一步提高用户的视觉体验。In one embodiment, processing such as edge sharpening and image enhancement may also be performed on the image to be displayed, so as to further improve the user's visual experience.

本实施例中,通过将第一图像和第二图像调整到具有相同分辨率的第三图像和第四图像,基于相同分辨率的第三图像和第四图像融合得到需要显示的图像,由于第三图像保留了感光元件采集的原生图像数据的高信噪比,第四图像保留了感光元件采集的原生图像数据的高分辨率,因此基于第三图像和第四图像得到的需要显示的图像仍可兼顾高信噪比和高分辨率,达到画质增强的效果。In this embodiment, by adjusting the first image and the second image to the third image and the fourth image with the same resolution, the image to be displayed is obtained based on the fusion of the third image and the fourth image with the same resolution. The third image retains the high signal-to-noise ratio of the original image data collected by the photosensitive element, and the fourth image retains the high resolution of the original image data collected by the photosensitive element. Therefore, the image to be displayed based on the third image and the fourth image still remains. It can take into account high signal-to-noise ratio and high resolution to achieve the effect of image quality enhancement.

图3是如何确定图2所示一示例性实施例的预设分辨率的流程图;本实施例利用本公开实施例提供的上述方法,以如何确定预设分辨率为例进行示例性说明,如图3所示,包括如下步骤:FIG. 3 is a flowchart of how to determine the preset resolution of the exemplary embodiment shown in FIG. 2 ; this embodiment uses the above-mentioned method provided by the embodiment of the present disclosure, and takes how to determine the preset resolution as an example for illustrative description, As shown in Figure 3, it includes the following steps:

在步骤S301中,检测环境光的光照强度。In step S301, the illumination intensity of ambient light is detected.

在一实施例中,可以通过图像传感器采集的原始图像确定整个图像画面的亮度,基于亮度确定环境光的光照强度。在另一实施例中,可以通过设置在图像传感器所在电子设备上的光线传感器检测环境光的光照强度。In one embodiment, the brightness of the entire image frame may be determined through the raw image collected by the image sensor, and the illumination intensity of the ambient light may be determined based on the brightness. In another embodiment, the illumination intensity of ambient light may be detected by a light sensor disposed on the electronic device where the image sensor is located.

在步骤S302中,基于光照强度、第一分辨率和第二分辨率确定预设分辨率。In step S302, a preset resolution is determined based on the light intensity, the first resolution and the second resolution.

在一实施例中,可以统计出光照强度与预设分辨率的具体值之间的对应关系表,当光照强度大于或者等于第一阈值时,将预设分辨率的具体值设置为等于第二分辨率,当光照强度小于或者等于第二阈值时,将预设分辨率的具体值设置为等于第一分辨率,当光照强度小于第一阈值并且大于第二阈值时,根据光照强度与预设分辨率之间的对应关系表,查找到与光照强度对应的预设分辨率的具体值,其中,第一阈值大于第二阈值,例如,第一阈值为800勒克斯(Lux),第二阈值为100Lux。对照关系表可参见如下表1。In one embodiment, a correspondence table between the illumination intensity and the specific value of the preset resolution can be counted, and when the illumination intensity is greater than or equal to the first threshold, the specific value of the preset resolution is set equal to the second threshold. Resolution, when the light intensity is less than or equal to the second threshold, the specific value of the preset resolution is set equal to the first resolution, when the light intensity is less than the first threshold and greater than the second threshold, according to the light intensity and the preset The correspondence table between resolutions, find out the specific value of the preset resolution corresponding to the light intensity, where the first threshold is greater than the second threshold, for example, the first threshold is 800 lux (Lux), and the second threshold is 100Lux. The comparison table can be found in Table 1 below.

光照强度light intensity 预设分辨率的具体值The specific value of the preset resolution <100Lux<100Lux 2560×19202560×1920 150Lux150Lux 2000×10002000×1000 750Lux750Lux 5000×30005000×3000 >800Lux>800Lux 5120×38405120×3840

表1Table 1

基于光照强度与第一阈值和第二阈值之间的大小关系、第一分辨率、第二分辨率,确定预设分辨率,可以确保需要显示的图像的分辨率能够随着光照强度变化,同时还可以确保需要显示的图像能够呈现出较好的图像质量并具有较高的分辨率。The preset resolution is determined based on the size relationship between the light intensity and the first threshold and the second threshold, the first resolution, and the second resolution, which can ensure that the resolution of the image to be displayed can change with the light intensity, and at the same time It can also ensure that the images to be displayed can present better image quality and have higher resolution.

可以在执行图2所示实施例中的步骤S203之前执行本实施例,也可以在执行步骤S201-步骤S202任一步骤时执行本实施例,本公开对得到第三分辨率的时机不做限制,只要能够确保在执行步骤S203时能够有一个合理的预设分辨率即可。This embodiment can be executed before step S203 in the embodiment shown in FIG. 2 is executed, and this embodiment can also be executed when any step from step S201 to step S202 is executed. The present disclosure does not limit the timing of obtaining the third resolution. , as long as it can be ensured that a reasonable preset resolution can be obtained when step S203 is executed.

本实施例中,基于光照强度、第一分辨率和第二分辨率确定预设分辨率,当光照强度不同时,得到的预设分辨率也不同,进而由至少一帧第三图像和至少一帧第四图像融合得到的需要显示的图像的分辨率也会随着光照强度的不同而变化,当光照强度高时,需要显示的图像可以有较高的分辨率,当光照强度低时,需要显示的图像可以有较高的清晰度和信噪比,由此可确保需要显示的图像能够随着光照强度的不同具有较佳的分辨率和信噪比。In this embodiment, the preset resolution is determined based on the illumination intensity, the first resolution, and the second resolution. When the illumination intensity is different, the obtained preset resolution is also different, and then the at least one third image and the at least one frame are used to determine the preset resolution. The resolution of the image to be displayed obtained by the fusion of the fourth image of the frame will also vary with the light intensity. When the light intensity is high, the image to be displayed can have a higher resolution. When the light intensity is low, it needs to The displayed image can have high definition and signal-to-noise ratio, thereby ensuring that the image to be displayed can have better resolution and signal-to-noise ratio with different light intensity.

图4A是如何确定图2所示另一示例性实施例的预设分辨率的流程图,图4B是图4A所示示例性实施例中的设置选项的示意图,本实施例利用本公开实施例提供的上述方法,以如何确定预设分辨率为例进行示例性说明;如图4A所示,包括如下步骤:FIG. 4A is a flowchart of how to determine the preset resolution of another exemplary embodiment shown in FIG. 2 , and FIG. 4B is a schematic diagram of setting options in the exemplary embodiment shown in FIG. 4A . This embodiment utilizes the embodiments of the present disclosure. The above-mentioned method is provided by taking how to determine the preset resolution as an example to illustrate; as shown in FIG. 4A , it includes the following steps:

在步骤S401中,在当前显示的图像预览界面上显示用于设置第三分辨率的提示框。In step S401, a prompt box for setting the third resolution is displayed on the currently displayed image preview interface.

在步骤S402中,检测用户在提示框中输入的分辨率,将输入的分辨率确定为预设分辨率。In step S402, the resolution input by the user in the prompt box is detected, and the input resolution is determined as the preset resolution.

如图4B所示,在当前显示的图像预览界面上,可以显示提示框41,提示框41中的内容用于提示用户在拍照完毕后生成的照片的分辨率。当用户通过提示框设置了预设分辨率的具体值后,用户触发拍照按键后,生成的照片的分辨率为预设分辨率。As shown in FIG. 4B , on the currently displayed image preview interface, a prompt box 41 may be displayed, and the content in the prompt box 41 is used to prompt the user of the resolution of the photo generated after taking the photo. After the user sets the specific value of the preset resolution through the prompt box, and after the user triggers the photo button, the resolution of the generated photo is the preset resolution.

本实施例中,通过用户界面的方式设置预设分辨率,可以使用户能够根据其具体需求选择合适的照片分辨率,提高用户拍照的体验。In this embodiment, the preset resolution is set by means of a user interface, so that the user can select an appropriate photo resolution according to his specific needs, thereby improving the user's experience of taking photos.

在上述图3和图4A所示实施例中,可以在执行图2所示实施例中的步骤S203之前执行图3和图4A所示实施例,也可以在执行步骤S201-步骤S202任一步骤时执行本实施例,本公开对得到预设分辨率的时间点不做限制,只要能够确保在执行步骤S203时能够有一个合理的预设分辨率即可。In the above-mentioned embodiments shown in FIG. 3 and FIG. 4A , the embodiment shown in FIG. 3 and FIG. 4A may be executed before step S203 in the embodiment shown in FIG. 2 is executed, or any step from step S201 to step S202 may be executed. This embodiment is executed when the present disclosure does not limit the time point at which the preset resolution is obtained, as long as a reasonable preset resolution can be ensured when step S203 is executed.

图5是根据一示例性实施例示出的图像处理装置的框图,如图5所示,图像处理装置包括:FIG. 5 is a block diagram of an image processing apparatus according to an exemplary embodiment. As shown in FIG. 5 , the image processing apparatus includes:

图像输出模块51,用于当接收到拍照指令时,利用感光元件同时输出具有第一像素排列方式的第一图像和具有第二像素排列方式的第二图像;The image output module 51 is used for simultaneously outputting the first image with the first pixel arrangement and the second image with the second pixel arrangement by using the photosensitive element when receiving the photographing instruction;

其中,在第一像素排列方式中同一颜色分量的像素呈正方形阵列分布,第二像素排列方式为标准Bayer排列模式;Wherein, in the first pixel arrangement, the pixels of the same color component are distributed in a square array, and the second pixel arrangement is a standard Bayer arrangement;

图像融合模块52,用于对图像输出模块51输出的第一图像和第二图像进行融合,得到需要显示的图像。The image fusion module 52 is configured to fuse the first image and the second image output by the image output module 51 to obtain the image to be displayed.

图6是根据另一示例性实施例示出的图像处理装置的框图,如图6所示,在上述图5所示实施例的基础上,图像融合模块52可包括:FIG. 6 is a block diagram of an image processing apparatus according to another exemplary embodiment. As shown in FIG. 6 , on the basis of the embodiment shown in FIG. 5 above, the image fusion module 52 may include:

放大单元521,用于将第一图像从第一分辨率放大至预设分辨率,得到第三图像;an enlarging unit 521, configured to enlarge the first image from the first resolution to a preset resolution to obtain a third image;

缩小单元522,用于第二图像从第二分辨率缩小至预设分辨率,得到第四图像;a reducing unit 522, for reducing the second image from the second resolution to the preset resolution to obtain a fourth image;

融合单元523,用于对放大单元521得到的第三图像和缩小单元522得到的第四图像进行融合,得到需要显示的图像。The fusion unit 523 is configured to fuse the third image obtained by the enlargement unit 521 and the fourth image obtained by the reduction unit 522 to obtain the image to be displayed.

在一实施例中,装置还包括:In one embodiment, the apparatus further includes:

第一检测模块53,用于检测环境光的光照强度;The first detection module 53 is used to detect the illumination intensity of ambient light;

确定模块54,用于基于第一检测模块53检测到的光照强度、第一分辨率和第二分辨率确定预设分辨率。The determination module 54 is configured to determine a preset resolution based on the light intensity, the first resolution and the second resolution detected by the first detection module 53 .

在一实施例中,装置还包括:In one embodiment, the apparatus further includes:

显示模块55,用于在显示图像的预览界面上显示用于设置预设分辨率的提示框;A display module 55, configured to display a prompt box for setting the preset resolution on the preview interface of the displayed image;

第二检测模块56,用于检检测显示模块55显示的提示框中输入的分辨率,将输入的分辨率确定为预设分辨率。The second detection module 56 is configured to detect the resolution input in the prompt box displayed by the display module 55, and determine the input resolution as the preset resolution.

在一实施例中,图像输出模块51可包括:In one embodiment, the image output module 51 may include:

第一获取单元511,用于基于感光元件的第一像素排列方式获取第一图像;a first acquiring unit 511, configured to acquire a first image based on a first pixel arrangement of the photosensitive element;

第二获取单元512,用于在与第一获取单元511获取第一图像的同一帧原生图像数据内,基于第二像素排列方式获取第二图像;The second obtaining unit 512 is configured to obtain the second image based on the second pixel arrangement in the same frame of native image data obtained by the first obtaining unit 511;

输出单元513,用于同时输出第一获取单元获取到的第一图像和第二获取单元获取到的第二图像。The output unit 513 is configured to simultaneously output the first image obtained by the first obtaining unit and the second image obtained by the second obtaining unit.

在一实施例中,第一像素排列方式为Quad Bayer排列模式。In one embodiment, the first pixel arrangement is a Quad Bayer arrangement.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be described in detail here.

图7是根据又一示例性实施例示出的照片生成装置的框图。例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 7 is a block diagram of a photo generating apparatus according to yet another exemplary embodiment. For example, apparatus 700 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图7,装置700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)的接口712,传感器组件714,以及通信组件716。7, the apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power supply component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, And the communication component 716 .

处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件702可以包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing element 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Additionally, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.

存储器704被配置为存储各种类型的数据以支持在设备700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 704 is configured to store various types of data to support operation at device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and the like. Memory 704 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电力组件706为装置700的各种组件提供电力。电力组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电力相关联的组件。Power component 706 provides power to various components of device 700 . Power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 700 .

多媒体组件708包括在所述装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当设备700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 708 includes a front-facing camera and/or a rear-facing camera. When the device 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。Audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a microphone (MIC) that is configured to receive external audio signals when device 700 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 704 or transmitted via communication component 716 . In some embodiments, audio component 710 also includes a speaker for outputting audio signals.

I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到设备700的打开/关闭状态,组件的相对定位,例如所述组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of device 700 . For example, the sensor assembly 714 can detect the open/closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, and the sensor assembly 714 can also detect a change in the position of the device 700 or a component of the device 700 , the presence or absence of user contact with the device 700 , the orientation or acceleration/deceleration of the device 700 and the temperature change of the device 700 . Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件716被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 716 is configured to facilitate wired or wireless communication between apparatus 700 and other devices. Device 700 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,传感器组件614中还可包括感光元件,用于当接收到拍照指令时,同时输出具有第一像素排列方式的第一图像和具有第二像素排列方式的第二图像;其中,在第一像素排列方式中同一颜色分量的像素呈正方形阵列分布,第二像素排列方式为标准Bayer排列模式。处理器720对第一图像和第二图像进行融合,得到需要显示的图像。In an exemplary embodiment, the sensor assembly 614 may further include a photosensitive element for simultaneously outputting a first image with a first pixel arrangement and a second image with a second pixel arrangement when a photographing instruction is received; The pixels of the same color component are distributed in a square array in the first pixel arrangement, and the second pixel arrangement is a standard Bayer arrangement. The processor 720 fuses the first image and the second image to obtain an image to be displayed.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括计算机指令的存储器704。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as memory 704 including computer instructions, is also provided. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. An image processing method, characterized in that the method comprises:
when a photographing instruction is received, simultaneously outputting a first image with a first pixel arrangement mode and a second image with a second pixel arrangement mode by using a photosensitive element;
the pixels with the same color component in the first pixel arrangement mode are distributed in a square array mode, and the second pixel arrangement mode is a standard Bayer arrangement mode;
adjusting a first resolution of the first image and a second resolution of the second image to preset resolutions respectively; wherein the preset resolution is determined based on the illumination intensity of the ambient light, the first resolution, and the second resolution;
and fusing the first image with the adjusted resolution and the second image with the adjusted resolution to obtain an image to be displayed.
2. The method of claim 1, wherein the adjusting the first resolution of the first image and the second resolution of the second image to preset resolutions respectively comprises:
amplifying the first image from a first resolution to a preset resolution;
and reducing the second image from the second resolution to the preset resolution.
3. The method of claim 1, further comprising:
and detecting the illumination intensity of the ambient light to obtain the illumination intensity.
4. The method of claim 2, further comprising:
displaying a prompt box for setting the preset resolution on a preview interface for displaying an image;
and detecting the resolution input in the prompt box, and determining the input resolution as the preset resolution.
5. The method of claim 1, wherein outputting a first image having a first pixel arrangement and a second image having a second pixel arrangement simultaneously using a photosensitive element comprises:
acquiring a first image based on a first pixel arrangement mode of a photosensitive element;
acquiring a second image based on the second pixel arrangement mode in the same frame of original image data as the first image;
outputting the first image and the second image simultaneously.
6. The method of any of claims 1-5, wherein the first pixel arrangement is a Quad Bayer arrangement pattern.
7. An image processing apparatus, characterized in that the apparatus comprises:
the image output module is used for outputting a first image with a first pixel arrangement mode and a second image with a second pixel arrangement mode simultaneously by using the photosensitive element when receiving a photographing instruction;
the first pixel arrangement mode is a Quad Bayer arrangement mode, and the second pixel arrangement mode is a standard Bayer arrangement mode;
the image fusion module is used for adjusting the first resolution of the first image and the second resolution of the second image to preset resolutions respectively; wherein the preset resolution is determined based on the illumination intensity of the ambient light, the first resolution, and the second resolution; and fusing the first image with the adjusted resolution and the second image with the adjusted resolution to obtain an image to be displayed.
8. The apparatus of claim 7, wherein the image fusion module comprises:
the amplifying unit is used for amplifying the first image from a first resolution to a preset resolution;
a reducing unit, configured to reduce the second image from a second resolution to the preset resolution.
9. The apparatus of claim 8, further comprising:
the first detection module is used for detecting the illumination intensity of the ambient light to obtain the illumination intensity.
10. The apparatus of claim 8, further comprising:
the display module is used for displaying a prompt box for setting the preset resolution on a preview interface for displaying an image;
and the second detection module is used for detecting the resolution input in the prompt box displayed by the display module and determining the input resolution as the preset resolution.
11. The apparatus of claim 7, wherein the image output module comprises:
a first acquisition unit configured to acquire a first image based on a first pixel arrangement of the photosensitive element;
a second acquisition unit configured to acquire a second image based on the second pixel arrangement in the same frame of raw image data as the first image acquired by the first acquisition unit;
and the output unit is used for simultaneously outputting the first image acquired by the first acquisition unit and the second image acquired by the second acquisition unit.
12. The device according to any one of claims 7-11, wherein the first pixel arrangement is a Quad Bayer arrangement pattern.
13. An electronic device, characterized in that the electronic device comprises:
the photosensitive element is used for simultaneously outputting a first image with a first pixel arrangement mode and a second image with a second pixel arrangement mode when receiving a photographing instruction; pixels of the same color component in the first pixel arrangement mode are distributed in a square array mode, and the second pixel arrangement mode is a standard Bayer arrangement mode;
a memory for storing processor-executable instructions;
the processor is used for respectively adjusting the first resolution of the first image and the second resolution of the second image to preset resolutions; wherein the preset resolution is determined based on the illumination intensity of the ambient light, the first resolution, and the second resolution;
and fusing the first image with the adjusted resolution and the second image with the adjusted resolution to obtain an image to be displayed.
CN201811012444.1A 2018-08-31 2018-08-31 Image processing method and device, electronic device and storage medium Active CN110874829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811012444.1A CN110874829B (en) 2018-08-31 2018-08-31 Image processing method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811012444.1A CN110874829B (en) 2018-08-31 2018-08-31 Image processing method and device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN110874829A CN110874829A (en) 2020-03-10
CN110874829B true CN110874829B (en) 2022-10-14

Family

ID=69715515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811012444.1A Active CN110874829B (en) 2018-08-31 2018-08-31 Image processing method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110874829B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125237B (en) * 2021-11-30 2024-11-26 维沃移动通信有限公司 Image sensor, camera module, electronic device, image acquisition method and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102948141A (en) * 2010-05-28 2013-02-27 索尼公司 Imaging device and imaging method
CN104737527A (en) * 2012-09-19 2015-06-24 富士胶片株式会社 Image processing device, imaging device, image processing method, and image processing program
CN105611185A (en) * 2015-12-18 2016-05-25 广东欧珀移动通信有限公司 Image generation method, device and terminal equipment
CN106412407A (en) * 2016-11-29 2017-02-15 广东欧珀移动通信有限公司 Control method, control device and electronic device
WO2018137267A1 (en) * 2017-01-25 2018-08-02 华为技术有限公司 Image processing method and terminal apparatus
CN108377369A (en) * 2018-02-05 2018-08-07 中国科学院长春光学精密机械与物理研究所 The Binning methods of Bayer format coloured image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102948141A (en) * 2010-05-28 2013-02-27 索尼公司 Imaging device and imaging method
CN104737527A (en) * 2012-09-19 2015-06-24 富士胶片株式会社 Image processing device, imaging device, image processing method, and image processing program
CN105611185A (en) * 2015-12-18 2016-05-25 广东欧珀移动通信有限公司 Image generation method, device and terminal equipment
CN106412407A (en) * 2016-11-29 2017-02-15 广东欧珀移动通信有限公司 Control method, control device and electronic device
WO2018137267A1 (en) * 2017-01-25 2018-08-02 华为技术有限公司 Image processing method and terminal apparatus
CN108377369A (en) * 2018-02-05 2018-08-07 中国科学院长春光学精密机械与物理研究所 The Binning methods of Bayer format coloured image

Also Published As

Publication number Publication date
CN110874829A (en) 2020-03-10

Similar Documents

Publication Publication Date Title
CN107038037B (en) Display mode switching method and device
US9674395B2 (en) Methods and apparatuses for generating photograph
US9661223B2 (en) Method and device for photographing including camera shake
CN105159640B (en) Display interface rotating method and device and mobile terminal
CN111462701A (en) Backlight brightness adjustment method and device
CN105245775A (en) Method and device for camera imaging, and mobile terminal
CN108122195B (en) Image processing method and device
CN112331158B (en) Terminal display adjustment method, device, equipment and storage medium
CN106775235B (en) Screen wallpaper display method and device
CN110876014B (en) Image processing method and device, electronic device and storage medium
CN114979321A (en) Display method, device, terminal and storage medium for notification information
CN106982327B (en) Image processing method and device
CN106339705A (en) Image acquisition method and device
CN111835941A (en) Image generation method and apparatus, electronic device, computer-readable storage medium
CN110874829B (en) Image processing method and device, electronic device and storage medium
CN114422687A (en) Preview image switching method and device, electronic equipment and storage medium
CN111383608A (en) Display control method and apparatus, electronic device, and computer-readable storage medium
CN108962189A (en) Luminance regulating method and device
CN111277754B (en) Mobile terminal shooting method and device
CN112188111B (en) Photographing method and device, terminal and storage medium
CN109389547B (en) Image display method and device
CN112087570B (en) Image shooting method and device, electronic equipment and readable storage medium
CN110876015B (en) Method and device for determining image resolution, electronic device and storage medium
CN110876013B (en) Method and device for determining image resolution, electronic equipment and storage medium
CN111835977A (en) Image sensor, image generation method and device, electronic device, storage medium

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