WO2016000330A1 - 一种焦距调节方法、装置和终端、计算机存储介质 - Google Patents

一种焦距调节方法、装置和终端、计算机存储介质 Download PDF

Info

Publication number
WO2016000330A1
WO2016000330A1 PCT/CN2014/087461 CN2014087461W WO2016000330A1 WO 2016000330 A1 WO2016000330 A1 WO 2016000330A1 CN 2014087461 W CN2014087461 W CN 2014087461W WO 2016000330 A1 WO2016000330 A1 WO 2016000330A1
Authority
WO
WIPO (PCT)
Prior art keywords
focal length
distance
zoom camera
terminal
focus adjustment
Prior art date
Application number
PCT/CN2014/087461
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 WO2016000330A1 publication Critical patent/WO2016000330A1/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/67Focus control based on electronic image sensor signals
    • H04N23/671Focus control based on electronic image sensor signals in combination with active ranging signals, e.g. using light or sound signals emitted toward objects
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • 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/958Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging
    • H04N23/959Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging by adjusting depth of field during image capture, e.g. maximising or setting range based on scene characteristics

Definitions

  • the present invention relates to the field of terminals, and in particular, to a method, device, and terminal for focal length adjustment, and a computer storage medium.
  • terminals with zoom and high-pixel cameras have become very popular, and card-type digital cameras have been basically replaced by mobile phone terminals with high-pixel zoom cameras.
  • the automatic zoom function can be implemented in the following two ways:
  • ⁇ Method 1> Using the principle of light reflection of an object, determining the distance between the object to be photographed and the camera, thereby automatically adjusting the focal length;
  • the camera-equipped terminal has not yet moved to the SLR camera market.
  • the reason why it is not shaken is because the camera of the terminal can not capture the layered feeling of the image, and in some scenes, the user's framing requirements cannot be truly realized. For example, if you take a picture from a dark place in a bright place, or there are other large objects in front of an object photographed by a mobile phone terminal, the camera of the terminal cannot focus properly, and it is impossible to determine where the user is taking the object to focus, that is, SLR shots with clear close-ups, blurred vision or clear vision and blurred background. For example, when using a terminal camera for imaging, since the subject changes before and after the focal length, auto zoom often causes image blurring due to frequent focus.
  • the object of the present invention is to provide a focal length adjustment method, device and terminal, and computer storage medium Quality, the distance between the camera and the object being measured is measured by laser, so that precise focus can be achieved according to the measured distance.
  • an embodiment of the present invention provides a focal length adjustment method for a terminal, the terminal is provided with a zoom camera, and the terminal is further provided with a distance measuring device for performing distance measurement by transmitting and receiving a laser signal;
  • the method includes:
  • the adjusting the focal length of the zoom camera according to the first distance comprises:
  • the adjusting the focal length of the zoom camera according to the first distance comprises:
  • the method further includes:
  • the first distance is displayed in the generated shot preview image.
  • the method further includes:
  • the image outside the depth of field in the generated shooting preview image is adjusted to be out of focus.
  • an embodiment of the present invention further provides a focus adjustment apparatus for a terminal, the terminal is provided with a zoom camera, and the terminal is further provided with a distance measuring device for performing distance measurement by transmitting and receiving a laser signal;
  • the device includes:
  • a measuring module when the shooting is performed using the zoom camera, controlling the distance measuring device to measure a first distance between the zoom camera and an object to be photographed;
  • a focus adjustment module configured to adjust a focal length of the zoom camera according to the first distance.
  • the distance measuring device transmits a first laser signal through a first laser diode and receives a second laser signal reflected by the object through a second laser diode.
  • the first laser diode and the second laser diode are disposed on a first horizontal line, and the first horizontal line is a horizontal line where a center of the zoom camera is located.
  • the focus adjustment module includes:
  • a first focus adjustment submodule configured to adjust a focal length of the zoom camera to a first focal length determined according to the first distance.
  • the focus adjustment module includes:
  • Determining a submodule configured to determine a first focal length according to the first distance
  • a receiving submodule configured to receive a focus adjustment instruction sent by a user of the terminal for adjusting the first focal length to a second focal length
  • a second focus adjustment submodule configured to adjust a focal length of the zoom camera to the second focal length according to the focus adjustment command.
  • the device further includes:
  • a display module configured to display the first distance in the generated shot preview image.
  • the device further includes:
  • a depth of field determination module configured to determine a depth of field of the object to be photographed according to the first distance
  • An out-of-focus adjustment module configured to map the generated shot preview image outside the depth of field The image is adjusted to be out of focus.
  • an embodiment of the present invention further provides a terminal, where the terminal is provided with a zoom camera, and the terminal is further provided with a distance measuring device for performing distance measurement by transmitting and receiving a laser signal;
  • the terminal further includes:
  • a measuring module when the shooting is performed using the zoom camera, controlling the distance measuring device to measure a first distance between the zoom camera and an object to be photographed;
  • a focus adjustment module configured to adjust a focal length of the zoom camera according to the first distance.
  • Embodiments of the present invention also provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being used to perform the above method.
  • the distance between the camera and the object to be photographed is measured by the laser without affecting the function of the camera function of the original terminal, and the precise focus is achieved according to the measured distance;
  • the embodiment of the invention can accurately identify the near and far level of the image by the focal length, and actively simulate the framing level effect of the SLR camera to achieve the purpose of expanding the depth of the camera;
  • the embodiment of the invention can not only achieve the effect of autofocusing like a SLR camera, but also achieve the effect of manual focusing like a SLR camera, thereby improving the user experience;
  • the image out of focus outside the depth of field can be adjusted to achieve the effect that the SLR camera cannot achieve.
  • FIG. 1 is a schematic flow chart of a method for adjusting a focal length according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of terminal shooting when manually adjusting a focal length according to an embodiment of the present invention
  • FIG. 3 is a schematic overall flow chart of a method for adjusting a focal length according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a focus adjustment apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a distance measuring apparatus according to an embodiment of the present invention.
  • FIG. 6 is a layout diagram of a camera and a laser diode according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of interaction when shooting using a terminal camera according to an embodiment of the present invention.
  • Embodiments of the present invention provide a method for adjusting a focal length for a terminal, the terminal is provided with a zoom camera, and the terminal is further provided with a distance measuring device for performing distance measurement by transmitting and receiving a laser signal;
  • the method is as shown in FIG. 1 and includes:
  • Step 11 when the zoom camera is used for shooting, controlling the distance measuring device to measure a first distance between the zoom camera and the object to be photographed;
  • Step 12 adjusting a focal length of the zoom camera according to the first distance.
  • the transmission and reception of the laser are not affected by the current light, the first distance between the zoom camera and the object to be photographed can be accurately measured, and therefore, the focal length of the zoom camera is adjusted according to the first distance.
  • the focal length of the zoom camera is adjusted according to the first distance.
  • the near and far levels of the image can be identified by adjusting the length of the focal length, and the framing layer effect of the SLR camera is actively simulated to achieve the purpose of enlarging the depth of field of the camera.
  • the focal length of the zoom camera is adjusted according to the first distance, preferably, it can be performed in the following two ways.
  • Step 12 is specifically as follows:
  • This mode is a full smart mode, and the focal length of the camera is completely adjusted by the first distance measured by the distance measuring module to adjust the focus imaging.
  • the imaging effect can be confirmed by the terminal's default settings.
  • the existing terminal can realize the automatic adjustment of the focal length by the measured distance, therefore, in this In the embodiment of the invention, any one of the existing methods can be implemented according to the measured first distance autofocus.
  • a shooting preview image on the terminal screen in which the position of the object to be photographed by the infrared laser light source can be displayed; and the first between the terminal and the object to be photographed can be dynamically displayed in the generated shooting preview image.
  • Step 12 is specifically as follows:
  • the first distance may be displayed in the generated shooting preview image.
  • the end user transmits a focus adjustment instruction for adjusting the focal length according to the first distance displayed on the screen.
  • the user of the touch screen terminal can simulate and adjust the focal length by using a gesture circle on the touch screen to realize the framing focus; the non-large screen terminal can adjust the focal length by adjusting the volume key +-.
  • the default is to increase the focal length, and when the circle is counterclockwise, the default is to reduce the focal length; or, by adjusting the volume key + - Way to increase or decrease the focal length.
  • the zoom camera when the user needs to increase the focal length, the zoom camera automatically takes the object behind the object to focus; when the user needs to reduce the focal length, the zoom camera Automatically take the object in front of the subject to focus.
  • the method provided by the embodiment of the present invention further includes:
  • the image outside the depth of field in the generated shooting preview image is adjusted to be out of focus.
  • Depth of field is the range of distances before and after the subject is measured by imaging that captures a sharp image at the front of the camera or other imager. After the focus is completed, a clear image can be formed in the range before and after the focus. The distance range before and after this is the depth of field.
  • the image outside the depth of field in the generated shooting preview image may be adjusted to be out of focus by software processing, thereby achieving the effect that the object to be photographed is clear, and other parts of the image are blurred.
  • the user selects a certain part of the image in a precise focus by delineating a certain range on the terminal screen.
  • the terminal can blur out other parts, so that the SLR camera cannot be realized. Effect.
  • the second distance between the two objects to be photographed can be displayed.
  • the second distance here may be determined according to a first distance between the object and the object to be photographed by the distance measuring module, and the angle between the camera and the two objects to be photographed is determined by an optical principle to obtain the second distance. It is convenient for users to predict and framing, which also enhances the user experience.
  • FIG. 3 The overall process of the above focal length adjustment method is shown in FIG. 3, including:
  • Step 31 the mobile terminal enters a camera function
  • Step 32 The distance measuring module controls the first distance
  • Step 33 select whether to perform smart focus, that is, automatic focus adjustment, then proceeds to step 34, otherwise proceeds to step 35;
  • Step 34 focusing the focal length of the zoom camera to a first focal length determined according to the first distance
  • Step 35 after determining the first focal length, receiving a focus adjustment instruction of the terminal user, and adjusting a focal length of the zoom camera to a second focal length according to the instruction;
  • step 36 the focus imaging is completed, and the first distance is displayed in the generated shooting preview image.
  • the embodiment of the invention further provides a focal length adjusting device for a terminal, the terminal is provided with a zoom camera, and the terminal is further provided with a distance measuring device for performing distance measurement by transmitting and receiving a laser signal;
  • the device is shown in Figure 4 and includes:
  • a measuring module when the shooting is performed using the zoom camera, controlling the distance measuring device to measure a first distance between the zoom camera and an object to be photographed;
  • a focus adjustment module configured to adjust a focal length of the zoom camera according to the first distance.
  • the distance measuring device is as shown in FIG. 5, and includes:
  • a laser emitting device configured to perform a digital-to-analog conversion of the pulse signal after the central processor CPU of the terminal generates a pulse signal, convert the image into a simulated laser signal, and transmit the first laser signal to the object through the laser signal amplifier;
  • the laser receiving device is configured to receive a second laser signal reflected by the object to be photographed.
  • the generated electrical signals are all connected to the analog-to-digital conversion port of the CPU for data analysis.
  • the distance measuring device adopts the principle of the currently common single-pulse laser ranging, and the first distance is determined mainly according to the phase difference between the second laser signal and the first laser signal, and the speed of light. If the accuracy is less than 1 mm within 50 meters, the shooting requirements can be met.
  • the distance measuring device emits a first laser signal through a first laser diode, and receives a second laser signal reflected by the object through a second laser diode.
  • the first laser diode and the second laser diode are respectively disposed at the left and right of the zoom camera, and are disposed at the first On the horizontal line, the first horizontal line is a horizontal line where the center of the zoom camera is located.
  • the distance between the first laser diode and the second laser diode to the camera respectively is as close as possible to the structural design.
  • a dark hole in which the laser diode is placed may be added, and the first laser laser diode and the second laser diode are respectively disposed in different dark holes.
  • the focus adjustment module specifically includes:
  • a first focus adjustment submodule configured to adjust a focal length of the zoom camera to a first focal length determined according to the first distance.
  • the focus adjustment module specifically includes:
  • Determining a submodule configured to determine a first focal length according to the first distance
  • a receiving submodule configured to receive a focus adjustment instruction sent by a user of the terminal for adjusting the first focal length to a second focal length
  • a second focus adjustment submodule configured to adjust a focal length of the zoom camera to the second focal length according to the focus adjustment command.
  • the device further includes:
  • a display module configured to display the first distance in the generated shot preview image.
  • the device further includes:
  • a depth of field determination module configured to determine a depth of field of the object to be photographed according to the first distance
  • the out-of-focus adjustment module is configured to adjust an image outside the depth of field in the generated captured preview image to be out of focus.
  • FIG. 7 a schematic diagram of interaction when shooting using a terminal camera is also provided, as shown in FIG. 7.
  • the distance measurement device realizes the intelligent correlation between the focal length and the distance of the camera. Measuring the change of the first distance determines the change of the focal length of the zoom camera. Meanwhile, the change of the framing position determines the change of the first distance, which can be reflected in the camera finder frame.
  • the position pointed by the laser is convenient Household view.
  • the gesture of the touch screen of the terminal is increased to facilitate manual intervention by the user, and the process of manually adjusting the focal length by the SLR camera is simulated.
  • the non-touch screen mobile terminal can simulate the adjustment of the focal length by adjusting the volume key +-.
  • the distance of the framing is dynamically displayed on the captured preview image of the camera, which makes the user more intuitive and convenient to use the camera; the manual focus adjustment is used to realize the photo of the SLR effect.
  • the user's shooting mode is switched, and the manual and automatic setting of the depth of field, the manual and automatic setting of the aperture, the focus image processing, and the processing of the non-focus image are also added.
  • An embodiment of the present invention further provides a terminal, where the terminal is provided with a zoom camera, and the terminal is further provided with a distance measuring device for performing distance measurement by transmitting and receiving a laser signal;
  • the terminal further includes:
  • a measuring module when the shooting is performed using the zoom camera, controlling the distance measuring device to measure a first distance between the zoom camera and an object to be photographed;
  • a focus adjustment module configured to adjust a focal length of the zoom camera according to the first distance.
  • the embodiment of the invention further provides a computer storage medium storing computer executable instructions for performing the method described in any of the above embodiments.
  • Each of the above modules may be implemented by a central processing unit (CPU), a digital signal processor (DSP), or a field-programmable gate array (FPGA) in the electronic device.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA field-programmable gate array
  • 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 present invention is directed to a method, apparatus (system), and computer program in accordance with an embodiment of the present invention
  • the flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
  • 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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

本发明提供了一种焦距调节方法、装置和终端、计算机存储介质,所述终端设置有变焦摄像头,所述终端还设置有通过发射和接收激光信号进行距离测量的距离测量装置;所述方法包括:当使用所述变焦摄像头进行拍摄时,控制所述距离测量装置测量所述变焦摄像头和被拍摄物体之间的第一距离;根据所述第一距离调节所述变焦摄像头的焦距。所述装置用于终端,包括:测量模块,当使用所述变焦摄像头进行拍摄时,控制所述距离测量装置测量所述变焦摄像头和被拍摄物体之间的第一距离;焦距调节模块,配置为根据所述第一距离调节所述变焦摄像头的焦距。

Description

一种焦距调节方法、装置和终端、计算机存储介质 技术领域
本发明涉及终端领域,尤其涉及一种焦距调节方法、装置和终端、计算机存储介质。
背景技术
随着智能手机终端、平板等消费类电子产品的普及,带变焦、高像素的摄像头的终端已经非常普及,卡片式数码相机已经基本被带高像素变焦摄像头的手机终端取代。
其中,自动变焦功能的实现有以下两种方式:
<方式一>利用物体光反射的原理,确定被拍摄物体与摄像头之间的距离,从而自动调节焦距;
<方式二>通过检测图像的轮廓边缘实现自动对焦。
但是目前,带摄像头的终端还没有撼动到单反相机市场。之所以没有撼动,是因为终端的摄像头还拍摄不出图像的层次感觉,在某种场景并不能真正实现用户的取景要求。例如,从暗的地方向明亮的地方取景,或者手机终端拍照的物体前还有其他较大的物体,终端的摄像头就不能正确的对焦,无法判断用户是取什么地方的物体来对焦,也就是单反拍出的近景清楚、远景模糊或是远景清楚、近景模糊的效果。再例如,使用终端摄像头进行摄像的时候,由于被摄物在焦距前后是变化的,自动变焦经常会由于频繁对焦而导致图像模糊。
发明内容
本发明的目的是提供一种焦距调节方法、装置和终端、计算机存储介 质,通过激光测量摄像头与被拍摄物体之间的距离,从而根据测量到的距离实现精确对焦。
为了实现上述目的,本发明实施例提供了一种焦距调节方法,用于终端,所述终端设置有变焦摄像头,所述终端还设置有通过发射和接收激光信号进行距离测量的距离测量装置;
所述方法包括:
当使用所述变焦摄像头进行拍摄时,控制所述距离测量装置测量所述变焦摄像头和被拍摄物体之间的第一距离;
根据所述第一距离调节所述变焦摄像头的焦距。
本发明一实施例中,所述根据所述第一距离调节所述变焦摄像头的焦距包括:
将所述变焦摄像头的焦距调节到根据所述第一距离确定的第一焦距。
本发明一实施例中,所述根据所述第一距离调节所述变焦摄像头的焦距包括:
根据所述第一距离确定第一焦距;
接收所述终端的用户发送的用于调节所述第一焦距到第二焦距的焦距调节指令;
根据所述焦距调节指令,将所述变焦摄像头的焦距调节到所述第二焦距。
本发明一实施例中,所述方法还包括:
在生成的拍摄预览图像中显示所述第一距离。
本发明一实施例中,所述方法还包括:
根据所述第一距离确定被拍摄物体的景深;
将生成的拍摄预览图像中处于所述景深外的图像调节为失焦。
为了实现上述目的,本发明实施例还提供了一种焦距调节装置,用于 终端,所述终端设置有变焦摄像头,所述终端还设置有通过发射和接收激光信号进行距离测量的距离测量装置;
所述装置包括:
测量模块,当使用所述变焦摄像头进行拍摄时,控制所述距离测量装置测量所述变焦摄像头和被拍摄物体之间的第一距离;
焦距调节模块,配置为根据所述第一距离调节所述变焦摄像头的焦距。
本发明一实施例中,所述距离测量装置通过第一激光二极管发射第一激光信号,并通过第二激光二极管接收所述被拍摄物体反射回来的第二激光信号。
本发明一实施例中,所述第一激光二极管和所述第二激光二极管设置在第一水平线上,所述第一水平线为所述变焦摄像头的中心所在的水平线。
本发明一实施例中,所述焦距调节模块包括:
第一焦距调节子模块,配置为将所述变焦摄像头的焦距调节到根据所述第一距离确定的第一焦距。
本发明一实施例中,所述焦距调节模块包括:
确定子模块,配置为根据所述第一距离确定第一焦距;
接收子模块,配置为接收所述终端的用户发送的用于调节所述第一焦距到第二焦距的焦距调节指令;
第二焦距调节子模块,配置为根据所述焦距调节指令,将所述变焦摄像头的焦距调节到所述第二焦距。
本发明一实施例中,所述装置还包括:
显示模块,配置为在生成的拍摄预览图像中显示所述第一距离。
本发明一实施例中,所述装置还包括:
景深确定模块,配置为根据所述第一距离确定被拍摄物体的景深;
失焦调节模块,配置为将生成的拍摄预览图像中处于所述景深外的图 像调节为失焦。
为了实现上述目的,本发明实施例还提供了一种终端,所述终端设置有变焦摄像头,所述终端还设置有通过发射和接收激光信号进行距离测量的距离测量装置;
所述终端还包括:
测量模块,当使用所述变焦摄像头进行拍摄时,控制所述距离测量装置测量所述变焦摄像头和被拍摄物体之间的第一距离;
焦距调节模块,配置为根据所述第一距离调节所述变焦摄像头的焦距。
本发明实施例还提供了一种计算机存储介质,其中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。
本发明实施例具有以下有益效果中的至少一项:
本发明实施例在不影响原有终端摄像头功能使用条件下,通过激光测量摄像头与被拍摄物体之间的距离,根据测量到的距离实现精确对焦;
本发明实施例通过精准对焦,可以通过焦距长短识别图像的远近层次,主动模拟单反相机的取景层次效果,以达到扩大摄像头景深的目的;
本发明实施例不仅可以实现类似单反相机自动对焦的效果,还可以实现类似单反相机手动对焦的效果,提升用户体验;
本发明实施例中,通过摄像头与被拍摄物体之间距离的测量,可以调节景深外的图像失焦,达到单反相机无法实现的效果。
附图说明
图1为本发明实施例提供的焦距调节方法的流程示意图;
图2为本发明实施例提供的手动调节焦距时的终端拍摄示意图;
图3为本发明实施例提供的焦距调节方法的整体流程示意图;
图4为本发明实施例提供的焦距调节装置的结构示意图;
图5为本发明实施例提供的距离测量装置的结构示意图;
图6为本发明实施例提供的摄像头与激光二极管的布局图;
图7为本发明实施例提供的使用终端摄像头进行拍摄时交互示意图。
具体实施方式
为使本发明实施例要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。
本发明实施例提供了一种焦距调节方法,用于终端,所述终端设置有变焦摄像头,所述终端还设置有通过发射和接收激光信号进行距离测量的距离测量装置;
所述方法如图1所示,包括:
步骤11,当使用所述变焦摄像头进行拍摄时,控制所述距离测量装置测量所述变焦摄像头和被拍摄物体之间的第一距离;
步骤12,根据所述第一距离调节所述变焦摄像头的焦距。
在本发明实施例中,由于激光的发射和接收不受当前光线的影响,能够准确的测量变焦摄像头和被拍摄物体之间的第一距离,因此,根据第一距离来调节变焦摄像头的焦距,能够实现精确对焦。
本发明一实施例中,可以通过调节的焦距长短识别图像的远近层次,主动模拟单反相机的取景层次效果,以达到扩大摄像头景深的目的。
在根据第一距离调节变焦摄像头的焦距时,优选地,可以通过下列两种方式进行。
<方式一>自动对焦
步骤12具体为:
将所述变焦摄像头的焦距调节到根据所述第一距离确定的第一焦距。
这种模式是全智能模式,摄像头的焦距完全由距离测量模块测量到的第一距离来调节焦距成像。成像效果可以由终端的默认设置确认。
现有的终端已经可以实现通过测量的距离自动调节焦距,因此,在本 发明实施例中,可以采用现有的任意一种根据测量的第一距离自动对焦的方式来实现。
当然,还可以在终端屏幕上生成拍摄预览图像,其中可以显示用红外激光光源所投射到的被拍摄物体的位置;同时可以在生成的拍摄预览图像中动态显示终端与被拍摄物体之间的第一距离,方便用户预判和取景。
在本发明实施例提供的焦距调节方法中,不仅可以实现类似单反相机自动对焦的效果,还可以实现类似单反相机手动对焦的效果,提升用户体验,具体实现方式如下。
<方式二>手动调焦
步骤12具体为:
根据所述第一距离确定第一焦距;
接收所述终端的用户发送的用于调节所述第一焦距到第二焦距的焦距调节指令;
根据所述焦距调节指令,将所述变焦摄像头的焦距调节到所述第二焦距。
当距离测量装置测量到第一距离后,可以在生成的拍摄预览图像中显示所述第一距离。此时,终端用户根据屏幕上显示的第一距离,发送调节焦距的焦距调节指令。优选地,触屏终端用户可以通过在触屏上用手势画圈的方式模拟调节焦距实现取景对焦;非大屏的终端可以采用调节音量键+-的方式来调节焦距远近。
如图2所示,可以预先设定当触屏终端用户通过在触屏顺时针画圈时,默认为增大焦距,逆时针画圈时,默认为减小焦距;或者,通过调节音量键+-的方式来增大或减小焦距。
在本发明实施例中,可以设置当用户需要增大焦距时,变焦摄像头自动取被拍摄物体背后的物体来对焦;当用户需要减小焦距时,变焦摄像头 自动取被拍摄物体前面的物体来对焦。
另外,最终成像的效果由人工设置确认。
为了进一步达到单反相机无法实现的效果,本发明实施例提供的所述方法还包括:
根据所述第一距离确定被拍摄物体的景深;
将生成的拍摄预览图像中处于所述景深外的图像调节为失焦。
景深是指在摄像头或其他成像器前沿能够取得清晰图像的成像所测定的被拍摄物体前后距离范围。在聚焦完成后,在焦点前后的范围内都能形成清晰的像,这一前一后的距离范围,就是景深。
在本发明实施例中,可以将生成的拍摄预览图像中处于所述景深外的图像通过软件处理调节为失焦,从而达到被拍摄物体清楚,而图像的其他部分模糊的效果。
进而还可以按用户的意志来精确的对焦,例如用户通过在终端屏幕上圈定某一范围的方式选择精确对焦预览图像中的某一部分,此时终端可以模糊掉其他部分,达到单反相机所无法实现的效果。
另外,在预览图像中显示的被拍摄物体有多个时,可以显示两个被拍摄物体之间的第二距离。
这里的第二距离可以根据距离测量模块分别测定的与被拍摄物体之间的第一距离,结合通过光学原理确定摄像头与该两个被拍摄物体之间的夹角,得到所述第二距离,方便用户预判和取景,同样提升了用户体验。
上述的焦距调节方法整体过程如图3所示,包括:
步骤31,移动终端进入照相机功能;
步骤32,控制距离测量模块测量第一距离;
步骤33,选择是否进行智能对焦,即自动调焦,是则进入步骤34,否则进入步骤35;
步骤34,调焦变焦摄像头的焦距到根据第一距离确定的第一焦距;
步骤35,在确定第一焦距后,接收终端用户的焦距调节指令,并根据该指令将变焦摄像头的焦距调节到第二焦距;
步骤36,完成对焦成像,在生成的拍摄预览图像中显示第一距离。
本发明实施例还提供了一种焦距调节装置,用于终端,所述终端设置有变焦摄像头,所述终端还设置有通过发射和接收激光信号进行距离测量的距离测量装置;
所述装置如图4所示,包括:
测量模块,当使用所述变焦摄像头进行拍摄时,控制所述距离测量装置测量所述变焦摄像头和被拍摄物体之间的第一距离;
焦距调节模块,配置为根据所述第一距离调节所述变焦摄像头的焦距。
其中,距离测量装置如图5所示,包括:
激光发射装置,用于在终端的中央处理器CPU产生一脉冲信号后,将该脉冲信号进行数模转换,转换为模拟的激光信号,并通过激光信号放大器发射第一激光信号到被拍摄物体;
激光接收装置,用于接收被拍摄物体反射回来的第二激光信号。
在本发明实施例中,通过在终端的主板上增加激光测距的硬件功能,将产生的电信号都连接到CPU的模数转换端口进行数据分析。
距离测量装置采用是目前比较通用的单脉冲激光测距的原理,主要根据第二激光信号与第一激光信号之间的相位差,以及光速确定所述第一距离。精度50米内如有不到1毫米的误差,就可以满足拍摄的要求。
其中,所述距离测量装置通过第一激光二极管发射第一激光信号,并通过第二激光二极管接收所述被拍摄物体反射回来的第二激光信号。
优选地,为了保证距离测量的准确性,如图6所示,所述第一激光二极管和所述第二激光二极管分别设置在变焦摄像头的左右,并设置在第一 水平线上,所述第一水平线为所述变焦摄像头的中心所在的水平线。
第一激光二极管和所述第二激光二极管分别到摄像头的距离在满足结构设计的情况下,越近越好。
当然,为了不影响终端的美观,可以增加安放激光二极管的暗孔,第一激光激光二极管和所述第二激光二极管分别设置在不同的暗孔中。
本发明一实施例中,所述焦距调节模块具体包括:
第一焦距调节子模块,用于将所述变焦摄像头的焦距调节到根据所述第一距离确定的第一焦距。
本发明一实施例中,所述焦距调节模块具体包括:
确定子模块,配置为根据所述第一距离确定第一焦距;
接收子模块,配置为接收所述终端的用户发送的用于调节所述第一焦距到第二焦距的焦距调节指令;
第二焦距调节子模块,配置为根据所述焦距调节指令,将所述变焦摄像头的焦距调节到所述第二焦距。
本发明一实施例中,所述装置还包括:
显示模块,配置为在生成的拍摄预览图像中显示所述第一距离。
本发明一实施例中,所述装置还包括:
景深确定模块,配置为根据所述第一距离确定被拍摄物体的景深;
失焦调节模块,配置为将生成的拍摄预览图像中处于所述景深外的图像调节为失焦。
在本发明实施例中,还提供了使用终端摄像头进行拍摄时交互示意图,如图7所示。
通过距离测量装置实现摄像头的焦距与距离的智能关联,测定第一距离的变化决定了变焦摄像头焦距的变化;同时,取景位置的变化决定了第一距离的变化,在摄像头取景框中可以反映出激光所指向的位置,方便用 户取景。
另外,增加终端触屏的画圈手势操作,方便用户人工干预,模拟单反相机手动调节焦距的过程,非触屏手机终端可以采用调节音量键+-的方式来模拟调节焦距。在摄像头的拍摄预览图像上动态显示取景的距离,使用户使用相机更加直观、更加方便;通过人工焦距调节,实现拍摄单反效果的照片。
同时增加用户拍摄模式的切换,还可以增加景深的手动与自动的设置、光圈的手动与自动的设置、对焦图像处理、非对焦图像的处理等。
本发明实施例还提供了一种终端,所述终端设置有变焦摄像头,所述终端还设置有通过发射和接收激光信号进行距离测量的距离测量装置;
所述终端还包括:
测量模块,当使用所述变焦摄像头进行拍摄时,控制所述距离测量装置测量所述变焦摄像头和被拍摄物体之间的第一距离;
焦距调节模块,配置为根据所述第一距离调节所述变焦摄像头的焦距。
本发明实施例还提供了一种计算机存储介质,其中存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一实施例所述的方法。
上述各模块可以由电子设备中的中央处理器(Central Processing Unit,CPU)、数字信号处理器(Digital Signal Processor,DSP)或可编程逻辑阵列(Field-Programmable Gate Array,FPGA)实现。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序 产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。

Claims (14)

  1. 一种焦距调节方法,用于终端,所述终端设置有变焦摄像头,其中,所述终端还设置有通过发射和接收激光信号进行距离测量的距离测量装置;
    所述方法包括:
    当使用所述变焦摄像头进行拍摄时,控制所述距离测量装置测量所述变焦摄像头和被拍摄物体之间的第一距离;
    根据所述第一距离调节所述变焦摄像头的焦距。
  2. 如权利要求1所述的焦距调节方法,其中,所述根据所述第一距离调节所述变焦摄像头的焦距包括:
    将所述变焦摄像头的焦距调节到根据所述第一距离确定的第一焦距。
  3. 如权利要求1所述的焦距调节方法,其中,所述根据所述第一距离调节所述变焦摄像头的焦距包括:
    根据所述第一距离确定第一焦距;
    接收所述终端的用户发送的用于调节所述第一焦距到第二焦距的焦距调节指令;
    根据所述焦距调节指令,将所述变焦摄像头的焦距调节到所述第二焦距。
  4. 如权利要求1至3任一项所述的焦距调节方法,其中,所述方法还包括:
    在生成的拍摄预览图像中显示所述第一距离。
  5. 如权利要求1至3任一项所述的焦距调节方法,其中,所述方法还包括:
    根据所述第一距离确定被拍摄物体的景深;
    将生成的拍摄预览图像中处于所述景深外的图像调节为失焦。
  6. 一种焦距调节装置,用于终端,所述终端设置有变焦摄像头,其中,所述终端还设置有通过发射和接收激光信号进行距离测量的距离测量装置;
    所述装置包括:
    测量模块,当使用所述变焦摄像头进行拍摄时,控制所述距离测量装置测量所述变焦摄像头和被拍摄物体之间的第一距离;
    焦距调节模块,配置为根据所述第一距离调节所述变焦摄像头的焦距。
  7. 如权利要求6所述的焦距调节装置,其中,所述距离测量装置通过第一激光二极管发射第一激光信号,并通过第二激光二极管接收所述被拍摄物体反射回来的第二激光信号。
  8. 如权利要求7所述的焦距调节装置,其中,所述第一激光二极管和所述第二激光二极管设置在第一水平线上,所述第一水平线为所述变焦摄像头的中心所在的水平线。
  9. 如权利要求6所述的焦距调节装置,其中,所述焦距调节模块包括:
    第一焦距调节子模块,配置为将所述变焦摄像头的焦距调节到根据所述第一距离确定的第一焦距。
  10. 如权利要求6所述的焦距调节装置,其中,所述焦距调节模块包括:
    确定子模块,配置为根据所述第一距离确定第一焦距;
    接收子模块,配置为接收所述终端的用户发送的用于调节所述第一焦距到第二焦距的焦距调节指令;
    第二焦距调节子模块,配置为根据所述焦距调节指令,将所述变焦摄像头的焦距调节到所述第二焦距。
  11. 如权利要求6至10任一项所述的焦距调节装置,其中,所述装置还包括:
    显示模块,配置为在生成的拍摄预览图像中显示所述第一距离。
  12. 如权利要求6至10任一项所述的焦距调节装置,其中,所述装置还包括:
    景深确定模块,配置为根据所述第一距离确定被拍摄物体的景深;
    失焦调节模块,配置为将生成的拍摄预览图像中处于所述景深外的图像调节为失焦。
  13. 一种终端,所述终端设置有变焦摄像头,其中,所述终端还设置有通过发射和接收激光信号进行距离测量的距离测量装置;
    所述终端还包括:
    测量模块,当使用所述变焦摄像头进行拍摄时,控制所述距离测量装置测量所述变焦摄像头和被拍摄物体之间的第一距离;
    焦距调节模块,配置为根据所述第一距离调节所述变焦摄像头的焦距。
  14. 一种计算机存储介质,其中存储有计算机可执行指令,所述计算机可执行指令用于执行所述权利要求1至5任一项所述的方法。
PCT/CN2014/087461 2014-06-30 2014-09-25 一种焦距调节方法、装置和终端、计算机存储介质 WO2016000330A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410305751.4A CN105245768A (zh) 2014-06-30 2014-06-30 一种焦距调节方法、装置和终端
CN201410305751.4 2014-06-30

Publications (1)

Publication Number Publication Date
WO2016000330A1 true WO2016000330A1 (zh) 2016-01-07

Family

ID=55018364

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/087461 WO2016000330A1 (zh) 2014-06-30 2014-09-25 一种焦距调节方法、装置和终端、计算机存储介质

Country Status (2)

Country Link
CN (1) CN105245768A (zh)
WO (1) WO2016000330A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070981A (zh) * 2021-11-09 2022-02-18 南通大学 一种异型管道全景成像装置及全景成像方法
CN116047472A (zh) * 2023-01-10 2023-05-02 信扬科技(佛山)有限公司 自动变焦控制方法、装置、电子设备及可读存储介质

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592260A (zh) * 2014-10-24 2016-05-18 中兴通讯股份有限公司 一种对焦方法、装置及终端
CN105681644A (zh) * 2014-11-20 2016-06-15 中兴通讯股份有限公司 焦距调节方法、装置及终端
CN105791681B (zh) * 2016-02-29 2019-05-03 Oppo广东移动通信有限公司 控制方法、控制装置及电子装置
CN105704380A (zh) * 2016-03-03 2016-06-22 上海与德通讯技术有限公司 一种摄像头对焦方法及电子设备
CN105823597A (zh) * 2016-05-16 2016-08-03 山东理工大学 手持式机械气压表检测采集器
CN105872483A (zh) * 2016-05-31 2016-08-17 福州市佳璞电子商务有限公司 移动式自动变焦监控设备
CN106101558B (zh) * 2016-07-29 2017-09-29 广东欧珀移动通信有限公司 摄像头对焦方法、装置以及终端
CN106873124A (zh) * 2016-12-27 2017-06-20 广东工业大学 一种自动调节焦距的方法
CN108012087B (zh) * 2017-12-26 2020-07-17 上海摩软通讯技术有限公司 移动终端的拍摄焦距的调节方法及系统
CN111711749A (zh) * 2020-06-01 2020-09-25 Oppo(重庆)智能科技有限公司 激光测距装置、摄像头模组、电子设备及控制方法
CN114598789A (zh) * 2022-03-02 2022-06-07 厦门聚视智创科技有限公司 一种虚拟现实图像采集用触发式变焦系统及其工作方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932632A (zh) * 2005-09-15 2007-03-21 乐金电子(中国)研究开发中心有限公司 移动通信终端中的镜头自动调焦方法及装置
CN101281289A (zh) * 2007-12-29 2008-10-08 青岛海信电器股份有限公司 自动聚焦方法
CN102186018A (zh) * 2011-04-29 2011-09-14 信源通科技(深圳)有限公司 摄像头对焦方法及装置
CN103048765A (zh) * 2012-12-18 2013-04-17 天津三星光电子有限公司 一种相机调焦装置及方法
CN103702029A (zh) * 2013-12-20 2014-04-02 百度在线网络技术(北京)有限公司 拍摄时提示对焦的方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7538813B2 (en) * 2005-05-11 2009-05-26 Sony Ericsson Mobile Communications Ab Digital cameras with triangulation autofocus systems and related methods
US20070019099A1 (en) * 2005-07-25 2007-01-25 Vkb Inc. Optical apparatus for virtual interface projection and sensing
CN102857633A (zh) * 2012-08-15 2013-01-02 苏州启智机电技术有限公司 手机测距系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932632A (zh) * 2005-09-15 2007-03-21 乐金电子(中国)研究开发中心有限公司 移动通信终端中的镜头自动调焦方法及装置
CN101281289A (zh) * 2007-12-29 2008-10-08 青岛海信电器股份有限公司 自动聚焦方法
CN102186018A (zh) * 2011-04-29 2011-09-14 信源通科技(深圳)有限公司 摄像头对焦方法及装置
CN103048765A (zh) * 2012-12-18 2013-04-17 天津三星光电子有限公司 一种相机调焦装置及方法
CN103702029A (zh) * 2013-12-20 2014-04-02 百度在线网络技术(北京)有限公司 拍摄时提示对焦的方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070981A (zh) * 2021-11-09 2022-02-18 南通大学 一种异型管道全景成像装置及全景成像方法
CN114070981B (zh) * 2021-11-09 2023-09-19 南通大学 一种异型管道全景成像方法
CN116047472A (zh) * 2023-01-10 2023-05-02 信扬科技(佛山)有限公司 自动变焦控制方法、装置、电子设备及可读存储介质
CN116047472B (zh) * 2023-01-10 2023-12-08 信扬科技(佛山)有限公司 自动变焦控制方法、装置、电子设备及可读存储介质

Also Published As

Publication number Publication date
CN105245768A (zh) 2016-01-13

Similar Documents

Publication Publication Date Title
WO2016000330A1 (zh) 一种焦距调节方法、装置和终端、计算机存储介质
JP6946188B2 (ja) 複数技術奥行きマップ取得および融合のための方法および装置
US9638791B2 (en) Methods and apparatus for performing exposure estimation using a time-of-flight sensor
TWI471630B (zh) 主動式距離對焦系統及方法
WO2017161523A1 (zh) 一种终端的拍照对焦方法、装置及设备
WO2016101481A1 (zh) 自动对焦方法及装置
US9866766B2 (en) Method for obtaining a picture and multi-camera system
JP2010041716A (ja) ビューファインダ上のマルチ測定ポイントからのデータ処理方法及びデバイス
US20170171456A1 (en) Stereo Autofocus
CN106226976A (zh) 一种双摄像头拍摄方法、系统及终端
TWI446057B (zh) 相機系統以及自動對焦方法
US10609265B2 (en) Methods and apparatus for synchronizing camera flash and sensor blanking
JP2016154285A (ja) 撮像装置、電子機器及び光量変化特性の算出方法
WO2016197494A1 (zh) 对焦区域调整方法和装置
CN107517345A (zh) 拍摄预览方法及拍摄设备
KR20150014226A (ko) 전자 장치 및 전자 장치의 이미지 촬영 방법
CN105323453A (zh) 一种能自动进行突出部分景物拍摄的数码相机
WO2019084780A1 (zh) 3d图像拍摄方法及装置、拍摄终端及计算机可读存储介质
TWI405458B (zh) Digital camera sensitivity adjustment method
JP2014052505A (ja) 撮像装置、撮像装置の制御方法及びプログラム並びに記録媒体

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: 14896730

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: 14896730

Country of ref document: EP

Kind code of ref document: A1