[go: up one dir, main page]

CN115776606A - Sensor, camera module, electronic device and image processing method - Google Patents

Sensor, camera module, electronic device and image processing method Download PDF

Info

Publication number
CN115776606A
CN115776606A CN202211457187.9A CN202211457187A CN115776606A CN 115776606 A CN115776606 A CN 115776606A CN 202211457187 A CN202211457187 A CN 202211457187A CN 115776606 A CN115776606 A CN 115776606A
Authority
CN
China
Prior art keywords
filter
rgb
filters
sensor
image
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.)
Granted
Application number
CN202211457187.9A
Other languages
Chinese (zh)
Other versions
CN115776606B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202211457187.9A priority Critical patent/CN115776606B/en
Publication of CN115776606A publication Critical patent/CN115776606A/en
Application granted granted Critical
Publication of CN115776606B publication Critical patent/CN115776606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Television Image Signal Generators (AREA)

Abstract

本申请公开了一种传感器、摄像头模组、电子设备和图像处理方法,其中传感器包括:滤光片单元,滤光片单元包括RGB滤光片和多种窄带滤光片,多种窄带滤光片的带宽在预设光谱范围内连续,预设光谱范围包括可见光谱;像素单元,像素单元包括多个感光像素,像素单元的任一个感光像素设置于滤光片单元的RGB滤光片或窄带滤光片的一侧;其中,RGB滤光片用于获取RGB图像信息,多种窄带滤光片用于获取多光谱信息。

Figure 202211457187

The application discloses a sensor, a camera module, electronic equipment and an image processing method, wherein the sensor includes: a filter unit, the filter unit includes RGB filters and a variety of narrow-band filters, and a variety of narrow-band filters The bandwidth of the chip is continuous in the preset spectral range, and the preset spectral range includes the visible spectrum; the pixel unit, the pixel unit includes a plurality of photosensitive pixels, and any photosensitive pixel of the pixel unit is set on the RGB filter or the narrow band of the filter unit One side of the filter; among them, the RGB filter is used to obtain RGB image information, and a variety of narrow-band filters are used to obtain multi-spectral information.

Figure 202211457187

Description

传感器、摄像头模组、电子设备和图像处理方法Sensor, camera module, electronic device and image processing method

技术领域technical field

本申请属于成像技术领域,具体涉及一种传感器、摄像头模组、电子设备和图像处理方法。The present application belongs to the field of imaging technology, and specifically relates to a sensor, a camera module, electronic equipment and an image processing method.

背景技术Background technique

随着成像技术的不断发展,电子设备的拍摄功能与专业拍摄设备的拍摄功能间的差距逐渐缩小。而为了实现拍摄成像,电子设备中设置有图像传感器,该图像传感器能够通过彩色滤光片实现颜色的筛选,并借此对环境光进行捕捉、还原得到所在环境的图像。但相关技术中的图像传感器仅能记录拍摄瞬间的画面亮度,而忽略了环境场景中的光源对图像的影响,使得最终得到的图像画面和人眼感知的图像差异较大。With the continuous development of imaging technology, the gap between the shooting function of electronic equipment and that of professional shooting equipment is gradually narrowing. In order to realize shooting and imaging, an image sensor is installed in the electronic device, and the image sensor can realize color screening through a color filter, and thereby capture and restore the ambient light to obtain an image of the environment where it is located. However, the image sensor in the related art can only record the brightness of the image at the moment of shooting, and ignores the influence of the light source in the environment scene on the image, so that the finally obtained image is quite different from the image perceived by human eyes.

发明内容Contents of the invention

本申请旨在提供一种传感器、摄像头模组、电子设备和图像处理方法,旨在提供一种能够获取环境中真实光谱信息的图像数据采集方案。The present application aims to provide a sensor, camera module, electronic equipment and image processing method, aiming to provide an image data acquisition scheme capable of obtaining real spectral information in the environment.

第一方面,本申请实施例提出了一种传感器,包括:In the first aspect, the embodiment of the present application proposes a sensor, including:

滤光片单元,所述滤光片单元包括RGB滤光片和多种窄带滤光片,所述多种窄带滤光片的带宽在预设光谱范围内连续,所述预设光谱范围包括可见光谱;A filter unit, the filter unit includes an RGB filter and a variety of narrow-band filters, the bandwidth of the various narrow-band filters is continuous in a preset spectral range, and the preset spectral range includes visible spectrum;

像素单元,所述像素单元包括多个感光像素,所述像素单元的任一个所述感光像素设置于所述RGB滤光片或所述窄带滤光片的一侧;A pixel unit, the pixel unit includes a plurality of light-sensitive pixels, any one of the light-sensitive pixels of the pixel unit is arranged on one side of the RGB filter or the narrow-band filter;

其中,所述RGB滤光片用于获取RGB图像信息,所述多种窄带滤光片用于获取多光谱信息。Wherein, the RGB filter is used to obtain RGB image information, and the various narrow-band filters are used to obtain multi-spectral information.

第二方面,本申请实施例提出了一种摄像头模组,所述摄像头模组包括如上述第一方面的传感器。In the second aspect, the embodiment of the present application provides a camera module, the camera module includes the sensor in the first aspect above.

第三方面,本申请实施例提出了一种电子设备,所述电子设备包括如上述第一方面的传感器。In a third aspect, the embodiment of the present application provides an electronic device, where the electronic device includes the sensor in the first aspect above.

第四方面,本申请实施例还提出了一种图像处理方法,所述图像处理方法应用于第三方面的电子设备,所述方法包括:In the fourth aspect, the embodiment of the present application also proposes an image processing method, the image processing method is applied to the electronic device of the third aspect, and the method includes:

在接收到拍摄指令的情况下,通过所述传感器获得第一图像以及所述第一图像对应的多光谱信息;Obtaining the first image and multispectral information corresponding to the first image through the sensor when the shooting instruction is received;

根据所述多光谱信息,对所述第一图像进行色彩校正。Perform color correction on the first image according to the multispectral information.

在本申请的实施例中,通过在传感器中设置滤光片单元和像素单元,其中滤光片单元包括RGB滤光片和多种窄带滤光片,像素单元中的感光像素与RGB滤光片或窄带滤光片对应设置,而因为滤光片单元中设置有多种窄带滤光片,且该多种窄带滤光片的带宽在预设光谱范围内连续,预设光谱范围包括可见光谱,使得RGB滤光片可以获得RGB图像信息,同时多种窄带滤光片可以获取多光谱信息,由此提供了一种获取环境中真实光谱信息的图像数据采集方案,能够采集得到环境场景中的光源信息,使得后续对拍摄得到的图像处理能够基于真实的光谱信息,间接提升了图像画面的真实感,改善了与人眼感知画面间的差异度。In the embodiment of the present application, by setting the filter unit and the pixel unit in the sensor, wherein the filter unit includes RGB filters and various narrow-band filters, the photosensitive pixels in the pixel unit and the RGB filters Or the corresponding setting of the narrow-band filter, and because the filter unit is provided with a variety of narrow-band filters, and the bandwidth of the various narrow-band filters is continuous in the preset spectral range, and the preset spectral range includes the visible spectrum, The RGB filter can obtain RGB image information, and a variety of narrow-band filters can obtain multi-spectral information, thereby providing an image data acquisition solution for obtaining real spectral information in the environment, which can collect the light source in the environmental scene Information, so that the subsequent image processing obtained by shooting can be based on real spectral information, which indirectly improves the realism of the image and improves the difference between the image and the perception of the human eye.

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

附图说明Description of drawings

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

图1是根据本申请实施例的传感器的一个示意图;Fig. 1 is a schematic diagram of a sensor according to an embodiment of the present application;

图2是根据本申请实施例的传感器中滤光片的一平面结构图;Fig. 2 is a plan view of the filter in the sensor according to the embodiment of the application;

图3是根据本申请实施例的传感器中多种窄带滤光片的频带示意图;3 is a schematic diagram of frequency bands of various narrow-band filters in a sensor according to an embodiment of the present application;

图4是根据本申请实施例的图像处理方法的一流程示意图;FIG. 4 is a schematic flow chart of an image processing method according to an embodiment of the present application;

图5是根据本申请实施例的图像处理方法得到的光谱信息和第一图像的示意图;5 is a schematic diagram of spectral information and a first image obtained by an image processing method according to an embodiment of the present application;

图6是根据本申请实施例提供的一种电子设备的硬件结构示意图;FIG. 6 is a schematic diagram of a hardware structure of an electronic device provided according to an embodiment of the present application;

图7为根据本申请实施例提供的另一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of another electronic device provided according to an embodiment of the present application.

附图标记:Reference signs:

滤光片单元10;RGB滤光片11;窄带滤光片12;基础单位块13;Filter unit 10; RGB filter 11; narrow band filter 12; basic unit block 13;

像素单元20;Pixel unit 20;

红色窄带滤光片R;绿色窄带滤光片G;蓝色窄带滤光片B。Red narrow-band filter R; green narrow-band filter G; blue narrow-band filter B.

具体实施方式Detailed ways

下面将详细描述本申请的实施例,实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Embodiments of the present application will be described in detail below, and examples of the embodiments are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are only for explaining the present application, and should not be construed as limiting the present application. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The features of the terms "first" and "second" in the description and claims of the present application may explicitly or implicitly include one or more of these features. In the description of the present application, unless otherwise specified, "plurality" means two or more. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.

在本申请的描述中,需要理解的是,术语“中心”、“深度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。In the description of this application, it is to be understood that the terms "center", "depth", "upper", "lower", "front", "rear", "left", "right", "vertical", The orientation or positional relationship indicated by "horizontal", "top", "bottom", "inner", "outer", etc. are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the application and simplifying the description, rather than Nothing to indicate or imply that a referenced device or element must have a particular orientation, be constructed, and operate in a particular orientation should therefore not be construed as limiting the application.

多光谱技术区别于传统的红色、绿色和蓝色三通道的数据采集方式,其是将采样频谱按照更精细的窄带带通来进行划分,并对采集到的频谱数据进行复原和处理的技术。Multi-spectral technology is different from the traditional red, green and blue three-channel data acquisition method. It is a technology that divides the sampling spectrum according to a finer narrow-band bandpass, and restores and processes the collected spectral data.

目前,多光谱技术的应用比较受局限,较主流的应用方向大致可以分为两类:一类是做物质检测,比如防晒检测、水果的含糖量、气体的化学成分等,该类应用精度有限,应用范围窄;另一类是通过光谱数据,达到扩展传统RGB图像维度的应用,比如军事监测、天气遥感等,该类应用主要运用于非民用领域。At present, the application of multispectral technology is relatively limited, and the mainstream application directions can be roughly divided into two categories: one is for substance detection, such as sunscreen detection, sugar content of fruits, chemical composition of gases, etc. Limited, narrow application scope; the other is the application of expanding the dimension of traditional RGB images through spectral data, such as military monitoring, weather remote sensing, etc., which are mainly used in non-civilian fields.

这两类应用从技术层面又可以分为检测类和成像类,检测类需要先对检测样本进行预处理,通过大量样本的采样和分类形成数据库,然后通过专业的聚类建模标定,最终才能落地到应用中去。而成像类的应用主要集中在远距离成像方向。These two types of applications can be divided into detection and imaging from the technical level. The detection needs to preprocess the detection samples first, form a database through sampling and classification of a large number of samples, and then pass professional clustering modeling and calibration. Landed in the application. The imaging applications are mainly concentrated in the long-distance imaging direction.

综上,这两类应用距离我们的日常生活比较远,应用价值有限。To sum up, these two types of applications are far away from our daily life, and their application value is limited.

在电子设备的成像技术中,相关的主流图像传感器是通过记录拍照或录像瞬间场景中画面的亮度,然后采用分通道插值的方式还原场景的颜色。但是正是由于图像传感器的采样特性,使得相关技术忽略了场景中光源的信息,且后续算法的处理是一个高维到低维不可逆的降维过程,由此使得最终得到画面和人眼感知的画面的差异度较大。In the imaging technology of electronic equipment, the relevant mainstream image sensor records the brightness of the picture in the scene at the moment of taking pictures or recording, and then restores the color of the scene by means of sub-channel interpolation. However, it is precisely because of the sampling characteristics of the image sensor that the relevant technology ignores the information of the light source in the scene, and the processing of the subsequent algorithm is an irreversible dimensionality reduction process from high-dimensional to low-dimensional, so that the final image and human perception The screens are quite different.

本申请的发明人在对成像技术的研发过程中发现,人眼对于颜色的感知是建立在感知环境光光谱的基础上,电子设备的成像过程的物理基础也应该是对人眼成像过程的拆解和重构。The inventors of this application discovered during the research and development of imaging technology that the human eye’s perception of color is based on the perception of the ambient light spectrum, and the physical basis of the imaging process of electronic equipment should also be the dismantling of the imaging process of the human eye. solution and reconstruction.

而在相关技术中,如果需要获取环境光的光谱信息,通常需要安装两套装置,其中一套用于识别环境光中的光源位置,另一套用于读取该位置的光谱信息。在部署之前,还需要将两套装置进行标定对齐、工作量大,最终得到的光谱信息的稳定性和效果均不佳。However, in related technologies, if spectral information of ambient light needs to be obtained, two sets of devices usually need to be installed, one of which is used to identify the position of the light source in the ambient light, and the other is used to read the spectral information of the position. Before deployment, it is necessary to calibrate and align the two sets of devices, the workload is heavy, and the stability and effect of the finally obtained spectral information are not good.

综上,本申请的发明人发现相关技术中的基于传感器的图像采集和处理方案存在诸多问题,因此有必要研发出一种新的图像采集方案以解决上述问题。To sum up, the inventors of the present application found that there are many problems in the sensor-based image acquisition and processing solutions in the related art, so it is necessary to develop a new image acquisition solution to solve the above problems.

下面结合图1-图3描述本申请实施例的传感器。The sensor of the embodiment of the present application is described below with reference to FIGS. 1-3 .

如图1和图2所示,根据本申请一些实施例的传感器,该传感器可以是基于CMOS(Complementary Metal-Oxide-Semiconductor,互补金属氧化物半导体)的图像传感器。As shown in FIG. 1 and FIG. 2 , the sensor according to some embodiments of the present application may be a CMOS (Complementary Metal-Oxide-Semiconductor, Complementary Metal-Oxide-Semiconductor) based image sensor.

该传感器中可以包括滤光片单元10和像素单元20,滤光片单元10和像素单元20均可以包括多个,由此对应构成滤光片阵列和像素阵列。滤光片单元10和像素单元20可以对应是滤光片阵列和像素阵列中的最小重复单元,也可以是最小重复单元的倍数。The sensor may include a filter unit 10 and a pixel unit 20, and each of the filter unit 10 and the pixel unit 20 may include a plurality, thereby correspondingly forming a filter array and a pixel array. The filter unit 10 and the pixel unit 20 may correspond to the smallest repeating unit in the filter array and the pixel array, or may be a multiple of the smallest repeating unit.

上述滤光片单元10,可以包括RGB滤光片11和多种窄带滤光片12,多种窄带滤光片12的带宽在预设光谱范围内连续,预设光谱范围可以包括可见光谱。示例性地,预设光谱范围可以是400nm-700nm的可见光范围。The above-mentioned filter unit 10 may include RGB filters 11 and various narrow-band filters 12. The bandwidths of the various narrow-band filters 12 are continuous within a preset spectral range, and the preset spectral range may include the visible spectrum. Exemplarily, the preset spectral range may be a visible light range of 400nm-700nm.

其中,RGB滤光片11可以为成像得到RGB图像信息时所需使用的滤光片。上述RGB滤光片11可以用于RGB图像信息的正常采集,RGB滤光片11可以为彩色滤光片,示例性地,RGB滤光片11可以包括红色滤光片R、绿色滤光片G和蓝色滤光片B中的至少一种。在一些可选示例中,RGB滤光片11中绿色滤光片G的数量可以最多。Wherein, the RGB filter 11 may be a filter required for imaging to obtain RGB image information. Above-mentioned RGB filter 11 can be used for the normal collection of RGB image information, and RGB filter 11 can be color filter, exemplary, RGB filter 11 can comprise red filter R, green filter G and at least one of blue filter B. In some optional examples, the number of green filters G in the RGB filters 11 may be the largest.

窄带滤光片12是带通滤光片的一种,其能够在特定的波段允许光信号通过,而偏离特定波段以外的两侧光信号被阻止。窄带滤光片12的半峰宽可以小于RGB滤光片11的半峰宽。The narrow-band filter 12 is a kind of band-pass filter, which can allow optical signals in a specific wavelength band to pass through, while blocking optical signals on both sides that deviate from the specific wavelength band. The half width of the narrow band filter 12 may be smaller than the half width of the RGB filter 11 .

在本申请示例中,多种窄带滤光片12可以指多光谱窄带滤光片,多种窄带滤光片12在光路传输时构成了多光谱信号的通道,该多光谱信号通道的数量与窄带滤光片12的种类数量相关。In the example of the present application, various narrow-band filters 12 may refer to multi-spectral narrow-band filters, and various narrow-band filters 12 constitute the channels of multi-spectral signals when the optical path is transmitted, and the number of the multi-spectral signal channels is related to the narrow band The types and quantities of the optical filters 12 are related.

上述像素单元20,可以包括多个感光像素,像素单元20的任一个感光像素可以设置于滤光片单元10的RGB滤光片11或窄带滤光片12的一侧。The above-mentioned pixel unit 20 may include a plurality of light-sensitive pixels, and any light-sensitive pixel of the pixel unit 20 may be disposed on one side of the RGB filter 11 or the narrow-band filter 12 of the filter unit 10 .

在一些示例中,每一个像素单元20的任一个感光像素上可以覆盖有滤光片单元10中的RGB滤光片11或窄带滤光片12。In some examples, any photosensitive pixel of each pixel unit 20 may be covered with the RGB filter 11 or the narrowband filter 12 in the filter unit 10 .

上述RGB滤光片11可以用于获取RGB图像信息,多种窄带滤光片12可以用于获取多光谱信息。示例性地,使用传感器时可以经RGB滤光片11获取第一RGB图像信息,并使用多种窄带滤光片12获取第一RGB图像信息对应的多光谱信息。该多光谱信息可以是第一图像信息中的对象的光谱响应曲线。The aforementioned RGB filter 11 can be used to obtain RGB image information, and various narrow-band filters 12 can be used to obtain multi-spectral information. Exemplarily, when a sensor is used, the first RGB image information can be obtained through the RGB filter 11 , and multi-spectral information corresponding to the first RGB image information can be obtained by using various narrow-band filters 12 . The multispectral information may be a spectral response curve of the object in the first image information.

在使用RGB滤光片11获得RGB图像信息的同时,可以利用传感器中设置的多种窄带滤光片12,经过精细的窄带带通,得到可见光范围内的多光谱信息,由此从成像原理出发,对图像传感器的结构进行了改进设置,进而给出了获取环境光光谱的解决方案。该获取的多光谱信息,相比相关技术具有更高的维度,能够在后续算法处理时帮助指导数字信号对拍摄环境进行更好的还原,保证了图像的效果,针对相机摄影创造,动态短视频制作等商业应用方面具有较高的使用价值。While using RGB filter 11 to obtain RGB image information, various narrow-band filters 12 set in the sensor can be used to obtain multi-spectral information in the visible light range through fine narrow-band pass, so starting from the imaging principle , improved the structure of the image sensor, and then gave a solution to obtain the ambient light spectrum. The obtained multi-spectral information has a higher dimension than related technologies, and can help guide the digital signal to better restore the shooting environment during subsequent algorithm processing, ensuring the effect of the image. Created for camera photography, dynamic short video It has high use value in commercial applications such as production.

且整个多光谱信息的捕捉过程通过图像传感器的采样控制即可完成,因此工程前期无需复杂的视场角标定对齐流程,极大地简化了部署难度。And the entire multi-spectral information capture process can be completed through the sampling control of the image sensor, so there is no need for a complicated field of view calibration and alignment process in the early stage of the project, which greatly simplifies the difficulty of deployment.

本申请实施例通过在传感器中设置滤光片单元10和像素单元20,其中滤光片单元10包括RGB滤光片11和多种窄带滤光片12,像素单元20中的感光像素与RGB滤光片11或窄带滤光片12对应设置,而因为滤光片单元10中设置有多种窄带滤光片12,且多种窄带滤光片12的带宽在预设光谱范围内连续,预设光谱包括可见光谱,使得可以使用RGB滤光片11获得RGB图像信息,同时多种窄带滤光片12可以获取多光谱信息,由此提供了一种获取环境中真实光谱信息的图像数据采集方案,能够采集得到环境场景中的光源信息,使得后续对拍摄得到的图像处理能够基于真实的光谱信息,间接提升了图像画面的真实感,改善了与人眼感知画面间的差异度。In the embodiment of the present application, a filter unit 10 and a pixel unit 20 are arranged in the sensor, wherein the filter unit 10 includes an RGB filter 11 and a variety of narrow-band filters 12, and the photosensitive pixels in the pixel unit 20 and the RGB filter The light sheet 11 or the narrowband filter 12 are set correspondingly, and because a variety of narrowband filters 12 are arranged in the filter unit 10, and the bandwidths of the various narrowband filters 12 are continuous in the preset spectral range, the preset The spectrum includes the visible spectrum, so that the RGB image information can be obtained using the RGB filter 11, and multiple narrow-band filters 12 can obtain multi-spectral information, thereby providing an image data acquisition scheme for obtaining real spectral information in the environment, The light source information in the environmental scene can be collected, so that the subsequent image processing can be based on real spectral information, which indirectly improves the realism of the image and improves the difference between the image and the perception of the human eye.

在一些可选示例中,沿垂直于像素单元20的方向(即图1中的X方向),RGB滤光片11和窄带滤光片12可以间隔设置。需要说明的是,在X方向上通过在光路垂直的平面上间隔设置RGB滤光片11和窄带滤光片12,可以使得得到的RGB图像信息与多光谱信息更为匹配,标定度高,间接提升了环境光源位置的精确度。In some optional examples, along the direction perpendicular to the pixel unit 20 (ie, the X direction in FIG. 1 ), the RGB filter 11 and the narrowband filter 12 may be arranged at intervals. It should be noted that, in the X direction, the RGB filter 11 and the narrow-band filter 12 can be arranged at intervals on the plane perpendicular to the optical path, so that the obtained RGB image information can be more matched with the multi-spectral information, and the calibration degree is high, and the indirect Improved the accuracy of ambient light positions.

可选地,沿多个感光像素的行方向或列方向(即图1中的Y方向),任一窄带滤光片12相邻的两个RGB滤光片11的颜色不同。Optionally, along the row direction or the column direction (ie, the Y direction in FIG. 1 ) of the plurality of photosensitive pixels, the colors of two adjacent RGB filters 11 of any narrowband filter 12 are different.

示例性地,请一并参看图1和图2,沿左上角为起点,第一排的第一个RGB滤光片11可以为绿色窄带滤光片G(即图2中的“G”位置),第二个RGB滤光片11可以为红色窄带滤光片R(即图2中的“R”位置),第二排的RGB滤光片11可以依次为蓝色窄带滤光片B(即图2中的“B”位置)、绿色窄带滤光片G,也可以为绿色窄带滤光片G、蓝色窄带滤光片B等等。当然,不同位置的RGB滤光片11也可以替换为其他颜色。Exemplarily, please refer to Figure 1 and Figure 2 together, starting from the upper left corner, the first RGB filter 11 in the first row can be a green narrow-band filter G (that is, the "G" position in Figure 2 ), the second RGB filter 11 can be a red narrow-band filter R (that is, the "R" position in Figure 2), and the second row of RGB filters 11 can be a blue narrow-band filter B in turn ( That is, position "B" in FIG. 2), green narrow-band filter G, or green narrow-band filter G, blue narrow-band filter B, etc. Of course, the RGB filters 11 at different positions can also be replaced with other colors.

在这些实施例中,通过以窄带滤光片12为参考对象,将相邻的两个RGB滤光片11设置为颜色不同,可以提高RGB图像信息的还原度。In these embodiments, by using the narrow-band filter 12 as a reference object and setting two adjacent RGB filters 11 to have different colors, the restoration degree of RGB image information can be improved.

在一些可选示例中,任意RGB滤光片11相邻的两个窄带滤光片12的种类可以不同,示例性地,仍以图2为例进行说明,当滤光片单元10为4*4矩阵排列时,其中RGB滤光片11如图示,可以包括红色窄带滤光片R、蓝色窄带滤光片B和绿色窄带滤光片G。其中还可以包括八种窄带滤光片12,每种窄带滤光片12在滤光片单元10中仅出现一次。In some optional examples, the types of two narrow-band filters 12 adjacent to any RGB filter 11 can be different. Exemplarily, Fig. 2 is still used as an example for illustration, when the filter unit 10 is 4* 4. When arranged in a matrix, the RGB filters 11, as shown in the figure, may include a red narrow-band filter R, a blue narrow-band filter B and a green narrow-band filter G. Eight types of narrowband filters 12 may also be included, and each kind of narrowband filter 12 appears only once in the filter unit 10 .

八种滤光片构成了滤光片单元10中含有多光谱信号的8个通道,可以分别记作α、β、γ、δ、ε、ζ、η、θ,8个通道在包括可见光谱的预设光谱范围内连续,其频谱设计可以参考图3。Eight kinds of optical filters constitute 8 channels containing multispectral signals in the optical filter unit 10, which can be respectively recorded as α, β, γ, δ, ε, ζ, η, θ, and the 8 channels include the visible spectrum. Continuous within the preset spectral range, its spectrum design can refer to Figure 3.

图3中每种灰度的曲线代表一种滤光片在400nm-700nm的可见光范围内的透光度变化情况,8个通道对应在图3中显示为八条曲线。这八条曲线的曲线位置不同且在400nm-700nm的波长范围内是连续的,由此指示不同滤光片的带宽在可见光范围内连续。The curves of each gray scale in Figure 3 represent the transmittance change of a filter in the visible light range of 400nm-700nm, and the eight channels correspond to eight curves in Figure 3 . These eight curves have different curve positions and are continuous in the wavelength range of 400nm-700nm, thus indicating that the bandwidths of different optical filters are continuous in the visible light range.

在这些实施例中,通过以RGB滤光片11为参考对象,将相邻的两个窄带滤光片12的种类设置为不同,能够使得获得的多光谱信息覆盖整个可见光范围,均匀性较佳。In these embodiments, by using the RGB filter 11 as a reference object and setting the types of two adjacent narrow-band filters 12 to be different, the obtained multispectral information can cover the entire visible light range, and the uniformity is better .

在一些可选示例中,两个RGB滤光片11和两种窄带滤光片12按照2*2矩阵排列,由此在滤光片单元10中形成了多个基础单位块13。In some optional examples, two RGB filters 11 and two kinds of narrowband filters 12 are arranged in a 2*2 matrix, thereby forming a plurality of basic unit blocks 13 in the filter unit 10 .

在基础单位块13中,两个RGB滤光片11沿第一对角线方向设置,两个RGB滤光片11颜色相同,两种窄带滤光片12沿第二对角线方向设置,第一对角线方向与第二对角线方向相交。In the basic unit block 13, two RGB filters 11 are arranged along the first diagonal direction, and the two RGB filters 11 have the same color, and two kinds of narrow-band filters 12 are arranged along the second diagonal direction, and the second RGB filter 11 is arranged along the second diagonal direction. A diagonal direction intersects a second diagonal direction.

示例性地,上述第一对角线可以是基础单位块13的副对角线,第二对角线可以是基础单位块13的主对角线。或者,第一对角线可以是基础单位块13的主对角线,第二对角线可以是基础单位块13的副对角线。Exemplarily, the above-mentioned first diagonal line may be the sub-diagonal line of the basic unit block 13 , and the second diagonal line may be the main diagonal line of the basic unit block 13 . Alternatively, the first diagonal may be the main diagonal of the basic unit block 13 , and the second diagonal may be the sub-diagonal of the basic unit block 13 .

示例性地,第一对角线和第二对角线也可以相互垂直。Exemplarily, the first diagonal line and the second diagonal line may also be perpendicular to each other.

还需要的是,第一对角线方向和第二对角线方向也可以是平行于基础单位块13的主副对角线的方向。It is also required that the first diagonal direction and the second diagonal direction may also be directions parallel to the main and auxiliary diagonals of the basic unit block 13 .

请继续参看图2,其中单个滤光片单元10可以包括四个基础单位块13,可以在每个基础单位块13的第二对角线方向放置两种窄带滤光片12,在第一对角线方向再放置相同颜色的两个RGB滤光片11,最终依次排布得到4个基础单位块13组成的滤光片单元10。Please continue to refer to Fig. 2, wherein a single filter unit 10 can include four basic unit blocks 13, two kinds of narrow-band filters 12 can be placed in the second diagonal direction of each basic unit block 13, in the first pair Two RGB filters 11 of the same color are placed in the direction of the corner line, and finally arranged in sequence to obtain a filter unit 10 composed of four basic unit blocks 13 .

在这些实施例中,通过分成多个基础单位块13进行布置,方便滤光片单元10的排布,降低了工艺复杂度,同时能够使得得到的RGB图像信息与多光谱信息更为匹配,标定度高,间接提升了环境光源位置的精确度。In these embodiments, by dividing and arranging a plurality of basic unit blocks 13, the arrangement of the filter units 10 is facilitated, the complexity of the process is reduced, and at the same time, the obtained RGB image information can be more matched with the multi-spectral information, and calibration The high accuracy indirectly improves the accuracy of the position of the ambient light source.

可选地,任意相邻的两个基础单位块13中的RGB滤光片11颜色不同。Optionally, the colors of the RGB filters 11 in any two adjacent basic unit blocks 13 are different.

示例性地,请继续参看图2,在单个滤光片单元10中,左上角的基础单位块13中RGB滤光片11的颜色为绿色(即图2中“G”位置),右上角的基础单位块13中RGB滤光片11的颜色为红色(参考图2中“R”位置),左下角的基础单位块13中RGB滤光片11的颜色为蓝色(即图2中“B”位置),右下角的基础单位块13中RGB滤光片11的颜色为绿色。Exemplarily, please continue to refer to FIG. 2. In a single filter unit 10, the color of the RGB filter 11 in the basic unit block 13 in the upper left corner is green (that is, the “G” position in FIG. 2 ), and the color of the RGB filter 11 in the upper right corner is green. The color of the RGB filter 11 in the basic unit block 13 is red (with reference to the "R" position in Figure 2), and the color of the RGB filter 11 in the basic unit block 13 in the lower left corner is blue (that is, "B" in Figure 2 " position), the color of the RGB filter 11 in the basic unit block 13 in the lower right corner is green.

当然,在另一些示例中,不同位置基础单位块13中RGB滤光片11的颜色也可以进行替换,只要实现相邻基础单位块13中的RGB滤光片11颜色不同即可。Of course, in other examples, the colors of the RGB filters 11 in the basic unit blocks 13 at different positions can also be replaced, as long as the colors of the RGB filters 11 in adjacent basic unit blocks 13 are different.

在这些实施例中,通过相邻基础单位块13中RGB滤光片11的颜色区分设置,帮助提升第一图像的还原度,保证图像的真实性。In these embodiments, the RGB filter 11 in the adjacent basic unit block 13 is set to distinguish colors to help improve the degree of restoration of the first image and ensure the authenticity of the image.

还需要说明的是,多种窄带滤光片12为8种至16种带宽在可见光谱范围内连续的窄带滤光片。上述图2中示出了8种窄带滤光片12时的传感器中滤光片单元10的分布示意图。It should also be noted that the multiple narrow-band filters 12 are 8 to 16 narrow-band filters with continuous bandwidths in the visible spectrum. The above-mentioned FIG. 2 shows a schematic distribution diagram of the filter units 10 in the sensor when there are 8 types of narrow-band filters 12 .

在这些实施例中,通过适当种类的窄带滤光片设置,能够在保证图像还原度和精度的基础上,尽可能降低工艺复杂度,同时保证合适的图像数据处理量。In these embodiments, by setting appropriate types of narrow-band filters, it is possible to reduce the complexity of the process as much as possible on the basis of ensuring image restoration and precision, and at the same time ensure an appropriate amount of image data processing.

上文中结合图1至图3,详细描述了本申请实施例的传感器。在此基础上,本申请实施例还保护一种摄像头模组和电子设备,其中电子设备可以包括壳体和摄像头模组,该摄像头模组可以包括上述任一示例中的传感器。当然,电子设备也可以直接包括上述实施例的传感器。The sensor of the embodiment of the present application is described in detail above with reference to FIG. 1 to FIG. 3 . On this basis, the embodiment of the present application also protects a camera module and an electronic device, wherein the electronic device may include a casing and a camera module, and the camera module may include the sensor in any of the above examples. Of course, the electronic device may also directly include the sensor in the above embodiment.

该电子设备可以是终端,也可以为除终端之外的其他设备。示例性地,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(MobileInternet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The electronic device may be a terminal, or other devices other than the terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (MobileInternet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, robot, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., can also be a server, network attached storage (NetworkAttached Storage, NAS) , a personal computer (personal computer, PC), a television (television, TV), a teller machine, or a self-service machine, etc., which are not specifically limited in this embodiment of the present application.

本申请实施例中的电子设备可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The electronic device in this embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.

该电子设备和摄像头模组包括上述实施例所提供的传感器,因此电子设备和摄像头模组具有上述传感器的全部有益效果,为避免重复,这里不再赘述。The electronic device and the camera module include the sensor provided by the above embodiment, so the electronic device and the camera module have all the beneficial effects of the above sensor, and to avoid repetition, details are not repeated here.

请参看图4,基于上述传感器、摄像头模组和电子设备,本申请实施例还提供一种图像处理方法,该一实施例中,该方法可以包括:Please refer to FIG. 4, based on the above-mentioned sensor, camera module and electronic equipment, the embodiment of the present application also provides an image processing method. In this embodiment, the method may include:

S410,在接收到拍摄指令的情况下,通过传感器获得第一图像以及第一图像对应的多光谱信息。S410. Obtain the first image and multispectral information corresponding to the first image through the sensor when the shooting instruction is received.

S420,根据多光谱信息,对第一图像进行色彩校正。S420. Perform color correction on the first image according to the multispectral information.

需要说明的是,电子设备利用其中的传感器,从获得的第一图像中了解到了所处环境的场景以及空间分布,还借助多种窄带滤光片可以得到场景中的光谱信息。It should be noted that the electronic device knows the scene and the spatial distribution of the environment in which it is located from the obtained first image by using the sensor therein, and also obtains the spectral information in the scene by means of various narrow-band filters.

示例性地,请一并参看图4和图5,经过传感器的采集处理,可以得到第一图像的左上角存在一棵树,还可以得到这棵树的光谱信息(即图5右侧的响应曲线)。Exemplarily, please refer to Fig. 4 and Fig. 5 together. After the acquisition and processing of the sensor, it can be obtained that there is a tree in the upper left corner of the first image, and the spectral information of this tree can also be obtained (that is, the response on the right side of Fig. 5 curve).

以下对上述方案的实现原理进行简要说明:The following is a brief description of the implementation principle of the above scheme:

假设滤光片的量化采样间距为5nm,则传感器的成像模型可由如公式(1)表示。Assuming that the quantitative sampling interval of the optical filter is 5nm, the imaging model of the sensor can be expressed by formula (1).

Figure BDA0003953742710000101
Figure BDA0003953742710000101

求解矩阵方程,即可以通过各窄带通道的灰度响应值和传感器各通道的响应曲线(已知值),计算得到环境的混合谱信息。Solve the matrix equation, that is, the mixed spectrum information of the environment can be calculated through the grayscale response value of each narrowband channel and the response curve (known value) of each channel of the sensor.

其中,由于传感器各通道的响应曲线并不一定是方阵,所以用到了伪逆矩阵。Among them, since the response curve of each channel of the sensor is not necessarily a square matrix, a pseudo-inverse matrix is used.

再结合成像公式即下述公式(2)可知,传感器得到的光谱信息实际上是光源光谱I和物体反射谱R在各波段处内积的混合谱。而由于物体反射谱R本身是个常数,其与光源光谱I内积的结果并不会影响光源光谱I的形状,所以此区域的混合谱信息,就是光源的光谱信息。因此可以通过得到的光谱信息直接进行图像校正处理。Combined with the imaging formula, that is, the following formula (2), it can be seen that the spectral information obtained by the sensor is actually a mixed spectrum of the inner product of the light source spectrum I and the object reflection spectrum R at each band. Since the object reflection spectrum R itself is a constant, the result of its inner product with the light source spectrum I will not affect the shape of the light source spectrum I, so the mixed spectrum information in this area is the light source spectrum information. Therefore, image correction processing can be performed directly through the obtained spectral information.

Figure BDA0003953742710000111
Figure BDA0003953742710000111

其中,I为光源光谱,R为物体反射谱,QE为传感器的量子效率灵敏度,Grayn为第n个光谱通道的灰度值。Among them, I is the spectrum of the light source, R is the reflection spectrum of the object, QE is the quantum efficiency sensitivity of the sensor, and Gray n is the gray value of the nth spectral channel.

还需要说明的是,上述图像的色彩校正可以包括白平衡处理、色差矫正等等,还可以包括色彩校准、图像颜色模式的转换和特殊色彩效果的应用处理。It should also be noted that the above image color correction may include white balance processing, color difference correction, etc., and may also include color calibration, image color mode conversion, and application processing of special color effects.

在这些示例中,电子设备在利用传感器采集得到多光谱信息之后,即可将多光谱信息作为算法的输入,帮助还原第一图像最真实的氛围色彩,进而提升人眼感知和图像显示的一致性。In these examples, after the electronic device collects the multispectral information with the sensor, it can use the multispectral information as the input of the algorithm to help restore the most realistic ambient color of the first image, thereby improving the consistency between human perception and image display .

在一些可选示例中,上述S420的实现过程可以包括步骤A10至A30。In some optional examples, the implementation process of the above S420 may include steps A10 to A30.

A10,对第一图像进行语义分析,得到目标区域,目标区域为第一图像中物体反射率为常数的区域。A10, performing semantic analysis on the first image to obtain a target area, where the target area is an area with a constant reflectance of the object in the first image.

A20,从多光谱信息中提取目标光谱信息,目标光谱信息与目标区域对应。A20, extract target spectral information from the multi-spectral information, where the target spectral information corresponds to the target area.

A30,通过目标光谱信息对目标区域进行色彩校正。A30, perform color correction on the target area through the target spectral information.

在这些示例中,可以通过语义分析得到第一图像中物体反射率为常数的目标区域,该目标区域即是需要进行白平衡处理、色彩校正的区域。可选地,还可以在此基础上,选择物体反射率为常数且置信度最高的区域作为目标区域,由此提高待处理目标区域的精准度。In these examples, a target area with a constant reflectance of the object in the first image can be obtained through semantic analysis, and the target area is an area that requires white balance processing and color correction. Optionally, on this basis, an area with a constant object reflectance and the highest confidence can also be selected as the target area, thereby improving the accuracy of the target area to be processed.

示例性地,该目标区域可以显示为灰色或白色,在实际环境场景中可以是灰色的水泥地、白色墙面等,通过多光谱信息,可以获得目标区域所在位置的目标光谱信息,进而根据目标光谱信息对目标区域进行图像处理,例如可以是白平衡处理、色差校正以及3DLut(3D LookUp Table,3D颜色查找表)处理。由此实现了更为精确的算法适配,帮助更好地还原拍摄得到的第一图像的真实感。For example, the target area can be displayed in gray or white. In the actual environment scene, it can be gray concrete floor, white wall, etc. Through multispectral information, the target spectral information of the location of the target area can be obtained, and then according to the target The spectrum information performs image processing on the target area, such as white balance processing, chromatic aberration correction, and 3DLut (3D LookUp Table, 3D color lookup table) processing. As a result, more precise algorithm adaptation is achieved, helping to better restore the sense of reality of the captured first image.

可选地,如图6所示,本申请实施例还提供一种电子设备600,包括处理器601和存储器602,存储器602上存储有可在所述处理器601上运行的程序或指令,该程序或指令被处理器601执行时实现上述图像处理方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 6 , the embodiment of the present application also provides an electronic device 600, including a processor 601 and a memory 602, and the memory 602 stores programs or instructions that can run on the processor 601. The When the programs or instructions are executed by the processor 601, the steps of the above-mentioned image processing method embodiments can be realized, and the same technical effect can be achieved, so in order to avoid repetition, details are not repeated here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图7为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、以及处理器710等部件。The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710, etc. part.

本领域技术人员可以理解,电子设备700还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 700 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 710 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 7 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .

输入单元704,可以用于在接收到拍摄指令的情况下,通过传感器获得第一图像以及第一图像对应的多光谱信息。The input unit 704 may be configured to obtain the first image and the multispectral information corresponding to the first image through the sensor when the shooting instruction is received.

处理器710,可以用于根据多光谱信息,对第一图像进行色彩校正。The processor 710 may be configured to perform color correction on the first image according to the multispectral information.

可选地,处理器710可以用于对第一图像进行语义分析,得到目标区域,目标区域为第一图像中物体反射率为常数的区域;从多光谱信息中提取目标光谱信息,目标光谱信息与目标区域对应;通过目标光谱信息对目标区域进行色彩校正。Optionally, the processor 710 may be configured to perform semantic analysis on the first image to obtain a target area, where the target area is an area with a constant reflectance of an object in the first image; extract target spectral information from multispectral information, and target spectral information Corresponds to the target area; color correction is performed on the target area through the target spectral information.

应理解的是,本申请实施例中,输入单元704可以包括图形处理器(GraphicsProcessing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元706可包括显示面板7061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板7061。用户输入单元707包括触控面板7071以及其他输入设备7072中的至少一种。触控面板7071,也称为触摸屏。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 is compatible with the image capture device (such as Camera) to process the image data of still pictures or videos. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072 . The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts, a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.

存储器709可用于存储软件程序以及各种数据。存储器709可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器709可以包括易失性存储器或非易失性存储器,或者,存储器709可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccess Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器709包括但不限于这些和任意其它适合类型的存储器。The memory 709 can be used to store software programs as well as various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc. Furthermore, memory 709 may include volatile memory or nonvolatile memory, or, memory 709 may include both volatile and nonvolatile memory. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM) , SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

处理器710可包括一个或多个处理单元;可选地,处理器710集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 710 .

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示意性实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, references to the terms "one embodiment," "some embodiments," "exemplary embodiments," "example," "specific examples," or "some examples" are intended to mean that the implementation A specific feature, structure, material, or characteristic described by an embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

尽管已经示出和描述了本申请的实施例,本领域的普通技术人员可以理解:在不脱离本申请的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本申请的范围由权利要求及其等同物限定。Although the embodiments of the present application have been shown and described, those skilled in the art can understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principle and spirit of the present application. The scope of the application is defined by the claims and their equivalents.

Claims (10)

1. A sensor, comprising:
the filter unit comprises RGB filters and a plurality of narrow-band filters, the bandwidths of the plurality of narrow-band filters are continuous in a preset spectral range, and the preset spectral range comprises a visible spectrum;
a pixel unit including a plurality of photosensitive pixels, any one of the photosensitive pixels of the pixel unit being disposed at one side of the RGB filter or the narrow band filter;
the RGB optical filter is used for acquiring RGB image information, and the multiple kinds of narrow-band optical filters are used for acquiring multispectral information.
2. The sensor of claim 1, wherein along a row direction or a column direction of the plurality of photosensitive pixels, two of the RGB filters adjacent to any of the narrowband filters are different in color.
3. The sensor of claim 1, wherein two RGB filters and two narrowband filters are arranged in a 2*2 matrix as a basic unit block;
in the basic unit block, two RGB optical filters are arranged along a first diagonal direction, two narrow-band optical filters are arranged along a second diagonal direction, and the first diagonal direction is intersected with the second diagonal direction;
the two RGB filters in the basic unit block are the same color.
4. The sensor of claim 3, wherein the RGB filters in any two adjacent basic unit blocks are different in color.
5. The sensor of claim 3, wherein the RGB filter comprises one of a red filter, a green filter, and a blue filter.
6. The sensor of claim 1, wherein the plurality of narrowband filters is 8 to 16 narrowband filters having bandwidths that are contiguous in the visible spectral range.
7. A camera module, characterized in that it comprises a sensor according to any one of claims 1 to 6.
8. An electronic device, characterized in that it comprises a sensor according to any one of claims 1 to 6.
9. An image processing method applied to the electronic device according to claim 8, the method comprising:
under the condition that a shooting instruction is received, a first image and multispectral information corresponding to the first image are obtained through the sensor;
and performing color correction on the first image according to the multispectral information.
10. The method according to claim 9, wherein said color correcting said first image based on said multispectral information comprises:
performing semantic analysis on the first image to obtain a target area, wherein the target area is an area with constant object reflectivity in the first image;
extracting target spectrum information from the multispectral information, wherein the target spectrum information corresponds to the target area;
and carrying out color correction on the target area through the target spectrum information.
CN202211457187.9A 2022-11-21 2022-11-21 Sensor, camera module, electronic device and image processing method Active CN115776606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211457187.9A CN115776606B (en) 2022-11-21 2022-11-21 Sensor, camera module, electronic device and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211457187.9A CN115776606B (en) 2022-11-21 2022-11-21 Sensor, camera module, electronic device and image processing method

Publications (2)

Publication Number Publication Date
CN115776606A true CN115776606A (en) 2023-03-10
CN115776606B CN115776606B (en) 2025-03-18

Family

ID=85389582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211457187.9A Active CN115776606B (en) 2022-11-21 2022-11-21 Sensor, camera module, electronic device and image processing method

Country Status (1)

Country Link
CN (1) CN115776606B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080068475A1 (en) * 2006-09-19 2008-03-20 Samsung Electronics Co., Ltd. Image photographing apparatus, method and medium
FR2929477A1 (en) * 2008-03-25 2009-10-02 E2V Semiconductors Soc Par Act Color camera for delivering still or animated image, has signal processing circuits simultaneously providing infrared image and color image established for each color from subtraction of signals from color and black pixels
US20190306472A1 (en) * 2018-03-28 2019-10-03 Blackmagic Design Pty Ltd Image processing method and filter array
US20200260005A1 (en) * 2019-02-12 2020-08-13 Viavi Solutions Inc. Panoramic image capture for multispectral sensor
CN113676628A (en) * 2021-08-09 2021-11-19 Oppo广东移动通信有限公司 Multispectral sensor, imaging device and image processing method
CN113676629A (en) * 2021-08-09 2021-11-19 Oppo广东移动通信有限公司 Image sensor, image acquisition device, image processing method and image processor
CN113937120A (en) * 2021-10-12 2022-01-14 维沃移动通信有限公司 Multispectral imaging structure and method, multispectral imaging chip and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080068475A1 (en) * 2006-09-19 2008-03-20 Samsung Electronics Co., Ltd. Image photographing apparatus, method and medium
FR2929477A1 (en) * 2008-03-25 2009-10-02 E2V Semiconductors Soc Par Act Color camera for delivering still or animated image, has signal processing circuits simultaneously providing infrared image and color image established for each color from subtraction of signals from color and black pixels
US20190306472A1 (en) * 2018-03-28 2019-10-03 Blackmagic Design Pty Ltd Image processing method and filter array
US20200260005A1 (en) * 2019-02-12 2020-08-13 Viavi Solutions Inc. Panoramic image capture for multispectral sensor
CN113676628A (en) * 2021-08-09 2021-11-19 Oppo广东移动通信有限公司 Multispectral sensor, imaging device and image processing method
CN113676629A (en) * 2021-08-09 2021-11-19 Oppo广东移动通信有限公司 Image sensor, image acquisition device, image processing method and image processor
CN113937120A (en) * 2021-10-12 2022-01-14 维沃移动通信有限公司 Multispectral imaging structure and method, multispectral imaging chip and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马晨光;曹汛;季向阳;戴琼海;: "高分辨率光谱视频采集研究", 电子学报, no. 04, 15 April 2015 (2015-04-15) *

Also Published As

Publication number Publication date
CN115776606B (en) 2025-03-18

Similar Documents

Publication Publication Date Title
US11863878B2 (en) YCBCR pulsed illumination scheme in a light deficient environment
Li et al. Content‐Independent Multi‐Spectral Display Using Superimposed Projections
US8655066B2 (en) Color constancy method and system
US8379976B2 (en) Image processing apparatus and method and a computer-readable recording medium on which an image processing program is stored
EP3925203B1 (en) Image processing apparatus and image processing method thereof
JP7500869B2 (en) White balance correction method, device and electronic device
US7369699B1 (en) Methods and apparatuses for restoring color and enhancing electronic images
CN108986768B (en) Control method
US10187566B2 (en) Method and device for generating images
WO2023098552A1 (en) Image sensor, signal processing method and apparatus, camera module, and electronic device
CN113674685A (en) Control method and device of pixel array, electronic equipment and readable storage medium
WO2023284503A1 (en) Tone mapping method and apparatus for panoramic image
CN116668838A (en) Image processing method and electronic equipment
EP2517172B1 (en) Filter setup learning for binary sensor
CN115776606B (en) Sensor, camera module, electronic device and image processing method
US11900637B2 (en) Image processing method and apparatus, and storage medium
US20100053381A1 (en) Image processing apparatus and method thereof
US20210321029A1 (en) Field variable tone mapping for 360 content
CN111970439A (en) Image processing method and device, terminal and readable storage medium
US20240071333A1 (en) Eye protection method, paper-like display method, device, and computer-readable storage medium
CN115278055A (en) Shooting method, shooting device and electronic equipment
CN112672021B (en) Language recognition method, device and electronic device
CN108712526A (en) A kind of screen and mobile terminal
CN118509718B (en) Image processing method, model training method and related equipment
CN114449244A (en) Image quality adjustment method and 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