WO2019015571A1 - 一种双摄像头切换进行变焦的方法、移动终端及存储装置 - Google Patents

一种双摄像头切换进行变焦的方法、移动终端及存储装置 Download PDF

Info

Publication number
WO2019015571A1
WO2019015571A1 PCT/CN2018/095928 CN2018095928W WO2019015571A1 WO 2019015571 A1 WO2019015571 A1 WO 2019015571A1 CN 2018095928 W CN2018095928 W CN 2018095928W WO 2019015571 A1 WO2019015571 A1 WO 2019015571A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
image
mobile terminal
imaging
zooming
Prior art date
Application number
PCT/CN2018/095928
Other languages
English (en)
French (fr)
Inventor
冯剑明
Original Assignee
惠州Tcl移动通信有限公司
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 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Priority to EP18835798.2A priority Critical patent/EP3657773B1/en
Publication of WO2019015571A1 publication Critical patent/WO2019015571A1/zh
Priority to US16/711,458 priority patent/US11050915B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • 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/67Focus control based on electronic image sensor signals
    • 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/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Definitions

  • the present invention relates to the field of camera technology for mobile terminals, and in particular, to a method for switching a dual camera to zoom, a mobile terminal, and a storage device.
  • the dual camera consists of a first camera (conventional camera) and a second camera (a periscope camera.
  • the periscope camera uses a prism design to reduce the height, otherwise called an "inside zoom" lens, which refers to optical zoom. It is done inside the fuselage, so it is easy to install the filter, no need to install the lens barrel, and secondly it can effectively prevent dust from being sucked into the lens.
  • the focal length of the two cameras is different. The biggest advantage of this is that it is not needed. By means of non-digital zoom, you can shoot objects that are far away and achieve the effect of zooming in on the object.
  • the dual camera system also enables a smoother zoom zoom, such as a digital zoom plus a switch lens, for a more natural look.
  • the dual camera uses two independent modules and each has a separate sensor, which can greatly improve the picture quality even in low light conditions, not only can significantly reduce noise, but the entire image will be cleaner, and the user is fundamental Can't see if this photo was taken with a large camera or two small cameras.
  • the system can automatically have the ability to analyze different depth of field.
  • functions such as background blur, auto focus, and augmented reality can still be realized, and the effect is obvious.
  • the second camera has been used to achieve the imaging effect after magnification, and due to the difference in viewing angle between the conventional lens and the periscope lens, the image is cut by the first camera when the zoom magnification is multiplied.
  • the position of the center of the image will be misaligned, giving the user a clear perception of the difference in viewing angle.
  • the technical problem to be solved by the present invention is to provide a dual camera switching method for zooming, a mobile terminal and a storage device aiming at the above-mentioned defects of the prior art, aiming at realizing natural switching in the process of taking a zoom magnification and passing pictures. Fusion processing to get a sharper magnification of the image.
  • a dual camera switching method for zooming comprising:
  • the mobile terminal detects whether the multiple of the zooming process of the first camera exceeds a preset threshold, and when detecting that the multiple of the zooming magnification exceeds a preset threshold, turning on the second camera;
  • the mobile terminal reads an average distance difference between the first camera and the second camera pre-stored in the memory, and acquires a first image of the first camera and a second image of the second camera;
  • the average distance difference between the first camera and the second camera is extracted in advance and stored in a memory of the mobile terminal.
  • the dual camera switches the method for zooming, wherein the pre-extracting the average distance difference between the first camera and the second camera and storing in the memory of the mobile terminal specifically includes:
  • the average value (x, y) is stored in the memory for the mobile terminal to call when taking a picture with the dual camera.
  • the dual camera switches a method for zooming, wherein the preset distance is 1 meter.
  • the method for performing zooming by the dual camera wherein the mobile terminal detects whether a multiple of the zooming process of the first camera exceeds a preset threshold, and when detecting that the multiple of zooming exceeds a preset threshold, turning on the second camera specifically includes :
  • the second camera is turned on to capture the second image.
  • the dual camera switches a method for zooming, wherein the mobile terminal reads an average distance difference between the first camera and the second camera stored in advance in the memory, and acquires the first of the first camera.
  • the imaging and the second imaging of the second camera specifically include:
  • the mobile terminal reads the average distance difference stored in the memory
  • the dual camera switches a zooming method, wherein the focusing position range common to the first camera and the second camera is obtained according to the average distance difference, and the first imaging and the second imaging are image-fused.
  • the output display specifically includes:
  • the image output after the fusion processing will be displayed.
  • the dual camera switches a method for zooming, wherein the first imaging and the second imaging are processed by an image detecting technique to obtain an edge of the first imaging and an edge of the second imaging.
  • a mobile terminal comprising: a processor, a memory communicatively coupled to the processor, the memory storing a computer program for implementing the dual camera switching to perform zooming when executed;
  • the processor is configured to invoke a computer program in the memory to implement the dual camera switching method for zooming.
  • a storage device wherein the storage device stores a computer program that can be executed for implementing the dual camera switching method for zooming.
  • the invention discloses a method for zooming and zooming by a dual camera, a mobile terminal and a storage device, the method comprising: detecting, by the mobile terminal, whether a multiple of a zooming process of the first camera exceeds a preset threshold, when detecting that the zoom magnification exceeds a multiple When the threshold is preset, the second camera is turned on; the mobile terminal reads an average distance difference between the first camera and the second camera stored in the memory, and acquires the first image of the first camera and the first a second imaging of the two cameras; obtaining a range of in-focus positions common to the first camera and the second camera according to the average distance difference, and performing image fusion processing on the first imaging and the second imaging, and outputting the display.
  • the invention realizes the natural switching in the process of zooming in the magnification of the photographing, and the image after the clearing magnification is obtained by the image fusion processing.
  • FIG. 1 is a flow chart of a preferred embodiment of a method for zooming in a dual camera of the present invention.
  • FIG. 2 is a functional block diagram of a mobile terminal of the present invention.
  • the method for zooming by the dual camera according to the preferred embodiment of the present invention is a method for zooming by two cameras, wherein the method includes the following steps:
  • Step S100 The mobile terminal detects whether the multiple of the zooming process of the first camera exceeds a preset threshold, and when detecting that the multiple of the zooming magnification exceeds a preset threshold, turning on the second camera.
  • the rear camera is provided on the mobile terminal to implement the camera function.
  • the focus is used for focusing.
  • Photographing when the distance between the two cameras is a small distance (closer distance), it is used for image fusion processing of the photographed photo, and finally the enhanced photo is presented.
  • the method further includes:
  • Step S10 Pre-extract the average distance difference between the first camera and the second camera, and store it in the memory of the mobile terminal.
  • the step S10 specifically includes:
  • S11 Pre-set a standard map card at a preset distance of the dual camera of the mobile terminal for capturing an image; wherein the preset distance is preferably 1 meter.
  • step S100 specifically includes:
  • the mobile terminal turns on the first camera to take a first image, and then continues zooming and zooming;
  • Step S200 The mobile terminal reads an average distance difference between the first camera and the second camera stored in the memory, and acquires a first image of the first camera and a second image of the second camera.
  • the mobile terminal when the user performs the photographing by using the mobile terminal, the mobile terminal respectively acquires the first imaging of the first camera, and acquires the second imaging of the second camera; the mobile terminal may extract the first imaging by using the image feature extraction technology.
  • the first pixel simultaneously extracts the second imaged second pixel; after that, the mobile terminal calculates the pixel difference between the first pixel and the second pixel to obtain a pixel difference.
  • step S200 specifically includes:
  • the mobile terminal reads the average distance difference stored in the memory.
  • the first imaging and the second imaging are processed by image detection techniques to obtain edges of the first imaging and edges of the second imaging.
  • the image detection technology can be simply understood as the image edge detection technology, that is, the contour of the region in the image is extracted.
  • the division of the region in the image is based on the pixel gray scale, and the edge point is actually the point where the gray scale jumps sharply in the image, in each region.
  • the pixel grays are roughly the same, and the boundaries between the regions are called edges. Finding these edges is the purpose of image edge detection.
  • Step S300 Obtain a range of in-focus positions common to the first camera and the second camera according to the average distance difference, and perform image fusion processing on the first imaging and the second imaging, and output and display the image.
  • the mobile terminal first obtains an image distance range of the first imaging and the second imaging according to the pixel difference between the first pixel and the second pixel; secondly, according to the image distance range, the conversion rule between the image distance and the object distance is used. a range of object distances of an image and a second image; finally, a range of focus positions common to the first camera and the second camera is obtained according to the object distance range, and the range of focus positions can be understood as a range of approximate focus positions of the two cameras. It is not the final focus position (focus).
  • the mobile terminal calculates the sharpness value of the image corresponding to each position point in the focus position range by using the image sharpness algorithm; secondly, determines the position point where the image with the highest sharpness value is located as the first camera and the first The final focus position (focus) of the two cameras; that is, the mobile terminal performs a fine search on the approximate focus position range (according to the contrast image sharpness value), and finally obtains the focus position corresponding to the image with the highest definition, thereby achieving the focus purpose.
  • step S300 specifically includes:
  • the present invention further provides a mobile terminal.
  • the mobile terminal includes: a processor 10, a memory 20, a communication interface 30, and a bus 40.
  • the processor 10, the memory 20, and the communication interface 30 complete communication with each other through the bus 40;
  • the communication interface 30 is used for information transmission between communication devices of the mobile terminal;
  • the processor 10 is configured to invoke a computer program in the memory 20 to perform the method provided by the foregoing method embodiments.
  • the method includes: the mobile terminal detects whether a multiple of the zooming process of the first camera exceeds a preset threshold. When detecting that the multiple of the zoom magnification exceeds the preset threshold, turning on the second camera; the mobile terminal reads an average distance difference between the first camera and the second camera stored in the memory, and acquires the first camera a first imaging and a second imaging of the second camera; obtaining a focus position range common to the first camera and the second camera according to the average distance difference, and performing image fusion processing on the first imaging and the second imaging After the output is displayed.
  • the present invention also provides a storage device, wherein the storage device stores a computer program that can be executed to implement the dual camera switching method for zooming.
  • the present invention provides a dual camera switching method for zooming, a mobile terminal, and a storage device, the method comprising: detecting, by the mobile terminal, whether a multiple of a zooming process of the first camera exceeds a preset threshold, when detecting When the multiple of the zoom magnification exceeds the preset threshold, the second camera is turned on; the mobile terminal reads the average distance difference between the first camera and the second camera stored in the memory, and acquires the first camera. Imaging and second imaging of the second camera; obtaining a range of in-focus positions common to the first camera and the second camera according to the average distance difference, and performing image fusion processing on the first imaging and the second imaging display.
  • the invention realizes the natural switching in the process of zooming in the magnification of the photographing, and the image after the clearing magnification is obtained by the image fusion processing.
  • a computer program to instruct related hardware (such as a processor, a controller, etc.), and the program can be stored in one.
  • the program when executed, may include the processes of the various method embodiments as described above.
  • the storage medium described therein may be a memory, a magnetic disk, an optical disk, or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • Computer Networks & Wireless Communication (AREA)

Abstract

公开了一种双摄像头切换进行变焦的方法、移动终端及存储装置,所述方法包括:移动终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时,开启第二摄像头;移动终端读取预先存储在存储器中的所述第一摄像头与第二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示。通过实现拍照倍数放大过程中的自然切换,以及通过图片融合处理来获取更清晰的放大倍数后的图像。

Description

一种双摄像头切换进行变焦的方法、移动终端及存储装置 技术领域
本发明涉及移动终端拍照技术领域,具体涉及一种双摄像头切换进行变焦的方法、移动终端及存储装置。
背景技术
随着科学技术的快速发展,新的技术不断地运用到智能终端上,例如NFC技术和指纹识别技术,这些技术的应用极大地提高了人们生活的品质和便利。
随着移动终端的快速普及,移动终端(智能手机、平板电脑等)已经成为人们日常生活中必不可少的娱乐工具。
双摄像头由第一摄像头(常规摄像头)和第二摄像头(潜望式摄像头,与常规摄像头相比,潜望式摄像头为了降低高度,采用了棱镜设计,别称“内变焦”镜头,是指光学变焦是在机身内部完成,所以可以很容易安装滤镜,无需额外安装镜头筒,其次可以有效地避免灰尘被吸入镜头内)组成,两个摄像头的焦距不相同,这样做最大的好处就是不需通过非数码变焦的方式就可以拍摄距离较远的物体,并且实现物体放大的效果。双摄像头系统还可以实现更加流畅的缩放变焦,比如说在录影时会采取数码变焦加切换镜头这样混合的方法,以此来达到更自然的效果。双摄像头使用两个独立的模块,并且都拥有独立的传感器,这样即使是在低光的环境下可可以大幅提升画质,不仅可以明显减少噪点,同时整个成像画面也会更加干净,而用户根本看不出这张照片是通过一个大的摄像头还是两个小摄像头拍摄的。
在两个镜头的共同作用下,系统可以自动具备了分析不同景深的能力,在这个基础上仍然可以实现包括背景虚化、自动对焦、扩增实境等功能,并且效果比较明显。
随着双摄像头的普及,已开始使用第二摄像头来达到放大倍数后的成 像效果,而由于常规镜头和潜望式镜头的视角差异,在变焦放大拍照倍数时,图像由第一摄像头切为第二摄像头时,图像中心位置会发生错位,给用户明显的视角差的感觉。
因此,现有技术还有待于改进和发展。
发明内容
本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种双摄像头切换进行变焦的方法、移动终端及存储装置,旨在通过实现拍照倍数放大过程中的自然切换,以及通过图片融合处理来获取更清晰的放大倍数后的图像。
本发明解决技术问题所采用的技术方案如下:
一种双摄像头切换进行变焦的方法,其中,所述方法包括:
移动终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时,开启第二摄像头;
移动终端读取预先存储在存储器中的所述第一摄像头与第二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;
根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示。
所述的双摄像头切换进行变焦的方法,其中,还包括:
预先提取所述第一摄像头与第二摄像头拍照的平均距离差,并存储于所述移动终端的存储器中。
所述的双摄像头切换进行变焦的方法,其中,所述预先提取所述第一摄像头与第二摄像头拍照的平均距离差并存储于所述移动终端的存储器中具体包括:
预先在所述移动终端的双摄像头预设距离的地方放置一标准图卡用于拍摄图像;
开启所述第一摄像头拍摄得到图像A,开启所述第二摄像头得到图像B;
在图像A和图像B上选取五个相同位置的点,计算图像A和图像B之间的五个点的距离差,分别为(x1,y1)、(x2,y2)、(x3,y3)、(x4,y4)以及(x5,y5);
计算五个点x轴和y轴距离差的平均值,分别为x=(x1+x2+x3+x4+x5)/5和y=(y1+y2+y3+y4+y5)/5;
将平均值(x,y)存储于存储器中供移动终端使用双摄像头拍照时调用。
所述的双摄像头切换进行变焦的方法,其中,所述预设距离为1米。
所述的双摄像头切换进行变焦的方法,其中,所述移动终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时开启第二摄像头具体包括:
移动终端开启第一摄像头拍摄第一成像后,继续进行变焦放大;
当所述移动终端检测到变焦放大的倍数超过预设阈值时,开启第二摄像头拍摄第二成像。
所述的双摄像头切换进行变焦的方法,其中,所述移动终端读取预先存储在存储器中的所述第一摄像头与第二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像具体包括:
移动终端读取存储于存储器中的所述平均距离差;
获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;
获取所述第一成像的边缘及所述第二成像的边缘;
获取所述第一成像的第一像素及所述第二成像的第二像素,并获取所述第一像素与所述第二像素的像素差。
所述的双摄像头切换进行变焦的方法,其中,所述根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示具体包括:
根据所述像素差得到所述第一摄像头与第二摄像头共同的对焦位置范围;
根据所述对焦位置范围确定出所述第一摄像头与第二摄像头共同的最 终对焦位置;
将所述第二成像以所述平均距离差为坐标轴替换掉所述第一成像;
将进行融合处理之后的图像输出显示。
所述的双摄像头切换进行变焦的方法,其中,通过图像检测技术对所述第一成像及所述第二成像进行处理,得到所述第一成像的边缘及所述第二成像的边缘。
一种移动终端,其中,包括:处理器、与处理器通信连接的存储器,所述存储器存储有计算机程序,所述计算机程序用于被执行时实现所述的双摄像头切换进行变焦的方法;所述处理器用于调用所述存储器中的计算机程序,以实现所述的双摄像头切换进行变焦的方法。
一种存储装置,其中,所述存储装置存储有计算机程序,所述计算机程序能够被执行以用于实现所述的双摄像头切换进行变焦的方法。
本发明公开了一种双摄像头切换进行变焦的方法、移动终端及存储装置,所述方法包括:移动终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时,开启第二摄像头;移动终端读取预先存储在存储器中的所述第一摄像头与第二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示。本发明通过实现拍照倍数放大过程中的自然切换,以及通过图片融合处理来获取更清晰的放大倍数后的图像。
附图说明
图1是本发明双摄像头切换进行变焦的方法的较佳实施例的流程图。
图2是本发明移动终端的功能原理框图。
具体实施方式
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明较佳实施例所述的双摄像头切换进行变焦的方法,如图1所示,一种双摄像头切换进行变焦的方法,其中,包括以下步骤:
步骤S100、移动终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时,开启第二摄像头。
具体地,移动终端上设置后置双摄像头实现拍照功能,对于现有的后置双摄像头的技术,往往两个摄像头之间的距离为大间距时(之间距离较远),用于对焦进行拍照;两个摄像头之间的距离为小间距时(之间距离较近),用于对拍好后的照片进行图像融合处理,最终将增强后的照片呈现。
所述步骤S100之前还包括:
步骤S10:预先提取所述第一摄像头与第二摄像头拍照的平均距离差,并存储于所述移动终端的存储器中。
较佳地,所述步骤S10具体包括:
S11,预先在所述移动终端的双摄像头预设距离的地方放置一标准图卡用于拍摄图像;其中,所述预设距离优选为1米。
S12,开启所述第一摄像头拍摄得到图像A,开启所述第二摄像头得到图像B;
S13,在图像A和图像B上选取五个相同位置的点,计算图像A和图像B之间的五个点的距离差,分别为(x1,y1)、(x2,y2)、(x3,y3)、(x4,y4)以及(x5,y5);
S14,计算五个点x轴和y轴距离差的平均值,分别为x=(x1+x2+x3+x4+x5)/5和y=(y1+y2+y3+y4+y5)/5;
S15,将平均值(x,y)存储于存储器中供移动终端使用双摄像头拍照时调用。
进一步地,所述步骤S100具体包括:
S101,移动终端开启第一摄像头拍摄第一成像后,继续进行变焦放大;
S102,当所述移动终端检测到变焦放大的倍数超过预设阈值时,开启第二摄像头拍摄第二成像。
步骤S200、移动终端读取预先存储在存储器中的所述第一摄像头与第 二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像。
具体地,用户在使用移动终端进行拍照时,移动终端分别获取所述第一摄像头的第一成像,获取所述第二摄像头的第二成像;移动终端可以利用图像特征提取技术提取第一成像的第一像素,同时提取第二成像的第二像素;之后,移动终端再计算第一像素与第二像素的像素差,得到像素差。
进一步地,所述步骤S200具体包括:
S201,移动终端读取存储于存储器中的所述平均距离差;
S202,获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;
S203,获取所述第一成像的边缘及所述第二成像的边缘;
S204,获取所述第一成像的第一像素及所述第二成像的第二像素,并获取所述第一像素与所述第二像素的像素差。
通过图像检测技术对所述第一成像及所述第二成像进行处理,得到所述第一成像的边缘及所述第二成像的边缘。图像检测技术可以简单理解为图像边缘检测技术,即提取图像中区域的轮廓,图像中区域的划分以像素灰度为依据,边缘点其实就是图像中灰度跳变剧烈的点,每个区域中的像素灰度大致相同,而区域之间的边界就称为边缘,寻找这些边缘就是图像边缘检测的目的。
步骤S300、根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示。
具体地,移动终端首先根据第一像素与第二像素的像素差得到第一成像与第二成像的像距范围;其次,根据该像距范围利用像距与物距之间的转换规则得到第一成像及第二成像的物距范围;最后,根据该物距范围得到所述第一摄像头与第二摄像头共同的对焦位置范围,该对焦位置范围可以理解为两个摄像头的大概对焦位置范围,并不是最终的对焦位置点(合焦点)。根据图像清晰度算法及所述对焦位置范围确定出所述第一摄像头与第二摄像头共同的最终对焦位置,移动终端根据图像清晰度算法在对焦位置范围内确定出所述第一摄像头与第二摄像头共同的最终对焦位置(合焦点)。
移动终端利用图像清晰度算法计算得到在对焦位置范围内的每个位置点所对应的成像的清晰度值;其次,将清晰度值最高的成像所在的位置点确定为所述第一摄像头与第二摄像头共同的最终对焦位置(合焦点);即移动终端对大概对焦位置范围进行细搜索(根据对比图像清晰度值),最终得到清晰度最高的图像所对应的对焦位置,实现了对焦目的。
进一步地,所述步骤S300具体包括:
S301,根据所述像素差得到所述第一摄像头与第二摄像头共同的对焦位置范围;
S302,根据所述对焦位置范围确定出所述第一摄像头与第二摄像头共同的最终对焦位置;
S303,将所述第二成像以所述平均距离差为坐标轴替换掉所述第一成像;
S304,将进行融合处理之后的图像输出显示。
本发明还提供了一种移动终端,如图2所示,所述移动终端包括:处理器(processor)10、存储器(memory)20、通信接口(Communications Interface)30和总线40;其中,
所述处理器10、存储器20、通信接口30通过所述总线40完成相互间的通信;
所述通信接口30用于所述移动终端的通信设备之间的信息传输;
所述处理器10用于调用所述存储器20中的计算机程序,以执行上述各方法实施例所提供的方法,例如包括:移动终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时,开启第二摄像头;移动终端读取预先存储在存储器中的所述第一摄像头与第二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示。
本发明还提供一种存储装置,其中,所述存储装置存储有计算机程序,所述计算机程序能够被执行以实现所述的双摄像头切换进行变焦的方法。
综上所述,本发明提供了一种双摄像头切换进行变焦的方法、移动终端及存储装置,所述方法包括:移动终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时,开启第二摄像头;移动终端读取预先存储在存储器中的所述第一摄像头与第二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示。本发明通过实现拍照倍数放大过程中的自然切换,以及通过图片融合处理来获取更清晰的放大倍数后的图像。
当然,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关硬件(如处理器,控制器等)来完成,所述的程序可存储于一计算机可读取的存储介质中,该程序在执行时可包括如上述各方法实施例的流程。其中所述的存储介质可为存储器、磁碟、光盘等。
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。
Figure PCTCN2018095928-appb-000001

Claims (16)

  1. 终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时开启第二摄像头具体包括:
    移动终端开启第一摄像头拍摄第一成像后,继续进行变焦放大;
    当所述移动终端检测到变焦放大的倍数超过预设阈值时,开启第二摄像头拍摄第二成像。
  2. 根据权利要求5所述的双摄像头切换进行变焦的方法,其中,所述移动终端读取预先存储在存储器中的所述第一摄像头与第二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像具体包括:
    移动终端读取存储于存储器中的所述平均距离差;
    获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;
    获取所述第一成像的边缘及所述第二成像的边缘;
    获取所述第一成像的第一像素及所述第二成像的第二像素,并获取所述第一像素与所述第二像素的像素差。
  3. 根据权利要求6所述的双摄像头切换进行变焦的方法,其中,所述根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示具体包括:
    根据所述像素差得到所述第一摄像头与第二摄像头共同的对焦位置范围;
    根据所述对焦位置范围确定出所述第一摄像头与第二摄像头共同的最终对焦位置;
    将所述第二成像以所述平均距离差为坐标轴替换掉所述第一成像;
    将进行融合处理之后的图像输出显示。
  4. 根据权利要求6所述的双摄像头切换进行变焦的方法,其中,通过图像检测技术对所述第一成像及所述第二成像进行处理,得到所述第一成像的边缘及所述第二成像的边缘。
  5. 一种移动终端,其包括:处理器、与处理器通信连接的存储器,所述存储器存储有计算机程序,所述计算机程序用于被执行时实现一种双摄像头切换进行变焦的方法;所述处理器用于调用所述存储器中的计算机程序,以实现所 述双摄像头切换进行变焦的方法;其中,所述双摄像头切换进行变焦的方法包括:
    移动终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时,开启第二摄像头;
    移动终端读取预先存储在存储器中的所述第一摄像头与第二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;
    根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示。
  6. 根据权利要求9所述的移动终端,其中,所述双摄像头切换进行变焦的方法还包括:
    预先提取所述第一摄像头与第二摄像头拍照的平均距离差,并存储于所述移动终端的存储器中。
  7. 根据权利要求10所述的移动终端,其中,所述预先提取所述第一摄像头与第二摄像头拍照的平均距离差并存储于所述移动终端的存储器中具体包括:
    预先在所述移动终端的双摄像头预设距离的地方放置一标准图卡用于拍摄图像;
    开启所述第一摄像头拍摄得到图像A,开启所述第二摄像头得到图像B;
    在图像A和图像B上选取五个相同位置的点,计算图像A和图像B之间的五个点的距离差,分别为(x1,y1)、(x2,y2)、(x3,y3)、(x4,y4)以及(x5,y5);
    计算五个点x轴和y轴距离差的平均值,分别为x=(x1+x2+x3+x4+x5)/5和y=(y1+y2+y3+y4+y5)/5;
    将平均值(x,y)存储于存储器中供移动终端使用双摄像头拍照时调用。
  8. 根据权利要求9所述的移动终端,其中,所述移动终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时开启第二摄像头具体包括:
    移动终端开启第一摄像头拍摄第一成像后,继续进行变焦放大;
    当所述移动终端检测到变焦放大的倍数超过预设阈值时,开启第二摄像头拍摄第二成像。
  9. 根据权利要求12所述的移动终端,其中,所述移动终端读取预先存储在存储器中的所述第一摄像头与第二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像具体包括:
    移动终端读取存储于存储器中的所述平均距离差;
    获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;
    获取所述第一成像的边缘及所述第二成像的边缘;
    获取所述第一成像的第一像素及所述第二成像的第二像素,并获取所述第一像素与所述第二像素的像素差。
  10. 根据权利要求13所述的移动终端,其中,所述根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示具体包括:
    根据所述像素差得到所述第一摄像头与第二摄像头共同的对焦位置范围;
    根据所述对焦位置范围确定出所述第一摄像头与第二摄像头共同的最终对焦位置;
    将所述第二成像以所述平均距离差为坐标轴替换掉所述第一成像;
    将进行融合处理之后的图像输出显示。
  11. 一种存储装置,所述存储装置存储有计算机程序,所述计算机程序能够被执行以用于实现一种双摄像头切换进行变焦的方法,其中,所述双摄像头切换进行变焦的方法包括:
    移动终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时,开启第二摄像头;
    移动终端读取预先存储在存储器中的所述第一摄像头与第二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;
    根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示。
  12. 根据权利要求15所述的存储装置,其中,所述双摄像头切换进行变焦的方法还包括:
    预先提取所述第一摄像头与第二摄像头拍照的平均距离差,并存储于所述移动终端的存储器中。
  13. 根据权利要求16所述的存储装置,其中,所述预先提取所述第一摄像头与第二摄像头拍照的平均距离差并存储于所述移动终端的存储器中具体包括:
    预先在所述移动终端的双摄像头预设距离的地方放置一标准图卡用于拍摄图像;
    开启所述第一摄像头拍摄得到图像A,开启所述第二摄像头得到图像B;
    在图像A和图像B上选取五个相同位置的点,计算图像A和图像B之间的五个点的距离差,分别为(x1,y1)、(x2,y2)、(x3,y3)、(x4,y4)以及(x5,y5);
    计算五个点x轴和y轴距离差的平均值,分别为x=(x1+x2+x3+x4+x5)/5和y=(y1+y2+y3+y4+y5)/5;
    将平均值(x,y)存储于存储器中供移动终端使用双摄像头拍照时调用。
  14. 根据权利要求15所述的存储装置,其中,所述移动终端检测第一摄像头变焦放大过程的倍数是否超过预设阈值,当检测到变焦放大的倍数超过预设阈值时开启第二摄像头具体包括:
    移动终端开启第一摄像头拍摄第一成像后,继续进行变焦放大;
    当所述移动终端检测到变焦放大的倍数超过预设阈值时,开启第二摄像头拍摄第二成像。
  15. 根据权利要求18所述的存储装置,其中,所述移动终端读取预先存储在存储器中的所述第一摄像头与第二摄像头拍照的平均距离差,并获取所述第一摄像头的第一成像及所述第二摄像头的第二成像具体包括:
    移动终端读取存储于存储器中的所述平均距离差;
    获取所述第一摄像头的第一成像及所述第二摄像头的第二成像;
    获取所述第一成像的边缘及所述第二成像的边缘;
    获取所述第一成像的第一像素及所述第二成像的第二像素,并获取所述第一像素与所述第二像素的像素差。
  16. 根据权利要求19所述的存储装置,其中,所述根据所述平均距离差得到所述第一摄像头与第二摄像头共同的对焦位置范围,将所述第一成像与第二成像进行图像融合处理后输出显示具体包括:
    根据所述像素差得到所述第一摄像头与第二摄像头共同的对焦位置范围;
    根据所述对焦位置范围确定出所述第一摄像头与第二摄像头共同的最终对焦位置;
    将所述第二成像以所述平均距离差为坐标轴替换掉所述第一成像;
    将进行融合处理之后的图像输出显示。
PCT/CN2018/095928 2017-07-17 2018-07-17 一种双摄像头切换进行变焦的方法、移动终端及存储装置 WO2019015571A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP18835798.2A EP3657773B1 (en) 2017-07-17 2018-07-17 Method for zooming by switching between dual cameras, mobile terminal and storage device
US16/711,458 US11050915B2 (en) 2017-07-17 2019-12-12 Method for zooming by switching between dual cameras, mobile terminal, and storage apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710580057.7A CN107277360B (zh) 2017-07-17 2017-07-17 一种双摄像头切换进行变焦的方法、移动终端及存储装置
CN201710580057.7 2017-07-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/711,458 Continuation US11050915B2 (en) 2017-07-17 2019-12-12 Method for zooming by switching between dual cameras, mobile terminal, and storage apparatus

Publications (1)

Publication Number Publication Date
WO2019015571A1 true WO2019015571A1 (zh) 2019-01-24

Family

ID=60072816

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/095928 WO2019015571A1 (zh) 2017-07-17 2018-07-17 一种双摄像头切换进行变焦的方法、移动终端及存储装置

Country Status (4)

Country Link
US (1) US11050915B2 (zh)
EP (1) EP3657773B1 (zh)
CN (1) CN107277360B (zh)
WO (1) WO2019015571A1 (zh)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277360B (zh) 2017-07-17 2020-07-14 惠州Tcl移动通信有限公司 一种双摄像头切换进行变焦的方法、移动终端及存储装置
CN110166680B (zh) * 2019-06-28 2021-08-24 Oppo广东移动通信有限公司 设备成像方法、装置、存储介质及电子设备
CN110602392B (zh) * 2019-09-03 2021-10-01 Oppo广东移动通信有限公司 控制方法、成像模组、电子设备及计算机可读存储介质
CN110809101B (zh) * 2019-11-04 2022-05-17 RealMe重庆移动通信有限公司 图像变焦处理方法及装置、电子设备、存储介质
CN111107265B (zh) * 2019-12-25 2021-10-22 RealMe重庆移动通信有限公司 图像处理方法及装置、计算机可读介质、电子设备
CN111768659B (zh) * 2020-05-15 2022-08-30 四川科华天府科技有限公司 一种基于ar互动教学设备的变焦系统
CN111935398B (zh) * 2020-07-07 2022-04-22 北京迈格威科技有限公司 图像的处理方法、装置、电子设备和计算机可读介质
CN112073642B (zh) * 2020-09-18 2021-09-14 展讯通信(上海)有限公司 多摄像头设备的视频录制方法及装置、存储介质、终端
CN112738397A (zh) * 2020-12-29 2021-04-30 维沃移动通信(杭州)有限公司 拍摄方法、装置、电子设备及可读存储介质
CN112804450B (zh) * 2020-12-31 2022-05-27 Oppo广东移动通信有限公司 一种摄像头的开启方法、电子设备及计算机存储介质
CN112866576B (zh) * 2021-01-18 2022-05-17 Oppo广东移动通信有限公司 图像预览方法、存储介质及显示设备
CN114827391A (zh) * 2021-01-28 2022-07-29 北京小米移动软件有限公司 摄像头切换方法、摄像头切换装置及存储介质
CN112885097B (zh) * 2021-02-07 2023-01-10 云控智行(上海)汽车科技有限公司 一种基于跨点位的路侧融合管理方法及系统
CN114979458B (zh) * 2021-02-26 2023-08-22 华为技术有限公司 一种图像的拍摄方法及电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013183406A1 (ja) * 2012-06-07 2013-12-12 富士フイルム株式会社 撮像装置及び画像表示方法
CN104333700A (zh) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 一种图像虚化方法和图像虚化装置
CN105959555A (zh) * 2016-06-02 2016-09-21 广东欧珀移动通信有限公司 拍摄模式自动调整方法、装置和移动终端
CN106341593A (zh) * 2016-08-22 2017-01-18 深圳市金立通信设备有限公司 拍照控制方法及终端
CN106731377A (zh) * 2016-12-05 2017-05-31 张家港市艾尔环保工程有限公司 高效过滤器
CN107277360A (zh) * 2017-07-17 2017-10-20 惠州Tcl移动通信有限公司 一种双摄像头切换进行变焦的方法、移动终端及存储装置
CN108234851A (zh) * 2013-06-13 2018-06-29 核心光电有限公司 双孔径变焦数字摄影机

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080030592A1 (en) * 2006-08-01 2008-02-07 Eastman Kodak Company Producing digital image with different resolution portions
US7683962B2 (en) * 2007-03-09 2010-03-23 Eastman Kodak Company Camera using multiple lenses and image sensors in a rangefinder configuration to provide a range map
US8879902B2 (en) * 2010-10-08 2014-11-04 Vincent Pace & James Cameron Integrated 2D/3D camera with fixed imaging parameters
JP2013013061A (ja) * 2011-05-27 2013-01-17 Sanyo Electric Co Ltd 撮像装置
TWI549500B (zh) * 2014-09-12 2016-09-11 聚晶半導體股份有限公司 影像擷取方法及使用此方法之影像擷取裝置
TWI554103B (zh) * 2014-11-13 2016-10-11 聚晶半導體股份有限公司 影像擷取裝置及其數位變焦方法
KR20170035237A (ko) * 2015-09-22 2017-03-30 엘지전자 주식회사 이동 단말기 및 그 제어방법
CN106454124A (zh) * 2016-11-28 2017-02-22 努比亚技术有限公司 双摄像头实现对焦的装置及方法
CN106791377B (zh) * 2016-11-29 2019-09-27 Oppo广东移动通信有限公司 控制方法、控制装置及电子装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013183406A1 (ja) * 2012-06-07 2013-12-12 富士フイルム株式会社 撮像装置及び画像表示方法
CN108234851A (zh) * 2013-06-13 2018-06-29 核心光电有限公司 双孔径变焦数字摄影机
CN104333700A (zh) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 一种图像虚化方法和图像虚化装置
CN105959555A (zh) * 2016-06-02 2016-09-21 广东欧珀移动通信有限公司 拍摄模式自动调整方法、装置和移动终端
CN106341593A (zh) * 2016-08-22 2017-01-18 深圳市金立通信设备有限公司 拍照控制方法及终端
CN106731377A (zh) * 2016-12-05 2017-05-31 张家港市艾尔环保工程有限公司 高效过滤器
CN107277360A (zh) * 2017-07-17 2017-10-20 惠州Tcl移动通信有限公司 一种双摄像头切换进行变焦的方法、移动终端及存储装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3657773A4 *

Also Published As

Publication number Publication date
US11050915B2 (en) 2021-06-29
EP3657773A4 (en) 2020-06-10
CN107277360B (zh) 2020-07-14
CN107277360A (zh) 2017-10-20
EP3657773B1 (en) 2023-05-31
EP3657773A1 (en) 2020-05-27
US20200120289A1 (en) 2020-04-16

Similar Documents

Publication Publication Date Title
WO2019015571A1 (zh) 一种双摄像头切换进行变焦的方法、移动终端及存储装置
KR102229811B1 (ko) 단말기를 위한 촬영 방법 및 단말기
WO2019105206A1 (en) Method and device for image processing
CN109409147B (zh) 一种条码识别方法和装置
JP4497211B2 (ja) 撮像装置、撮像方法及びプログラム
TWI538512B (zh) 調整對焦位置的方法及電子裝置
CN104065859B (zh) 一种全景深图像的获取方法及摄像装置
US20120307102A1 (en) Video creation device, video creation method and non-transitory computer-readable storage medium
US9792698B2 (en) Image refocusing
WO2015192547A1 (zh) 一种基于移动终端的三维照片拍摄方法及移动终端
US9148552B2 (en) Image processing apparatus, image pickup apparatus, non-transitory storage medium storing image processing program and image processing method
JP2018528631A (ja) ステレオオートフォーカス
US20120019709A1 (en) Assisting focusing method using multiple face blocks
CN105472263B (zh) 影像撷取方法及使用此方法的影像撷取设备
JP2019121860A (ja) 画像処理装置及びその制御方法
WO2018196854A1 (zh) 一种拍照方法、拍照装置及移动终端
WO2012147368A1 (ja) 撮影装置
KR20140031690A (ko) 촬영 장치 및 이의 촬영 방법
JP2011082726A (ja) 画像再生装置及び撮像装置
TW201642008A (zh) 影像擷取裝置及其動態對焦方法
JP6645711B2 (ja) 画像処理装置、画像処理方法、プログラム
WO2019134513A1 (zh) 拍照对焦方法、装置、存储介质及电子设备
WO2019061051A1 (zh) 一种拍照方法和拍照装置
WO2021102959A1 (zh) 一种焦点调整方法、摄像模组及计算机可读存储介质
TW201616168A (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: 18835798

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018835798

Country of ref document: EP

Effective date: 20200217