WO2016184131A1 - 基于双摄像头拍摄图像的方法、装置及计算机存储介质 - Google Patents

基于双摄像头拍摄图像的方法、装置及计算机存储介质 Download PDF

Info

Publication number
WO2016184131A1
WO2016184131A1 PCT/CN2016/070085 CN2016070085W WO2016184131A1 WO 2016184131 A1 WO2016184131 A1 WO 2016184131A1 CN 2016070085 W CN2016070085 W CN 2016070085W WO 2016184131 A1 WO2016184131 A1 WO 2016184131A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
image
pixel
auxiliary
main camera
Prior art date
Application number
PCT/CN2016/070085
Other languages
English (en)
French (fr)
Inventor
王洪伟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016184131A1 publication Critical patent/WO2016184131A1/zh

Links

Images

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
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture

Definitions

  • the present invention relates to image processing technology, and in particular, to a method and apparatus for capturing an image based on a dual camera, and a computer storage medium.
  • Depth of field refers to the range of clear imaging before and after the focus point. That is, when the lens is focused at a certain point, the point will be focused into a clear image on the imaging medium. Thus, not only is this point clear, but also the focus is near and behind. Relatively clear.
  • the deep panorama means that the scenes are all within the depth of field, that is, all the scenes are clear.
  • image processing software such as Photoshop
  • Photoshop first fix the mobile terminal, use a single camera to adjust the distance of the focal length, take photos of different focal lengths, and then use the image processing software. Perform post-synthesis. Therefore, when shooting close-up scenes, because the focal length is near, the depth of field is relatively shallow, resulting in a blurred background in the distance; or when using a mobile terminal such as a mobile phone macro mode, the mobile phone is relatively close to the object, if the subject is larger, The subject that causes the shot is often partially clear and partially blurred, except for small objects.
  • embodiments of the present invention are directed to a method, an apparatus, and a computer storage medium for capturing an image based on a dual camera, which not only saves an operation process, is applicable to all users, but also avoids limitation of a shooting scene, thereby providing a clearer presentation. Panoramic deep images for improved shooting quality.
  • Embodiments of the present invention provide a method for capturing an image based on a dual camera, the method comprising:
  • the method before the acquiring the first image by the main camera and acquiring the second image by the auxiliary camera, the method further includes: adjusting a focus of the main camera and the auxiliary camera, and the main camera and the camera The secondary camera sets the corresponding parameters.
  • the attributes of the corresponding parameters set by the main camera and the auxiliary camera are the same.
  • the method further includes: cropping an area where the image data acquired by the main camera and the auxiliary camera does not overlap.
  • the obtaining the depth information value of each pixel in the main camera or the auxiliary camera includes: according to the installation position distance of the main camera and the auxiliary camera An angle, and a position of the main camera pixel after the photographing at the position of the auxiliary camera pixel to obtain a depth information value of each pixel in the main camera;
  • the image obtained by superimposing the main camera and the auxiliary camera according to the depth information value, the first object focal length, and the second object focal length generates a panoramic deep image.
  • An embodiment of the present invention further provides an apparatus for capturing an image based on a dual camera, the apparatus comprising:
  • the image acquisition module is configured to perform the first image by the main camera according to the first object focal length, and obtain the second image by the secondary camera according to the second object focal length;
  • An image processing module configured to obtain, according to the acquired first image and second image, a depth information value of each pixel in the primary camera or the secondary camera; acquired by the primary camera and the secondary camera Pixel alignment is performed on an area where the image data overlaps; and an image obtained by superimposing the main camera and the auxiliary camera on the basis of the depth information value, the first object focal length, and the second object focal length Panoramic deep image.
  • the device further includes: a camera control module configured to adjust the main camera and the auxiliary camera before the image acquisition module acquires the first image through the main camera and acquires the second image through the auxiliary camera The focus is to set corresponding parameters for the main camera and the auxiliary camera.
  • the camera control module has the same attribute of the corresponding parameter set by the main camera and the auxiliary camera.
  • the image processing module is further configured to: crop the area where the image data acquired by the main camera and the auxiliary camera does not overlap.
  • the image processing module obtains a depth information value of each pixel in the main camera or the auxiliary camera, including: according to a mounting position distance and an angle of the main camera and the auxiliary camera, and Obtaining a depth information value of each pixel point in the main camera at the position of the auxiliary camera pixel at the position of the main camera pixel after shooting;
  • the image processing module generates an image obtained by superimposing the main camera and the auxiliary camera according to the depth information value, the first object focal length, and the second object focal length.
  • Panoramic deep images including:
  • An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores a computer program for performing the method for capturing an image based on the dual camera described above.
  • the method and device for capturing an image based on a dual camera according to an embodiment of the present invention, and a computer storage medium respectively, capture images by a main camera and a secondary camera, and obtain depth information of each pixel in the main camera or the auxiliary camera according to the acquired image.
  • a panoramic deep image which not only effectively solves the problem of shallow depth of field of the captured image, but also provides a clearer picture of the entire shooting scene, improving the quality of the shooting.
  • the embodiment of the present invention can also capture a panoramic deep image without increasing the hardware cost, thereby enhancing the capability of the mobile terminal camera.
  • FIG. 1 is a schematic diagram of a principle based on dual camera imaging in the present invention
  • FIG. 2 is a schematic flow chart showing an implementation of a method for capturing an image based on a dual camera according to the present invention
  • FIG. 3 is a schematic structural diagram of a device for capturing an image based on a dual camera according to the present invention
  • FIG. 4 is a schematic diagram showing an implementation flow of a method for capturing a macro image based on a dual camera according to the present invention
  • FIG. 5 is a schematic structural diagram of a device for capturing a macro image based on a dual camera according to the present invention.
  • the mobile terminal may include, but is not limited to, a mobile device such as a notebook computer, a mobile phone, or a tablet computer.
  • FIG. 1 is a schematic diagram of a principle based on dual camera imaging according to an embodiment of the present invention.
  • the dual camera includes: a main camera 11 and a secondary camera 12, and the main camera 11 and the auxiliary camera 12 are arranged above or below or left and right. Installed sequentially on the mobile terminal. among them,
  • the main camera 11 is configured to capture and acquire an image of a main camera
  • the auxiliary camera 12 is configured to capture and acquire a secondary camera image.
  • the main camera 11 and the auxiliary camera 12 are physical hardware devices, including a lens, a focus motor, and a complementary metal oxide semiconductor (CMOS), wherein the focus motor is used to push the lens. Move to adjust the focal length;
  • the main camera 11 and the auxiliary camera 12 are cameras of the same specification, that is, the attributes of the corresponding parameters set by the main camera 11 and the auxiliary camera 12 are the same.
  • the focus of the main camera 11 is adjusted to the photographing subject by powering up the focus motor, while the focus of the sub-camera 12 is adjusted to be the focus front of the main camera 11. Or a certain distance behind.
  • the focus corresponding to the main camera 11 is the main focus point
  • the focus corresponding to the auxiliary camera 12 is the auxiliary focus point
  • the distance between the main camera 11 and the main focus point is the first object side.
  • a distance F1 a distance between the auxiliary camera 12 and the auxiliary focus point is a second object focal length F2
  • a distance between each pixel point of the main camera 11 and the terminal lens is a first depth information value P1.
  • the distance between each pixel in the secondary camera 12 and the terminal lens is the second depth information value P2; however, since the position distances of the main camera 11 and the secondary camera 12 are very close, and the embodiment of the present invention is directed to the same
  • the image is captured, and therefore, the first depth information value P1 and the second depth information value P2 are made approximately equal, and based on this, the first depth information value P1 and the second depth information value P2 are unified into one for convenience of the following description. Depth information value P.
  • the implementation process of the method for capturing an image based on a dual camera in the embodiment of the present invention includes the following steps:
  • Step 201 The first image is acquired by the main camera according to the focal length of the first object, and the second image is obtained by the auxiliary camera according to the focal length of the second object;
  • step 201 it is also necessary to adjust the focus of the main camera and the auxiliary camera, and set corresponding parameters to the main camera and the auxiliary camera.
  • adjusting the focus of the two cameras refers to adjusting the focus of the main camera to the shooting body, while adjusting the focus of the auxiliary camera to be the front and rear or the back of the focus of the main camera a certain distance.
  • the attributes of the corresponding parameters set to the main camera and the secondary camera are the same.
  • Step 202 Obtain a depth information value of each pixel in the primary camera or the secondary camera according to the acquired first image and second image;
  • the mounting position distance and the angle of the main camera and the auxiliary camera, and the pixel of the main camera after the shooting may be Positioning the pixel points of the auxiliary camera to obtain a depth information value of each pixel in the main camera;
  • the depth information of each pixel point in the main camera and the auxiliary camera are approximately equal, the depth information of each pixel in the main camera is used as an example to calculate The depth information value for each pixel in the secondary camera, and vice versa.
  • the image data acquired by the main camera or the secondary camera may be divided into N*M pixel blocks, and only one depth information value is calculated for each pixel block, without calculating the pixel block.
  • Step 203 Perform pixel alignment on an area where the image data acquired by the main camera and the auxiliary camera overlap.
  • the method further includes: cropping an area where the image data acquired by the main camera and the sub camera does not overlap.
  • the image data of the auxiliary camera may be geometrically corrected, and the image of the auxiliary camera is adjusted to the main camera according to the geometric parameter.
  • the geometric parameter is a parameter obtained according to the installation distance, the angle and the focal length of the two cameras.
  • Performing pixel alignment on the area where the image data acquired by the main camera and the auxiliary camera does not overlap, and performing pixel alignment on the area where the image data acquired by the main camera and the auxiliary camera overlaps specifically including the following steps:
  • the calibration coefficient is a parameter obtained according to the specification of the camera and the installation distance.
  • two image buffers are further applied, and the image data of the image data acquired by the main camera and the auxiliary camera is not cropped and copied according to the number of pixel rows and the number of pixel columns.
  • Step 204 Generate a panoramic deep image by superimposing the image processed by the main camera and the auxiliary camera according to the depth information value, the first object focal length, and the second object focal length.
  • weight information is obtained according to the depth information value and the first object focal length and/or the second object focal length, and the main camera and the auxiliary camera are compared according to the weight information.
  • the superimposed processed images respectively take the images of the main camera and the auxiliary camera corresponding to the weights.
  • the depth information value P for each pixel point and the first object focal length F1 and the second object focal length F2 obtain weight information; wherein the weight information is calculated by the distance difference, for the same pixel, the main camera
  • the obtained weight information value of the pixel is Q1
  • the weight information value of the pixel acquired by the secondary camera is Q2
  • the value ranges of Q1 and Q2 are both 0-1, specifically:
  • an embodiment of the present invention further provides an apparatus for capturing an image based on a dual camera.
  • the apparatus includes an image acquisition module 31 and an image processing module 32.
  • the image acquisition module 31 is configured to acquire a first image according to a focal length of the first object by the main camera, and obtain a second image by performing shooting according to a focal length of the second object by the auxiliary camera;
  • the image processing module 32 is configured to obtain, according to the acquired first image and second image, a depth information value of each pixel in the primary camera or the secondary camera; acquiring the primary camera and the secondary camera Pixel alignment is performed on an area where the image data overlaps; and an image obtained by superimposing the main camera and the auxiliary camera on the depth information value, the first object focal length, and the second object focal length is generated A panoramic deep image.
  • the apparatus further includes: a camera control module 33 configured to adjust the main camera before the image acquisition module 31 acquires the first image through the main camera and before acquiring the second image through the secondary camera And the focus of the auxiliary camera, the main camera The header and the secondary camera set corresponding parameters.
  • a camera control module 33 configured to adjust the main camera before the image acquisition module 31 acquires the first image through the main camera and before acquiring the second image through the secondary camera And the focus of the auxiliary camera, the main camera The header and the secondary camera set corresponding parameters.
  • the camera control module 33 has the same attribute of the corresponding parameter set by the main camera and the secondary camera.
  • the image processing module 32 is further configured to: crop the area where the image data acquired by the main camera and the auxiliary camera does not overlap.
  • the image processing module 32 obtains the depth information value of each pixel point in the main camera or the auxiliary camera, including: according to the installation position distance and the angle of the main camera and the auxiliary camera, and shooting The subsequent main camera pixel obtains a depth information value of each pixel in the main camera at a position of the secondary camera pixel;
  • the image processing module 32 generates a panoramic deep image by superimposing the image processed by the main camera and the auxiliary camera according to the depth information value, the first object focal length, and the second object focal length. ,include:
  • the image acquisition module 31, the image processing module 32, and the camera control module 33 may each be a central processing unit (CPU), a microprocessor (MPU, Micro Processor Unit) located on the mobile terminal.
  • CPU central processing unit
  • MPU Micro Processor Unit
  • DSP Digital Signal processor
  • FPGA Field Programmable Gate Array
  • Another embodiment provided by the present invention is a method for capturing a macro image based on a dual camera in a macro mode, the implementation step of the method and the step of capturing an image based on the dual camera in the normal mode
  • the steps are generally identical, except that in this embodiment the mobile terminal needs to be placed near the focal length of the main camera.
  • an implementation process of a method for capturing a macro image based on a dual camera in another embodiment of the present invention includes the following steps:
  • Step 401 The main camera is photographed according to the focal length of the first object, and two images are acquired; and the second image is obtained by the auxiliary camera according to the focal length of the second object;
  • step 401 it is also necessary to adjust the focus of the main camera and the auxiliary camera, and set corresponding parameters to the main camera and the auxiliary camera.
  • adjusting the focus of the two cameras refers to adjusting the focal length of the main camera to the shortest distance while adjusting the focal length of the auxiliary camera to a suitable position greater than the focal length of the main camera.
  • the attributes of the corresponding parameters set to the main camera and the secondary camera are the same.
  • Step 402 Obtain a depth information value of each pixel in the main camera or the auxiliary camera according to the acquired first image and second image;
  • the mounting position distance and the angle of the main camera and the auxiliary camera, and the pixel of the main camera after the shooting may be Positioning the pixel points of the auxiliary camera to obtain a depth information value of each pixel in the main camera;
  • the depth information value of each pixel point in the main camera and the sub camera The values are approximately equal. Therefore, the depth information value of each pixel in the secondary camera is calculated by taking the value of the depth information of each pixel in the main camera as an example, and vice versa.
  • the image data acquired by the main camera or the secondary camera may be divided into N*M pixel blocks, and only one depth information value is calculated for each pixel block, without calculating the pixel block.
  • Step 403 Perform pixel alignment on an area where the image data acquired by the main camera and the auxiliary camera overlap.
  • the method further includes: cropping an area where the image data acquired by the main camera and the sub camera does not overlap.
  • the image data of the secondary camera may be geometrically corrected, and the image of the secondary camera is adjusted to the image of the main camera perspective according to the geometric parameter.
  • the geometric parameter is a parameter obtained according to the installation distance, the angle and the focal length of the two cameras.
  • Step 404 Generate a panoramic deep image by superimposing the image processed by the main camera and the auxiliary camera according to the depth information value, the first object focal length, and the second object focal length.
  • weight information is obtained according to the depth information value and the first object focal length and/or the second object focal length, and the main camera and the auxiliary camera are compared according to the weight information.
  • the superimposed processed images respectively take the images of the main camera and the auxiliary camera corresponding to the weights.
  • another embodiment of the present invention further provides an apparatus for capturing a macro image based on a dual camera.
  • the apparatus includes an image acquisition module 51 and an image processing module 52.
  • the image acquisition module 51 is configured to perform shooting according to the first object focal length by the main camera. Obtaining a first image, and capturing, according to a focal length of the second object by the auxiliary camera, acquiring the second image;
  • the image processing module 52 is configured to obtain, according to the acquired first image and second image, a depth information value of each pixel in the primary camera or the secondary camera; acquiring the primary camera and the secondary camera Pixel alignment is performed on an area where the image data overlaps; and an image obtained by superimposing the main camera and the auxiliary camera on the depth information value, the first object focal length, and the second object focal length is generated A panoramic deep image.
  • the apparatus further includes: a camera control module 53 configured to adjust the main camera before the image acquisition module 51 acquires the first image through the main camera and acquires the second image through the secondary camera And a focus of the auxiliary camera, and setting corresponding parameters to the main camera and the auxiliary camera.
  • a camera control module 53 configured to adjust the main camera before the image acquisition module 51 acquires the first image through the main camera and acquires the second image through the secondary camera And a focus of the auxiliary camera, and setting corresponding parameters to the main camera and the auxiliary camera.
  • the image acquisition module 51, the image processing module 52, and the camera control module 53 may each be a central processing unit (CPU), a microprocessor (MPU, Micro Processor Unit) located on the mobile terminal.
  • CPU central processing unit
  • MPU Micro Processor Unit
  • DSP Digital Signal processor
  • FPGA Field Programmable Gate Array
  • the main camera and the auxiliary camera respectively capture the acquired image, and obtain the depth information value of each pixel in the main camera or the auxiliary camera according to the acquired image; and perform pixel on the overlapping area of the image data acquired by the main camera and the auxiliary camera. Aligning, and generating a panoramic deep image by superimposing the image of the main camera and the auxiliary camera according to the depth information value, the first object focal length, and the second object focal length, thereby effectively solving the shallow depth of the captured image. The problem is also able to present the picture of the entire shooting scene more clearly and improve the shooting quality.
  • the embodiment of the present invention can also capture a panoramic deep image without increasing the hardware cost, thereby enhancing the capability of the mobile terminal camera.
  • Embodiments of the present invention also describe a computer storage medium in which the computer storage medium Computer-executable instructions are stored for performing the aforementioned method of capturing a macro image based on a dual camera as shown in FIG. 2 or FIG.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the first image is acquired by the main camera according to the focal length of the first object, and the first image is acquired by the auxiliary camera according to the focal length of the second object; the second image is acquired according to the first image and the first image obtained by the second camera; And obtaining, by the second image, a depth information value of each pixel in the main camera or the auxiliary camera; performing pixel alignment on an area where the image data acquired by the main camera and the auxiliary camera overlap; according to the depth information value,
  • the first object focal length and the second object focal length generate a panoramic deep image by superimposing the image processed by the main camera and the auxiliary camera; not only can save operation flow, but is applicable to all users, It is possible to avoid the limitation of the shooting scene, so that the panoramic deep image can be presented more clearly and the shooting quality can be improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Stereoscopic And Panoramic Photography (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

本发明公开了一种基于双摄像头拍摄图像的方法,包括:通过主摄像头根据第一物方焦距进行拍摄,获取第一图像;通过辅摄像头根据第二物方焦距进行拍摄,获取第二图像;根据所述获取的第一图像和第二图像获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值;对所述主摄像头和所述辅摄像头获取的图像数据重叠的区域进行像素对齐;根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像。本发明还同时公开了一种基于双摄像头拍摄图像的装置及计算机存储介质。

Description

基于双摄像头拍摄图像的方法、装置及计算机存储介质 技术领域
本发明涉及图像处理技术,尤其涉及一种基于双摄像头拍摄图像的方法、装置及计算机存储介质。
背景技术
随着互联网行业的蓬勃发展,移动终端的用户越来越多,且移动终端的功能也越来越强大,可以拍照、摄影、上网、游戏等等。其中,随着人们的生活品位的不断提高,对拍照的要求也越来越高,如利用移动终端实现全景深图像的效果。
景深,是指聚焦点前后清晰成像的范围,即:镜头对焦在某一个点,就会把这个点聚焦成清晰的影像在成像介质上,如此,不仅这个点是清晰的,而且焦点前后附近也是相对清晰的。全景深,是指景物全部在景深范围之内,也就是所有景物都是清晰的。
然而,为使图像达到全景深的效果,目前通常需要采用图像处理软件如Photoshop的方法,即:先固定移动终端,使用单摄像头调节焦距的远近,拍摄不同焦距的照片,然后再利用图像处理软件进行后期合成。因此,在拍摄近景时,由于焦距在近处,景深比较浅,导致远处的背景比较模糊;或者使用移动终端如手机微距模式时,手机离物体比较近,如果拍摄的主体比较大,会导致拍摄的主体经常是部分清楚、部分模糊,除非是很小的物体。
上述这样得到全景深图像的方法,由于在图像后期合成时,需要用户手动选择近景和远景清晰的部分再进行合成,因此,操作过程比较繁琐;且只适合于专业用户,并不适合于普通用户。另外,由于需要利用单摄像 头进行多次拍摄,同时拍摄的角度和位置也不能有任何的变动,否则图像就无法被精确合成,这样导致了拍摄场景很受限制。
发明内容
有鉴于此,本发明实施例期望提供一种基于双摄像头拍摄图像的方法、装置及计算机存储介质,不仅能够节省操作流程,适用于所有用户,还能够避免拍摄场景的限制,从而更加清晰地呈现全景深图像,提升拍摄品质。
为达到上述目的,本发明实施例的技术方案是这样实现的:
本发明实施例提供一种基于双摄像头拍摄图像的方法,所述方法包括:
通过主摄像头根据第一物方焦距进行拍摄,获取第一图像;
通过辅摄像头根据第二物方焦距进行拍摄,获取第二图像;
根据所述获取的第一图像和第二图像获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值;
对所述主摄像头和所述辅摄像头获取的图像数据重叠的区域进行像素对齐;
根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像。
上述方案中,所述通过主摄像头获取第一图像,以及通过辅摄像头获取第二图像之前,所述方法还包括:调节所述主摄像头和所述辅摄像头的焦点,对所述主摄像头和所述辅摄像头设置对应参数。
上述方案中,所述对所述主摄像头和所述辅摄像头设置的对应参数的属性相同。
上述方案中,所述方法还包括:对所述主摄像头和所述辅摄像头获取的图像数据没有重叠的区域进行裁剪。
上述方案中,所述获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值,包括:根据所述主摄像头和所述辅摄像头的安装位置距离和 夹角,以及拍摄后的所述主摄像头像素点在所述辅摄像头像素点的位置获得所述主摄像头中每个像素点的深度信息值;
或根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述辅摄像头像素点在所述主摄像头像素点的位置获得所述辅摄像头中每个像素点的深度信息值。
上述方案中,所述根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像,包括:
根据所述深度信息值与所述第一物方焦距和/或所述第二物方焦距获得权重信息,根据所述权重信息对所述主摄像头和所述辅摄像头重叠处理后的图像分别取相对应权重的所述主摄像头和所述辅摄像头的图像。
本发明实施例还提供一种基于双摄像头拍摄图像的装置,所述装置包括:
图像获取模块,配置为通过主摄像头根据第一物方焦距进行拍摄,获取第一图像,以及通过辅摄像头根据第二物方焦距进行拍摄,获取第二图像;
图像处理模块,配置为根据所述获取的第一图像和第二图像获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值;对所述主摄像头和所述辅摄像头获取的图像数据重叠的区域进行像素对齐;根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像。
上述方案中,所述装置还包括:摄像头控制模块,配置为在所述图像获取模块通过主摄像头获取第一图像,以及通过辅摄像头获取第二图像之前,调节所述主摄像头和所述辅摄像头的焦点,对所述主摄像头和所述辅摄像头设置对应参数。
上述方案中,所述摄像头控制模块对所述主摄像头和所述辅摄像头设置的对应参数的属性相同。
上述方案中,所述图像处理模块还配置为:对所述主摄像头和所述辅摄像头获取的图像数据没有重叠的区域进行裁剪。
上述方案中,所述图像处理模块获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值,包括:根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述主摄像头像素点在所述辅摄像头像素点的位置获得所述主摄像头中每个像素点的深度信息值;
或根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述辅摄像头像素点在所述主摄像头像素点的位置获得所述辅摄像头中每个像素点的深度信息值。
上述方案中,所述图像处理模块根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像,包括:
根据所述深度信息值与所述第一物方焦距和/或所述第二物方焦距获得权重信息,根据所述权重信息对所述主摄像头和所述辅摄像头重叠处理后的图像分别取相对应权重的所述主摄像头和所述辅摄像头的图像。
本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上所述的基于双摄像头拍摄图像的方法。
本发明实施例所提供的基于双摄像头拍摄图像的方法、装置及计算机存储介质,由主摄像头和辅摄像头分别拍摄获取图像,根据获取的图像获得主摄像头或辅摄像头中每个像素点的深度信息值;对主摄像头和辅摄像头获取的图像数据重叠的区域进行像素对齐,并根据深度信息值、第一物方焦距、以及第二物方焦距将主摄像头和辅摄像头重叠处理后的图像生成 一张全景深图像,这样,不仅有效地解决了拍摄图像景深浅的问题,还能够更加清晰地呈现整个拍摄场景的画面,提升拍摄品质。另外,本发明实施例还可以在不增加硬件成本的情况下拍摄全景深图像,从而增强了移动终端摄像头的能力。
附图说明
图1为本发明中基于双摄像头成像的原理示意图;
图2为本发明中基于双摄像头拍摄图像的方法的实现流程示意图;
图3为本发明中基于双摄像头拍摄图像的装置的组成结构示意图;
图4为本发明中基于双摄像头拍摄微距图像的方法的实现流程示意图;
图5为本发明中基于双摄像头拍摄微距图像的装置的组成结构示意图。
具体实施方式
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。
在本发明实施例中,所述移动终端可以包括但不限于:笔记本电脑、手机、平板电脑等移动设备。
图1为本发明实施例中基于双摄像头成像的原理示意图,所述双摄像头包括:主摄像头11和辅摄像头12,所述主摄像头11与所述辅摄像头12是以上下、或者左右并行排列的顺序安装在所述移动终端上。其中,
所述主摄像头11,配置为拍摄获取主摄像头图像;
所述辅摄像头12,配置为拍摄获取辅摄像头图像。
这里,所述主摄像头11和所述辅摄像头12均是物理硬件设备,包括镜头、对焦马达和互补金属氧化物半导体(CMOS,Complementary Metal Oxide Semiconductor),其中,所述对焦马达,用于推动镜头移动调节焦距; 且所述主摄像头11和所述辅摄像头12是规格一致的摄像头,即所述主摄像头11和所述辅摄像头12设置的对应参数的属性相同。
这里,在常规模式下进行拍摄时,通过给所述对焦马达上电,将所述主摄像头11的焦点调节到拍摄主体,同时调节所述辅摄像头12的焦点为所述主摄像头11的焦点前面或者后面一定距离。然而,在微距模式下进行拍摄时,则需要将所述主摄像头11的焦距调节到最短的距离,同时将所述辅摄像头12的焦距调节到大于所述主摄像头11的焦距的一个合适的位置;且将所述移动终端放置于所述主摄像头11的焦距附近。
其中,所述主摄像头11所对应的焦点为主对焦点,所述辅摄像头12所对应的焦点为辅对焦点,所述主摄像头11与所述主对焦点之间的距离为第一物方焦距F1,所述辅摄像头12与所述辅对焦点之间的距离为第二物方焦距F2,所述主摄像头11中每个像素点与终端镜头的距离为第一深度信息值P1,所述辅摄像头12中每个像素点与终端镜头的距离为第二深度信息值P2;但是,由于所述主摄像头11和所述辅摄像头12的位置距离非常近,且本发明实施例是针对同一图像进行拍摄的,因此,使得第一深度信息值P1和第二深度信息值P2近似相等,基于此,为了方便后面的描述,将第一深度信息值P1和第二深度信息值P2统一为一个深度信息值P。
如图2所示,本发明实施例中基于双摄像头拍摄图像的方法的实现流程包括以下步骤:
步骤201:通过主摄像头根据第一物方焦距进行拍摄,获取第一张图像;通过辅摄像头根据第二物方焦距进行拍摄,获取第二图像;
这里,在步骤201之前,还需调节所述主摄像头和所述辅摄像头的焦点,对所述主摄像头和所述辅摄像头设置对应参数。
其中,调节两个摄像头的焦点是指将所述主摄像头的焦点调节到拍摄主体,同时调节所述辅摄像头的焦点为所述主摄像头的焦点前后或者后面 一定距离。
这里,所述对所述主摄像头和所述辅摄像头设置的对应参数的属性相同。
步骤202:根据所述获取的第一图像和第二图像获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值;
由于主摄像头和辅摄像头的两个镜头的位置和夹角都固定,因此,可以根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述主摄像头像素点在所述辅摄像头像素点的位置,获得所述主摄像头中每个像素点的深度信息值;
或根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述辅摄像头像素点在所述主摄像头像素点的位置,获得所述辅摄像头中每个像素点的深度信息值。
这里,由于所述主摄像头和所述辅摄像头中每个像素点的深度信息值近似相等,因此,以所述主摄像头中每个像素点的深度信息值为例进行计算,即可得到所述辅摄像头中每个像素点的深度信息值,反之亦然。
为了加快计算速度,这里,也可以采用将主摄像头或辅摄像头获取的图像数据划分为N*M个像素块,对每个像素块只计算出一个深度信息值,而不用计算出此像素块中主摄像头或辅摄像头中每个像素点的深度信息值。
步骤203:对所述主摄像头和所述辅摄像头获取的图像数据重叠的区域进行像素对齐;
这里,所述方法还包括:对所述主摄像头和所述辅摄像头获取的图像数据没有重叠的区域进行裁剪。
这里,在步骤203处理过程之前,还可以对所述辅摄像头的图像数据进行几何校正,根据几何参数将所述辅摄像头的图像调整为所述主摄像头 视角的图像。其中,所述几何参数是根据两个摄像头的安装距离、夹角和焦距得到的参数。
这里,具体如何确定是重叠的区域,还是没有重叠的区域属于现有技术,在此不再赘述。
对所述主摄像头和所述辅摄像头获取的图像数据没有重叠的区域进行裁剪,对所述主摄像头和所述辅摄像头获取的图像数据重叠的区域进行像素对齐,具体包括如下步骤:
如果所述主摄像头安装在所述移动终端的上方,所述辅摄像头安装在所述移动终端的下方,则需要裁剪所述主摄像头图像的上半部分和所述辅摄像头图像的下半部分,裁剪的像素行数=校准系数*图像高度;如果所述主摄像头安装在所述移动终端的左侧,所述辅摄像头安装在所述移动终端的右侧,则需要裁剪左右方向的一定列数的像素,裁剪的像素列数=校准系数*图像宽度。其中,所述校准系数是根据摄像头的规格和安装距离得到的参数。
此外,在本发明实施例中还申请两个图像缓冲区,根据裁剪的像素行数和像素列数,将所述主摄像头和所述辅摄像头获取的图像数据中没有被裁剪的部分图像数据拷贝到缓冲区内,即可以得到有重叠区域的两张像素对齐的图像。
步骤204:根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像。
在一具体实施例中,根据所述深度信息值与所述第一物方焦距和/或所述第二物方焦距获得权重信息,根据所述权重信息对所述主摄像头和所述辅摄像头重叠处理后的图像分别取相对应权重的所述主摄像头和所述辅摄像头的图像。
这里,对每个像素点的深度信息值P与第一物方焦距F1和第二物方焦距F2得到权重信息;其中,权重信息是由距离差计算得到的,对于同一个像素点,主摄像头获取的该像素的权重信息值为Q1,辅摄像头获取的该像素的权重信息值为Q2;且Q1和Q2的取值范围均为0-1,具体地:
对于F1>F2的情况,如果P>F1>F2,则Q1=1,Q2=0;如果F1>F2>P,则Q1=0,Q2=1;如果F1>P>F2,则Q1=(P-F2)/(F1-F2),Q2=1-Q1。因此,对每个像素点的深度信息值与主摄像头或辅摄像头的物方焦距越接近,则相对应的权重信息值越大,进而可以根据每个像素点的权重信息拟合对应的主摄像头图像和辅摄像头图像。
反之,对于F2>F1的情况,权重信息值Q1和Q2的计算方法与上述F1>F2的计算方法类似,在此不再赘述。
为实现上述方法,本发明实施例还提供了一种基于双摄像头拍摄图像的装置,如图3所示,该装置包括图像获取模块31、图像处理模块32;其中,
图像获取模块31,配置为通过主摄像头根据第一物方焦距进行拍摄,获取第一图像,以及通过辅摄像头根据第二物方焦距进行拍摄,获取第二图像;
图像处理模块32,配置为根据所述获取的第一图像和第二图像获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值;对所述主摄像头和所述辅摄像头获取的图像数据重叠的区域进行像素对齐;根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像。
在一具体实施例中,所述装置还包括:摄像头控制模块33,配置为在所述图像获取模块31通过主摄像头获取第一图像,以及通过辅摄像头获取第二图像之前,调节所述主摄像头和所述辅摄像头的焦点,对所述主摄像 头和所述辅摄像头设置对应参数。
其中,所述摄像头控制模块33对所述主摄像头和所述辅摄像头设置的对应参数的属性相同。
在一具体实施例中,所述图像处理模块32还配置为:对所述主摄像头和所述辅摄像头获取的图像数据没有重叠的区域进行裁剪。
这里,所述图像处理模块32获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值,包括:根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述主摄像头像素点在所述辅摄像头像素点的位置获得所述主摄像头中每个像素点的深度信息值;
或根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述辅摄像头像素点在所述主摄像头像素点的位置获得所述辅摄像头中每个像素点的深度信息值。
所述图像处理模块32根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像,包括:
根据所述深度信息值与所述第一物方焦距和/或所述第二物方焦距获得权重信息,根据所述权重信息对所述主摄像头和所述辅摄像头重叠处理后的图像分别取相对应权重的所述主摄像头和所述辅摄像头的图像。
在实际应用中,所述图像获取模块31、图像处理模块32、摄像头控制模块33均可由位于移动终端上的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。
本发明所提供的另一实施例是在微距模式下基于双摄像头拍摄微距图像的方法,该方法的实现步骤与在常规模式下基于双摄像头拍摄图像的步 骤大体一致,所不同的是,在这一实施例中需要将所述移动终端放置于所述主摄像头的焦距附近。
下面对本发明在微距模式下基于双摄像头拍摄微距图像的技术方案做进一步地详细介绍:
如图4所示,本发明另一实施例中基于双摄像头拍摄微距图像的方法的实现流程包括以下步骤:
步骤401:通过主摄像头根据第一物方焦距进行拍摄,获取两张图像;通过辅摄像头根据第二物方焦距进行拍摄,获取第二图像;
这里,在步骤401之前,还需调节所述主摄像头和所述辅摄像头的焦点,对所述主摄像头和所述辅摄像头设置对应参数。
其中,调节两个摄像头的焦点是指将所述主摄像头的焦距调节到最短的距离,同时将所述辅摄像头的焦距调节到大于所述主摄像头的焦距的一个合适的位置。
这里,所述对所述主摄像头和所述辅摄像头设置的对应参数的属性相同。
步骤402:根据所述获取的第一图像和第二图像获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值;
由于主摄像头和辅摄像头的两个镜头的位置和夹角都固定,因此,可以根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述主摄像头像素点在所述辅摄像头像素点的位置,获得所述主摄像头中每个像素点的深度信息值;
或根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述辅摄像头像素点在所述主摄像头像素点的位置,获得所述辅摄像头中每个像素点的深度信息值。
这里,由于所述主摄像头和所述辅摄像头中每个像素点的深度信息值 近似相等,因此,以所述主摄像头中每个像素点的深度信息值为例进行计算,即可得到所述辅摄像头中每个像素点的深度信息值,反之亦然。
为了加快计算速度,这里,也可以采用将主摄像头或辅摄像头获取的图像数据划分为N*M个像素块,对每个像素块只计算出一个深度信息值,而不用计算出此像素块中主摄像头或辅摄像头中每个像素点的深度信息值。
步骤403:对所述主摄像头和所述辅摄像头获取的图像数据重叠的区域进行像素对齐;
这里,所述方法还包括:对所述主摄像头和所述辅摄像头获取的图像数据没有重叠的区域进行裁剪。
这里,在步骤403处理过程之前,还可以对所述辅摄像头的图像数据进行几何校正,根据几何参数将所述辅摄像头的图像调整为所述主摄像头视角的图像。其中,所述几何参数是根据两个摄像头的安装距离、夹角和焦距得到的参数。
步骤404:根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像。
在一具体实施例中,根据所述深度信息值与所述第一物方焦距和/或所述第二物方焦距获得权重信息,根据所述权重信息对所述主摄像头和所述辅摄像头重叠处理后的图像分别取相对应权重的所述主摄像头和所述辅摄像头的图像。
为实现上述方法,本发明另一实施例中还提供了一种基于双摄像头拍摄微距图像的装置,如图5所述,该装置包括图像获取模块51、图像处理模块52;其中,
图像获取模块51,配置为通过主摄像头根据第一物方焦距进行拍摄, 获取第一图像,以及通过辅摄像头根据第二物方焦距进行拍摄,获取第二图像;
图像处理模块52,配置为根据所述获取的第一图像和第二图像获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值;对所述主摄像头和所述辅摄像头获取的图像数据重叠的区域进行像素对齐;根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像。
在一具体实施例中,所述装置还包括:摄像头控制模块53,配置为在所述图像获取模块51通过主摄像头获取第一图像,以及通过辅摄像头获取第二图像之前,调节所述主摄像头和所述辅摄像头的焦点,对所述主摄像头和所述辅摄像头设置对应参数。
在实际应用中,所述图像获取模块51、图像处理模块52、摄像头控制模块53均可由位于移动终端上的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。
本发明实施例由主摄像头和辅摄像头分别拍摄获取图像,根据获取的图像获得主摄像头或辅摄像头中每个像素点的深度信息值;对主摄像头和辅摄像头获取的图像数据重叠的区域进行像素对齐,并根据深度信息值、第一物方焦距、以及第二物方焦距将主摄像头和辅摄像头重叠处理后的图像生成一张全景深图像,这样,不仅有效地解决了拍摄图像景深浅的问题,还能够更加清晰地呈现整个拍摄场景的画面,提升拍摄品质。另外,本发明实施例还可以在不增加硬件成本的情况下拍摄全景深图像,从而增强了移动终端摄像头的能力。
本发明实施例还记载了一种计算机存储介质,所述计算机存储介质中 存储有计算机可执行指令,所述计算机可执行指令用于执行前述如图2或或图4所示的基于双摄像头拍摄微距图像的方法。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保 护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。
工业实用性
本发明实施例中,通过主摄像头根据第一物方焦距进行拍摄,获取第一图像;通过辅摄像头根据第二物方焦距进行拍摄,获取第二图像;根据所述获取的第一图像和第二图像获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值;对所述主摄像头和所述辅摄像头获取的图像数据重叠的区域进行像素对齐;根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像;不仅能够节省操作流程,适用于所有用户,还能够避免拍摄场景的限制,从而更加清晰地呈现全景深图像,提升拍摄品质。

Claims (13)

  1. 一种基于双摄像头拍摄图像的方法,所述方法包括:
    通过主摄像头根据第一物方焦距进行拍摄,获取第一图像;
    通过辅摄像头根据第二物方焦距进行拍摄,获取第二图像;
    根据所述获取的第一图像和第二图像获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值;
    对所述主摄像头和所述辅摄像头获取的图像数据重叠的区域进行像素对齐;
    根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像。
  2. 根据权利要求1所述的方法,其中,所述通过主摄像头获取第一图像,以及通过辅摄像头获取第二图像之前,所述方法还包括:调节所述主摄像头和所述辅摄像头的焦点,对所述主摄像头和所述辅摄像头设置对应参数。
  3. 根据权利要求2所述的方法,其中,所述对所述主摄像头和所述辅摄像头设置的对应参数的属性相同。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:对所述主摄像头和所述辅摄像头获取的图像数据没有重叠的区域进行裁剪。
  5. 根据权利要求1所述的方法,其中,所述获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值,包括:根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述主摄像头像素点在所述辅摄像头像素点的位置获得所述主摄像头中每个像素点的深度信息值;
    或根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述辅摄像头像素点在所述主摄像头像素点的位置获得所述辅摄像头中每个像素点的深度信息值。
  6. 根据权利要求1所述的方法,其中,所述根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像,包括:
    根据所述深度信息值与所述第一物方焦距和/或所述第二物方焦距获得权重信息,根据所述权重信息对所述主摄像头和所述辅摄像头重叠处理后的图像分别取相对应权重的所述主摄像头和所述辅摄像头的图像。
  7. 一种基于双摄像头拍摄图像的装置,其中,所述装置包括:
    图像获取模块,配置为通过主摄像头根据第一物方焦距进行拍摄,获取第一图像,以及通过辅摄像头根据第二物方焦距进行拍摄,获取第二图像;
    图像处理模块,配置为根据所述获取的第一图像和第二图像获得所述主摄像头或所述辅摄像头中每个像素点的深度信息值;对所述主摄像头和所述辅摄像头获取的图像数据重叠的区域进行像素对齐;根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像。
  8. 根据权利要求7所述的装置,其中,所述装置还包括:摄像头控制模块,配置为在所述图像获取模块通过主摄像头获取第一图像,以及通过辅摄像头获取第二图像之前,调节所述主摄像头和所述辅摄像头的焦点,对所述主摄像头和所述辅摄像头设置对应参数。
  9. 根据权利要求8所述的装置,其中,所述摄像头控制模块对所述主摄像头和所述辅摄像头设置的对应参数的属性相同。
  10. 根据权利要求7所述的装置,其中,所述图像处理模块还配置为:对所述主摄像头和所述辅摄像头获取的图像数据没有重叠的区域进行裁剪。
  11. 根据权利要求7所述的装置,其中,所述图像处理模块获得所述 主摄像头或所述辅摄像头中每个像素点的深度信息值,包括:根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述主摄像头像素点在所述辅摄像头像素点的位置获得所述主摄像头中每个像素点的深度信息值;
    或根据所述主摄像头和所述辅摄像头的安装位置距离和夹角,以及拍摄后的所述辅摄像头像素点在所述主摄像头像素点的位置获得所述辅摄像头中每个像素点的深度信息值。
  12. 根据权利要求7所述的装置,其中,所述图像处理模块根据所述深度信息值、所述第一物方焦距、以及所述第二物方焦距将所述主摄像头和所述辅摄像头重叠处理后的图像生成一张全景深图像,包括:
    根据所述深度信息值与所述第一物方焦距和/或所述第二物方焦距获得权重信息,根据所述权重信息对所述主摄像头和所述辅摄像头重叠处理后的图像分别取相对应权重的所述主摄像头和所述辅摄像头的图像。
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至6任一项所述的方法。
PCT/CN2016/070085 2015-10-21 2016-01-04 基于双摄像头拍摄图像的方法、装置及计算机存储介质 WO2016184131A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510687797.1A CN106612392A (zh) 2015-10-21 2015-10-21 一种基于双摄像头拍摄图像的方法和装置
CN201510687797.1 2015-10-21

Publications (1)

Publication Number Publication Date
WO2016184131A1 true WO2016184131A1 (zh) 2016-11-24

Family

ID=57319291

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/070085 WO2016184131A1 (zh) 2015-10-21 2016-01-04 基于双摄像头拍摄图像的方法、装置及计算机存储介质

Country Status (2)

Country Link
CN (1) CN106612392A (zh)
WO (1) WO2016184131A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603935A (zh) * 2017-02-25 2017-04-26 姜彤 一种全自动电控vr微距摄影平台箱
CN110192226A (zh) * 2017-03-09 2019-08-30 Oppo广东移动通信有限公司 基于深度的图像处理方法、处理装置和电子装置
CN113688824A (zh) * 2021-09-10 2021-11-23 福建汇川物联网技术科技股份有限公司 一种施工节点的信息采集方法、装置及存储介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107087109A (zh) * 2017-05-23 2017-08-22 努比亚技术有限公司 一种拍照调节终端及方法
CN107180196A (zh) * 2017-05-25 2017-09-19 努比亚技术有限公司 一种双摄加密方法、设备以及计算机可读存储介质
KR102411661B1 (ko) * 2017-07-31 2022-06-21 삼성전자주식회사 영상 처리 방법 및 디바이스
CN108174180B (zh) * 2018-01-02 2019-07-30 京东方科技集团股份有限公司 一种显示装置、显示系统及三维显示方法
CN108419009B (zh) * 2018-02-02 2020-11-03 成都西纬科技有限公司 图像清晰度增强方法和装置
CN110896453B (zh) * 2019-09-22 2021-11-16 合肥森岑汽车用品有限公司 反馈式电子设备驱动平台和方法
CN111526299B (zh) 2020-04-28 2022-05-17 荣耀终端有限公司 一种高动态范围图像合成方法和电子设备

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080218611A1 (en) * 2007-03-09 2008-09-11 Parulski Kenneth A Method and apparatus for operating a dual lens camera to augment an image
CN202696751U (zh) * 2012-01-05 2013-01-23 鼎创电子股份有限公司 多镜头影像的即时整合系统
CN103188428A (zh) * 2011-12-30 2013-07-03 富泰华工业(深圳)有限公司 拍摄装置及方法
CN103685951A (zh) * 2013-12-06 2014-03-26 华为终端有限公司 一种图像处理方法、装置及终端
CN103763477A (zh) * 2014-02-21 2014-04-30 上海果壳电子有限公司 一种双摄像头拍后调焦成像装置和方法
CN104243828A (zh) * 2014-09-24 2014-12-24 宇龙计算机通信科技(深圳)有限公司 一种拍摄照片的方法、装置及终端
CN104333748A (zh) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 获取图像主体对象的方法、装置及终端
CN104333703A (zh) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 使用双摄像头拍照的方法和终端
TW201516551A (zh) * 2013-10-29 2015-05-01 Nat Univ Chung Cheng 調整對焦方法
CN104735348A (zh) * 2015-01-30 2015-06-24 深圳市中兴移动通信有限公司 双摄像头拍照方法和系统
CN104780315A (zh) * 2015-04-08 2015-07-15 广东欧珀移动通信有限公司 摄像装置拍摄的方法和系统

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080218611A1 (en) * 2007-03-09 2008-09-11 Parulski Kenneth A Method and apparatus for operating a dual lens camera to augment an image
CN103188428A (zh) * 2011-12-30 2013-07-03 富泰华工业(深圳)有限公司 拍摄装置及方法
CN202696751U (zh) * 2012-01-05 2013-01-23 鼎创电子股份有限公司 多镜头影像的即时整合系统
TW201516551A (zh) * 2013-10-29 2015-05-01 Nat Univ Chung Cheng 調整對焦方法
CN103685951A (zh) * 2013-12-06 2014-03-26 华为终端有限公司 一种图像处理方法、装置及终端
CN103763477A (zh) * 2014-02-21 2014-04-30 上海果壳电子有限公司 一种双摄像头拍后调焦成像装置和方法
CN104243828A (zh) * 2014-09-24 2014-12-24 宇龙计算机通信科技(深圳)有限公司 一种拍摄照片的方法、装置及终端
CN104333748A (zh) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 获取图像主体对象的方法、装置及终端
CN104333703A (zh) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 使用双摄像头拍照的方法和终端
CN104735348A (zh) * 2015-01-30 2015-06-24 深圳市中兴移动通信有限公司 双摄像头拍照方法和系统
CN104780315A (zh) * 2015-04-08 2015-07-15 广东欧珀移动通信有限公司 摄像装置拍摄的方法和系统

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603935A (zh) * 2017-02-25 2017-04-26 姜彤 一种全自动电控vr微距摄影平台箱
CN110192226A (zh) * 2017-03-09 2019-08-30 Oppo广东移动通信有限公司 基于深度的图像处理方法、处理装置和电子装置
CN113688824A (zh) * 2021-09-10 2021-11-23 福建汇川物联网技术科技股份有限公司 一种施工节点的信息采集方法、装置及存储介质
CN113688824B (zh) * 2021-09-10 2024-02-27 福建汇川物联网技术科技股份有限公司 一种施工节点的信息采集方法、装置及存储介质

Also Published As

Publication number Publication date
CN106612392A (zh) 2017-05-03

Similar Documents

Publication Publication Date Title
WO2016184131A1 (zh) 基于双摄像头拍摄图像的方法、装置及计算机存储介质
TWI567693B (zh) 產生深度資訊的方法及其系統
EP3067746B1 (en) Photographing method for dual-camera device and dual-camera device
WO2015081870A1 (zh) 一种图像处理方法、装置及终端
TWI538512B (zh) 調整對焦位置的方法及電子裝置
TWI433530B (zh) 具有立體影像攝影引導的攝影系統與方法及自動調整方法
WO2015081563A1 (zh) 一种生成图片的方法及一种双镜头设备
JP6436783B2 (ja) 画像処理装置、撮像装置、画像処理方法、プログラム、および、記憶媒体
TWI640199B (zh) 影像擷取裝置及其攝影構圖的方法
JP5230013B2 (ja) 撮像装置
WO2015172366A1 (zh) 用于多帧降噪的方法和终端
WO2014071840A1 (zh) 一种拍摄照片和视频的方法及装置
TW201251447A (en) Positional sensor-assisted image registration for panoramic photography
TWI506595B (zh) 全景影像產生方法及裝置
JP2009200560A (ja) 撮像装置、撮像方法及びプログラム
JP6057570B2 (ja) 立体パノラマ映像を生成する装置及び方法
JP5846172B2 (ja) 画像処理装置、画像処理方法、プログラムおよび撮像システム
TW201320734A (zh) 產生背景模糊的影像處理方法及其影像擷取裝置
WO2016029465A1 (zh) 一种图像处理方法、装置及电子设备
TWI516113B (zh) 攝像裝置及其影像合成方法
JP6222205B2 (ja) 画像処理装置
TW201824178A (zh) 全景即時影像處理方法
JP5796611B2 (ja) 画像処理装置、画像処理方法、プログラムおよび撮像システム
TWI376559B (zh)
WO2019000715A1 (zh) 图像处理方法及其系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16795618

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16795618

Country of ref document: EP

Kind code of ref document: A1