[go: up one dir, main page]

CN116567401A - Camera module control method, camera module and electronic device - Google Patents

Camera module control method, camera module and electronic device Download PDF

Info

Publication number
CN116567401A
CN116567401A CN202310574026.6A CN202310574026A CN116567401A CN 116567401 A CN116567401 A CN 116567401A CN 202310574026 A CN202310574026 A CN 202310574026A CN 116567401 A CN116567401 A CN 116567401A
Authority
CN
China
Prior art keywords
camera
target
pixel information
field
view
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
CN202310574026.6A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202310574026.6A priority Critical patent/CN116567401A/en
Publication of CN116567401A publication Critical patent/CN116567401A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/40Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled
    • H04N25/44Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled by partially reading an SSIS array

Landscapes

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

Abstract

本公开提供了一种摄像头模组的控制方法、摄像头模组及电子设备,所述摄像头模组至少包括第一摄像头和第二摄像头,通过响应于第一图像获取指令,获取所述第一摄像头和所述第二摄像头的视场区域内的像素信息,所述第一摄像头和所述第二摄像头的视场区域不在同一平面;对所述第一摄像头和所述第二摄像头的视场区域内的像素信息进行处理,得到目标视场区域的目标像素信息,所述目标视场区域包括所述第一摄像头和/或所述第二摄像头的视场区域;基于所述目标像素信息输出目标图像,能够通过低分辨的摄像头获得高分辨率、高质量图像。

The present disclosure provides a method for controlling a camera module, a camera module, and electronic equipment. The camera module includes at least a first camera and a second camera. and the pixel information in the field of view of the second camera, the field of view of the first camera and the second camera are not on the same plane; for the field of view of the first camera and the second camera Process the pixel information in the target field of view area to obtain the target pixel information of the target field of view area, the target field of view area includes the field of view area of the first camera and/or the second camera; output the target based on the target pixel information Images can obtain high-resolution, high-quality images through low-resolution cameras.

Description

摄像头模组的控制方法、摄像头模组及电子设备Camera module control method, camera module and electronic device

技术领域technical field

本公开涉及计算机领域,尤其涉及一种摄像头模组的控制方法、摄像头模组及电子设备。The present disclosure relates to the field of computers, and in particular to a camera module control method, camera module and electronic equipment.

背景技术Background technique

随着电子产品的更新换代加快,其各项配置也随之具有升级需求。With the acceleration of the upgrading of electronic products, its various configurations also have the need to upgrade.

摄像头拍摄画面像素的提升,可以获得更为优质的画面。在现有技术中,有通过超算算法优化图像分辨率的技术,但是这种技术不仅占用大量算力,还具有画面失真的缺点。或者,使用高性能的摄像头,也受限于工艺和成本因素,迭代缓慢。因此,摄像头在像素提升方面进展缓慢、开发周期长。The improvement of the pixels of the camera shooting picture can obtain a better quality picture. In the prior art, there is a technique of optimizing image resolution through a supercomputing algorithm, but this technique not only takes up a lot of computing power, but also has the disadvantage of image distortion. Alternatively, the use of high-performance cameras is also limited by process and cost factors, and iterations are slow. Therefore, the progress of the camera in terms of pixel enhancement is slow and the development cycle is long.

发明内容Contents of the invention

本公开提供了一种摄像头模组的控制方法、摄像头模组及电子设备。The disclosure provides a camera module control method, camera module and electronic equipment.

根据本公开的第一方面,提供了一种摄像头模组的控制方法,所述摄像头模组至少包括第一摄像头和第二摄像头,所述方法包括:According to a first aspect of the present disclosure, a method for controlling a camera module is provided, the camera module includes at least a first camera and a second camera, and the method includes:

响应于第一图像获取指令,获取所述第一摄像头和所述第二摄像头的视场区域内的像素信息,所述第一摄像头和所述第二摄像头的视场区域不在同一平面;In response to the first image acquisition instruction, acquire pixel information in the field of view areas of the first camera and the second camera, where the field of view areas of the first camera and the second camera are not on the same plane;

对所述第一摄像头和所述第二摄像头的视场区域内的像素信息进行处理,得到目标视场区域的目标像素信息,所述目标视场区域包括所述第一摄像头和/或所述第二摄像头的视场区域;Processing pixel information in the field of view areas of the first camera and the second camera to obtain target pixel information of a target field of view area, where the target field of view area includes the first camera and/or the The field of view of the second camera;

基于所述目标像素信息输出目标图像。outputting a target image based on the target pixel information.

在本申请一实施中,所述响应于第一图像获取指令,获取所述第一摄像头和所述第二摄像头的视场区域内的像素信息,包括:In an implementation of the present application, the acquiring pixel information in the field of view areas of the first camera and the second camera in response to the first image acquisition instruction includes:

响应于第一图像获取指令,确定目标取景对象;determining a target framing object in response to a first image acquisition instruction;

控制所述第一摄像头获取其在第一平面内的视场区域的所述目标取景对象的第一像素信息;controlling the first camera to acquire the first pixel information of the target framing object in its field of view area in the first plane;

控制所述第二摄像头获取其在第二平面内的视场区域的所述目标取景对象的第二像素信息;其中,所述第一平面与所述第二平面之间具有第一夹角。Controlling the second camera to acquire second pixel information of the target viewing object in its field of view area in a second plane; wherein, there is a first angle between the first plane and the second plane.

在本申请一实施中,所述响应于第一图像获取指令,获取所述第一摄像头和所述第二摄像头的视场区域内的像素信息,包括:In an implementation of the present application, the acquiring pixel information in the field of view areas of the first camera and the second camera in response to the first image acquisition instruction includes:

响应于第一图像获取指令,确定目标取景对象;determining a target framing object in response to a first image acquisition instruction;

控制所述第一摄像头获取所述目标取景对象的第一图像;controlling the first camera to acquire a first image of the target framing object;

控制所述第二摄像头获取所述目标取景对象的第二图像;controlling the second camera to acquire a second image of the target framing object;

基于所述第一图像和所述第二图像获取所述像素信息;acquiring the pixel information based on the first image and the second image;

其中,所述目标取景对象在所述第一图像中的像素信息和在所述第二图像中的像素信息至少部分不同。Wherein, the pixel information of the target viewing object in the first image is at least partially different from the pixel information in the second image.

在本申请一实施中,所述响应于第一图像获取指令,获取所述第一摄像头和所述第二摄像头的视场区域内的像素信息,包括:In an implementation of the present application, the acquiring pixel information in the field of view areas of the first camera and the second camera in response to the first image acquisition instruction includes:

基于所述第一图像获取指令确定目标取景对象,控制所述第一摄像头获取所述目标取景对象的第三图像;determining a target framing object based on the first image acquisition instruction, and controlling the first camera to acquire a third image of the target framing object;

基于所述第一图像获取指令控制所述第二摄像头的视场区域,以获取所述目标取景对象在第三平面上的第四图像;controlling the field of view area of the second camera based on the first image acquisition instruction, to acquire a fourth image of the target framing object on the third plane;

基于所述第三图像和所述第四图像获取所述像素信息;acquiring the pixel information based on the third image and the fourth image;

其中,所述目标取景对象在所述第三图像中的像素信息和在所述第四图像中的像素信息至少部分不同。Wherein, the pixel information of the target viewing object in the third image is at least partially different from the pixel information in the fourth image.

在本申请一实施中,对所述第一摄像头和所述第二摄像头的视场区域内的像素信息进行处理,得到目标视场区域的目标像素信息,包括:In an implementation of the present application, the pixel information in the field of view area of the first camera and the second camera is processed to obtain the target pixel information of the target field of view area, including:

获得所述第一摄像头在单位长度上的子视场区域的第一子像素信息;Obtain the first sub-pixel information of the sub-field of view area per unit length of the first camera;

获得所述第二摄像头在单位长度上的子视场区域的第二子像素信息,所述第二子像素信息与所述第一子像素信息至少在像素位置上存在差异;Obtaining second sub-pixel information of the sub-field of view area per unit length of the second camera, where the second sub-pixel information differs from the first sub-pixel information at least in pixel positions;

对所述第一子像素信息和所述第二子像素信息进行差分计算,得到目标视场区域的目标像素信息。Perform differential calculation on the first sub-pixel information and the second sub-pixel information to obtain target pixel information in the target field of view area.

在本申请一实施中,基于所述目标像素信息输出目标图像,包括:In an implementation of the present application, outputting a target image based on the target pixel information includes:

基于所述目标像素信息确定目标视场区域内各像素点的位置信息;determining position information of each pixel in the target field of view area based on the target pixel information;

基于所述位置信息对所述目标视场区域内的对应像素点进行拼接处理,得到所述目标图像。The target image is obtained by performing splicing processing on corresponding pixel points in the target field of view area based on the position information.

在本申请一实施中,还包括:In an implementation of the present application, it also includes:

利用第二摄像头的视场区域内的第二像素点的像素信息对所述第一摄像头的视场区域内的第一像素点进行比对验证,以确定目标视场区域内的目标像素点,其中,所述第二像素点是与所述第一像素点相邻的像素点。Using the pixel information of the second pixel in the field of view of the second camera to compare and verify the first pixel in the field of view of the first camera to determine the target pixel in the field of view of the target, Wherein, the second pixel is a pixel adjacent to the first pixel.

在本申请一实施中,还包括:In an implementation of the present application, it also includes:

响应于获得第二图像采集指令,调整所述第一摄像头和/或所述第二摄像头的视场区域,以基于调整后的视场区域内的像素信息更新所述目标图像。In response to obtaining the second image capture instruction, adjust the field of view of the first camera and/or the second camera, so as to update the target image based on the adjusted pixel information in the field of view.

根据本公开的第二方面,提供了一种摄像头模组,包括:According to a second aspect of the present disclosure, a camera module is provided, including:

获取模块,用于响应于第一图像获取指令,获取所述第一摄像头和所述第二摄像头的视场区域内的像素信息,所述第一摄像头和所述第二摄像头的视场区域不在同一平面;An acquisition module, configured to acquire pixel information in the field of view areas of the first camera and the second camera in response to the first image acquisition instruction, and the field of view areas of the first camera and the second camera are not in the same plane;

像素确定模块,用于对所述第一摄像头和所述第二摄像头的视场区域内的像素信息进行处理,得到目标视场区域的目标像素信息,所述目标视场区域包括所述第一摄像头和/或所述第二摄像头的视场区域;A pixel determination module, configured to process pixel information in the field of view areas of the first camera and the second camera to obtain target pixel information of a target field of view area, where the target field of view area includes the first the field of view area of the camera and/or the second camera;

图像输出模块,用于基于所述目标像素信息输出目标图像。An image output module, configured to output a target image based on the target pixel information.

在本申请一实施中,所述获取模块,具体用于:In an implementation of the present application, the acquisition module is specifically used for:

响应于第一图像获取指令,确定目标取景对象;determining a target framing object in response to a first image acquisition instruction;

控制所述第一摄像头获取其在第一平面内的视场区域的所述目标取景对象的第一像素信息;controlling the first camera to acquire the first pixel information of the target framing object in its field of view area in the first plane;

控制所述第二摄像头获取其在第二平面内的视场区域的所述目标取景对象的第二像素信息;其中,所述第一平面与所述第二平面之间具有第一夹角。Controlling the second camera to acquire second pixel information of the target viewing object in its field of view area in a second plane; wherein, there is a first angle between the first plane and the second plane.

在本申请一实施中,所述获取模块,具体用于:In an implementation of the present application, the acquisition module is specifically used for:

响应于第一图像获取指令,确定目标取景对象;determining a target framing object in response to a first image acquisition instruction;

控制所述第一摄像头获取所述目标取景对象的第一图像;controlling the first camera to acquire a first image of the target framing object;

控制所述第二摄像头获取所述目标取景对象的第二图像;controlling the second camera to acquire a second image of the target framing object;

基于所述第一图像和所述第二图像获取所述像素信息;acquiring the pixel information based on the first image and the second image;

其中,所述目标取景对象在所述第一图像中的像素信息和在所述第二图像中的像素信息至少部分不同。Wherein, the pixel information of the target viewing object in the first image is at least partially different from the pixel information in the second image.

在本申请一实施中,所述获取模块,具体用于:In an implementation of the present application, the acquisition module is specifically used for:

基于所述第一图像获取指令确定目标取景对象,控制所述第一摄像头获取所述目标取景对象的第三图像;determining a target framing object based on the first image acquisition instruction, and controlling the first camera to acquire a third image of the target framing object;

基于所述第一图像获取指令控制所述第二摄像头的视场区域,以获取所述目标取景对象在第三平面上的第四图像;controlling the field of view area of the second camera based on the first image acquisition instruction, to acquire a fourth image of the target framing object on the third plane;

基于所述第三图像和所述第四图像获取所述像素信息;acquiring the pixel information based on the third image and the fourth image;

其中,所述目标取景对象在所述第三图像中的像素信息和在所述第四图像中的像素信息至少部分不同。Wherein, the pixel information of the target viewing object in the third image is at least partially different from the pixel information in the fourth image.

在本申请一实施中,像素确定模块,具体用于:In an implementation of the present application, the pixel determination module is specifically used for:

获得所述第一摄像头在单位长度上的子视场区域的第一子像素信息;Obtain the first sub-pixel information of the sub-field of view area per unit length of the first camera;

获得所述第二摄像头在单位长度上的子视场区域的第二子像素信息,所述第二子像素信息与所述第一子像素信息至少在像素位置上存在差异;Obtaining second sub-pixel information of the sub-field of view area per unit length of the second camera, where the second sub-pixel information differs from the first sub-pixel information at least in pixel positions;

对所述第一子像素信息和所述第二子像素信息进行差分计算,得到目标视场区域的目标像素信息。Perform differential calculation on the first sub-pixel information and the second sub-pixel information to obtain target pixel information in the target field of view area.

在本申请一实施中,像素确定模块,具体用于:In an implementation of the present application, the pixel determination module is specifically used for:

基于所述目标像素信息确定目标视场区域内各像素点的位置信息;determining position information of each pixel in the target field of view area based on the target pixel information;

基于所述位置信息对所述目标视场区域内的对应像素点进行拼接处理,得到所述目标图像。The target image is obtained by performing splicing processing on corresponding pixel points in the target field of view area based on the position information.

在本申请一实施中,还包括:In an implementation of the present application, it also includes:

验证模块,用于利用第二摄像头的视场区域内的第二像素点的像素信息对所述第一摄像头的视场区域内的第一像素点进行比对验证,以确定目标视场区域内的目标像素点,其中,所述第二像素点是与所述第一像素点相邻的像素点。A verification module, configured to use the pixel information of the second pixel in the field of view of the second camera to compare and verify the first pixel in the field of view of the first camera, so as to determine the pixel information in the field of view of the target. target pixel, wherein the second pixel is a pixel adjacent to the first pixel.

在本申请一实施中,还包括:In an implementation of the present application, it also includes:

调整模块,用于响应于获得第二图像采集指令,调整所述第一摄像头和/或所述第二摄像头的视场区域,以基于调整后的视场区域内的像素信息更新所述目标图像。An adjustment module, configured to adjust the field of view of the first camera and/or the second camera in response to obtaining a second image acquisition instruction, so as to update the target image based on pixel information in the adjusted field of view .

根据本公开的第三方面,提供了一种电子设备,包括本公开所述的摄像头模组和一处理器,其中,所述摄像头模组包括有与所述处理器信号连接的第一摄像头和第二摄像头,所述处理器能够执行以下操作:According to a third aspect of the present disclosure, an electronic device is provided, including the camera module and a processor described in the present disclosure, wherein the camera module includes a first camera and a first camera connected to the processor for signal connection. For a second camera, the processor is capable of:

响应于第一图像获取指令,获取所述第一摄像头和所述第二摄像头的视场区域内的像素信息,所述第一摄像头和所述第二摄像头的视场区域不在同一平面;In response to the first image acquisition instruction, acquire pixel information in the field of view areas of the first camera and the second camera, where the field of view areas of the first camera and the second camera are not on the same plane;

对所述第一摄像头和所述第二摄像头的视场区域内的像素信息进行处理,得到目标视场区域的目标像素信息,所述目标视场区域包括所述第一摄像头和/或所述第二摄像头的视场区域;Processing pixel information in the field of view areas of the first camera and the second camera to obtain target pixel information of a target field of view area, where the target field of view area includes the first camera and/or the The field of view of the second camera;

基于所述目标像素信息输出目标图像。outputting a target image based on the target pixel information.

根据本公开的第四方面,提供了一种设备,包括:According to a fourth aspect of the present disclosure, there is provided an apparatus comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本公开所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor, to enable the at least one processor to perform the methods described in the present disclosure.

根据本公开的第五方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使所述计算机执行本公开所述的方法。According to a fifth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the method described in the present disclosure.

本公开的摄像头模组的控制方法,通过响应于第一图像获取指令,获取所述第一摄像头和所述第二摄像头的视场区域内的像素信息,所述第一摄像头和所述第二摄像头的视场区域不在同一平面;对所述第一摄像头和所述第二摄像头的视场区域内的像素信息进行处理,得到目标视场区域的目标像素信息,所述目标视场区域包括所述第一摄像头和/或所述第二摄像头的视场区域;基于所述目标像素信息输出目标图像,能够通过低分辨的摄像头获得高分辨率、高质量图像。In the control method of the camera module of the present disclosure, by responding to the first image acquisition instruction, the pixel information in the field of view of the first camera and the second camera is acquired, and the first camera and the second camera The field of view areas of the cameras are not on the same plane; the pixel information in the field of view areas of the first camera and the second camera is processed to obtain the target pixel information of the target field of view area, and the target field of view area includes all The field of view area of the first camera and/or the second camera; the target image is output based on the target pixel information, and a high-resolution and high-quality image can be obtained through a low-resolution camera.

应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following description.

附图说明Description of drawings

通过参考附图阅读下文的详细描述,本公开示例性实施方式的上述以及其他目的、特征和优点将变得易于理解。在附图中,以示例性而非限制性的方式示出了本公开的若干实施方式,其中:The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become readily understood by reading the following detailed description with reference to the accompanying drawings. In the drawings, several embodiments of the present disclosure are shown by way of illustration and not limitation, in which:

在附图中,相同或对应的标号表示相同或对应的部分。In the drawings, the same or corresponding reference numerals denote the same or corresponding parts.

图1示出了本公开实施例提供的一种摄像头模组的控制方法的实现流程示意图;FIG. 1 shows a schematic flow diagram of a method for controlling a camera module provided by an embodiment of the present disclosure;

图2示出了本公开实施例提供的一种摄像头模组的控制方法中步骤S130的实现流程示意图;FIG. 2 shows a schematic diagram of the implementation flow of step S130 in a method for controlling a camera module provided by an embodiment of the present disclosure;

图3示出了本公开实施例提供的一种目标子像素信息计算过程的流程示意图;FIG. 3 shows a schematic flowchart of a target sub-pixel information calculation process provided by an embodiment of the present disclosure;

图4示出了本公开实施例提供的一种摄像头模组的结构示意图;FIG. 4 shows a schematic structural diagram of a camera module provided by an embodiment of the present disclosure;

图5示出了本公开实施例提供的一种电子设备的结构示意图;FIG. 5 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure;

图6示出了本公开实施例一种设备的组成结构示意图。Fig. 6 shows a schematic diagram of the composition and structure of a device according to an embodiment of the present disclosure.

具体实施方式Detailed ways

为使本公开的目的、特征、优点能够更加的明显和易懂,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而非全部实施例。基于本公开中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purpose, features, and advantages of the present disclosure more obvious and understandable, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described The embodiments are only some of the embodiments of the present disclosure, but not all of them. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present disclosure.

图1为本公开实施例提供的一种摄像头模组的控制方法的流程图,该方法可以由本公开实施例提供的摄像头模组来执行,摄像头模组至少包括第一摄像头和第二摄像头。该方法具体包括:FIG. 1 is a flow chart of a method for controlling a camera module provided by an embodiment of the present disclosure. The method may be executed by the camera module provided by an embodiment of the present disclosure. The camera module includes at least a first camera and a second camera. The method specifically includes:

S110、响应于第一图像获取指令,获取第一摄像头和第二摄像头的视场区域内的像素信息,第一摄像头和第二摄像头的视场区域不在同一平面。S110. In response to the first image acquisition instruction, acquire pixel information in the field of view areas of the first camera and the second camera, where the field of view areas of the first camera and the second camera are not on the same plane.

其中,第一图像获取指令可以是基于任何触发操作生成的用于拍摄图像的指令,其触发操作例如可以是打开相机应用、接收到语音指令、摄像头模组位姿发生变化、监测到目标取景对象进入到目标监测区域等。第一摄像头和第二摄像头可以是生产厂家、规格、型号以及分辨率相同的摄像头,也可以是不同的摄像头,用于进行拍摄。像素信息可以包括像素密度、像素色值、灰阶以及位置信息等。Wherein, the first image acquisition instruction may be an instruction for capturing an image generated based on any trigger operation, and the trigger operation may be, for example, opening the camera application, receiving a voice instruction, changing the pose of the camera module, or detecting a target framing object Enter the target monitoring area, etc. The first camera and the second camera may be cameras with the same manufacturer, specification, model and resolution, or different cameras, and are used for shooting. Pixel information may include pixel density, pixel color value, gray scale, and position information.

具体的,本实施例的摄像头模组包含至少两个摄像头,该类摄像头可以是内嵌在电子设备内的摄像头,也可以是外置的独立摄像头。由于本实施例通过摄像头模组是使用低分辨率的摄像头就能拍摄出更高分辨率的画面质感。因此,在不改变任何摄像头结构、不更换任何摄像头光学器件的情况下,本实施例需要获取不同的视场区域。通过对视场区域内不同的像素信息进行处理,来衍生出更多不同的像素信息,从而生成更高分辨的图像质量。Specifically, the camera module of this embodiment includes at least two cameras, and such cameras may be embedded in the electronic device, or may be external independent cameras. Since this embodiment uses a low-resolution camera through the camera module, a higher-resolution picture quality can be captured. Therefore, this embodiment needs to obtain different field of view areas without changing any camera structure or replacing any camera optics. By processing different pixel information in the field of view, more different pixel information is derived, thereby generating higher resolution image quality.

为了方便理解,本实施例以两个摄像头为例进行说明。若第一摄像头和第二摄像头是两个外置的独立摄像头,本实施例可以通过控制摄像头所连接的支杆来调整两个摄像头的位置和角度,使得第一摄像头和第二摄像头的视场区域不在同一平面。若第一摄像头和第二摄像头是两个内嵌于电子设备内的内置摄像头,本实施例可以通过设计摄像头内部的机械构造或使用特殊类型镜头,来让摄像头的镜头产生角度变化,从而使得第一摄像头和第二摄像头的视场区域不在同一平面。例如,本实施例的两个摄像头可以是装配在同一平面但视场角可调的多摄像头模组,该摄像头模组里的摄像头的镜头可以采用液态镜头或光学防抖镜头。因此,本实施例在接收到第一图像获取指令后,只要保证第一摄像头和第二摄像头执行图像采集任务时的视场区域不在同一平面上即可,不对其具体实现方式进行限定。For ease of understanding, this embodiment uses two cameras as an example for description. If the first camera and the second camera are two external independent cameras, this embodiment can adjust the position and angle of the two cameras by controlling the pole connected to the cameras, so that the field of view of the first camera and the second camera Regions are not on the same plane. If the first camera and the second camera are two built-in cameras embedded in the electronic device, this embodiment can change the angle of the lens of the camera by designing the mechanical structure inside the camera or using a special type of lens, so that the second The field of view areas of the first camera and the second camera are not on the same plane. For example, the two cameras in this embodiment can be a multi-camera module assembled on the same plane but with an adjustable field of view, and the lenses of the cameras in the camera module can use liquid lenses or optical anti-shake lenses. Therefore, in this embodiment, after receiving the first image acquisition instruction, it only needs to ensure that the field of view areas of the first camera and the second camera are not on the same plane when performing the image acquisition task, and the specific implementation method is not limited.

S120、对第一摄像头和第二摄像头的视场区域内的像素信息进行处理,得到目标视场区域的目标像素信息,目标视场区域包括第一摄像头和/或第二摄像头的视场区域。S120. Process pixel information in the field of view areas of the first camera and the second camera to obtain target pixel information of a target field of view area, where the target field of view area includes the field of view areas of the first camera and/or the second camera.

其中,目标视场区域是显示目标像素信息的视场区域,由第一摄像头和/或第二摄像头的视场区域而定。目标像素信息至少包括像素点的位置信息和颜色信息,是经过对第一摄像头和第二摄像头的视场区域内的像素信息进行处理后的像素信息。Wherein, the target field of view area is a field of view area displaying target pixel information, which is determined by the field of view area of the first camera and/or the second camera. The target pixel information includes at least position information and color information of pixels, and is pixel information after processing pixel information in the field of view areas of the first camera and the second camera.

由于不同摄像头可能会因为设备、光线等原因,导致其对应的像素信息不能使用,因此,本实施例的目标视场区域除了可以包含第一摄像头和第二摄像头的视场区域之外,还可以仅单独包括第一摄像头或第二摄像头的视场区域。Since the corresponding pixel information of different cameras may be unusable due to equipment, light, etc., the target field of view area in this embodiment may include not only the field of view areas of the first camera and the second camera, but also Only the field of view of the first camera or the second camera is included separately.

又由于第一摄像头和第二摄像头的视场区域不在同一平面,所以不同摄像头视场区域内的像素信息有所差异,例如采集的像素信息会存在位置偏差。本实施例可以对不同视场区域内的像素信息进行差分处理或者超算算法处理,来生成更多不同的像素信息,以得到目标视场区域的目标像素信息。示例性的,若在第一摄像头和第二摄像头的视场区域内对应采集单位长度内的4个像素点,通过对两个视场区域内4个像素点的像素信息进行处理,可以生成8个像素点。Furthermore, since the field of view areas of the first camera and the second camera are not on the same plane, the pixel information in the field of view areas of different cameras is different, for example, there may be positional deviations in the collected pixel information. In this embodiment, differential processing or supercomputing algorithm processing may be performed on pixel information in different viewing field areas to generate more different pixel information, so as to obtain target pixel information in the target viewing field area. Exemplarily, if 4 pixels within the unit length are correspondingly collected in the field of view areas of the first camera and the second camera, by processing the pixel information of the 4 pixel points in the two field of view areas, 8 pixels can be generated pixels.

S130、基于目标像素信息输出目标图像。S130. Output a target image based on the target pixel information.

其中,目标图像是最后用于输出显示的图像,能够提供更高分辨率、更为清晰的图像。Wherein, the target image is an image finally used for output display, which can provide a higher resolution and clearer image.

在本公开实施例中,基于目标像素信息输出目标图像,包括:基于所述目标像素信息确定目标视场区域内各像素点的位置信息;基于所述位置信息对所述目标视场区域内的对应像素点进行拼接处理,得到所述目标图像。In an embodiment of the present disclosure, outputting the target image based on the target pixel information includes: determining the position information of each pixel in the target field of view area based on the target pixel information; The corresponding pixel points are spliced to obtain the target image.

由于目标像素信息是通过不同视场区域内重叠部分的像素信息生成的,带有初始的位置信息和经过处理后的颜色信息,因此,本实施例在获取目标像素信息后,可以通过目标视场区域内各像素点的位置信息和颜色信息进行整合。Since the target pixel information is generated by overlapping pixel information in different field of view areas, with initial position information and processed color information, after obtaining the target pixel information in this embodiment, the target field of view can be The position information and color information of each pixel in the area are integrated.

具体的,本实施例可以在获取目标像素信息之后,确定目标视场区域内各像素点的位置信息,由于各个像素点本身自带有颜色信息,因此本实施例按照位置信息的顺序将各个像素点进行排序,通过各个像素点的以及其对应的颜色信息进行拼接,从而生成目标图像。Specifically, this embodiment can determine the position information of each pixel in the target field of view area after acquiring the target pixel information. Since each pixel has its own color information, this embodiment divides each pixel The points are sorted, and the target image is generated by splicing each pixel point and its corresponding color information.

本实施例通过响应于第一图像获取指令,获取第一摄像头和第二摄像头的视场区域内的像素信息,第一摄像头和第二摄像头的视场区域不在同一平面;对第一摄像头和第二摄像头的视场区域内的像素信息进行处理,得到目标视场区域的目标像素信息,目标视场区域包括第一摄像头和/或第二摄像头的视场区域;基于目标像素信息输出目标图像,本实施例提供了一种新型的数码变焦方法,摆脱了现有技术中工艺和成本限制的技术壁垒,使用多个低分辨率摄像头就可以生成高分辨率图像,显著提高图像质量。In this embodiment, pixel information in the field of view areas of the first camera and the second camera is obtained in response to the first image acquisition instruction, and the field of view areas of the first camera and the second camera are not on the same plane; for the first camera and the second camera The pixel information in the field of view area of the second camera is processed to obtain the target pixel information of the target field of view area, and the target field of view area includes the field of view area of the first camera and/or the second camera; outputting a target image based on the target pixel information, This embodiment provides a new type of digital zoom method, which gets rid of the technical barriers of technology and cost limitations in the prior art, and can generate high-resolution images by using multiple low-resolution cameras, significantly improving image quality.

在一可选实施例中,步骤S120,响应于第一图像获取指令,获取第一摄像头和第二摄像头的视场区域内的像素信息,可以包括:响应于第一图像获取指令,确定目标取景对象;控制第一摄像头获取其在第一平面内的视场区域的目标取景对象的第一像素信息;控制第二摄像头获取其在第二平面内的视场区域的目标取景对象的第二像素信息,其中,第一平面与第二平面之间具有第一夹角。In an optional embodiment, step S120, in response to the first image acquisition instruction, acquiring pixel information in the field of view areas of the first camera and the second camera may include: in response to the first image acquisition instruction, determining the target framing Object; controlling the first camera to acquire the first pixel information of the target framing object in its field of view area in the first plane; controlling the second camera to acquire the second pixel information of the target framing object in its field of view area in the second plane Information, wherein there is a first included angle between the first plane and the second plane.

其中,目标取景对象可以是进行拍摄的对象,本实施例不对取景对象的具体对象进行限定。Wherein, the target framing object may be an object to be photographed, and this embodiment does not limit the specific object of the framing object.

具体的,本实施例的第一图像获取指令可以打开相机应用的指令,或者是摄像头模组位姿发生变化的指令等。本实施例在接收到第一图像获取指令之后,可以响应第一图像获取指令,来聚焦确定目标取景对象。Specifically, the first image acquisition instruction in this embodiment may be an instruction to open the camera application, or an instruction to change the pose of the camera module, or the like. In this embodiment, after receiving the first image acquisition instruction, the target framing object may be focused and determined in response to the first image acquisition instruction.

具体的,本实施例可以设置第一摄像头和第二摄像头处于不同位置,也可以是包含有可以调节角度的镜头,从而第一摄像头在第一平面的视场区域和第二摄像头在第二平面的视场区域具有第一夹角。另外,本实施例的适用场景是在对取景对象进行拍照之前,也即在未获得取景对象的图像之前,直接在摄像头的视场区域内获取像素信息。示例性的,本实施例可以在第一摄像头的视场区域内,直接获取关于目标取景对象的第一像素信息,以及在第二摄像头的视场区域内,直接获取关于目标取景对象的第二像素信息。Specifically, in this embodiment, the first camera and the second camera can be set at different positions, or a lens with an adjustable angle can be included, so that the field of view of the first camera on the first plane and the field of view of the second camera on the second plane The field of view area of has a first included angle. In addition, the applicable scenario of this embodiment is to obtain pixel information directly in the field of view of the camera before taking pictures of the framing object, that is, before obtaining the image of the framing object. Exemplarily, in this embodiment, the first pixel information about the target framing object can be directly obtained within the field of view of the first camera, and the second pixel information about the target framing object can be directly obtained within the field of view of the second camera. pixel information.

本实施例在未获取取景对象的图像之前,就可以直接针对不同摄像头的视场区域内获取的像素信息进行处理,以获得更高质量的图像。In this embodiment, before the image of the framing object is acquired, the pixel information acquired in the field of view areas of different cameras can be directly processed to obtain a higher quality image.

在一可选实施例中,步骤S120,响应于第一图像获取指令,获取第一摄像头和第二摄像头的视场区域内的像素信息,还包括:响应于第一图像获取指令,确定目标取景对象;控制第一摄像头获取目标取景对象的第一图像;控制第二摄像头获取目标取景对象的第二图像;基于第一图像和第二图像获取像素信息;其中,目标取景对象在第一图像中的像素信息和在第二图像中的像素信息至少部分不同。In an optional embodiment, step S120, in response to the first image acquisition instruction, acquires pixel information in the field of view areas of the first camera and the second camera, and further includes: in response to the first image acquisition instruction, determining the target framing object; controlling the first camera to acquire the first image of the target framing object; controlling the second camera to acquire the second image of the target framing object; obtaining pixel information based on the first image and the second image; wherein the target framing object is in the first image The pixel information of is at least partially different from the pixel information in the second image.

其中,第一图像和第二图像是采集关于目标取景对象的像素信息之后而生成的图像。Wherein, the first image and the second image are images generated after collecting pixel information about the target viewing object.

具体的,本实施例可以设置第一摄像头和第二摄像头处于不同位置,也可以是包含有可以调节角度的镜头,从而使得采集图像的像素信息至少具有部分不同。本实施例为响应第一图像获取指令,可以控制第一摄像头获取关于目标取景对象的第一图像,以及,控制第二摄像头获取关于目标取景对象的第二图像,分别通过第一图像和第二图像来获取像素信息。Specifically, in this embodiment, the first camera and the second camera may be set at different positions, or include lenses whose angles can be adjusted, so that at least part of the pixel information of the collected images is different. In this embodiment, in response to the first image acquisition instruction, the first camera can be controlled to acquire a first image about the target framing object, and the second camera can be controlled to acquire a second image about the target framing object, respectively through the first image and the second image. image to get pixel information.

本实施例通过采集完整的第一图像和第二图像,再从第一图像和第二图像中采集像素信息进行处理,来获得更高质量图像。In this embodiment, a higher quality image is obtained by collecting the complete first image and the second image, and then collecting pixel information from the first image and the second image for processing.

在一可选实施例中,步骤S120,响应于第一图像获取指令,获取第一摄像头和第二摄像头的视场区域内的像素信息,还包括:基于第一图像获取指令确定目标取景对象,控制第一摄像头获取目标取景对象的第三图像;基于第一图像获取指令控制第二摄像头的视场区域,以获取目标取景对象在第三平面上的第四图像;基于第三图像和第四图像获取像素信息;目标取景对象在第三图像中的像素信息和在第四图像中的像素信息至少部分不同。In an optional embodiment, step S120, in response to the first image acquisition instruction, acquiring pixel information in the field of view areas of the first camera and the second camera, further includes: determining the target framing object based on the first image acquisition instruction, controlling the first camera to acquire a third image of the target framing object; controlling the field of view area of the second camera based on the first image acquisition instruction to acquire a fourth image of the target framing object on the third plane; based on the third image and the fourth The image acquires pixel information; the pixel information of the target viewing object in the third image is at least partially different from the pixel information in the fourth image.

本实施例还可以根据取景对象的类别、形状大小、摄像头模组和取景对象之间对应的位置关系,来调整第二摄像头的镜头角度,从而控制第二摄像头的视场区域,使得第二摄像头的视场区域和第一摄像头的视场区域的匹配最佳,以显示更适合于目标取景对象的图像。This embodiment can also adjust the lens angle of the second camera according to the category, shape and size of the framing object, the corresponding positional relationship between the camera module and the framing object, thereby controlling the field of view area of the second camera, so that the second camera The field of view area of the first camera matches the field of view area of the first camera best, so as to display an image more suitable for the target framing object.

具体的,本实施例在确定目标取景对象之后,可以通过第一摄像头获取目标取景对象的第三图像。然后获取第一摄像头和第二摄像头与取景对象的距离信息,通过距离信息调整第二摄像头的视场角度和/或视场方向。再通过控制第二摄像头获取目标取景对象在第三平面上的第四图像,通过第三图像和第四图像获取像素信息。同样是由于第一摄像头和第二摄像头的视场区域不同,因此第三图像和第四图像中的像素信息至少部分不同。Specifically, in this embodiment, after the target framing object is determined, the third image of the target framing object may be acquired through the first camera. Then, the distance information between the first camera and the second camera and the viewing object is obtained, and the field angle and/or direction of the field of view of the second camera is adjusted according to the distance information. Then, the fourth image of the target viewfinder on the third plane is acquired by controlling the second camera, and the pixel information is acquired through the third image and the fourth image. Also because the field of view areas of the first camera and the second camera are different, the pixel information in the third image and the fourth image are at least partially different.

示例性的,本实施例获取第一摄像头和第二摄像头与待测物体的距离信息,可以包括:通过红外传感器或景深摄像头,确定第一摄像头与目标取景对象之间的距离信息。在另一实施例中,若摄像头模组是独立外置的摄像头,还可以采用双目摄像头确定第一摄像头与目标取景对象之间的距离信息。Exemplarily, in this embodiment, acquiring the distance information between the first camera and the second camera and the object to be measured may include: determining the distance information between the first camera and the target framing object through an infrared sensor or a depth-of-field camera. In another embodiment, if the camera module is an independent external camera, a binocular camera may also be used to determine the distance information between the first camera and the target framing object.

本实施例能够根据取景对象的自身特点调整第二摄像头的视场区域,使得采集取景对象的目标图像效果更好。In this embodiment, the field of view area of the second camera can be adjusted according to the characteristics of the framing object, so that the effect of capturing the target image of the framing object is better.

在一可选实施例中,步骤S130,对第一摄像头和第二摄像头的视场区域内的像素信息进行处理,得到目标视场区域的目标像素信息,如图2所示,包括:In an optional embodiment, step S130 is to process the pixel information in the field of view area of the first camera and the second camera to obtain the target pixel information of the target field of view area, as shown in FIG. 2 , including:

S130a,获得第一摄像头在单位长度上的子视场区域的第一子像素信息。S130a. Obtain first sub-pixel information of a sub-field of view area of the first camera on a unit length.

为了便于计算,本实施例在对各个摄像头视场区域内的像素信息进行处理时,可以把视场区域分为多个子视场区域,其中,各个子视场区域的尺寸大小可以相同,也可以不同。示例性的,本实施例可以按照单位长度,将第一摄像头和第二摄像头的视场区域直接分成多个对应的子视场区域。或者,本实施例还可以获取视场区域内的图像,将图像分成多个子视场区域。同样为了简化计算,本实施例可以将目标视场区域的目标像素信息,转化为各个单位长度上的子视场区域内的子像素信息的计算。For the convenience of calculation, in this embodiment, when processing the pixel information in the field of view area of each camera, the field of view area can be divided into multiple sub-field of view areas, wherein the size of each sub-field of view area can be the same, or can be different. Exemplarily, in this embodiment, the field of view areas of the first camera and the second camera may be directly divided into multiple corresponding sub-field of view areas according to unit lengths. Alternatively, in this embodiment, an image in the field of view area may be acquired, and the image may be divided into multiple sub-field of view areas. Also in order to simplify the calculation, in this embodiment, the target pixel information in the target field of view area can be transformed into the calculation of sub-pixel information in the sub-field of view area on each unit length.

S130b,获得第二摄像头在单位长度上的子视场区域的第二子像素信息,第二子像素信息与第一子像素信息至少在像素位置上存在差异。S130b. Obtain second sub-pixel information of a sub-field of view area of the second camera on a unit length, where the second sub-pixel information differs from the first sub-pixel information at least in pixel positions.

具体的,本实施例可以通过直接在子视场区域内获取像素信息,也可以通过图像上采集的像素点、再通过像素点获取像素信息的两种方式来获取第一子像素信息和第二子像素信息。由于第一摄像头和第二摄像头的视场区域不在同一平面,因此,通过第一摄像头的子视场区域获得的第一子像素信息,以及通过第二摄像头的子视场区域获得的第二子像素信息在像素位置上会存有差异。Specifically, in this embodiment, the first sub-pixel information and the second sub-pixel information can be obtained by directly obtaining pixel information in the sub-field of view area, or by obtaining pixel information on the image through pixel points, and obtaining pixel information through pixel points. Subpixel information. Since the field of view areas of the first camera and the second camera are not on the same plane, the first sub-pixel information obtained through the sub-field of view area of the first camera and the second sub-pixel information obtained through the sub-field of view area of the second camera Pixel information will vary in pixel location.

需要说明的是,本实施例可以依次通过第一摄像头和第二摄像头内的子视场区域作为目标子视场区域,以对整个视场区域内的像素信息进行处理。本实施例还可以根据需求对第一摄像头和第二摄像头内的部分子视场区域作为目标子视场区域,来对部分视场区域内的像素信息进行处理。其中,目标子视场区域是当前时刻进行像素信息处理的子视场区域,可以是任意子视场区域。It should be noted that in this embodiment, the sub-field of view areas in the first camera and the second camera may be used as target sub-field of view areas in order to process pixel information in the entire field of view area. In this embodiment, according to requirements, part of the sub-field of view areas in the first camera and the second camera may be used as target sub-field of view areas to process pixel information in part of the field of view areas. Wherein, the target sub-field of view area is a sub-field of view area where pixel information is processed at the current moment, and may be any sub-field of view area.

S130c,对第一子像素信息和第二子像素信息进行差分计算,得到目标视场区域的目标像素信息。S130c. Perform differential calculation on the first sub-pixel information and the second sub-pixel information to obtain target pixel information in the target field of view area.

本实施例在获取第一子像素信息和第二子像素信息之后,可以进行差分运算,也即计算第一子像素信息和第二子像素信息的像素差值。由于第一子像素信息和第二子像素信息来源于不同角度的视场区域,因此,第一子像素信息和第二子像素信息存在位置偏差,本实施例正是利用这种位置偏差,计算在两个子像素信息在重叠位置的像素差值,来获得不同颜色信息的像素信息。将计算后的差值作为目标子像素信息。最后,本实施例在计算各个目标子视场区域的目标子像素信息后,可以组合为目标视场区域的目标像素信息。In this embodiment, after the first sub-pixel information and the second sub-pixel information are acquired, a difference operation may be performed, that is, a pixel difference value between the first sub-pixel information and the second sub-pixel information may be calculated. Since the first sub-pixel information and the second sub-pixel information come from the field of view area with different angles, there is a positional deviation between the first sub-pixel information and the second sub-pixel information. This embodiment uses this positional deviation to calculate Pixel information of different color information is obtained by taking the pixel difference value of two sub-pixel information at overlapping positions. The calculated difference is used as target sub-pixel information. Finally, in this embodiment, after calculating the target sub-pixel information of each target sub-field of view area, it may be combined into target pixel information of the target field of view area.

为了方便理解,本实施例以第一摄像头和第二摄像头为例进行说明。如图3所示,图3为本公开实施例提供的一种目标子像素信息计算过程的示意图,在相同位置的单位长度L内采集四个像素点为例进行说明,包含有:图3(a),第一摄像头采集的第一像素点A、B、C、D示意图;图3(b),第二摄像头采集的第二像素点E、F、G、H1、H2示意图;图3(c),将两个摄像头采集的像素点进行叠加操作后的示意图;图3(d)差分运算后,生成的目标子像素点1-8示意图。For ease of understanding, this embodiment uses the first camera and the second camera as examples for description. As shown in FIG. 3 , FIG. 3 is a schematic diagram of a target sub-pixel information calculation process provided by an embodiment of the present disclosure. Collecting four pixels within a unit length L at the same position is taken as an example for illustration, including: FIG. 3 ( a), schematic diagram of the first pixel points A, B, C, D collected by the first camera; Fig. 3(b), schematic diagram of the second pixel points E, F, G, H 1 , H 2 collected by the second camera; Fig. 3(c) is a schematic diagram of superimposing the pixels collected by two cameras; Fig. 3(d) is a schematic diagram of target sub-pixels 1-8 generated after differential operation.

需要说明的是,本实施例为了方便示意与理解,图3(a)内的像素点A-D以及图3(b)内的像素点E-G之间设置有空白区域,仅是为了更好地区分相邻像素点,不含有任何意义。其次,像素点H在图3(b)内由H1和H2表示,其中,H1在单位长度L以内,H2在单位长度L以外。并且,本实施例通过将图3(a)内的像素点A-D以及图3(b)内的像素点E-H2进行融合后的长度,应该大于单位长度L,但是为了方便进行比较,本实施例仅对单位长度L内的像素点进行说明。It should be noted that, for the convenience of illustration and understanding in this embodiment, a blank area is set between the pixel point AD in FIG. 3(a) and the pixel point EG in FIG. Neighboring pixels do not have any meaning. Secondly, the pixel point H is represented by H1 and H2 in Fig. 3(b), where H1 is within the unit length L and H2 is outside the unit length L. Moreover, in this embodiment, the length after fusion of pixel point AD in FIG. 3(a) and pixel point EH 2 in FIG. Only the pixels within the unit length L are described.

具体的,本实施例中的第一像素点A-D包含有第一像素信息;第二像素点E-H1包含有第二像素信息,目标子像素点1-8包含有目标子像素信息。另外,第二摄像头通过角度偏差设定,在原本的单位长度L上继续采集4个像素点,但是由于位置偏差,此时采集的像素点与第一摄像头采集的像素点位置有偏差,导致图3(b)内的像素点H仅有H1部分参与融合。Specifically, the first pixel point AD in this embodiment includes first pixel information; the second pixel point EH 1 includes second pixel information, and the target sub-pixel points 1-8 include target sub-pixel information. In addition, the second camera continues to collect 4 pixels on the original unit length L through the angle deviation setting, but due to the position deviation, the pixel points collected at this time deviate from the pixel points collected by the first camera, resulting in Only H1 part of the pixel H in 3(b) participates in the fusion.

本实施例通过将在重叠区域所采集的不同像素点的像素信息进行差分运算,即可在重叠区域得到新的像素信息,也即上述实施例所提到的目标子视场区域的目标子像素信息。In this embodiment, new pixel information can be obtained in the overlapping area by performing a differential operation on the pixel information of different pixel points collected in the overlapping area, that is, the target sub-pixel in the target sub-field of view area mentioned in the above-mentioned embodiment information.

在本公开实施例中,还包括:利用第二摄像头的视场区域内的第二像素点的像素信息对第一摄像头的视场区域内的第一像素点进行比对验证,以确定目标视场区域内的目标像素点,其中,第二像素点是与第一像素点相邻的像素点。In the embodiment of the present disclosure, it also includes: using the pixel information of the second pixel in the field of view of the second camera to compare and verify the first pixel in the field of view of the first camera, so as to determine the target view Target pixels in the field area, wherein the second pixel is a pixel adjacent to the first pixel.

由于在第一摄像头的视场区域内所采集的第一像素点和在第二摄像头的视场区域内所采集的第二像素点,可能会存在噪点,因此本实施例可以将两个摄像头所采集的像素点进行比对验证。Since there may be noise in the first pixel collected in the field of view of the first camera and the second pixel collected in the field of view of the second camera, in this embodiment, the two cameras can The collected pixels are compared and verified.

具体的,本实施例可以通过第二摄像头的视场区域内的第二像素点的像素信息对第一摄像头的视场区域内的第一像素点进行验证,其中,第二像素点是与第一像素点相邻位置的像素点。以图3为例进行说明,本实施例可以使用第二像素点E和F对第一像素点B进行验证。若第一像素点与第二像素点E和F的像素差值大于预设值,则可以认为第一像素点B为噪点,并删除B点像素点数据,仅采用第二摄像头采集的第二像素点E和F的像素信息来确定目标子像素信息。或者,本实施例还可以计算第一像素点A与第一像素点C的像素均值作为第一像素点B的像素信息,以替代原有噪点。Specifically, in this embodiment, the first pixel in the field of view of the first camera can be verified through the pixel information of the second pixel in the field of view of the second camera, where the second pixel is the same as the second pixel in the field of view of the second camera. Pixels adjacent to one pixel. Taking FIG. 3 as an example for illustration, the second pixel points E and F can be used to verify the first pixel point B in this embodiment. If the pixel difference between the first pixel point and the second pixel point E and F is greater than the preset value, the first pixel point B can be considered as a noise point, and the pixel point data of point B is deleted, and only the second pixel point collected by the second camera is used. The pixel information of pixel points E and F is used to determine the target sub-pixel information. Alternatively, in this embodiment, the average pixel value of the first pixel point A and the first pixel point C may be calculated as the pixel information of the first pixel point B to replace the original noise.

另外,本实施例在分别获取第一摄像头采集的第一像素点或者第二摄像头采集的第二像素点之后,利用自身像素点的周边像素点进行对比验证以去除噪点。例如,还是以第一摄像头采集的第一像素点B为例进行说明,本实施例可以计算第一像素点B与第一像素点A以及与第一像素点C之间的像素差值,若像素差值均大于预设值,则可以认为第一像素点B为噪点,并删除B点像素点数据,或者计算第一像素点A与第一像素点C的像素均值作为第一像素点B的像素信息。In addition, in this embodiment, after the first pixel collected by the first camera or the second pixel collected by the second camera is respectively obtained, the surrounding pixels of the own pixel are used for comparative verification to remove noise. For example, still taking the first pixel point B captured by the first camera as an example, this embodiment can calculate the pixel difference between the first pixel point B and the first pixel point A and the first pixel point C, if If the pixel difference values are greater than the preset value, then the first pixel point B can be considered as a noise point, and the pixel point data of point B can be deleted, or the pixel average value of the first pixel point A and the first pixel point C can be calculated as the first pixel point B pixel information.

除此之外,本实施例还可以通过使用目标子视场区域的相邻目标子像素点来对第一摄像头和/或第二摄像头采集的各个像素点进行验证。例如,还是以第一摄像头采集的第一像素点B为例进行说明,本实施例可以使用目标子像素点3和目标子像素点4对第一像素点B进行验证。具体的,同样可以计算第一像素点B与目标子像素点3以及与目标子像素点4之间的像素差值,若像素差值均大于预设值,则可以认为第一像素点B为噪点,并删除B点像素点数据。In addition, in this embodiment, each pixel collected by the first camera and/or the second camera may be verified by using adjacent target sub-pixels of the target sub-field of view. For example, still taking the first pixel point B collected by the first camera as an example for illustration, the first pixel point B can be verified by using the target sub-pixel point 3 and the target sub-pixel point 4 in this embodiment. Specifically, the pixel difference between the first pixel point B and the target sub-pixel point 3 and the target sub-pixel point 4 can also be calculated. If the pixel difference values are greater than the preset value, the first pixel point B can be considered as Noise, and delete the pixel data of point B.

本实施例可以通过使用多种像素点比对验证的方法来消除异常噪点,高效解决图片噪点问题,从而提高目标图像的图像质量。In this embodiment, abnormal noises can be eliminated by using various methods of pixel point comparison and verification, and the image noise problem can be solved efficiently, thereby improving the image quality of the target image.

在本公开实施例中,还包括:响应于获得第二图像采集指令,调整第一摄像头和/或第二摄像头的视场区域,以基于调整后的视场区域内的像素信息更新目标图像。In the embodiment of the present disclosure, it further includes: in response to obtaining the second image acquisition instruction, adjusting the field of view of the first camera and/or the second camera, so as to update the target image based on the pixel information in the adjusted field of view.

具体的,本实施例在确定目标图像之后,还可以再调整第一摄像头和/或第二摄像头的视场区域,通过调整多个镜头的夹角,使其在目标距离上合理采集更多的有效像素点阵,进而生成更多的像素点,提升分辨率。或者本实施例内的摄像头模组还可以包括两个以上摄像头来生成更多的像素点。Specifically, in this embodiment, after the target image is determined, the field of view area of the first camera and/or the second camera can be adjusted again, and by adjusting the included angle of multiple lenses, it can reasonably collect more images at the target distance. The effective pixel matrix generates more pixels and improves the resolution. Or the camera module in this embodiment may also include more than two cameras to generate more pixels.

现有技术中,普通的数码变焦是直接将原始的像素点进行放大处理,故而在调焦后出现图像模糊失真的问题,而本实施例所采用的摄像头模组的控制方法,不仅能避免图像模糊失真的问题,还能显著提高图像分辨率。In the prior art, ordinary digital zoom directly enlarges the original pixels, so the problem of image blurring and distortion occurs after focusing. However, the control method of the camera module adopted in this embodiment can not only avoid image The problem of blur and distortion can be solved, and the image resolution can be significantly improved.

图4为本公开实施例提供的一种摄像头模组的结构示意图,包含:Fig. 4 is a schematic structural diagram of a camera module provided by an embodiment of the present disclosure, including:

获取模块410,用于响应于第一图像获取指令,获取第一摄像头和第二摄像头的视场区域内的像素信息,第一摄像头和第二摄像头的视场区域不在同一平面;An acquisition module 410, configured to acquire pixel information in the field of view areas of the first camera and the second camera in response to the first image acquisition instruction, where the field of view areas of the first camera and the second camera are not on the same plane;

像素确定模块420,用于对第一摄像头和第二摄像头的视场区域内的像素信息进行处理,得到目标视场区域的目标像素信息,目标视场区域包括第一摄像头和/或第二摄像头的视场区域;A pixel determination module 420, configured to process pixel information in the field of view areas of the first camera and the second camera to obtain target pixel information of the target field of view area, where the target field of view area includes the first camera and/or the second camera field of view area;

图像输出模块430,用于基于目标像素信息输出目标图像。An image output module 430, configured to output a target image based on the target pixel information.

在一可选实施例中,获取模块410,具体用于:响应于第一图像获取指令,确定目标取景对象;控制第一摄像头获取其在第一平面内的视场区域的目标取景对象的第一像素信息;控制第二摄像头获取其在第二平面内的视场区域的目标取景对象的第二像素信息;其中,第一平面与第二平面之间具有第一夹角。In an optional embodiment, the acquisition module 410 is specifically configured to: determine the target framing object in response to the first image acquisition instruction; control the first camera to acquire the first image of the target framing object in its field of view area in the first plane One pixel information; controlling the second camera to obtain second pixel information of the target viewing object in its field of view area in the second plane; wherein, there is a first angle between the first plane and the second plane.

在一可选实施例中,获取模块410,具体用于:响应于第一图像获取指令,确定目标取景对象;控制第一摄像头获取目标取景对象的第一图像;控制第二摄像头获取目标取景对象的第二图像;基于第一图像和第二图像获取像素信息;其中,目标取景对象在第一图像中的像素信息和在第二图像中的像素信息至少部分不同。In an optional embodiment, the acquisition module 410 is specifically configured to: determine the target framing object in response to the first image acquisition instruction; control the first camera to acquire the first image of the target framing object; control the second camera to acquire the target framing object the second image; obtaining pixel information based on the first image and the second image; wherein, the pixel information of the target object in the first image is at least partially different from the pixel information in the second image.

在一可选实施例中,获取模块410,具体用于:基于第一图像获取指令确定目标取景对象,控制第一摄像头获取目标取景对象的第三图像;基于第一图像获取指令控制第二摄像头的视场区域,以获取目标取景对象在第三平面上的第四图像;基于第三图像和第四图像获取像素信息;其中,目标取景对象在第三图像中的像素信息和在第四图像中的像素信息至少部分不同。In an optional embodiment, the acquisition module 410 is specifically configured to: determine the target framing object based on the first image acquisition instruction, control the first camera to acquire the third image of the target framing object; control the second camera based on the first image acquisition instruction area of the field of view to obtain the fourth image of the target framing object on the third plane; obtain pixel information based on the third image and the fourth image; wherein, the pixel information of the target framing object in the third image and the pixel information in the fourth image The pixel information in is at least partially different.

在一可选实施例中,像素确定模块420,具体用于:获得所述第一摄像头在单位长度上的子视场区域的第一子像素信息;获得所述第二摄像头在单位长度上的子视场区域的第二子像素信息,所述第二子像素信息与所述第一子像素信息至少在像素位置上存在差异;对所述第一子像素信息和所述第二子像素信息进行差分计算,得到目标视场区域的目标像素信息。In an optional embodiment, the pixel determination module 420 is specifically configured to: obtain the first sub-pixel information of the sub-field of view area of the first camera on a unit length; obtain the first sub-pixel information of the second camera on a unit length The second sub-pixel information of the sub-field of view area, the second sub-pixel information is different from the first sub-pixel information at least in the pixel position; for the first sub-pixel information and the second sub-pixel information The differential calculation is performed to obtain the target pixel information of the target field of view area.

在一可选实施例中,像素确定模块420,具体用于:基于所述目标像素信息确定目标视场区域内各像素点的位置信息;基于所述位置信息对所述目标视场区域内的对应像素点进行拼接处理,得到所述目标图像。In an optional embodiment, the pixel determination module 420 is specifically configured to: determine the position information of each pixel in the target field of view area based on the target pixel information; The corresponding pixel points are spliced to obtain the target image.

在一可选实施例中,还包括:验证模块,用于利用第二摄像头的视场区域内的第二像素点的像素信息对第一摄像头的视场区域内的第一像素点进行比对验证,以确定目标视场区域内的目标像素点,其中,第二像素点是与第一像素点相邻的像素点。In an optional embodiment, it also includes: a verification module, configured to use the pixel information of the second pixel in the field of view of the second camera to compare the first pixel in the field of view of the first camera verifying to determine a target pixel in the target field of view area, wherein the second pixel is a pixel adjacent to the first pixel.

在一可选实施例中,还包括:调整模块,用于响应于获得第二图像采集指令,调整第一摄像头和/或第二摄像头的视场区域,以基于调整后的视场区域内的像素信息更新目标图像。In an optional embodiment, it also includes: an adjustment module, configured to adjust the field of view of the first camera and/or the second camera in response to obtaining the second image acquisition instruction, so as to adjust the field of view based on the adjusted field of view Pixel information updates the target image.

图5为本公开实施例提供的一种电子设备的结构示意图,如图5所示,电子设备50包含有上述摄像头模组51和一处理器52,其中,所述摄像头模组51包括有与所述处理器52信号连接的第一摄像头和第二摄像头,所述处理器52能够执行以下操作:响应于第一图像获取指令,获取第一摄像头和第二摄像头的视场区域内的像素信息,第一摄像头和第二摄像头的视场区域不在同一平面;FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. As shown in FIG. 5 , the electronic device 50 includes the aforementioned camera module 51 and a processor 52, wherein the camera module 51 includes a The processor 52 is signal-connected to the first camera and the second camera, and the processor 52 can perform the following operations: in response to the first image acquisition instruction, obtain pixel information in the field of view area of the first camera and the second camera , the field of view areas of the first camera and the second camera are not on the same plane;

对第一摄像头和第二摄像头的视场区域内的像素信息进行处理,得到目标视场区域的目标像素信息,目标视场区域包括第一摄像头和/或第二摄像头的视场区域;Processing the pixel information in the field of view area of the first camera and the second camera to obtain the target pixel information of the target field of view area, where the target field of view area includes the field of view area of the first camera and/or the second camera;

基于目标像素信息输出目标图像。A target image is output based on the target pixel information.

具体的,本实施例提供的电子设备是配置有摄像头模组的设备,可以通过摄像头模组来执行采集图像的相关指令。Specifically, the electronic device provided in this embodiment is a device configured with a camera module, and relevant instructions for capturing images can be executed through the camera module.

根据本公开的实施例,本公开还提供了一种设备和一种可读存储介质,其中,该设备用于运行摄像头模组的控制方法。According to an embodiment of the present disclosure, the present disclosure also provides a device and a readable storage medium, wherein the device is used to run a control method of a camera module.

图6示出了可以用来实施本公开的实施例的示例设备600的示意性框图。设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。Fig. 6 shows a schematic block diagram of an example device 600 that may be used to implement embodiments of the present disclosure. The device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. A device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.

如图6所示,设备600包括计算单元601,其可以根据存储在只读存储器(ROM)602中的计算机程序或者从存储单元608加载到随机访问存储器(RAM)603中的计算机程序,来执行各种适当的动作和处理。在RAM 603中,还可存储设备600操作所需的各种程序和数据。计算单元601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, the device 600 includes a computing unit 601 that can execute according to a computer program stored in a read-only memory (ROM) 602 or loaded from a storage unit 608 into a random-access memory (RAM) 603. Various appropriate actions and treatments. In the RAM 603, various programs and data necessary for the operation of the device 600 can also be stored. The calculation unit 601 , the ROM 602 and the RAM 603 are connected to each other through a bus 604 . An input/output (I/O) interface 605 is also connected to the bus 604 .

设备600中的多个部件连接至I/O接口605,包括:输入单元606,例如键盘、鼠标等;输出单元607,例如各种类型的显示器、扬声器等;存储单元608,例如磁盘、光盘等;以及通信单元609,例如网卡、调制解调器、无线通信收发机等。通信单元609允许设备600通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the device 600 are connected to the I/O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a magnetic disk, an optical disk, etc. ; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 609 allows the device 600 to exchange information/data with other devices over a computer network such as the Internet and/or various telecommunication networks.

计算单元601可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元601的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元601执行上文所描述的各个方法和处理,例如摄像头模组的控制方法。例如,在一些实施例中,摄像头模组的控制方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元608。在一些实施例中,计算机程序的部分或者全部可以经由ROM 602和/或通信单元609而被载入和/或安装到设备600上。当计算机程序加载到RAM 603并由计算单元601执行时,可以执行上文描述的摄像头模组的控制方法的一个或多个步骤。备选地,在其他实施例中,计算单元601可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行摄像头模组的控制方法。The computing unit 601 may be various general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of computing units 601 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The calculation unit 601 executes various methods and processes described above, such as a control method of a camera module. For example, in some embodiments, the method for controlling the camera module can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 608 . In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609 . When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method for controlling the camera module described above can be executed. Alternatively, in other embodiments, the computing unit 601 may be configured in any other appropriate manner (for example, by means of firmware) to execute the method for controlling the camera module.

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上集成系统(SOC)、复杂可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), integrated systems on chip (SOC), Complex Programmable Logic Device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.

用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide for interaction with the user, the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或隐含地包括至少一个该特征。在本公开的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present disclosure, "plurality" means two or more, unless otherwise specifically defined.

以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope of the present disclosure. should fall within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be determined by the protection scope of the claims.

Claims (10)

1. A control method of a camera module, the camera module at least comprising a first camera and a second camera, the method comprising:
acquiring pixel information in the field of view areas of the first camera and the second camera in response to a first image acquisition instruction, wherein the field of view areas of the first camera and the second camera are not in the same plane;
processing pixel information in the view field areas of the first camera and the second camera to obtain target pixel information of a target view field area, wherein the target view field area comprises view field areas of the first camera and/or the second camera;
outputting a target image based on the target pixel information.
2. The method of claim 1, the acquiring pixel information within the view field region of the first camera and the second camera in response to a first image acquisition instruction, comprising:
determining a target framing object in response to the first image acquisition instruction;
controlling the first camera to acquire first pixel information of the target framing object of a field of view area in a first plane;
controlling the second camera to acquire second pixel information of the target framing object of the field-of-view area in a second plane;
The first plane and the second plane are provided with a first included angle.
3. The method of claim 1, the acquiring pixel information within the view field region of the first camera and the second camera in response to a first image acquisition instruction, comprising:
determining a target framing object in response to the first image acquisition instruction;
controlling the first camera to acquire a first image of the target view finding object;
controlling the second camera to acquire a second image of the target view finding object;
acquiring the pixel information based on the first image and the second image;
wherein the pixel information of the target viewing object in the first image and the pixel information in the second image are at least partially different.
4. The method of claim 1, the acquiring pixel information within the view field region of the first camera and the second camera in response to a first image acquisition instruction, comprising:
determining a target view finding object based on the first image acquisition instruction, and controlling the first camera to acquire a third image of the target view finding object;
controlling a field of view area of the second camera based on the first image acquisition instruction to acquire a fourth image of the target viewfinder object on a third plane;
Acquiring the pixel information based on the third image and the fourth image;
wherein the pixel information of the target viewing object in the third image and the pixel information in the fourth image are at least partially different.
5. The method of claim 1, wherein processing pixel information in the view field regions of the first camera and the second camera to obtain target pixel information for a target view field region comprises:
acquiring first sub-pixel information of a sub-field area of the first camera in unit length;
obtaining second sub-pixel information of a sub-field area of the second camera in unit length, wherein the second sub-pixel information and the first sub-pixel information are different at least in pixel position;
and carrying out differential calculation on the first sub-pixel information and the second sub-pixel information to obtain target pixel information of a target view field area.
6. The method of claim 1 or 5, wherein outputting a target image based on the target pixel information comprises:
determining the position information of each pixel point in the target view field area based on the target pixel information;
and performing stitching processing on the corresponding pixel points in the target view field area based on the position information to obtain the target image.
7. The method of claim 1 or 5, further comprising:
and comparing and verifying the first pixel point in the view field area of the first camera by using the pixel information of the second pixel point in the view field area of the second camera to determine a target pixel point in the target view field area, wherein the second pixel point is a pixel point adjacent to the first pixel point.
8. The method of claim 1, further comprising:
and in response to obtaining a second image acquisition instruction, adjusting a field of view area of the first camera and/or the second camera to update the target image based on pixel information in the adjusted field of view area.
9. A camera module, comprising:
the acquisition module is used for responding to a first image acquisition instruction and acquiring pixel information in the field-of-view areas of the first camera and the second camera, wherein the field-of-view areas of the first camera and the second camera are not in the same plane;
the pixel determining module is used for processing the pixel information in the view field areas of the first camera and the second camera to obtain target pixel information of a target view field area, wherein the target view field area comprises the view field areas of the first camera and/or the second camera;
And the image output module is used for outputting a target image based on the target pixel information.
10. The electronic equipment comprises a camera module and a processor, wherein the camera module comprises a first camera and a second camera which are in signal connection with the processor, and the processor can execute the following operations:
acquiring pixel information in the field of view areas of the first camera and the second camera in response to a first image acquisition instruction, wherein the field of view areas of the first camera and the second camera are not in the same plane;
processing pixel information in the view field areas of the first camera and the second camera to obtain target pixel information of a target view field area, wherein the target view field area comprises view field areas of the first camera and/or the second camera;
outputting a target image based on the target pixel information.
CN202310574026.6A 2023-05-19 2023-05-19 Camera module control method, camera module and electronic device Pending CN116567401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310574026.6A CN116567401A (en) 2023-05-19 2023-05-19 Camera module control method, camera module and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310574026.6A CN116567401A (en) 2023-05-19 2023-05-19 Camera module control method, camera module and electronic device

Publications (1)

Publication Number Publication Date
CN116567401A true CN116567401A (en) 2023-08-08

Family

ID=87499873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310574026.6A Pending CN116567401A (en) 2023-05-19 2023-05-19 Camera module control method, camera module and electronic device

Country Status (1)

Country Link
CN (1) CN116567401A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118972710A (en) * 2024-10-14 2024-11-15 深圳御光新材料有限公司 A multi-screen display method and system based on drone cluster
CN119472730A (en) * 2024-11-18 2025-02-18 北京航汇数智科技有限公司 Remote flight control method and system for aircraft

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033792A1 (en) * 2007-08-02 2009-02-05 Sanyo Electric Co., Ltd. Image Processing Apparatus And Method, And Electronic Appliance
CN104519241A (en) * 2013-09-29 2015-04-15 联想(北京)有限公司 Data acquisition method and electronic equipment
US20170280070A1 (en) * 2014-09-30 2017-09-28 Beijing Zhigu Tech Co., Ltd. Super-resolution image acquisition methods and acquisition apparatus
CN110035206A (en) * 2019-03-26 2019-07-19 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN110602392A (en) * 2019-09-03 2019-12-20 Oppo广东移动通信有限公司 Control method, imaging module, electronic device and computer-readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033792A1 (en) * 2007-08-02 2009-02-05 Sanyo Electric Co., Ltd. Image Processing Apparatus And Method, And Electronic Appliance
CN104519241A (en) * 2013-09-29 2015-04-15 联想(北京)有限公司 Data acquisition method and electronic equipment
US20170280070A1 (en) * 2014-09-30 2017-09-28 Beijing Zhigu Tech Co., Ltd. Super-resolution image acquisition methods and acquisition apparatus
CN110035206A (en) * 2019-03-26 2019-07-19 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN110602392A (en) * 2019-09-03 2019-12-20 Oppo广东移动通信有限公司 Control method, imaging module, electronic device and computer-readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118972710A (en) * 2024-10-14 2024-11-15 深圳御光新材料有限公司 A multi-screen display method and system based on drone cluster
CN119472730A (en) * 2024-11-18 2025-02-18 北京航汇数智科技有限公司 Remote flight control method and system for aircraft

Similar Documents

Publication Publication Date Title
CN109788189B (en) Five-dimensional video stabilization device and method integrating camera and gyroscope
CN112785507A (en) Image processing method and device, storage medium and terminal
CN108898567A (en) Image denoising method, apparatus and system
CN111131698A (en) Image processing method and device, computer readable medium and electronic equipment
CN115578515B (en) Training method of three-dimensional reconstruction model, three-dimensional scene rendering method and device
CN113379615B (en) Image processing method and device, storage medium and electronic device
CN112738389A (en) System and method for providing sliding zoom view synthesis
CN114125411B (en) Projection device correction method, projection device correction device, storage medium and projection device
CN116567401A (en) Camera module control method, camera module and electronic device
WO2023236508A1 (en) Image stitching method and system based on billion-pixel array camera
CN114022662B (en) Image recognition method, device, equipment and medium
CN108230384A (en) Picture depth computational methods, device, storage medium and electronic equipment
CN113556464A (en) Shooting method and device and electronic equipment
CN115690382A (en) Training method for deep learning model, method and device for generating panorama
WO2013069555A1 (en) Image processing device, method, and program
CN118672030A (en) Image pickup support device, image pickup support system, image pickup support method, and computer program product
CN114255177A (en) Exposure control method, device, equipment and storage medium in imaging
CN111885297B (en) Image definition determining method, image focusing method and device
CN104184936B (en) Image focusing processing method and system based on light field camera
KR20210132590A (en) Method and apparatus for processing image frame, electronic device, storage media and program
WO2018228021A1 (en) Method and apparatus for determining target rotation direction, computer readable medium and electronic device
CN114157848B (en) Projection device correction method, projection device correction device, storage medium and projection device
CN113301324B (en) Virtual focus detection method, device, equipment and medium based on camera device
CN115660959B (en) Image generation method and device, electronic equipment and storage medium
WO2018103143A1 (en) Imaging method and apparatus for virtual reality device, and virtual reality device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination