[go: up one dir, main page]

CN115589515A - Camera module, electronic equipment and image acquisition method - Google Patents

Camera module, electronic equipment and image acquisition method Download PDF

Info

Publication number
CN115589515A
CN115589515A CN202211213700.XA CN202211213700A CN115589515A CN 115589515 A CN115589515 A CN 115589515A CN 202211213700 A CN202211213700 A CN 202211213700A CN 115589515 A CN115589515 A CN 115589515A
Authority
CN
China
Prior art keywords
image
polarizer
image sensor
camera module
polarization
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.)
Pending
Application number
CN202211213700.XA
Other languages
Chinese (zh)
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 CN202211213700.XA priority Critical patent/CN115589515A/en
Publication of CN115589515A publication Critical patent/CN115589515A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

本申请公开一种摄像头模组、电子设备及图像采集方法,属于摄像技术领域。该摄像头模组包括:壳体和设置于所述壳体内的镜头、滤光片、第一图像传感器、反光镜、第二图像传感器和偏振组件;所述反光镜与所述镜头对应设置,且所述反光镜的反光平面与所述镜头的光轴方向的夹角大于0°且小于90°;所述偏振组件设置于所述反光镜与所述第二图像传感器之间;所述滤光片设置于所述反光镜与所述第一图像传感器之间;入射光线通过所述镜头后,部分透过所述反光镜到达所述第二图像传感器,部分经所述反光镜反射后到达所述第一图像传感器反光镜反光镜。

Figure 202211213700

The application discloses a camera module, electronic equipment and an image acquisition method, which belong to the field of camera technology. The camera module includes: a housing and a lens, a filter, a first image sensor, a mirror, a second image sensor and a polarization assembly arranged in the housing; the mirror is arranged correspondingly to the lens, and The included angle between the reflective plane of the reflective mirror and the optical axis direction of the lens is greater than 0° and less than 90°; the polarizing component is arranged between the reflective mirror and the second image sensor; the filter A sheet is arranged between the reflective mirror and the first image sensor; after passing through the lens, part of the incident light passes through the reflective mirror to reach the second image sensor, and part of the incident light reaches the second image sensor after being reflected by the reflective mirror. The first image sensor mirror mirror.

Figure 202211213700

Description

摄像头模组、电子设备及图像采集方法Camera module, electronic equipment and image acquisition method

技术领域technical field

本申请属于摄像技术领域,具体涉及一种摄像头模组、电子设备及图像采集方法。The application belongs to the technical field of photography, and in particular relates to a camera module, electronic equipment and an image collection method.

背景技术Background technique

随着电子技术的发展,人们对于图像采集的要求越来越高,但是由于一些光滑的非金属表面在一定角度下反射会形成炫目的光,称为偏振光,使得拍摄的图像不清晰。With the development of electronic technology, people have higher and higher requirements for image acquisition, but some smooth non-metallic surfaces reflect at a certain angle to form dazzling light, called polarized light, which makes the captured image unclear.

在一些实例中,采用偏振镜可以滤除偏振光的干扰,使得拍摄的图像色彩更加饱和,但是采用偏振镜也存在一些问题,例如在日出和日落时间或广角镜头上使用偏振镜可能会使天空出现梯度和不均匀,图像影调受到较大影响,而且偏振镜还可能会给图像增加更多的重影和光斑,使得拍摄的图像画质较差。In some instances, using a polarizing filter can filter out the interference of polarized light, making the captured image more saturated in color, but there are also some problems with using a polarizing filter, such as using a polarizing filter at sunrise and sunset times or on a wide-angle lens may make the sky blur Gradients and unevenness appear, and the tone of the image is greatly affected, and the polarizer may also add more ghosting and flare to the image, making the image quality of the shot poor.

发明内容Contents of the invention

本申请实施例提供一种摄像头模组、电子设备及图像采集方法,能够解决相关技术中采用偏振镜滤除偏振光时会影响图像影调、增加重影和光斑,使得拍摄的图像画质较差的问题。The embodiment of the present application provides a camera module, electronic equipment, and an image acquisition method, which can solve the problem of affecting the tone of the image, increasing ghosting and light spots when using a polarizer to filter out polarized light in the related art, so that the quality of the captured image is relatively poor. bad question.

第一方面,本申请实施例提供了一种摄像头模组,包括:壳体和设置于所述壳体内的镜头、滤光片、第一图像传感器、反光镜、第二图像传感器和偏振组件;In a first aspect, an embodiment of the present application provides a camera module, including: a housing, a lens disposed in the housing, a filter, a first image sensor, a mirror, a second image sensor, and a polarization component;

所述反光镜与所述镜头对应设置,且所述反光镜的反光平面与所述镜头的光轴方向的夹角大于0°且小于90°;The reflective mirror is arranged corresponding to the lens, and the included angle between the reflective plane of the reflective mirror and the optical axis direction of the lens is greater than 0° and less than 90°;

所述偏振组件设置于所述反光镜与所述第二图像传感器之间;The polarizing component is disposed between the mirror and the second image sensor;

所述滤光片设置于所述反光镜与所述第一图像传感器之间;The filter is arranged between the mirror and the first image sensor;

入射光线通过所述镜头后,部分透过所述反光镜到达所述第二图像传感器,部分经所述反光镜反射后到达所述第一图像传感器。After passing through the lens, part of the incident light passes through the reflective mirror to reach the second image sensor, and part of the incident light reaches the first image sensor after being reflected by the reflective mirror.

第二方面,本申请实施例提供了一种电子设备,包括第一方面所述的摄像头模组。In a second aspect, an embodiment of the present application provides an electronic device, including the camera module described in the first aspect.

第三方面,本申请实施例提供了一种图像采集方法,应用于第二方面所述的电子设备,所述图像采集方法包括:In a third aspect, an embodiment of the present application provides an image acquisition method, which is applied to the electronic device described in the second aspect, and the image acquisition method includes:

控制所述电子设备的摄像头模组的第一图像传感器采集至少一张第一图像,以及控制所述摄像头模组的第二图像传感器采集至少一张第二图像,其中,所述第二图像为偏振光图像;Controlling the first image sensor of the camera module of the electronic device to collect at least one first image, and controlling the second image sensor of the camera module to collect at least one second image, wherein the second image is polarized light image;

基于至少一张所述第一图像和至少一张所述第二图像,得到目标图像。A target image is obtained based on at least one of the first images and at least one of the second images.

第四方面,本申请实施例提供了一种图像采集装置,包括第一方面所述的摄像头模组,所述图像采集装置还包括:In a fourth aspect, an embodiment of the present application provides an image acquisition device, including the camera module described in the first aspect, and the image acquisition device further includes:

采集模块,用于控制所述摄像头模组的第一图像传感器采集至少一张第一图像,以及控制所述摄像头模组的第二图像传感器采集至少一张第二图像,其中,所述第二图像为偏振光图像;An acquisition module, configured to control the first image sensor of the camera module to acquire at least one first image, and control the second image sensor of the camera module to acquire at least one second image, wherein the second The image is a polarized light image;

融合模块,用于基于至少一张所述第一图像和至少一张所述第二图像,得到目标图像。A fusion module, configured to obtain a target image based on at least one of the first images and at least one of the second images.

第五方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第三方面所述的方法的步骤。In the fifth aspect, the embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and the program or instruction is executed by The processor implements the steps of the method described in the third aspect when executed.

第六方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第三方面所述的方法的步骤。In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the third aspect are implemented .

第七方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第三方面所述的方法。In the seventh aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, to achieve the third aspect the method described.

第八方面,本申请实施例提供了一种计算机程序产品/程序产品,所述计算机程序/程序产品被存储在非瞬态的存储介质中,所述计算机程序/程序产品被至少一个处理器执行以实现如第三方面所述的方法的步骤。In an eighth aspect, the embodiment of the present application provides a computer program product/program product, the computer program/program product is stored in a non-transitory storage medium, and the computer program/program product is executed by at least one processor To realize the steps of the method as described in the third aspect.

在本申请实施例中,摄像头模组包括壳体和设置于壳体内的镜头、滤光片、第一图像传感器、反光镜、第二图像传感器和偏振组件,反光镜与镜头对应设置,且反光镜的反光平面与镜头的光轴方向的夹角大于0°且小于90°;偏振组件设置于反光镜与第二图像传感器之间;滤光片设置于反光镜与第一图像传感器之间;入射光线通过镜头后,部分透过反光镜到达第二图像传感器,部分经反光镜反射后到达第一图像传感器。本申请实施例通过设置第一图像传感器和滤光片,可以得到高清彩色图像,通过设置第二图像传感器和偏振组件,可以滤除偏振光,得到滤除偏振光后的图像,无需在摄像头模组外增加偏振镜,因此不会影响图像影调,也不会增加重影和光斑,提升拍摄图像的质量。In the embodiment of the present application, the camera module includes a housing and a lens, a filter, a first image sensor, a mirror, a second image sensor, and a polarization assembly arranged in the housing. The included angle between the reflective plane of the mirror and the optical axis direction of the lens is greater than 0° and less than 90°; the polarization component is arranged between the reflective mirror and the second image sensor; the filter is arranged between the reflective mirror and the first image sensor; After the incident light passes through the lens, part of it passes through the mirror to reach the second image sensor, and part of it is reflected by the mirror to reach the first image sensor. In the embodiment of the present application, a high-definition color image can be obtained by arranging the first image sensor and a filter, and by arranging the second image sensor and a polarization component, the polarized light can be filtered out to obtain an image after the polarized light is filtered out, without the need for a camera module A polarizing filter is added outside the group, so it will not affect the tone of the image, nor will it increase ghosting and flare, and improve the quality of the captured image.

本申请实施例将摄像头模组的第一图像传感器和第二图像传感器得到的图像进行图像融合、图像信号处理等处理,可以得到清晰的、具有更多图像细节的高清图像,由于无需在摄像头模组外增加偏振镜,因此不会影响图像影调,也不会增加重影和光斑,提升拍摄图像的质量。In the embodiment of the present application, the images obtained by the first image sensor and the second image sensor of the camera module are processed by image fusion, image signal processing, etc., and clear, high-definition images with more image details can be obtained. A polarizing filter is added outside the group, so it will not affect the tone of the image, nor will it increase ghosting and flare, and improve the quality of the captured image.

附图说明Description of drawings

图1是本申请的一个实施例提供的摄像头模组的结构示意图;Fig. 1 is a schematic structural diagram of a camera module provided by an embodiment of the present application;

图2是本申请的一个实施例提供的偏振组件的结构示意图;Fig. 2 is a schematic structural diagram of a polarizing component provided by an embodiment of the present application;

图3是本申请的一个实施例提供的外部光线通过偏振组件的示意图;FIG. 3 is a schematic diagram of external light passing through a polarizing component provided by an embodiment of the present application;

图4是本申请的一个实施例提供的像素的信号处理电路结构示意图;FIG. 4 is a schematic structural diagram of a pixel signal processing circuit provided by an embodiment of the present application;

图5是本申请的一个实施例提供的图像采集方法的流程图;FIG. 5 is a flowchart of an image acquisition method provided by an embodiment of the present application;

图6是本申请的一个实施例提供的摄像头模组的采集的图像亮度的划区示意图;Fig. 6 is a schematic diagram of divisions of image brightness collected by the camera module provided by an embodiment of the present application;

图7是本申请的一个实施例提供的每个区域的亮度均相同时偏移角度示意图;Fig. 7 is a schematic diagram of an offset angle when the brightness of each region is the same provided by an embodiment of the present application;

图8是本申请的一个实施例提供的图像采集装置的结构框图;Fig. 8 is a structural block diagram of an image acquisition device provided by an embodiment of the present application;

图9是本申请的一个实施例提供的一种电子设备的示意图;FIG. 9 is a schematic diagram of an electronic device provided by an embodiment of the present application;

图10是本申请的一个实施例提供的一种电子设备的硬件结构示意图。Fig. 10 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.

其中,in,

100-壳体;100-housing;

200-镜头;200-lens;

310-第一图像传感器、320-滤光片;310-first image sensor, 320-optical filter;

400-反光镜;400 - mirror;

510-第二图像传感器、520-偏振组件、521-第一偏振镜、522-第二偏振镜、523-第一驱动机构、5231-第一驱动件、5232-第一万向轮、524-第二驱动机构、5241-第二驱动件、5242-第二万向轮。510-second image sensor, 520-polarization component, 521-first polarizer, 522-second polarizer, 523-first drive mechanism, 5231-first drive member, 5232-first universal wheel, 524- The second driving mechanism, 5241-the second driving member, 5242-the second universal wheel.

具体实施方式detailed description

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein. 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.

下面结合附图1-10,通过具体的实施例及其应用场景对本申请实施例提供的一种摄像头模组、电子设备及图像采集方法进行详细地说明。A camera module, an electronic device, and an image acquisition method provided in the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings 1-10.

如图1-4所示,本申请实施例提供了一种摄像头模组。如图1所示,该摄像头模组可以包括:壳体100和设置于壳体100内的镜头200、滤光片320、第一图像传感器310、反光镜400、第二图像传感器510和偏振组件520。As shown in Figures 1-4, the embodiment of the present application provides a camera module. As shown in Figure 1, the camera module may include: a housing 100 and a lens 200 disposed in the housing 100, a filter 320, a first image sensor 310, a mirror 400, a second image sensor 510 and a polarization assembly 520.

其中,反光镜400与镜头200对应设置,且反光镜400的反光平面与镜头200的光轴方向的夹角大于0°且小于90°;偏振组件520设置于反光镜400与第二图像传感器510之间;滤光片320设置于反光镜400与第一图像传感器310之间;入射光线通过镜头200后,部分透过反光镜400到达第二图像传感器510,部分经反光镜400反射后到达第一图像传感器310。Wherein, the reflective mirror 400 is arranged corresponding to the lens 200, and the included angle between the reflective plane of the reflective mirror 400 and the optical axis direction of the lens 200 is greater than 0° and less than 90°; the polarization component 520 is arranged between the reflective mirror 400 and the second image sensor 510 Between; the filter 320 is arranged between the mirror 400 and the first image sensor 310; after the incident light passes through the lens 200, part of the incident light passes through the mirror 400 and reaches the second image sensor 510, and part of it is reflected by the mirror 400 and reaches the second image sensor 510. An image sensor 310 .

其中,反光镜400为既可以透射光又可以反射光的透光反光镜,其透射光和反射光的比例可以根据实际应用确定,本实施例不做限定。Wherein, the mirror 400 is a light-transmitting mirror that can both transmit light and reflect light, and the ratio of transmitted light and reflected light can be determined according to actual applications, which is not limited in this embodiment.

例如,反光镜400可以是半透半反射镜,即50%反光镜,入射光线通过镜头200照射在反光镜400上,一半光线透过反光镜400照射在偏振组件520上,通过偏振组件520过滤后照射到第二图像传感器510上形成第二图像,另一半光线由反光镜400反射照射在滤光片320上,经过滤光片320滤光后照射到第一图像传感器310上形成第一图像。For example, the reflector 400 can be a semi-transparent mirror, that is, a 50% reflector, the incident light is irradiated on the reflector 400 through the lens 200, half of the light is irradiated on the polarizing component 520 through the reflector 400, and is filtered by the polarizing component 520 After that, it is irradiated on the second image sensor 510 to form a second image, and the other half of the light is reflected by the mirror 400 and irradiates on the filter 320, and after being filtered by the filter 320, it is irradiated on the first image sensor 310 to form a first image .

值得说明的是,滤光片320可以为红外滤光片,用于滤除红外光,让第一图像传感器310感光效果更好,得到高清彩色的第一图像。It is worth noting that the filter 320 can be an infrared filter, which is used to filter out infrared light, so that the first image sensor 310 has a better light-sensing effect, and obtains a high-definition color first image.

在本申请实施例中,摄像头模组包括壳体100和设置于壳体100内的镜头200、滤光片320、第一图像传感器310、反光镜400、第二图像传感器510和偏振组件520,反光镜400与镜头200对应设置,且反光镜400的反光平面与镜头200的光轴方向的夹角大于0°且小于90°;偏振组件520设置于反光镜400与第二图像传感器510之间;滤光片320设置于反光镜400与第一图像传感器310之间;入射光线通过镜头200后,部分透过反光镜400到达第二图像传感器510,部分经反光镜400反射后到达第一图像传感器310。本申请实施例通过设置第一图像传感器310和滤光片320,可以得到高清彩色图像,通过设置第二图像传感器510和偏振组件520,可以滤除偏振光,得到滤除偏振光后的图像,由于无需在摄像头模组外增加偏振镜,因此不会影响图像影调,也不会增加重影和光斑,提升拍摄图像的质量。In the embodiment of the present application, the camera module includes a housing 100, a lens 200, a filter 320, a first image sensor 310, a mirror 400, a second image sensor 510 and a polarization assembly 520 disposed in the housing 100, The reflective mirror 400 is arranged corresponding to the lens 200, and the included angle between the reflective plane of the reflective mirror 400 and the optical axis direction of the lens 200 is greater than 0° and less than 90°; the polarization component 520 is arranged between the reflective mirror 400 and the second image sensor 510 The optical filter 320 is arranged between the reflective mirror 400 and the first image sensor 310; after the incident light passes through the lens 200, part of it passes through the reflective mirror 400 to reach the second image sensor 510, and part of it reaches the first image after being reflected by the reflective mirror 400 sensor 310 . In the embodiment of the present application, by setting the first image sensor 310 and the filter 320, a high-definition color image can be obtained, and by setting the second image sensor 510 and the polarization component 520, the polarized light can be filtered to obtain an image after the polarized light is filtered, Since there is no need to add a polarizer outside the camera module, it will not affect the tone of the image, nor will it increase ghosting and flare, improving the quality of the captured image.

如图2所示,在本申请的一个可能的实施方式中,偏振组件520可以包括第一偏振镜521、第二偏振镜522、第一驱动机构523和第二驱动机构524;第二偏振镜522设置于反光镜400与第二图像传感器510之间,第一偏振镜521设置于第二偏振镜522与第二图像传感器510之间,第一驱动机构523与第一偏振镜521连接,用于驱动第一偏振镜521在第一平面内转动,第二驱动机构524与第二偏振镜522连接,用于驱动第二偏振镜522在第二平面内转动。As shown in Figure 2, in a possible implementation of the present application, the polarization assembly 520 may include a first polarizer 521, a second polarizer 522, a first drive mechanism 523, and a second drive mechanism 524; the second polarizer 522 is arranged between the mirror 400 and the second image sensor 510, the first polarizer 521 is arranged between the second polarizer 522 and the second image sensor 510, the first driving mechanism 523 is connected with the first polarizer 521, and uses In order to drive the first polarizer 521 to rotate in the first plane, the second driving mechanism 524 is connected to the second polarizer 522 for driving the second polarizer 522 to rotate in the second plane.

其中,第一平面与第二平面平行。Wherein, the first plane is parallel to the second plane.

第一平面为第一偏振镜521的镜面所在的平面,第二平面为第二偏振镜522的镜面所在的平面。The first plane is the plane where the mirror surface of the first polarizer 521 is located, and the second plane is the plane where the mirror surface of the second polarizer 522 is located.

也就是说,第二偏振镜522用于确定入射光线的偏振方向,第一偏振镜521用于确定进入到第二图像传感器510中的光的多少。That is to say, the second polarizer 522 is used to determine the polarization direction of the incident light, and the first polarizer 521 is used to determine the amount of light entering the second image sensor 510 .

值得说明的是,第一偏振镜521和第二偏振镜522为平行设置,第一驱动机构523和第二驱动机构524可以分别驱动第一偏振镜521和第二偏振镜522转动,以使得第一偏振镜521和第二偏振镜522呈现不同的夹角,得到不同的偏振图像,可以进一步提升拍摄图像的清晰度。It is worth noting that the first polarizer 521 and the second polarizer 522 are arranged in parallel, and the first drive mechanism 523 and the second drive mechanism 524 can respectively drive the first polarizer 521 and the second polarizer 522 to rotate, so that the second polarizer The first polarizer 521 and the second polarizer 522 present different angles to obtain different polarized images, which can further improve the clarity of the captured image.

在本申请的一个可能的实施方式中,第一驱动机构523包括第一驱动件5231和第一万向轮5232,第二驱动机构524包括第二驱动件5241和第二万向轮5242。In a possible implementation manner of the present application, the first driving mechanism 523 includes a first driving member 5231 and a first universal wheel 5232 , and the second driving mechanism 524 includes a second driving member 5241 and a second universal wheel 5242 .

其中,第一万向轮5232与第一偏振镜521滚动连接,第一驱动件5231驱动第一万向轮5232运动;第二万向轮5242与第二偏振镜522滚动连接,第二驱动件5241驱动第二万向轮5242运动。Wherein, the first universal wheel 5232 is rollingly connected with the first polarizer 521, and the first driving member 5231 drives the first universal wheel 5232 to move; the second universal wheel 5242 is rollingly connected with the second polarizer 522, and the second driving member 5241 drives the second universal wheel 5242 to move.

其中,第一驱动件5231、第一万向轮5232、第二驱动件5241和第二万向轮5242均可以为多个。Wherein, there may be multiple first driving members 5231 , first universal wheels 5232 , second driving members 5241 and second universal wheels 5242 .

需要说明的是,第一驱动件5231和第二驱动件5241分别设置于不同的支撑件上,支撑件支撑于壳体100上,以使得偏振组件520位于第二图像传感器510背离壳体100的上方,使得进入第二图像传感器510的光线可以经过第一偏振镜521和第二偏振镜522滤光。It should be noted that the first driver 5231 and the second driver 5241 are respectively arranged on different supports, and the supports are supported on the casing 100, so that the polarization component 520 is located at the side of the second image sensor 510 away from the casing 100. Above, the light entering the second image sensor 510 can be filtered by the first polarizer 521 and the second polarizer 522 .

值得说明的是,第一偏振镜521和第二偏振镜522可以同步转动,也可以非同步转动,可以根据实际应用来控制。同步转动时可以获取不同方向的偏振图,非同步转动时可以通过控制两个偏振镜之间的夹角,来控制进光量。第一偏振镜521和第二偏振镜522之间的夹角为0时,与只有一个偏振镜的作用相同,只通过对应方向的偏振光。如图3所示,第一偏振镜521和第二偏振镜522之间的夹角不为0,夹角不同可以得到不同亮度的图像,其亮度公式如下所示。It is worth noting that the first polarizer 521 and the second polarizer 522 may rotate synchronously or asynchronously, and may be controlled according to practical applications. When rotating synchronously, polarization patterns in different directions can be obtained, and when rotating asynchronously, the amount of incoming light can be controlled by controlling the angle between the two polarizers. When the angle between the first polarizer 521 and the second polarizer 522 is 0, it has the same function as only one polarizer, and only the polarized light in the corresponding direction passes through. As shown in FIG. 3 , the included angle between the first polarizer 521 and the second polarizer 522 is not zero, and images with different brightness can be obtained with different angles, and the brightness formula is as follows.

I=I0cos2θI=I 0 cos 2 θ

其中,I为经过第一偏振镜521时光线的亮度;I0为经过第二偏振镜522时光线的亮度;θ为第一偏振镜521和第二偏振镜522之间的夹角。Wherein, I is the brightness of light when passing through the first polarizer 521; I0 is the brightness of light when passing through the second polarizer 522; θ is the angle between the first polarizer 521 and the second polarizer 522.

如上所示,当第一偏振镜521和第二偏振镜522之间的夹角为90°时,通过的光亮为0,即得到的是全黑图像。As shown above, when the angle between the first polarizer 521 and the second polarizer 522 is 90°, the light passing through is 0, that is, a completely black image is obtained.

本申请实施例通过万向轮和驱动件来驱动第一偏振镜521和第二偏振镜522运动,由于万向轮可以在各个不同方向运动,因此可以驱动偏振镜转动任意角度,使得第一偏振镜521和第二偏振镜522之间可以得到任意偏振夹角,进而使得最终得到的融合图像具有更多的细节,避免拍摄图像受到偏振光的影响,提升拍摄质量。In the embodiment of the present application, the first polarizer 521 and the second polarizer 522 are driven to move through the universal wheel and the driving member. Since the universal wheel can move in different directions, the polarizer can be driven to rotate at any angle, so that the first polarizer Any polarization angle can be obtained between the mirror 521 and the second polarizer 522, so that the final fused image has more details, avoiding the influence of polarized light on the captured image, and improving the shooting quality.

值得说明的是,第一驱动机构523和第二驱动机构524除了上述结构外,还可以是利用限位滑道、驱动件和支撑件来实现,具体地,一部分支撑件的第一端与第一偏振镜521连接,第二端设置于第一限位滑道中,驱动件可以驱动支撑件在第一限位滑道中滑动,以使得第一偏振镜521转动,相应的,另一部分支撑件的第一端与第二偏振镜522连接,第二端设置于第二限位滑道中,驱动件可以驱动支撑件在第二限位滑道中滑动,以使得第二偏振镜522传动。还可以是其他结构,只要可以实现第一偏振镜521和第二偏振镜522转动即可,本申请实施例中不再一一赘述。It is worth noting that, in addition to the above-mentioned structure, the first driving mechanism 523 and the second driving mechanism 524 can also be realized by using a limit slideway, a driving member and a supporting member, specifically, the first end of a part of the supporting member and the first end A polarizer 521 is connected, and the second end is arranged in the first limit slideway, and the driver can drive the support to slide in the first limit slideway, so that the first polarizer 521 rotates. Correspondingly, the other part of the support The first end is connected to the second polarizer 522 , the second end is arranged in the second limit slideway, and the driving member can drive the support to slide in the second limit slideway, so that the second polarizer 522 is driven. Other structures are also possible, as long as the rotation of the first polarizer 521 and the second polarizer 522 can be realized, and details will not be repeated in this embodiment of the present application.

本申请实施例中的第一图像传感器310和第二图像传感器510均是通过多个感光成像的像素组成的,如图4所示,各个像素,即光电二极管PD的信号处理电路结构如下所示。Both the first image sensor 310 and the second image sensor 510 in the embodiment of the present application are composed of a plurality of photosensitive imaging pixels, as shown in FIG. 4 , each pixel, that is, the signal processing circuit structure of the photodiode PD is as follows .

本申请提供的像素的信号处理电路结构为针扎光电二极管结构(PinnedPhotodiode Pixel,PPD)的像素结构。PPD像素结构包括一个光电二极管(Photodiode,PD)的感光区,即感光二极管,以及四个晶体管,即一个复位三极管RST,一个浮置开关TG,一个行选择器SET,以及一个信号放大器SF,上述结构也称为4T像素结构。PPD允许相关双采样(Correlated Double Sampling,CDS)电路的引入,消除了复位引入的热噪声(kTC噪声)、氧化物半导体(metal-oxide-semiconductor,mos)晶体管引入的闪烁噪声(1/f噪声)和暗噪声(offset噪声)。其工作原理如下所示,其中VDD为外部电压;DC为恒流电,是电路的参考电压;Vout为输出电压。The signal processing circuit structure of the pixel provided in the present application is a pinned photodiode pixel structure (Pinned Photodiode Pixel, PPD) pixel structure. The PPD pixel structure includes a photosensitive area of a photodiode (Photodiode, PD), that is, a photodiode, and four transistors, that is, a reset transistor RST, a floating switch TG, a row selector SET, and a signal amplifier SF. The structure is also called 4T pixel structure. PPD allows the introduction of correlated double sampling (Correlated Double Sampling, CDS) circuit, which eliminates thermal noise (kTC noise) introduced by reset and flicker noise (1/f noise) introduced by oxide semiconductor (metal-oxide-semiconductor, mos) transistor ) and dark noise (offset noise). Its working principle is as follows, where VDD is the external voltage; DC is the constant current, which is the reference voltage of the circuit; Vout is the output voltage.

首先进行曝光。RST和TG同时打开,以清空PD,然后两者断开开始曝光,光照射产生的电子-空穴对会因PD电场的存在而分开,电子移向n区,空穴移向p区。Expose first. RST and TG are turned on at the same time to clear the PD, and then the two are disconnected to start exposure. The electron-hole pairs generated by light irradiation will be separated due to the existence of the PD electric field, and the electrons will move to the n region and the holes will move to the p region.

其次复位。在曝光结束时,激活RST,将电容FD复位到高电平。Next reset. At the end of the exposure, RST is activated, which resets the capacitor FD to a high level.

然后复位电平读出。复位完成后,读出FD复位电平,其中包含mos管的offset噪声,1/f噪声以及复位引入的kTC噪声,将读出的信号存储在第一个电容中。Then reset level readout. After the reset is completed, read the FD reset level, which includes the offset noise of the mos tube, 1/f noise and kTC noise introduced by the reset, and store the read signal in the first capacitor.

再次电荷转移。激活TG,将电荷从感光区完全转移到FD中。charge transfer again. Activation of the TG completely transfers the charge from the photosensitive region into the FD.

然后信号电平读出。接下来,将FD的电压信号读出到第二个电容。这里的信号包括:光电转换产生的信号,运放产生的offset,1/f噪声以及复位引入的kTC噪声。Then the signal level is read out. Next, read the voltage signal from the FD to the second capacitor. The signals here include: signals generated by photoelectric conversion, offset generated by operational amplifiers, 1/f noise, and kTC noise introduced by reset.

最后信号输出。将存储在两个电容中的信号相减(如采用CDS,即可消除像素中的主要噪声),得到的信号在经过模拟放大,然后经过模数转换器(Analog-to DigitalConverter,ADC)采样,即可进行数字化信号输出。The final signal output. The signals stored in the two capacitors are subtracted (such as using CDS, which can eliminate the main noise in the pixel), and the obtained signal is amplified by analog, and then sampled by an analog-to-digital converter (Analog-to DigitalConverter, ADC). Digital signal output can be carried out.

值得说明的是,第一图像传感器310和第二图像传感器510可以是拜耳阵列传感器、四合一(四个颜色相同的像素排列在一起)或者多合一(如九合一、十六合一等)传感器,具体地本申请实施例中不做限定,以实际应用为准。It is worth noting that the first image sensor 310 and the second image sensor 510 can be Bayer array sensors, four-in-one (four pixels of the same color are arranged together) or multi-in-one (such as nine-in-one, sixteen-in-one etc.) sensors, specifically, there is no limitation in the embodiments of the present application, and the actual application shall prevail.

本申请实施例还提供了一种电子设备,包括上述任一实施例提供的摄像头模组。可以实现上述各功能,考虑文本简洁,本实施例不再赘述。An embodiment of the present application also provides an electronic device, including the camera module provided in any one of the foregoing embodiments. The above-mentioned functions can be realized, and in consideration of the brevity of the text, details will not be described in this embodiment.

本申请实施例还提供了一种图像采集方法,如图5所示,该图像采集方法应用于上述实施例提供的电子设备,该图像采集方法可以包括:S501至S502所示的内容。The embodiment of the present application also provides an image acquisition method, as shown in FIG. 5 , the image acquisition method is applied to the electronic device provided in the above embodiment, and the image acquisition method may include: the contents shown in S501 to S502 .

在S501中,控制电子设备的摄像头模组的第一图像传感器采集至少一张第一图像,以及控制摄像头模组的第二图像传感器采集至少一张第二图像。In S501, control the first image sensor of the camera module of the electronic device to collect at least one first image, and control the second image sensor of the camera module to collect at least one second image.

其中,第二图像为偏振光图像。也就是说,在电子设备的摄像头模组上电后,第一图像传感器可以调整自动曝光、自动对焦、自动白平衡等并开始以预设帧率采集至少一张第一图像,第二图像传感器和第二图像传感器上方的偏振组件也开始工作,采集至少一张第二图像。Wherein, the second image is a polarized light image. That is to say, after the camera module of the electronic device is powered on, the first image sensor can adjust auto exposure, auto focus, auto white balance, etc. and start to collect at least one first image at a preset frame rate, and the second image sensor And the polarization component above the second image sensor also starts working to collect at least one second image.

其中,预设帧率可以是30fps(Frame Per Second,每秒传输帧数),也可以是其他帧率,以实际应用为准,本申请不做具体限定。Wherein, the preset frame rate may be 30fps (Frame Per Second, the number of frames transmitted per second), or other frame rates, subject to actual application, which is not specifically limited in this application.

在本申请实施例中,在采集图像时是利用第一图像传感器采集高清彩色图像,利用第二图像传感器采集偏振光图像,无需在摄像头模组外设置偏振镜即可获取到偏振光图像,操作简单。In the embodiment of the present application, when collecting images, the first image sensor is used to collect high-definition color images, and the second image sensor is used to collect polarized light images. The polarized light images can be obtained without installing a polarizer outside the camera module. Operation Simple.

在S502中,基于至少一张第一图像和至少一张第二图像,得到目标图像。In S502, a target image is obtained based on at least one first image and at least one second image.

在本申请实施例中,可以将上述第一图像传感器采集的至少一张第一图像和第二图像传感器采集的至少一张第二图像进行图像融合、图像信号处理等处理,可以得到清晰的、具有更多图像细节的目标图像。In the embodiment of the present application, at least one first image captured by the first image sensor and at least one second image captured by the second image sensor may be processed by image fusion, image signal processing, etc., to obtain a clear, Target image with more image details.

其中,图像信号处理可以包括自动曝光控制(Automatic Exposure Control,AEC)、自动增益控制(Automatic Gain Control,AGC)、自动白平衡(Auto White Balance,AWB)、色彩校正、镜头阴影、伽马(Gamma)校正、祛除坏点等等。具体地可以通过图像信号处理芯片进行处理,本申请实施例不做具体描述。Wherein, the image signal processing may include automatic exposure control (Automatic Exposure Control, AEC), automatic gain control (Automatic Gain Control, AGC), automatic white balance (Auto White Balance, AWB), color correction, lens shading, gamma (Gamma ) correction, get rid of dead pixels and so on. Specifically, the processing may be performed by an image signal processing chip, which is not specifically described in this embodiment of the present application.

在本申请实施例中,首先控制电子设备的摄像头模组的第一图像传感器采集至少一张第一图像,以及控制摄像头模组的第二图像传感器采集至少一张第二图像,第二图像为偏振光图像,然后基于至少一张第一图像和至少一张第二图像,得到目标图像。本申请实施例控制第一图像传感器可以采集至少一张高清彩色图像,控制第二图像传感器可以采集至少一张偏振光图像,将第一图像传感器和第二图像传感器采集的图像融合,可以得到具有更多图像细节的高清图像,由于无需在摄像头模组外增加偏振镜,因此不会影响图像影调,也不会增加重影和光斑,提升拍摄图像的质量。In the embodiment of the present application, first, the first image sensor of the camera module of the electronic device is controlled to capture at least one first image, and the second image sensor of the camera module is controlled to capture at least one second image, the second image is The polarized light image, and then based on at least one first image and at least one second image, an object image is obtained. In the embodiment of the present application, the first image sensor can be controlled to acquire at least one high-definition color image, the second image sensor can be controlled to acquire at least one polarized light image, and the images acquired by the first image sensor and the second image sensor can be fused to obtain a For high-definition images with more image details, since there is no need to add a polarizer outside the camera module, it will not affect the image tone, nor will it increase ghosting and flare, and improve the quality of the captured image.

在本申请的一个可能的实施方式中,控制摄像头模组的第二图像传感器采集至少一张第二图像,可以包括以下步骤:In a possible implementation manner of the present application, controlling the second image sensor of the camera module to capture at least one second image may include the following steps:

步骤一、控制摄像头模组的第一驱动机构和第二驱动机构分别驱动偏振组件中的第一偏振镜和第二偏振镜运动,使得第一偏振镜的偏振方向为第一偏振方向,使得第二偏振镜的偏振方向为第二偏振方向。Step 1. Control the first driving mechanism and the second driving mechanism of the camera module to respectively drive the first polarizer and the second polarizer in the polarization assembly to move, so that the polarization direction of the first polarizer is the first polarization direction, so that the second polarizer The polarization direction of the two polarizers is the second polarization direction.

也就是说,第二图像传感器不仅可以得到偏振光图像,还可以通过第一偏振镜和第二偏振镜的运动,得到多张不同偏振方向的偏振图像。That is to say, the second image sensor can not only obtain polarized light images, but also can obtain multiple polarization images with different polarization directions through the movement of the first polarizer and the second polarizer.

具体地,第一偏振镜在第一驱动机构的驱动下开始旋转,第二偏振镜在第二驱动机构的驱动下开始旋转,此时第一偏振镜和第二偏振镜的偏振角度相同,即两个偏振镜同时旋转,第二图像传感器以某一帧率(可以为120fps,也可以为其他帧率)采集多张偏振光图像,本申请实施例中以采集四个方向为例,即0°、45°、90°和135°四个偏振方向的偏振图像。也可以采集更多偏振方向的偏振图像,与采集四个偏振方向的偏振图像原理相同,均是驱动第一偏振镜和第二偏振镜同时旋转相应的角度。Specifically, the first polarizer starts to rotate under the drive of the first drive mechanism, and the second polarizer starts to rotate under the drive of the second drive mechanism. At this time, the polarization angles of the first polarizer and the second polarizer are the same, that is, The two polarizers rotate at the same time, and the second image sensor collects multiple polarized light images at a certain frame rate (which can be 120fps, or other frame rates). Polarization images for four polarization directions of °, 45°, 90° and 135°. It is also possible to collect polarization images of more polarization directions, and the principle of collecting polarization images of four polarization directions is the same, that is, to drive the first polarizer and the second polarizer to rotate corresponding angles at the same time.

步骤二、控制第二图像传感器采集得到至少一张第二图像。Step 2, controlling the second image sensor to acquire at least one second image.

其中,第二图像的数目为至少两张的情况下,每一张第二图像对应的偏振方向不同。Wherein, when the number of the second images is at least two, each second image corresponds to a different polarization direction.

需要说明的是,由于环境中的偏振光会影响第一图像传感器的正常感光,导致在偏振光区域里第一图像传感器处于过曝状态从而无法获得影像细节。本申请实施例通过控制第二图像传感器采集偏振方向不同的至少一张第二图像,利用至少一张第二图像显示出第一图像传感器无法获得的细节信息。It should be noted that, since the polarized light in the environment will affect the normal light sensitivity of the first image sensor, the first image sensor will be in an overexposed state in the polarized light region, so that image details cannot be obtained. In the embodiment of the present application, by controlling the second image sensor to collect at least one second image with different polarization directions, the at least one second image is used to display detailed information that cannot be obtained by the first image sensor.

本申请实施例,控制摄像头模组的第一驱动机构和第二驱动机构分别驱动偏振组件中的第一偏振镜和第二偏振镜运动,使得第一偏振镜的偏振方向为第一偏振方向,使得第二偏振镜的偏振方向为第二偏振方向,控制第二图像传感器采集得到至少一张第二图像,在第二图像的数目为至少两张的情况下,每一张第二图像对应的偏振方向不同。通过不同偏振方向的第二图像可以显示出第一图像传感器无法获取的多个影像细节,以补充第一图像传感器采集的图像中无法显示的内容,使得最终获得的图像更加清晰。In the embodiment of the present application, the first driving mechanism and the second driving mechanism of the camera module are controlled to respectively drive the first polarizer and the second polarizer in the polarization assembly to move, so that the polarization direction of the first polarizer is the first polarization direction, Make the polarization direction of the second polarizer be the second polarization direction, control the second image sensor to collect at least one second image, and when the number of second images is at least two, each second image corresponds to The direction of polarization is different. Multiple image details that cannot be acquired by the first image sensor can be displayed through the second image with different polarization directions, so as to supplement the content that cannot be displayed in the image captured by the first image sensor, so that the finally obtained image is clearer.

由于复杂偏振光成像图像的融合不单为简单的图像重叠,而是需要在融合后的图像中得到全面的图像信息,提取到更为有价值的信息,也即融合后的图像得到的信息比源图像的信息更加全面。Since the fusion of complex polarized imaging images is not just a simple image overlap, but needs to obtain comprehensive image information in the fused image and extract more valuable information, that is, the information obtained from the fused image is better than the source image. The image information is more comprehensive.

在本申请的一个可能的实施方式中,基于至少一张第一图像和至少一张第二图像,得到目标图像,可以包括以下步骤:In a possible implementation manner of the present application, obtaining the target image based on at least one first image and at least one second image may include the following steps:

步骤一、将至少一张第二图像中偏振方向相互垂直的两张第二目标图像分别进行小波分解,得到两个多尺度分解图像。Step 1. Perform wavelet decomposition on two second target images whose polarization directions are perpendicular to each other in at least one second image to obtain two multi-scale decomposed images.

例如,0°偏振方向的图像和90°偏振方向的图像即为偏振方向相互垂直的两张第二目标图像;45°偏振方向的图像和135°偏振方向的图像也是偏振方向相互垂直的两张第二目标图像。For example, an image with a polarization direction of 0° and an image with a polarization direction of 90° are two second target images whose polarization directions are perpendicular to each other; an image with a polarization direction of 45° and an image with a polarization direction of 135° are also two images whose polarization directions are perpendicular to each other The second target image.

本申请实施例利用小波分解进行图像分解,也就是二维滤波和抽取的过程,即根据多分辨率理论,确定出小波分解与重构的快速算法,即马拉特(Mallat)算法。具体地,对于任一二维图像信号f(m,n),Mallat算法可表示为:In the embodiment of the present application, wavelet decomposition is used for image decomposition, that is, the process of two-dimensional filtering and extraction, that is, according to the multi-resolution theory, a fast algorithm for wavelet decomposition and reconstruction is determined, namely the Mallat algorithm. Specifically, for any two-dimensional image signal f(m, n), the Mallat algorithm can be expressed as:

Figure BDA0003875951980000111
Figure BDA0003875951980000111

Figure BDA0003875951980000112
Figure BDA0003875951980000112

Figure BDA0003875951980000113
Figure BDA0003875951980000113

Figure BDA0003875951980000114
Figure BDA0003875951980000114

其中,

Figure BDA0003875951980000115
分别为低频子图像及水平、垂直和对角方向上的子图像,大小均为原来图像的1/4;h(x)和g(x)分别为同一小波的低通滤波器和高通滤波器。in,
Figure BDA0003875951980000115
are low-frequency sub-images and sub-images in horizontal, vertical and diagonal directions respectively, and the size is 1/4 of the original image; h(x) and g(x) are the low-pass filter and high-pass filter of the same wavelet respectively .

本申请实施例利用上述小波分解对偏振方向相互垂直的两张第二目标图像进行分解,得到两个多尺度分解图像,多尺度分解图像即为低频子图像及水平、垂直和对角方向上的子图像。In the embodiment of the present application, the above-mentioned wavelet decomposition is used to decompose the two second target images whose polarization directions are perpendicular to each other, and two multi-scale decomposition images are obtained. The multi-scale decomposition images are the low-frequency sub-image and the horizontal, vertical and diagonal directions sub image.

步骤二、对两个多尺度分解图像进行加权融合处理,得到第一偏振融合图像。Step 2: Perform weighted fusion processing on the two multi-scale decomposed images to obtain a first polarization fusion image.

也就是说,将上述得到的多尺度分解图像,即各子图像按照分解后对应的层分别进行图像的相减和相加处理,可以得到异或图像(相减)以及或图像(相加),再进行融合处理,得到第一偏振融合图像。That is to say, the multi-scale decomposition image obtained above, that is, each sub-image is subjected to image subtraction and addition processing according to the corresponding layer after decomposition, and an XOR image (subtraction) and an OR image (addition) can be obtained , and then perform fusion processing to obtain the first polarization fusion image.

具体地,可以将0°偏振方向和90°偏振方向的两张第二目标图像分别进行小波分解,得到各自的低频子图像及水平、垂直和对角方向上的子图像,然后将对应的低频子图像相减、对应的水平方向上的子图像相减、对应的垂直方向上的子图像相减、对应的对角方向上的子图像相减,然后将四张对应相减的图像进行融合,得到0°偏振方向和90°偏振方向的两张第二目标图像的异或图像;将对应的低频子图像相加、对应的水平方向上的子图像相加、对应的垂直方向上的子图像相加、对应的对角方向上的子图像相加,然后将四张对应相加的图像进行融合,得到0°偏振方向和90°偏振方向的两张第二目标图像的或图像;在将异或图像和或图像进行融合处理,得到第一偏振融合图像。Specifically, the two second target images with 0° polarization direction and 90° polarization direction can be respectively subjected to wavelet decomposition to obtain respective low-frequency sub-images and sub-images in horizontal, vertical and diagonal directions, and then the corresponding low-frequency Subtraction of subimages, subtraction of subimages in the corresponding horizontal direction, subtraction of subimages in the corresponding vertical direction, subtraction of subimages in the corresponding diagonal direction, and then fuse the four corresponding subtracted images , to obtain the XOR images of the two second target images of the 0° polarization direction and the 90° polarization direction; add the corresponding low-frequency sub-images, add the corresponding sub-images in the horizontal direction, and add the corresponding sub-images in the vertical direction Image addition, sub-image addition on the corresponding diagonal direction, and then four images corresponding to the addition are fused to obtain two second target images or images of 0° polarization direction and 90° polarization direction; The XOR image and the OR image are fused to obtain a first polarization fused image.

相应地,也可以将45°偏振方向和135°偏振方向的两张第二目标图像进行上述计算,得到相对应的第一偏振融合图像。Correspondingly, the above calculation may also be performed on the two second target images with a polarization direction of 45° and a polarization direction of 135° to obtain a corresponding first polarization fusion image.

步骤三、将至少一张第一图像与第一偏振融合图像进行图像融合,得到所述目标图像。Step 3: performing image fusion on at least one first image and the first polarization fusion image to obtain the target image.

也就是说,可以将第一图像传感器采集至少一张第一图像与上述得到的第一偏振融合图像进行图像融合,即可以得到目标图像。That is to say, at least one first image captured by the first image sensor can be fused with the first polarization fusion image obtained above to obtain the target image.

本申请实施例,将偏振光图像分解再融合,可以使得最终的图像具有更多的图像信息,提升偏振图像的性能。In the embodiment of the present application, decomposing and then merging the polarized light images can make the final image have more image information and improve the performance of the polarized image.

由于摄像头模组获取的图像不仅会存在偏振光,还会存在亮度不均匀,即图像中心区域较亮,四周区域较暗,亮度不均匀使得图像的画质较差,利用本申请实施例提供的偏振结构可以对镜头的阴影进行矫正。Since the image acquired by the camera module not only has polarized light, but also has uneven brightness, that is, the central area of the image is brighter, and the surrounding area is darker, and the uneven brightness makes the image quality poor. The polarization structure can correct the shadow of the lens.

在本申请的一个可能的实施方式中,控制摄像头模组的第二图像传感器采集至少一张第二图像之前,该图像采集方法还可以包括以下步骤:In a possible implementation manner of the present application, before controlling the second image sensor of the camera module to acquire at least one second image, the image acquisition method may further include the following steps:

步骤一、控制摄像头模组的第二图像传感器采集至少两张第三图像。Step 1. Control the second image sensor of the camera module to collect at least two third images.

由于每个摄像头模组的镜头特性不同、组装方式也存在差异,因此不同摄像头模组的镜头均可能存在差异,但是当摄像头模组组装完成后,镜头的零度均匀性也就固定,本申请实施例首先控制摄像头模组的第二图像传感器采集至少两张第三图像。以便确定出当前摄像头模组的镜头采集的图像的均匀性。Since the lens characteristics of each camera module are different and the assembly methods are also different, there may be differences in the lenses of different camera modules, but when the camera module is assembled, the zero-degree uniformity of the lens is also fixed. Example First, the second image sensor of the camera module is controlled to collect at least two third images. In order to determine the uniformity of the image captured by the lens of the current camera module.

具体地,可以通过一张均匀的灰卡,将灰卡放置在均匀的光源下,利用摄像头模组的第二图像传感器采集至少两张第三图像。Specifically, a uniform gray card can be used, and the gray card can be placed under a uniform light source, and at least two third images can be collected by the second image sensor of the camera module.

步骤二、将至少两张第三图像进行图像融合,得到第二偏振融合图像。Step 2. Perform image fusion on at least two third images to obtain a second polarization fusion image.

可以利用上述得到第一偏振融合图像的方式进行图像融合,也可以采用其他方式进行图像融合,本申请实施例不做限定。Image fusion may be performed by using the method for obtaining the first polarization fusion image above, or may be performed by other methods, which are not limited in this embodiment of the present application.

步骤三、基于第二偏振融合图像中至少两个图像区域对应的亮度信息,确定至少两个图像区域对应的偏移角度。Step 3: Determine offset angles corresponding to at least two image areas based on brightness information corresponding to at least two image areas in the second polarization fusion image.

其中,偏移角度为第一偏振镜的偏振方向与第二偏振镜的偏振方向之间的夹角。Wherein, the offset angle is the angle between the polarization direction of the first polarizer and the polarization direction of the second polarizer.

本申请实施例,可以通过测量第二偏振融合图像的阴影特性,确定亮度信息,每个图像区域均对应有相应的亮度信息。具体地,可以利用色彩还原测试软件进行测试,例如利用imatest测试软件进行测试,可以得到从中心到边缘,存在亮度递减的等高线。In this embodiment of the present application, brightness information may be determined by measuring shadow characteristics of the second polarization fusion image, and each image region corresponds to corresponding brightness information. Specifically, the test can be performed by using the color restoration test software, for example, by using the imatest test software to obtain contour lines with decreasing brightness from the center to the edge.

将上述确定出的等高线进行划分,即每个区域标注一个数字,如图6所示,同时记录中心亮度值和各个环形区域的亮度值,具体地,先预设亮度梯度,例如10最低有效位(Least Significant Bit,lsb)。假设中心亮度为100lsb,边缘为40lsb。则从中心到边缘会被区分成1~7个区域,分别对应100lsb~40lsb。Divide the contour lines determined above, that is, label each area with a number, as shown in Figure 6, and record the central brightness value and the brightness values of each annular area at the same time, specifically, preset the brightness gradient first, for example, 10 is the lowest Effective bit (Least Significant Bit, lsb). Let's say the center brightness is 100lsb and the edges are 40lsb. Then it will be divided into 1~7 areas from the center to the edge, corresponding to 100lsb~40lsb respectively.

本申请实施例根据上述确定出的亮度值,结合亮度公式I=I0cos2θ,可以计算出各个区域亮度相等时,第一偏振镜的偏振方向和第二偏振镜的偏振方向之间的夹角,即为两个图像区域对应的偏移角度。In the embodiment of the present application, according to the brightness value determined above, combined with the brightness formula I=I 0 cos 2 θ, the ratio between the polarization direction of the first polarizer and the polarization direction of the second polarizer can be calculated when the brightness of each area is equal. The included angle is the offset angle corresponding to the two image areas.

例如,若要区域1和区域7相等,区域1需要从100lsb变到40lsb,根据上述公式可得40/100=cos2θ,得到θ为50.77°,因此当区域1曝光时,需要将第一偏振镜的偏振方向和第二偏振镜的偏振方向之间的夹角调整为50.77°,即区域1和区域7对应的偏移角度为50.77°。相应的其他区域之间的调整也与上述调整相同,本申请实施例不再一一赘述,最终得到各个区域亮度相同时的偏振角度,如图7所示。For example, if area 1 and area 7 are to be equal, area 1 needs to be changed from 100lsb to 40lsb. According to the above formula, 40/100=cos 2 θ can be obtained, and θ is 50.77°. Therefore, when area 1 is exposed, the first The included angle between the polarization direction of the polarizer and the polarization direction of the second polarizer is adjusted to 50.77°, that is, the offset angle corresponding to the region 1 and region 7 is 50.77°. Corresponding adjustments between other areas are also the same as the above adjustments, which will not be described one by one in the embodiment of the present application, and finally obtain the polarization angle when the brightness of each area is the same, as shown in FIG. 7 .

相应地,控制摄像头模组的第二图像传感器采集至少一张第二图像,可以包括:在第二偏振镜的偏振方向为第二偏振方向的情况下,根据偏移角度,控制第一偏振镜偏移至目标角度;控制第二图像传感器采集至少一张第二图像。Correspondingly, controlling the second image sensor of the camera module to collect at least one second image may include: when the polarization direction of the second polarizer is the second polarization direction, controlling the first polarizer according to the offset angle Offset to the target angle; controlling the second image sensor to collect at least one second image.

也就是说,可以根据上述计算出的偏移角度控制第一偏振镜偏移至目标角度,进而控制第二图像传感器采集至少一张第二图像。That is to say, the first polarizer can be controlled to shift to a target angle according to the above-mentioned calculated shift angle, and then the second image sensor can be controlled to capture at least one second image.

例如,区域1和区域7相等,区域1需要从100lsb变到40lsb,根据上述公式可得40/100=cos2θ,得到θ为50.77°,因此当区域1曝光时,需要将第一偏振镜的偏振方向和第二偏振镜的偏振方向之间的夹角调整为50.77°,即区域1和区域7对应的偏移角度为50.77°。假设初始第二偏振镜的偏移方向为5°,第一偏振镜的偏移方向为30°,此时则需要将第一偏振镜的偏移方向调整为55.77°,以使得第一偏振镜的偏振方向和第二偏振镜的偏振方向之间的夹角为50.77°。For example, area 1 and area 7 are equal, and area 1 needs to be changed from 100lsb to 40lsb. According to the above formula, 40/100=cos 2 θ can be obtained, and θ is 50.77°. Therefore, when area 1 is exposed, the first polarizer needs to be The angle between the polarization direction of the second polarizer and the polarization direction of the second polarizer is adjusted to 50.77°, that is, the offset angle corresponding to the region 1 and region 7 is 50.77°. Assume that the initial offset direction of the second polarizer is 5°, and the offset direction of the first polarizer is 30°. At this time, the offset direction of the first polarizer needs to be adjusted to 55.77°, so that the first polarizer The angle between the polarization direction of the second polarizer and the polarization direction of the second polarizer is 50.77°.

通过上述调整,将各个区域对应的亮度一致的图像裁剪后进行融合,即对区域1进行曝光后裁剪得到区域1对应的图像,将区域2曝光后裁剪得到区域2对应的图像,直至得到所有区域对应的图像,最终将几个区域的图像进行融合,以得到各个区域亮度一致的图像,可以使得摄像头模组拍摄出来的图像的亮度为均匀亮度,提升拍摄到的图像的画质。Through the above adjustments, the images with the same brightness corresponding to each area are cropped and then fused, that is, the image corresponding to area 1 is obtained by exposing area 1 and cropped to obtain the image corresponding to area 1, and the image corresponding to area 2 is obtained by exposing area 2 until all areas are obtained For the corresponding image, the images in several areas are finally fused to obtain an image with consistent brightness in each area, which can make the brightness of the image captured by the camera module uniform, and improve the quality of the captured image.

如图8所示,本申请实施例还提供了一种图像采集装置,该图像采集装置可以包括上述实施例提供的摄像头模组,该图像采集装置还可以包括:采集模块801和融合模块802。As shown in FIG. 8 , the embodiment of the present application also provides an image acquisition device, which may include the camera module provided in the above embodiment, and the image acquisition device may further include: an acquisition module 801 and a fusion module 802 .

其中,采集模块801,用于控制摄像头模组的第一图像传感器采集至少一张第一图像,以及控制摄像头模组的第二图像传感器采集至少一张第二图像,其中,第二图像为偏振光图像;融合模块802,用于基于至少一张第一图像和至少一张第二图像,得到目标图像。Wherein, the acquisition module 801 is configured to control the first image sensor of the camera module to acquire at least one first image, and control the second image sensor of the camera module to acquire at least one second image, wherein the second image is a polarization Light image; a fusion module 802, configured to obtain a target image based on at least one first image and at least one second image.

在本申请实施例中,首先采集模块801控制摄像头模组的第一图像传感器采集至少一张第一图像,以及控制摄像头模组的第二图像传感器采集至少一张第二图像,其中,第二图像为偏振光图像,然后融合模块802基于至少一张第一图像和至少一张第二图像,得到目标图像。本申请实施例控制第一图像传感器可以采集至少一张高清彩色图像,控制第二图像传感器可以采集至少一张滤除偏振光后的偏振光图像,将第一图像传感器和第二图像传感器采集的图像融合,可以得到无偏振的高清图像,由于无需在摄像头模组外增加偏振镜,因此不会影响图像影调,也不会增加重影和光斑,提升拍摄图像的质量。In this embodiment of the present application, first, the acquisition module 801 controls the first image sensor of the camera module to acquire at least one first image, and controls the second image sensor of the camera module to acquire at least one second image, wherein the second The images are polarized images, and then the fusion module 802 obtains the target image based on at least one first image and at least one second image. In the embodiment of the present application, the first image sensor is controlled to acquire at least one high-definition color image, the second image sensor is controlled to acquire at least one polarized light image after the polarized light is filtered, and the images collected by the first image sensor and the second image sensor are Image fusion can obtain non-polarized high-definition images. Since there is no need to add a polarizer outside the camera module, it will not affect the image tone, nor will it increase ghosting and flare, and improve the quality of the captured image.

在本申请的一个可能的实施方式中,采集模块801,可以用于:通过摄像头模组的第一驱动机构和第二驱动机构分别驱动第一偏振镜和第二偏振镜运动,得到多张不同偏振夹角的偏振图像,其中,偏振夹角为第一偏振镜和第二偏振镜之间的夹角;对偏振图像进行偏振融合处理,得到多张不同偏振夹角的第二图像。In a possible implementation manner of the present application, the acquisition module 801 can be used to drive the first polarizer and the second polarizer to move respectively through the first drive mechanism and the second drive mechanism of the camera module to obtain multiple different images. Polarization images with polarization angles, wherein the polarization angle is the angle between the first polarizer and the second polarizer; performing polarization fusion processing on the polarization images to obtain multiple second images with different polarization angles.

在本申请的一个可能的实施方式中,采集模块801,可以用于:控制摄像头模组的第一驱动机构和第二驱动机构分别驱动偏振组件中的第一偏振镜和第二偏振镜运动,使得第一偏振镜的偏振方向为第一偏振方向,使得第二偏振镜的偏振方向为第二偏振方向;控制第二图像传感器采集得到至少一张第二图像;其中,在第二图像的数目为至少两张的情况下,每一张第二图像对应的偏振方向不同。In a possible implementation manner of the present application, the acquisition module 801 may be used to: control the first driving mechanism and the second driving mechanism of the camera module to respectively drive the movement of the first polarizer and the second polarizer in the polarization assembly, Make the polarization direction of the first polarizer be the first polarization direction, make the polarization direction of the second polarizer be the second polarization direction; Control the second image sensor to collect and obtain at least one second image; Wherein, the number of second images In the case of at least two images, each second image corresponds to a different polarization direction.

在本申请的一个可能的实施方式中,融合模块802,可以用于:将至少一张第二图像中偏振方向相互垂直的两张第二目标图像分别进行小波分解,得到两个多尺度分解图像;对两个多尺度分解图像进行加权融合处理,得到第一偏振融合图像;将至少一张第一图像与第一偏振融合图像进行图像融合,得到目标图像。In a possible implementation of the present application, the fusion module 802 may be configured to: respectively perform wavelet decomposition on two second target images whose polarization directions are perpendicular to each other in at least one second image to obtain two multi-scale decomposition images ; performing weighted fusion processing on two multi-scale decomposed images to obtain a first polarization fusion image; performing image fusion on at least one first image and the first polarization fusion image to obtain a target image.

在本申请的一个可能的实施方式中,采集模块801,可以用于:控制摄像头模组的第二图像传感器采集至少两张第三图像;将至少两张第三图像进行图像融合,得到第二偏振融合图像;基于第二偏振融合图像中至少两个图像区域对应的亮度信息,确定至少两个图像区域对应的偏移角度,偏移角度为第一偏振镜的偏振方向与第二偏振镜的偏振方向之间的夹角。In a possible implementation manner of the present application, the acquisition module 801 may be configured to: control the second image sensor of the camera module to acquire at least two third images; perform image fusion on the at least two third images to obtain the second Polarization fusion image; based on brightness information corresponding to at least two image areas in the second polarization fusion image, determine offset angles corresponding to at least two image areas, where the offset angle is the polarization direction of the first polarizer and the polarization direction of the second polarizer The angle between the polarization directions.

相应地,采集模块801,可以用于:在第二偏振镜的偏振方向为第二偏振方向的情况下,根据偏移角度,控制第一偏振镜偏移至目标角度;控制第二图像传感器采集至少一张第二图像。Correspondingly, the acquisition module 801 can be used for: when the polarization direction of the second polarizer is the second polarization direction, according to the offset angle, control the first polarizer to shift to the target angle; control the second image sensor to acquire At least one second image.

本申请实施例中的图像采集装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The image acquisition device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, tablet computer, notebook computer, palmtop computer, vehicle electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant) , PDA), etc., the non-mobile electronic device can be a server, a 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., the embodiment of the present application Not specifically limited.

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

本申请实施例提供的图像采集装置能够实现图5-图7的方法实施例实现的各个过程,达到相同的技术效果,为避免重复,这里不再赘述。The image acquisition device provided by the embodiment of the present application can realize each process realized by the method embodiment in Fig. 5-Fig. 7 and achieve the same technical effect. To avoid repetition, details are not repeated here.

可选的,如图9所示,本申请实施例还提供一种电子设备900,包括处理器901,存储器902,存储在存储器902上并可在所述处理器901上运行的程序或指令,该程序或指令被处理器901执行时实现上述图像采集方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 9 , the embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902, and programs or instructions stored in the memory 902 and operable on the processor 901, When the program or instruction is executed by the processor 901, the various processes of the above-mentioned image acquisition method embodiment can be achieved, and the same technical effect can be achieved. 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.

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

该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009以及处理器1010等部件。所述电子设备还包括摄像头模组。The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010. . The electronic device also includes a camera module.

该摄像头模组可以包括:壳体和设置于壳体内的镜头、滤光片、第一图像传感器、反光镜、第二图像传感器和偏振组件。The camera module may include: a housing, a lens, a filter, a first image sensor, a reflective mirror, a second image sensor and a polarization component disposed in the housing.

其中,反光镜与镜头对应设置,且反光镜的反光平面与镜头的光轴方向的夹角大于0°且小于90°;偏振组件设置于反光镜与第二图像传感器之间;滤光片设置于反光镜与第一图像传感器之间;入射光线通过镜头后,部分透过反光镜到达第二图像传感器,部分经反光镜反射后到达第一图像传感器。Wherein, the reflective mirror is arranged correspondingly to the lens, and the included angle between the reflective plane of the reflective mirror and the optical axis direction of the lens is greater than 0° and less than 90°; the polarizing component is arranged between the reflective mirror and the second image sensor; the optical filter is set Between the reflective mirror and the first image sensor; after the incident light passes through the lens, part of it passes through the reflective mirror to reach the second image sensor, and part of it is reflected by the reflective mirror to reach the first image sensor.

在本申请的一个实例中,偏振组件可以包括第一偏振镜、第二偏振镜、第一驱动机构和第二驱动机构;第二偏振镜设置于反光镜与第二图像传感器之间,第一偏振镜设置于第二偏振镜与第二图像传感器之间,第一驱动机构与第一偏振镜连接,用于驱动第一偏振镜在第一平面内转动,第二驱动机构与第二偏振镜连接,用于驱动第二偏振镜在第二平面内转动。In an example of the present application, the polarization assembly may include a first polarizer, a second polarizer, a first drive mechanism, and a second drive mechanism; the second polarizer is arranged between the mirror and the second image sensor, and the first The polarizer is arranged between the second polarizer and the second image sensor, the first drive mechanism is connected to the first polarizer, and is used to drive the first polarizer to rotate in the first plane, and the second drive mechanism is connected to the second polarizer connected to drive the second polarizer to rotate in the second plane.

其中,第一平面与第二平面平行。Wherein, the first plane is parallel to the second plane.

在本申请的一个实例中,第一驱动机构包括第一驱动件和第一万向轮,第二驱动机构包括第二驱动件和第二万向轮。In an example of the present application, the first driving mechanism includes a first driving member and a first universal wheel, and the second driving mechanism includes a second driving member and a second universal wheel.

其中,第一万向轮与第一偏振镜滚动连接,第一驱动件驱动第一万向轮运动;第二万向轮与第二偏振镜滚动连接,第二驱动件驱动第二万向轮运动。Wherein, the first universal wheel is rollingly connected with the first polarizer, and the first driving member drives the first universal wheel to move; the second universal wheel is rollingly connected with the second polarizer, and the second driving member drives the second universal wheel sports.

本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1000 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 1010 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. 10 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 certain components, or arrange different components, and details will not be repeated here. .

其中,处理器1010,用于控制电子设备的摄像头模组的第一图像传感器采集至少一张第一图像,以及控制摄像头模组的第二图像传感器采集至少一张第二图像,其中,第二图像为偏振光图像;基于至少一张第一图像和至少一张第二图像,得到目标图像。Wherein, the processor 1010 is configured to control the first image sensor of the camera module of the electronic device to collect at least one first image, and control the second image sensor of the camera module to collect at least one second image, wherein the second The images are polarized light images; based on at least one first image and at least one second image, the target image is obtained.

在本申请实施例中,首先控制电子设备的摄像头模组的第一图像传感器采集至少一张第一图像,以及控制摄像头模组的第二图像传感器采集至少一张第二图像,第二图像为偏振光图像,然后基于至少一张第一图像和至少一张第二图像,得到目标图像。本申请实施例控制第一图像传感器可以采集至少一张高清彩色图像,控制第二图像传感器可以采集至少一张滤除偏振光后的偏振光图像,将第一图像传感器和第二图像传感器采集的图像融合,可以得到无偏振的高清图像,由于无需在摄像头模组外增加偏振镜,因此不会影响图像影调,也不会增加重影和光斑,提升拍摄图像的质量。In the embodiment of the present application, firstly, the first image sensor of the camera module of the electronic device is controlled to capture at least one first image, and the second image sensor of the camera module is controlled to capture at least one second image, the second image is The polarized light image, and then based on at least one first image and at least one second image, an object image is obtained. In the embodiment of the present application, the first image sensor can be controlled to acquire at least one high-definition color image, the second image sensor can be controlled to acquire at least one polarized light image after filtering the polarized light, and the images collected by the first image sensor and the second image sensor Image fusion can obtain high-definition images without polarization. Since there is no need to add a polarizer outside the camera module, it will not affect the image tone, nor will it increase ghosting and flare, and improve the quality of the captured image.

在本申请的一个可能的实施方式中,处理器1010,用于控制所述摄像头模组的第一驱动机构和第二驱动机构分别驱动偏振组件中的第一偏振镜和第二偏振镜运动,使得所述第一偏振镜的偏振方向为第一偏振方向,使得所述第二偏振镜的偏振方向为第二偏振方向;控制所述第二图像传感器采集得到至少一张所述第二图像;其中,在所述第二图像的数目为至少两张的情况下,每一张所述第二图像对应的偏振方向不同。In a possible implementation manner of the present application, the processor 1010 is configured to control the first driving mechanism and the second driving mechanism of the camera module to respectively drive the movement of the first polarizer and the second polarizer in the polarization assembly, Make the polarization direction of the first polarizer be the first polarization direction, make the polarization direction of the second polarizer be the second polarization direction; control the second image sensor to acquire at least one second image; Wherein, when the number of the second images is at least two, each second image corresponds to a different polarization direction.

在本申请的一个可能的实施方式中,处理器1010,用于将所述至少一张第二图像中偏振方向相互垂直的两张第二目标图像分别进行小波分解,得到两个多尺度分解图像;对所述两个多尺度分解图像进行加权融合处理,得到第一偏振融合图像;将所述至少一张第一图像与所述第一偏振融合图像进行图像融合,得到所述目标图像。In a possible implementation manner of the present application, the processor 1010 is configured to respectively perform wavelet decomposition on the two second target images whose polarization directions are perpendicular to each other in the at least one second image to obtain two multi-scale decomposed images ; performing weighted fusion processing on the two multi-scale decomposition images to obtain a first polarization fusion image; performing image fusion on the at least one first image and the first polarization fusion image to obtain the target image.

在本申请的一个可能的实施方式中,处理器1010,用于控制所述摄像头模组的第二图像传感器采集至少两张第三图像;将所述至少两张第三图像进行图像融合,得到第二偏振融合图像;基于所述第二偏振融合图像中至少两个图像区域对应的亮度信息,确定所述至少两个图像区域对应的偏移角度,所述偏移角度为所述第一偏振镜的偏振方向与所述第二偏振镜的偏振方向之间的夹角;在所述第二偏振镜的偏振方向为第二偏振方向的情况下,根据所述偏移角度,控制所述第一偏振镜偏移至目标角度;控制所述第二图像传感器采集至少一张第二图像。In a possible implementation manner of the present application, the processor 1010 is configured to control the second image sensor of the camera module to collect at least two third images; perform image fusion on the at least two third images to obtain A second polarization fusion image; based on brightness information corresponding to at least two image areas in the second polarization fusion image, determine an offset angle corresponding to the at least two image areas, where the offset angle is the first polarization The included angle between the polarization direction of the second polarizer and the polarization direction of the second polarizer; when the polarization direction of the second polarizer is the second polarization direction, according to the offset angle, control the first A polarizer is shifted to a target angle; the second image sensor is controlled to collect at least one second image.

上述各实施例的技术效果在上述图像采集方法的实施例中已经详细描述,为避免重复,这里不再赘述。The technical effects of the foregoing embodiments have been described in detail in the foregoing embodiments of the image acquisition method, and will not be repeated here to avoid repetition.

应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(GraphicsProcessing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1009可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。It should be understood that, in this embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042. Camera) to process the image data of still pictures or videos. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072 . The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 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. The memory 1009 can be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .

本申请实施例还提供了一种可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如上述任一实施例提供的图像采集方法实施例的各个过程。且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the image acquisition method embodiment provided in any of the foregoing embodiments is implemented. And can achieve the same technical effect, in order to avoid repetition, no more details here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述图像采集方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above image acquisition method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.

本申请实施例还提供了一种计算机程序产品,该计算机程序产品存储在非瞬态的存储介质,所述计算机程序产品被所述处理器执行时,实现上述图像采集方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a computer program product, the computer program product is stored in a non-transitory storage medium, and when the computer program product is executed by the processor, each process of the above image acquisition method embodiment is realized, And can achieve the same technical effect, in order to avoid repetition, no more details here.

本申请实施例另提供了一种处理装置,所述处理装置被配置成用于执行上述图像采集方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a processing device configured to execute each process of the above image acquisition method embodiment, and can achieve the same technical effect. To avoid repetition, details are not repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (10)

1.一种摄像头模组,其特征在于,包括:壳体和设置于所述壳体内的镜头、滤光片、第一图像传感器、反光镜、第二图像传感器和偏振组件;1. A camera module, comprising: a housing and a lens, a filter, a first image sensor, a reflective mirror, a second image sensor and a polarization assembly arranged in the housing; 所述反光镜与所述镜头对应设置,且所述反光镜的反光平面与所述镜头的光轴方向的夹角大于0°且小于90°;The reflective mirror is arranged corresponding to the lens, and the included angle between the reflective plane of the reflective mirror and the optical axis direction of the lens is greater than 0° and less than 90°; 所述偏振组件设置于所述反光镜与所述第二图像传感器之间;The polarizing component is disposed between the mirror and the second image sensor; 所述滤光片设置于所述反光镜与所述第一图像传感器之间;The filter is arranged between the mirror and the first image sensor; 入射光线通过所述镜头后,部分透过所述反光镜到达所述第二图像传感器,部分经所述反光镜反射后到达所述第一图像传感器。After passing through the lens, part of the incident light passes through the reflective mirror to reach the second image sensor, and part of the incident light reaches the first image sensor after being reflected by the reflective mirror. 2.根据权利要求1所述的摄像头模组,其特征在于,所述偏振组件包括第一偏振镜、第二偏振镜、第一驱动机构和第二驱动机构;2. The camera module according to claim 1, wherein the polarization assembly comprises a first polarizer, a second polarizer, a first driving mechanism and a second driving mechanism; 所述第二偏振镜设置于所述反光镜与所述第二图像传感器之间;The second polarizer is disposed between the mirror and the second image sensor; 所述第一偏振镜设置于所述第二偏振镜与所述第二图像传感器之间;The first polarizer is disposed between the second polarizer and the second image sensor; 所述第一驱动机构与所述第一偏振镜连接,用于驱动所述第一偏振镜在第一平面内转动;所述第二驱动机构与所述第二偏振镜连接,用于驱动所述第二偏振镜在第二平面内转动;The first driving mechanism is connected with the first polarizer for driving the first polarizer to rotate in the first plane; the second driving mechanism is connected with the second polarizer for driving the first polarizer The second polarizer rotates in the second plane; 其中,所述第一平面与所述第二平面平行。Wherein, the first plane is parallel to the second plane. 3.根据权利要求2所述的摄像头模组,其特征在于,所述第一驱动机构包括第一驱动件和第一万向轮;所述第二驱动机构包括第二驱动件和第二万向轮;3. The camera module according to claim 2, wherein the first driving mechanism includes a first driving member and a first universal wheel; the second driving mechanism includes a second driving member and a second universal wheel. to the wheel; 所述第一万向轮与所述第一偏振镜滚动连接,所述第一驱动件驱动所述第一万向轮运动;The first universal wheel is rollingly connected with the first polarizer, and the first driving member drives the first universal wheel to move; 所述第二万向轮与所述第二偏振镜滚动连接,所述第二驱动件均驱动所述第二万向轮运动。The second universal wheel is rollingly connected with the second polarizer, and the second driving parts drive the second universal wheel to move. 4.一种电子设备,其特征在于,包括:如权利要求1-3中任一项所述的摄像头模组。4. An electronic device, comprising: the camera module according to any one of claims 1-3. 5.一种图像采集方法,应用于如权利要求4所述的电子设备,其特征在于,所述图像采集方法包括:5. An image acquisition method, applied to the electronic device as claimed in claim 4, wherein the image acquisition method comprises: 控制所述电子设备的摄像头模组的第一图像传感器采集至少一张第一图像,以及控制所述摄像头模组的第二图像传感器采集至少一张第二图像,其中,所述第二图像为偏振光图像;Controlling the first image sensor of the camera module of the electronic device to collect at least one first image, and controlling the second image sensor of the camera module to collect at least one second image, wherein the second image is polarized light image; 基于至少一张所述第一图像和至少一张所述第二图像,得到目标图像。A target image is obtained based on at least one of the first images and at least one of the second images. 6.根据权利要求5所述的图像采集方法,其特征在于,所述控制所述摄像头模组的第二图像传感器采集至少一张第二图像,包括:6. The image acquisition method according to claim 5, wherein the controlling the second image sensor of the camera module to acquire at least one second image comprises: 控制所述摄像头模组的第一驱动机构和第二驱动机构分别驱动偏振组件中的第一偏振镜和第二偏振镜运动,使得所述第一偏振镜的偏振方向为第一偏振方向,使得所述第二偏振镜的偏振方向为第二偏振方向;Controlling the first drive mechanism and the second drive mechanism of the camera module respectively drives the first polarizer and the second polarizer in the polarization assembly to move, so that the polarization direction of the first polarizer is the first polarization direction, so that The polarization direction of the second polarizer is the second polarization direction; 控制所述第二图像传感器采集得到至少一张所述第二图像;controlling the second image sensor to acquire at least one second image; 其中,在所述第二图像的数目为至少两张的情况下,每一张所述第二图像对应的偏振方向不同。Wherein, when the number of the second images is at least two, each second image corresponds to a different polarization direction. 7.根据权利要求6所述的图像采集方法,其特征在于,所述基于至少一张所述第一图像和至少一张所述第二图像,得到目标图像,包括:7. The image acquisition method according to claim 6, wherein said obtaining a target image based on at least one said first image and at least one said second image comprises: 将所述至少一张第二图像中偏振方向相互垂直的两张第二目标图像分别进行小波分解,得到两个多尺度分解图像;performing wavelet decomposition on the two second target images whose polarization directions are perpendicular to each other in the at least one second image to obtain two multi-scale decomposition images; 对所述两个多尺度分解图像进行加权融合处理,得到第一偏振融合图像;performing weighted fusion processing on the two multi-scale decomposition images to obtain a first polarization fusion image; 将所述至少一张第一图像与所述第一偏振融合图像进行图像融合,得到所述目标图像。performing image fusion on the at least one first image and the first polarization fusion image to obtain the target image. 8.根据权利要求6所述的图像采集方法,其特征在于,所述控制所述摄像头模组的第二图像传感器采集至少一张所述第二图像之前,所述方法还包括:8. The image acquisition method according to claim 6, characterized in that, before the second image sensor controlling the camera module acquires at least one second image, the method further comprises: 控制所述摄像头模组的第二图像传感器采集至少两张第三图像;controlling the second image sensor of the camera module to collect at least two third images; 将所述至少两张第三图像进行图像融合,得到第二偏振融合图像;performing image fusion on the at least two third images to obtain a second polarization fusion image; 基于所述第二偏振融合图像中至少两个图像区域对应的亮度信息,确定所述至少两个图像区域对应的偏移角度,所述偏移角度为所述第一偏振镜的偏振方向与所述第二偏振镜的偏振方向之间的夹角;Based on brightness information corresponding to at least two image areas in the second polarization fusion image, determine an offset angle corresponding to the at least two image areas, where the offset angle is the polarization direction of the first polarizer and the polarization direction of the first polarizer. The angle between the polarization directions of the second polarizer; 所述控制所述摄像头模组的第二图像传感器采集至少一张第二图像,包括:The second image sensor controlling the camera module collects at least one second image, including: 在所述第二偏振镜的偏振方向为第二偏振方向的情况下,根据所述偏移角度,控制所述第一偏振镜偏移至目标角度;When the polarization direction of the second polarizer is the second polarization direction, controlling the first polarizer to shift to a target angle according to the offset angle; 控制所述第二图像传感器采集至少一张第二图像。The second image sensor is controlled to capture at least one second image. 9.一种图像采集装置,其特征在于,包括如权利要求1-3中任一项所述的摄像头模组,所述图像采集装置还包括:9. An image acquisition device, characterized in that it comprises the camera module according to any one of claims 1-3, the image acquisition device further comprising: 采集模块,用于控制所述摄像头模组的第一图像传感器采集至少一张第一图像,以及控制所述摄像头模组的第二图像传感器采集至少一张第二图像,其中,所述第二图像为偏振光图像;An acquisition module, configured to control the first image sensor of the camera module to acquire at least one first image, and control the second image sensor of the camera module to acquire at least one second image, wherein the second The image is a polarized light image; 融合模块,用于基于至少一张所述第一图像和至少一张所述第二图像,得到目标图像。A fusion module, configured to obtain a target image based on at least one of the first images and at least one of the second images. 10.一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求5-8任一项所述的图像采集方法的步骤。10. An electronic device, characterized in that it includes a processor, a memory, and a program or instruction stored on the memory and operable on the processor, and the program or instruction is implemented when executed by the processor. The steps of the image acquisition method as described in any one of claims 5-8.
CN202211213700.XA 2022-09-30 2022-09-30 Camera module, electronic equipment and image acquisition method Pending CN115589515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211213700.XA CN115589515A (en) 2022-09-30 2022-09-30 Camera module, electronic equipment and image acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211213700.XA CN115589515A (en) 2022-09-30 2022-09-30 Camera module, electronic equipment and image acquisition method

Publications (1)

Publication Number Publication Date
CN115589515A true CN115589515A (en) 2023-01-10

Family

ID=84778754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211213700.XA Pending CN115589515A (en) 2022-09-30 2022-09-30 Camera module, electronic equipment and image acquisition method

Country Status (1)

Country Link
CN (1) CN115589515A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025103200A1 (en) * 2023-11-13 2025-05-22 维沃移动通信有限公司 Camera module, image acquisition method, electronic device, apparatus, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265596A (en) * 2008-12-22 2011-11-30 伊斯曼柯达公司 Camera with rotating polarizing filter
CN110636197A (en) * 2019-10-15 2019-12-31 维沃移动通信(杭州)有限公司 Shooting processing method and electronic equipment
CN110798604A (en) * 2019-11-29 2020-02-14 维沃移动通信有限公司 Camera module, electronic equipment, shooting control method and device
CN211239951U (en) * 2020-03-31 2020-08-11 维沃移动通信有限公司 A camera module and electronic equipment
CN112492168A (en) * 2020-12-01 2021-03-12 维沃移动通信(杭州)有限公司 Camera module, video recording method and electronic equipment
CN215416213U (en) * 2021-06-25 2022-01-04 浙江大华技术股份有限公司 Imaging assembly and monitoring equipment
CN114205537A (en) * 2021-11-04 2022-03-18 北京建筑大学 Multifunctional underwater cultural relic auxiliary searching and high-definition image acquisition equipment and method
CN115118859A (en) * 2022-06-27 2022-09-27 联想(北京)有限公司 Electronic device and processing method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265596A (en) * 2008-12-22 2011-11-30 伊斯曼柯达公司 Camera with rotating polarizing filter
CN110636197A (en) * 2019-10-15 2019-12-31 维沃移动通信(杭州)有限公司 Shooting processing method and electronic equipment
CN110798604A (en) * 2019-11-29 2020-02-14 维沃移动通信有限公司 Camera module, electronic equipment, shooting control method and device
CN211239951U (en) * 2020-03-31 2020-08-11 维沃移动通信有限公司 A camera module and electronic equipment
CN112492168A (en) * 2020-12-01 2021-03-12 维沃移动通信(杭州)有限公司 Camera module, video recording method and electronic equipment
CN215416213U (en) * 2021-06-25 2022-01-04 浙江大华技术股份有限公司 Imaging assembly and monitoring equipment
CN114205537A (en) * 2021-11-04 2022-03-18 北京建筑大学 Multifunctional underwater cultural relic auxiliary searching and high-definition image acquisition equipment and method
CN115118859A (en) * 2022-06-27 2022-09-27 联想(北京)有限公司 Electronic device and processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025103200A1 (en) * 2023-11-13 2025-05-22 维沃移动通信有限公司 Camera module, image acquisition method, electronic device, apparatus, and storage medium

Similar Documents

Publication Publication Date Title
US10103193B1 (en) Apparatus and method for low dark current floating diffusion
US9030583B2 (en) Imaging system with foveated imaging capabilites
US11272126B2 (en) Wide dynamic range image sensor with global shutter
US8823846B2 (en) Pausing digital readout of an optical sensor array
WO2022268170A1 (en) Image processing method and apparatus, and electronic device
US9854186B2 (en) Methods and apparatus for an images sensor with row-level gain control
CN103905731B (en) A kind of wide dynamic images acquisition method and system
WO2022268216A1 (en) Pixel structure, image sensor, control method and apparatus, and electronic device
CN114449188B (en) Dark current calibration method and associated pixel circuit system
KR20130046174A (en) Vision recognition apparatus and method
CN113573037B (en) Image processing method and device and electronic equipment
US20160037101A1 (en) Apparatus and Method for Capturing Images
CN115118858B (en) Image sensor, image acquisition method, image acquisition device, electronic equipment and storage medium
CN112672054A (en) Focusing method and device and electronic equipment
US10051216B2 (en) Imaging apparatus and imaging method thereof using correlated double sampling
CN115589515A (en) Camera module, electronic equipment and image acquisition method
WO2017101864A1 (en) Image sensor, control method, and electronic device
CN113286092B (en) Pixel processing circuit, method and device and electronic equipment
WO2016169488A1 (en) Image processing method and apparatus, computer storage medium and terminal
WO2017101562A1 (en) Image sensor, terminal having same, and imaging method
WO2024140724A1 (en) Image sensor, camera module and electronic device
CN113301262B (en) Pixel processing circuit, method and device and electronic equipment
TWI766411B (en) Imaging sensor and electronic device
CN115278001A (en) Image sensor, camera module, electronic device and shooting method
CN113163103B (en) Imaging apparatus having image conversion circuit for improved motion detection

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