WO2016062083A1 - Focusing method, device and terminal - Google Patents

Focusing method, device and terminal Download PDF

Info

Publication number
WO2016062083A1
WO2016062083A1 PCT/CN2015/079601 CN2015079601W WO2016062083A1 WO 2016062083 A1 WO2016062083 A1 WO 2016062083A1 CN 2015079601 W CN2015079601 W CN 2015079601W WO 2016062083 A1 WO2016062083 A1 WO 2016062083A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
infrared
ranging sensor
shooting
photographing
Prior art date
Application number
PCT/CN2015/079601
Other languages
French (fr)
Chinese (zh)
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 WO2016062083A1 publication Critical patent/WO2016062083A1/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/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Definitions

  • This article relates to the field of camera shooting, especially a focusing method, device and terminal.
  • the camera focusing method includes auto focus and manual focus. Whether it is automatic or manual, it is necessary to collect the image at the current focal length first, and adjust the focal length of the camera according to the image sharpness until the image is clear, but the focusing method takes a long time and leads to miss. The best shooting time.
  • the technical problem to be solved by the present invention is to provide a focusing method, a device and a terminal, which can automatically control the camera to focus on an object in front of the camera according to an accurate photographing distance after the user turns on the camera, thereby preventing the user from missing the capture due to manual focus. opportunity.
  • a focusing method comprising:
  • the camera is controlled to focus on the photographing object according to the photographing distance.
  • the method further includes:
  • the camera After the step of controlling the camera to focus on the photographing object according to the photographing distance, if the focus command input by the user is detected, the camera is controlled to refocus according to the focus command.
  • the ranging sensor is an infrared ranging sensor.
  • the step of obtaining, by the ranging sensor, the shooting distance of the shooting object in the shooting direction of the camera includes:
  • the infrared ranging sensor determines a shooting distance of the photographed object according to a reflection condition of the infrared signal, and generates an electrical signal indicating the photographing distance.
  • the electrical signal is that after the infrared ranging sensor receives the infrared signal reflected by the photographing object, the infrared ranging sensor will be closest according to the reflection of the infrared signal.
  • the object in the shooting direction of the camera serves as a photographing object, and determines a photographing distance of the photographed object, and generates an electrical signal indicating the photographing distance.
  • the method further includes
  • the camera is controlled to focus on the distant view.
  • a focusing device includes a ranging module and a focusing module, wherein:
  • the ranging module is configured to: after detecting that the camera provided in the terminal is turned on, obtain a shooting distance of a shooting object in a shooting direction of the camera by using a ranging sensor of the terminal;
  • the focusing module is configured to: control the camera to focus on the shooting object according to the shooting distance.
  • the focusing module is further configured to:
  • the camera After controlling the camera to focus on the object, if the focus command input by the user is detected, the camera is controlled to perform focusing again according to the focus command.
  • the ranging sensor is an infrared ranging sensor.
  • the ranging module includes a control submodule and a determining submodule, wherein
  • the control sub-module is configured to: control the infrared ranging sensor to emit an infrared signal in a shooting direction of the camera;
  • the determining sub-module is configured to: obtain a shooting distance of the shooting object according to the electrical signal generated by the infrared ranging sensor, wherein the electrical signal is received by the infrared ranging sensor after being reflected by the shooting object After the infrared signal, according to the reflection condition of the infrared signal, the shooting distance of the shooting object is determined, and an electrical signal representing the shooting distance is generated.
  • the electrical signal is that after the infrared ranging sensor receives the infrared signal reflected by the photographing object, the infrared ranging sensor will be closest according to the reflection of the infrared signal.
  • the object in the shooting direction of the camera serves as a photographing object, and determines a photographing distance of the photographed object, and generates an electrical signal indicating the photographing distance.
  • a terminal includes: a camera, a ranging sensor, and any of the above focusing devices.
  • a computer program comprising program instructions that, when executed by a computer, cause the computer to perform any of the above focusing methods.
  • a carrier carrying the computer program A carrier carrying the computer program.
  • the solution of the invention can automatically control the camera to focus on the object in front according to the accurate photographing distance after the user turns on the camera, thereby preventing the user from missing the snapping timing due to manual focus.
  • FIG. 1 is a schematic diagram showing the steps of a focusing method of the present invention
  • FIG. 2 is a schematic flow chart of performing photographing using a focusing method according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a focusing device according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram showing a partial structure of a terminal according to an embodiment of the present invention.
  • An embodiment of the present invention provides a focusing method applied to a terminal. As shown in FIG. 1, the focusing method includes:
  • Step 11 After detecting that the camera provided in the terminal is turned on, obtaining a shooting distance of the shooting object in the shooting direction of the camera by using a distance measuring sensor of the terminal;
  • Step 12 Control the camera to focus on the shooting object according to the shooting distance.
  • the focus method of the embodiment can automatically control the camera to focus on the object in front of the camera according to the accurate photographing distance after the user turns on the camera, thereby preventing the user from missing the snap timing due to manual focus.
  • the focusing method further includes:
  • Step 13 After controlling the camera to focus on the shooting object, if the focus command input by the user is detected, the camera is controlled to perform focusing again according to the focus instruction.
  • the ranging sensor is specifically an infrared ranging sensor popularized by the current terminal.
  • the above step 12 specifically includes:
  • Step 121 Control the infrared ranging sensor to emit an infrared signal in a shooting direction of the camera; wherein, when the infrared ranging sensor receives the infrared signal reflected by the shooting object, according to the a reflection condition of the infrared signal, determining a shooting distance of the shooting object, and generating an electrical signal indicating the shooting distance;
  • Step 122 Obtain a shooting distance of the photographing object according to the electrical signal generated by the infrared ranging sensor.
  • the infrared ranging sensor fails to obtain the reflected infrared signal, an electrical signal indicating a default shooting distance can be generated, so that the camera can focus according to a preset default shooting distance. For example, if the user wants to shoot a distant view, the infrared ranging sensor cannot detect the shooting distance of the front object normally. This method can focus by using the distance of the distant view by default.
  • the infrared ranging sensor can take an object closest to the shooting direction of the camera as a photographing object according to the reflection condition of the infrared signal, and determine a photographing distance of the photographing object. In this way, when the user picks up the terminal and aligns with the photographed object, even if there is other object interference beside the photographed object, the user's photographing intention can be accurately recognized.
  • the position of the infrared ranging sensor relative to the camera in the present invention is not fixed, and may be in any position of up, down, left, and right, considering that the measurement area of the infrared ranging sensor should be as close as possible to the center position of the camera framing.
  • the ranging sensor is disposed adjacent to a side of the camera.
  • the user starts the mobile phone camera to view the image, and simultaneously turns on the infrared ranging sensor.
  • the infrared ranging sensor emits an infrared signal and receives the reflected infrared signal, and converts into an electrical signal.
  • step S305 the user determines whether the focus result reaches the desired requirement. If yes, go to step S306; otherwise, go to step 307;
  • step S306 the user selects the shooting, and the process ends.
  • step 307 the user manually touches an area in the terminal screen that needs to be in focus, and performs focusing in a conventional manner. Then, it returns to step S305.
  • the focusing method of the present invention can automatically focus on the area in front of the camera, facilitating the user to take a quick shot.
  • another embodiment of the present invention further provides a focusing device, which is applied to a terminal having a shooting function, the terminal includes a ranging sensor and a camera.
  • the focusing device includes:
  • the 301 ranging module is configured to: after detecting that the camera is turned on, obtain a shooting distance of a shooting object in a shooting direction of the camera by using the ranging sensor;
  • the 302 focus module is configured to: control the camera to focus on the photographing object according to the photographing distance.
  • the focusing device of the embodiment can automatically control the camera to focus on the object in front according to the accurate photographing distance after the user turns on the camera, thereby preventing the user from missing the snapping timing due to manual focus.
  • the focus module controls the camera to focus on the object, if a focus command input by the user is detected, the focus module controls the camera to perform focusing again according to the focus command.
  • the ranging sensor is specifically an infrared ranging sensor.
  • the ranging module 301 includes:
  • control sub-module configured to: control the infrared ranging sensor to emit an infrared signal in a shooting direction of the camera; wherein, when the infrared ranging sensor receives the infrared signal reflected by the shooting object And determining, according to the reflection condition of the infrared signal, a shooting distance of the shooting object, and generating an electrical signal indicating the shooting distance;
  • the determining submodule is configured to obtain a shooting distance of the photographing object according to the electrical signal generated by the infrared ranging sensor.
  • the infrared ranging sensor can take an object closest to the shooting direction of the camera as a photographing object according to the reflection condition of the infrared signal, and determine a photographing distance of the photographing object.
  • the focusing module controls the camera to focus on the distant view, for example, controlling the focusing module to perform auto focusing according to a preset distance of the shooting distance.
  • the ranging sensor is disposed adjacent to a side of the camera.
  • the focusing device of the present embodiment can achieve the same technical effect as the focusing method of the present invention.
  • FIG. 4 is only a schematic representation of the position of the camera 41 and the distance measuring sensor 42.
  • the camera 41 and the ranging sensor 42 may also use a rear cover opening of one terminal, which will not be further described herein.
  • the focus module 302 can be a processor of the terminal.
  • the infrared ranging sensor emits an infrared signal and is reflected back after encountering the measured object.
  • the infrared ranging sensor generates an electrical signal indicating the shooting distance according to the reflection condition; the electrical signal is amplified and processed and transmitted to the processor of the terminal, in the processor chip.
  • the analog-to-digital conversion module converts the analog electrical signal into a digital signal, and converts the digital signal into a distance value according to a certain data code table; the processor chip adjusts the focal length of the camera according to the distance value, and realizes a fast shooting function.
  • the embodiment of the invention also discloses a computer program, comprising program instructions, which when executed by a computer, enable the computer to perform any of the above focusing methods.
  • the embodiment of the invention also discloses a carrier carrying the computer program.
  • the solution of the invention can automatically control the camera to focus on the object in front according to the accurate photographing distance after the user turns on the camera, thereby preventing the user from missing the snapping timing due to manual focus. Therefore, the present invention has strong industrial applicability.

Landscapes

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

Abstract

Disclosed are a focusing method, device and terminal. The method comprises: obtaining via a distance measuring sensor of the terminal the photographing distance of an object to be photographed in the photographing direction of the camera when the camera set up on the terminal is detected to be on; controlling the camera lens to photograph according to the photographing distance and focus on the object to be photographed. The solution of the present invention automatically controls the camera lens to focus on the object in front of the camera according to the accurate photographing distance after a user turns on the camera lens, thus avoiding user missing a shot taking opportunity due to time spent on manual focus.

Description

一种对焦方法、装置及终端Focus method, device and terminal 技术领域Technical field
本文涉及摄像头的拍摄领域,特别是一种对焦方法、装置及终端。This article relates to the field of camera shooting, especially a focusing method, device and terminal.
背景技术Background technique
随着各种社交平台的流行,人们喜欢在微博、微信上分享生活中的点滴,随着手机硬件性能不断提升,已替代数码相机成为了最佳选择。有些精彩时刻转瞬即逝,假如手机不能快速拍摄,就会错过。目前摄像头对焦方式包括自动对焦和手动对焦,不管是自动还是手动,都需要先采集一次当前焦距下的图像,根据图像清晰度调节摄像头焦距,直到图像清晰,但是该对焦方式时间较长,导致错过最佳的拍摄时间。With the popularity of various social platforms, people like to share the little bit of life on Weibo and WeChat. As the performance of mobile phone hardware continues to improve, it has become the best choice to replace digital cameras. Some wonderful moments are fleeting, and if the phone can't be shot quickly, it will be missed. At present, the camera focusing method includes auto focus and manual focus. Whether it is automatic or manual, it is necessary to collect the image at the current focal length first, and adjust the focal length of the camera according to the image sharpness until the image is clear, but the focusing method takes a long time and leads to miss. The best shooting time.
发明内容Summary of the invention
本发明要解决的技术问题是提供一种对焦方法、装置及终端,能够在用户开启摄像头后,自动控制摄像头对其前方物体按照准确的拍照距离进行对焦,从而避免用户因自己手动对焦而错失抓拍时机。The technical problem to be solved by the present invention is to provide a focusing method, a device and a terminal, which can automatically control the camera to focus on an object in front of the camera according to an accurate photographing distance after the user turns on the camera, thereby preventing the user from missing the capture due to manual focus. opportunity.
为解决上述技术问题,采用如下技术方案:In order to solve the above technical problems, the following technical solutions are adopted:
一种对焦方法,包括:A focusing method comprising:
在检测到设置在终端的摄像头开启后,通过所述终端的测距传感器,获得所述摄像头拍摄方向上的拍摄物体的拍摄距离;After detecting that the camera provided in the terminal is turned on, obtaining a shooting distance of the shooting object in the shooting direction of the camera by using the distance measuring sensor of the terminal;
控制所述摄像头按照所述拍摄距离,对所述拍摄物体对焦。The camera is controlled to focus on the photographing object according to the photographing distance.
可选地,该方法还包括:Optionally, the method further includes:
在所述控制所述摄像头按照所述拍摄距离,对所述拍摄物体对焦的步骤后,若检测到用户输入的对焦指令后,控制所述摄像头按照所述对焦指令重新进行对焦。After the step of controlling the camera to focus on the photographing object according to the photographing distance, if the focus command input by the user is detected, the camera is controlled to refocus according to the focus command.
可选地,所述测距传感器为红外测距传感器。 Optionally, the ranging sensor is an infrared ranging sensor.
可选地,所述通过所述测距传感器,获得所述摄像头拍摄方向上的拍摄物体的拍摄距离的步骤包括:Optionally, the step of obtaining, by the ranging sensor, the shooting distance of the shooting object in the shooting direction of the camera includes:
控制所述红外测距传感器,向所述摄像头拍摄方向上发射红外信号;Controlling the infrared ranging sensor to emit an infrared signal to a direction in which the camera is photographed;
根据所述红外测距传感器生成的电信号,获得所述拍摄物体的拍摄距离,其中,所述电信号是当所述红外测距传感器接收到由所述拍摄物体反射回来的所述红外信号后,所述红外测距传感器根据该红外信号的反射情况,确定出所述拍摄物体的拍摄距离,并生成的表示该拍摄距离的电信号。Obtaining a shooting distance of the photographing object according to an electrical signal generated by the infrared ranging sensor, wherein the electrical signal is when the infrared ranging sensor receives the infrared signal reflected by the photographing object The infrared ranging sensor determines a shooting distance of the photographed object according to a reflection condition of the infrared signal, and generates an electrical signal indicating the photographing distance.
可选地,所述电信号是当所述红外测距传感器接收到由所述拍摄物体反射回来的所述红外信号后,所述红外测距传感器根据所述红外信号的反射情况,将最靠近所述摄像头拍摄方向的物体作为拍照物体,并确定该拍摄物体的拍照距离,并生成的表示该拍摄距离的电信号。Optionally, the electrical signal is that after the infrared ranging sensor receives the infrared signal reflected by the photographing object, the infrared ranging sensor will be closest according to the reflection of the infrared signal. The object in the shooting direction of the camera serves as a photographing object, and determines a photographing distance of the photographed object, and generates an electrical signal indicating the photographing distance.
可选地,该方法还包括,Optionally, the method further includes
若所述红外测距传感器未能接收到反射回来的所述红外信号,则控制摄像头对远景进行对焦。If the infrared ranging sensor fails to receive the reflected infrared signal, the camera is controlled to focus on the distant view.
一种对焦装置,包括测距模块和对焦模块,其中:A focusing device includes a ranging module and a focusing module, wherein:
所述测距模块设置成:在检测到设置在终端的所述摄像头开启后,通过所述终端的测距传感器,获得所述摄像头拍摄方向上的拍摄物体的拍摄距离;The ranging module is configured to: after detecting that the camera provided in the terminal is turned on, obtain a shooting distance of a shooting object in a shooting direction of the camera by using a ranging sensor of the terminal;
所述对焦模块设置成:控制所述摄像头按照所述拍摄距离,对所述拍摄物体对焦。The focusing module is configured to: control the camera to focus on the shooting object according to the shooting distance.
可选地,所述对焦模块还设置成:Optionally, the focusing module is further configured to:
控制所述摄像头对所述拍摄物体对焦后,若检测到用户输入的对焦指令后,则控制所述摄像头按照所述对焦指令重新进行对焦。After controlling the camera to focus on the object, if the focus command input by the user is detected, the camera is controlled to perform focusing again according to the focus command.
可选地,所述测距传感器为红外测距传感器。Optionally, the ranging sensor is an infrared ranging sensor.
可选地,所述测距模块包括控制子模块和确定子模块,其中Optionally, the ranging module includes a control submodule and a determining submodule, wherein
所述控制子模块设置成:控制所述红外测距传感器,向所述摄像头拍摄方向上发射红外信号; The control sub-module is configured to: control the infrared ranging sensor to emit an infrared signal in a shooting direction of the camera;
所述确定子模块设置成:根据所述红外测距传感器生成的电信号,获得拍摄物体的拍摄距离,其中,所述电信号是当所述红外测距传感器接收到由所述拍摄物体反射回来的所述红外信号后,根据该红外信号的反射情况,确定出所述拍摄物体的拍摄距离,并生成的表示该拍摄距离的电信号。The determining sub-module is configured to: obtain a shooting distance of the shooting object according to the electrical signal generated by the infrared ranging sensor, wherein the electrical signal is received by the infrared ranging sensor after being reflected by the shooting object After the infrared signal, according to the reflection condition of the infrared signal, the shooting distance of the shooting object is determined, and an electrical signal representing the shooting distance is generated.
可选地,所述电信号是当所述红外测距传感器接收到由所述拍摄物体反射回来的所述红外信号后,所述红外测距传感器根据所述红外信号的反射情况,将最靠近所述摄像头拍摄方向的物体作为拍照物体,并确定该拍摄物体的拍照距离,并生成的表示该拍摄距离的电信号。Optionally, the electrical signal is that after the infrared ranging sensor receives the infrared signal reflected by the photographing object, the infrared ranging sensor will be closest according to the reflection of the infrared signal. The object in the shooting direction of the camera serves as a photographing object, and determines a photographing distance of the photographed object, and generates an electrical signal indicating the photographing distance.
一种终端,包括:摄像头、测距传感器以及上述任意的对焦装置。A terminal includes: a camera, a ranging sensor, and any of the above focusing devices.
一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的对焦方法。A computer program comprising program instructions that, when executed by a computer, cause the computer to perform any of the above focusing methods.
一种载有所述计算机程序的载体。A carrier carrying the computer program.
本发明的上述技术方案的有益效果如下:The beneficial effects of the above technical solution of the present invention are as follows:
本发明的方案可以在用户开启摄像头后,自动控制摄像头对其前方物体按照准确的拍照距离进行对焦,从而避免用户因自己手动对焦而错失抓拍时机。The solution of the invention can automatically control the camera to focus on the object in front according to the accurate photographing distance after the user turns on the camera, thereby preventing the user from missing the snapping timing due to manual focus.
附图概述BRIEF abstract
图1为本发明的对焦方法的步骤示意图;1 is a schematic diagram showing the steps of a focusing method of the present invention;
图2为使用本发明实施例的对焦方法,进行拍摄的流程示意图;2 is a schematic flow chart of performing photographing using a focusing method according to an embodiment of the present invention;
图3为本发明实施例的对焦装置的结构示意图;3 is a schematic structural diagram of a focusing device according to an embodiment of the present invention;
图4为本发明实施例的终端的局部结构示意图。 FIG. 4 is a schematic diagram showing a partial structure of a terminal according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下面将结合附图及具体实施例进行详细描述。The detailed description will be made below in conjunction with the accompanying drawings and specific embodiments.
本发明的实施例提供一种对焦方法,应用于终端,如图1所示,所述对焦方法包括:An embodiment of the present invention provides a focusing method applied to a terminal. As shown in FIG. 1, the focusing method includes:
步骤11,在检测到设置在终端的所述摄像头开启后,通过所述终端的测距传感器,获得所述摄像头拍摄方向上的拍摄物体的拍摄距离;Step 11: After detecting that the camera provided in the terminal is turned on, obtaining a shooting distance of the shooting object in the shooting direction of the camera by using a distance measuring sensor of the terminal;
步骤12,控制所述摄像头按照所述拍摄距离,对所述拍摄物体对焦。Step 12: Control the camera to focus on the shooting object according to the shooting distance.
根据上述描述可以知道:本实施例的对焦方法可以在用户开启摄像头后,自动控制摄像头对其前方物体按照准确的拍照距离进行对焦,从而避免用户因自己手动对焦而错失抓拍时机。According to the above description, the focus method of the embodiment can automatically control the camera to focus on the object in front of the camera according to the accurate photographing distance after the user turns on the camera, thereby preventing the user from missing the snap timing due to manual focus.
当然,如果自动对焦的物体并非用户期望的拍摄拍摄,则还可由用户自己根据操作重新进行对焦,即在上述实施例的基础之上,所述对焦方法还包括:Of course, if the auto-focusing object is not the shooting shooting desired by the user, the user may re-focus according to the operation, that is, based on the above embodiment, the focusing method further includes:
步骤13,在控制所述摄像头对所述拍摄物体对焦后,若检测到用户输入的对焦指令后,控制所述摄像头按照所述对焦指令重新进行对焦。Step 13: After controlling the camera to focus on the shooting object, if the focus command input by the user is detected, the camera is controlled to perform focusing again according to the focus instruction.
具体地,作为一个可选方案,所述测距传感器具体为目前终端所普及的红外测距传感器。Specifically, as an alternative, the ranging sensor is specifically an infrared ranging sensor popularized by the current terminal.
上述步骤12具体包括:The above step 12 specifically includes:
步骤121,控制所述红外测距传感器,向所述摄像头拍摄方向上发射红外信号;其中,当所述红外测距传感器接收到由所述拍摄物体反射回来的所述红外信号后,能够根据该红外信号的反射情况,确定出所述拍摄物体的拍摄距离,并生成一表示该拍摄距离的电信号;Step 121: Control the infrared ranging sensor to emit an infrared signal in a shooting direction of the camera; wherein, when the infrared ranging sensor receives the infrared signal reflected by the shooting object, according to the a reflection condition of the infrared signal, determining a shooting distance of the shooting object, and generating an electrical signal indicating the shooting distance;
步骤122,根据所述红外测距传感器生成的所述电信号,获得拍摄物体的拍摄距离。Step 122: Obtain a shooting distance of the photographing object according to the electrical signal generated by the infrared ranging sensor.
当然,作为一个可行的方案,若红外测距传感器未能获得反射回来的所述红外信号,则可以生成一个表示默认拍摄距离的电信号,使得摄像头按照能够按照预先设置的默认拍摄距离进行对焦。举例来说,如果用户希望拍摄的是远景,那么红外测距传感器无法正常检测出前方物体的拍摄距离,此时 本方法可默认使用远景的拍照距离进行对焦。Of course, as a feasible solution, if the infrared ranging sensor fails to obtain the reflected infrared signal, an electrical signal indicating a default shooting distance can be generated, so that the camera can focus according to a preset default shooting distance. For example, if the user wants to shoot a distant view, the infrared ranging sensor cannot detect the shooting distance of the front object normally. This method can focus by using the distance of the distant view by default.
具体地,所述红外测距传感器能够根据所述红外信号的反射情况,将最靠近所述摄像头拍摄方向的物体作为拍照物体,并确定该拍摄物体的拍照距离。这样一来,当用户拿起终端对准拍照物体时,即便该拍照物体旁边还存在其它物体干扰,也能够准确识别出用户的拍照意图。Specifically, the infrared ranging sensor can take an object closest to the shooting direction of the camera as a photographing object according to the reflection condition of the infrared signal, and determine a photographing distance of the photographing object. In this way, when the user picks up the terminal and aligns with the photographed object, even if there is other object interference beside the photographed object, the user's photographing intention can be accurately recognized.
需要说明的是,本发明中红外测距传感器相对于摄像头的位置并不固定,可以在上、下、左、右任意位置,考虑到红外测距传感器测量区域应尽量靠近摄像头取景的中心位置,作为另一可选方案,所述测距传感器靠近设置在与所述摄像头的一侧。It should be noted that, the position of the infrared ranging sensor relative to the camera in the present invention is not fixed, and may be in any position of up, down, left, and right, considering that the measurement area of the infrared ranging sensor should be as close as possible to the center position of the camera framing. As a further alternative, the ranging sensor is disposed adjacent to a side of the camera.
下面结合一个实际应用,对本实施例的对焦方法进行详细介绍。The focusing method of this embodiment will be described in detail below in conjunction with a practical application.
如图2所示,包括以下步骤:As shown in Figure 2, the following steps are included:
S201,用户启动手机摄像头取景,同时打开红外测距传感器。S201, the user starts the mobile phone camera to view the image, and simultaneously turns on the infrared ranging sensor.
S202,红外测距传感器发射红外信号并接收反射的红外信号,转换为电信号。S202. The infrared ranging sensor emits an infrared signal and receives the reflected infrared signal, and converts into an electrical signal.
S303,根据红外传感器传递的电信号确定拍摄距离。S303. Determine a shooting distance according to an electrical signal transmitted by the infrared sensor.
S304,按照确定的拍摄距离调节摄像头焦距。S304, adjusting the focal length of the camera according to the determined shooting distance.
S305,用户确定对焦结果是否到达期望要求。是则执行步骤S306;否则,执行步骤307;S305, the user determines whether the focus result reaches the desired requirement. If yes, go to step S306; otherwise, go to step 307;
步骤S306,用户选择拍摄,流程结束。In step S306, the user selects the shooting, and the process ends.
步骤307,用户手动触摸终端屏幕中需要对焦的区域,采用传统方式进行对焦。之后重新回到步骤S305。In step 307, the user manually touches an area in the terminal screen that needs to be in focus, and performs focusing in a conventional manner. Then, it returns to step S305.
综上所述,本发明的对焦方法能够自动对摄像头前方的区域进行对焦,方便用户进行快速拍摄。In summary, the focusing method of the present invention can automatically focus on the area in front of the camera, facilitating the user to take a quick shot.
此外,本发明的另一实施例还提供一种对焦装置,应用于具有拍摄功能的终端,所述终端包括有测距传感器和摄像头,如图3所示,所述对焦装置包括: In addition, another embodiment of the present invention further provides a focusing device, which is applied to a terminal having a shooting function, the terminal includes a ranging sensor and a camera. As shown in FIG. 3, the focusing device includes:
301测距模块,设置成:在检测到所述摄像头开启后,通过所述测距传感器,获得所述摄像头拍摄方向上的拍摄物体的拍摄距离;The 301 ranging module is configured to: after detecting that the camera is turned on, obtain a shooting distance of a shooting object in a shooting direction of the camera by using the ranging sensor;
302对焦模块,设置成:控制所述摄像头按照所述拍摄距离,对所述拍摄物体对焦。The 302 focus module is configured to: control the camera to focus on the photographing object according to the photographing distance.
根据上述描述可以知道:本实施例的对焦装置可以在用户开启摄像头后,自动控制摄像头对其前方物体按照准确的拍照距离进行对焦,从而避免用户因自己手动对焦而错失抓拍时机。According to the above description, the focusing device of the embodiment can automatically control the camera to focus on the object in front according to the accurate photographing distance after the user turns on the camera, thereby preventing the user from missing the snapping timing due to manual focus.
其中,在所述对焦模块控制所述摄像头对所述拍摄物体对焦后,若检测到用户输入的对焦指令后,则所述对焦模块控制所述摄像头按照所述对焦指令重新进行对焦。After the focus module controls the camera to focus on the object, if a focus command input by the user is detected, the focus module controls the camera to perform focusing again according to the focus command.
其中,所述测距传感器具体为红外测距传感器。Wherein, the ranging sensor is specifically an infrared ranging sensor.
所述测距模块301包括:The ranging module 301 includes:
控制子模块,设置成:控制所述红外测距传感器,向所述摄像头拍摄方向上发射红外信号;其中,当所述红外测距传感器接收到由所述拍摄物体反射回来的所述红外信号后,能够根据该红外信号的反射情况,确定出所述拍摄物体的拍摄距离,并生成一表示该拍摄距离的电信号;a control sub-module, configured to: control the infrared ranging sensor to emit an infrared signal in a shooting direction of the camera; wherein, when the infrared ranging sensor receives the infrared signal reflected by the shooting object And determining, according to the reflection condition of the infrared signal, a shooting distance of the shooting object, and generating an electrical signal indicating the shooting distance;
确定子模块,设置成:根据所述红外测距传感器生成的所述电信号,获得拍摄物体的拍摄距离。The determining submodule is configured to obtain a shooting distance of the photographing object according to the electrical signal generated by the infrared ranging sensor.
具体地,所述红外测距传感器能够根据所述红外信号的反射情况,将最靠近所述摄像头拍摄方向的物体作为拍照物体,并确定该拍摄物体的拍照距离。Specifically, the infrared ranging sensor can take an object closest to the shooting direction of the camera as a photographing object according to the reflection condition of the infrared signal, and determine a photographing distance of the photographing object.
此外,若红外测距传感器未能够生成拍摄距离的电信号,则对焦模块控制摄像头对远景进行对焦,例如控制对焦模块按照预先设置的远景拍摄距离进行自动对焦。In addition, if the infrared ranging sensor is not capable of generating an electrical signal of the shooting distance, the focusing module controls the camera to focus on the distant view, for example, controlling the focusing module to perform auto focusing according to a preset distance of the shooting distance.
此外,作为可选方案,所述测距传感器靠近设置在与所述摄像头的一侧。Further, as an alternative, the ranging sensor is disposed adjacent to a side of the camera.
显然,本实施例的对焦装置与本发明的对焦方法相对应,均能够达到相同的技术效果。Obviously, the focusing device of the present embodiment can achieve the same technical effect as the focusing method of the present invention.
此外,本发明的另一实施例还提供一种终端,如图4所示,包括摄像头 41以及测距传感器42(例如红外测距传感器),所述摄像头41与测距传感器42可选地设置在一起。需要说明的是图4仅是示意性地表示了摄像头41与测距传感器42的位置。作为其它实现方式,摄像头41与测距传感器42也可以使用一个终端的后盖开孔,本文不再一一进行赘述。In addition, another embodiment of the present invention further provides a terminal, as shown in FIG. 4, including a camera. 41 and a ranging sensor 42 (e.g., an infrared ranging sensor), the camera 41 and the ranging sensor 42 are optionally disposed together. It should be noted that FIG. 4 is only a schematic representation of the position of the camera 41 and the distance measuring sensor 42. As another implementation manner, the camera 41 and the ranging sensor 42 may also use a rear cover opening of one terminal, which will not be further described herein.
在本实施例中,所述对焦模块302可以是终端的处理器。红外测距传感器发射红外信号,遇到被测物体后反射回来,红外测距传感器根据反射情况生成表示拍摄距离的电信号;电信号经过放大处理后被传送至终端的处理器,处理器芯片中的模数转换模块将模拟的电信号转换为数字信号,并按照一定的数据码表将该数字信号转换为距离值;处理器的芯片根据该距离值调节摄像头焦距,实现快速拍摄功能。In this embodiment, the focus module 302 can be a processor of the terminal. The infrared ranging sensor emits an infrared signal and is reflected back after encountering the measured object. The infrared ranging sensor generates an electrical signal indicating the shooting distance according to the reflection condition; the electrical signal is amplified and processed and transmitted to the processor of the terminal, in the processor chip. The analog-to-digital conversion module converts the analog electrical signal into a digital signal, and converts the digital signal into a distance value according to a certain data code table; the processor chip adjusts the focal length of the camera according to the distance value, and realizes a fast shooting function.
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的对焦方法。The embodiment of the invention also discloses a computer program, comprising program instructions, which when executed by a computer, enable the computer to perform any of the above focusing methods.
本发明实施例还公开了一种载有所述计算机程序的载体。The embodiment of the invention also discloses a carrier carrying the computer program.
以上所述是本发明的可选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is an alternative embodiment of the present invention, and it should be noted that those skilled in the art can make several improvements and retouchings without departing from the principles of the present invention. It should also be considered as the scope of protection of the present invention.
工业实用性Industrial applicability
本发明的方案可以在用户开启摄像头后,自动控制摄像头对其前方物体按照准确的拍照距离进行对焦,从而避免用户因自己手动对焦而错失抓拍时机。因此本发明具有很强的工业实用性。 The solution of the invention can automatically control the camera to focus on the object in front according to the accurate photographing distance after the user turns on the camera, thereby preventing the user from missing the snapping timing due to manual focus. Therefore, the present invention has strong industrial applicability.

Claims (14)

  1. 一种对焦方法,包括:A focusing method comprising:
    在检测到设置在终端的摄像头开启后,通过所述终端的测距传感器,获得所述摄像头拍摄方向上的拍摄物体的拍摄距离;After detecting that the camera provided in the terminal is turned on, obtaining a shooting distance of the shooting object in the shooting direction of the camera by using the distance measuring sensor of the terminal;
    控制所述摄像头按照所述拍摄距离,对所述拍摄物体对焦。The camera is controlled to focus on the photographing object according to the photographing distance.
  2. 根据权利要求1所述的对焦方法,该方法还包括:The focusing method according to claim 1, further comprising:
    在所述控制所述摄像头按照所述拍摄距离,对所述拍摄物体对焦的步骤后,若检测到用户输入的对焦指令后,控制所述摄像头按照所述对焦指令重新进行对焦。After the step of controlling the camera to focus on the photographing object according to the photographing distance, if the focus command input by the user is detected, the camera is controlled to refocus according to the focus command.
  3. 根据权利要求1所述的对焦方法,其中,所述测距传感器为红外测距传感器。The focusing method according to claim 1, wherein the ranging sensor is an infrared ranging sensor.
  4. 根据权利要求3所述的对焦方法,其中,所述通过所述测距传感器,获得所述摄像头拍摄方向上的拍摄物体的拍摄距离的步骤包括:The focusing method according to claim 3, wherein the step of obtaining the shooting distance of the photographing object in the photographing direction of the camera by the ranging sensor comprises:
    控制所述红外测距传感器,向所述摄像头拍摄方向上发射红外信号;Controlling the infrared ranging sensor to emit an infrared signal to a direction in which the camera is photographed;
    根据所述红外测距传感器生成的电信号,获得所述拍摄物体的拍摄距离,其中,所述电信号是当所述红外测距传感器接收到由所述拍摄物体反射回来的所述红外信号后,所述红外测距传感器根据该红外信号的反射情况,确定出所述拍摄物体的拍摄距离,并生成的表示该拍摄距离的电信号。Obtaining a shooting distance of the photographing object according to an electrical signal generated by the infrared ranging sensor, wherein the electrical signal is when the infrared ranging sensor receives the infrared signal reflected by the photographing object The infrared ranging sensor determines a shooting distance of the photographed object according to a reflection condition of the infrared signal, and generates an electrical signal indicating the photographing distance.
  5. 根据权利要求4所述的对焦方法,其中,所述电信号是当所述红外测距传感器接收到由所述拍摄物体反射回来的所述红外信号后,所述红外测距传感器根据所述红外信号的反射情况,将最靠近所述摄像头拍摄方向的物体作为拍照物体,并确定该拍摄物体的拍照距离,并生成的表示该拍摄距离的电信号。The focusing method according to claim 4, wherein the electric signal is after the infrared ranging sensor receives the infrared signal reflected by the photographing object, the infrared ranging sensor according to the infrared In the case of the reflection of the signal, the object closest to the photographing direction of the camera is taken as a photographing object, and the photographing distance of the photographed object is determined, and an electric signal representing the photographing distance is generated.
  6. 根据权利要求4所述的对焦方法,该方法还包括,The focusing method according to claim 4, further comprising
    若所述红外测距传感器未能接收到反射回来的所述红外信号,则控制摄像头对远景进行对焦。If the infrared ranging sensor fails to receive the reflected infrared signal, the camera is controlled to focus on the distant view.
  7. 一种对焦装置,包括测距模块和对焦模块,其中: A focusing device includes a ranging module and a focusing module, wherein:
    所述测距模块设置成:在检测到设置在终端的所述摄像头开启后,通过所述终端的测距传感器,获得所述摄像头拍摄方向上的拍摄物体的拍摄距离;The ranging module is configured to: after detecting that the camera provided in the terminal is turned on, obtain a shooting distance of a shooting object in a shooting direction of the camera by using a ranging sensor of the terminal;
    所述对焦模块设置成:控制所述摄像头按照所述拍摄距离,对所述拍摄物体对焦。The focusing module is configured to: control the camera to focus on the shooting object according to the shooting distance.
  8. 根据权利要求7所述的对焦装置,其中,所述对焦模块还设置成:The focusing device of claim 7, wherein the focusing module is further configured to:
    控制所述摄像头对所述拍摄物体对焦后,若检测到用户输入的对焦指令后,则控制所述摄像头按照所述对焦指令重新进行对焦。After controlling the camera to focus on the object, if the focus command input by the user is detected, the camera is controlled to perform focusing again according to the focus command.
  9. 根据权利要求7所述的对焦装置,其中,所述测距传感器为红外测距传感器。The focusing device according to claim 7, wherein the ranging sensor is an infrared ranging sensor.
  10. 根据权利要求9所述的对焦装置,其中,所述测距模块包括控制子模块和确定子模块,其中The focusing device of claim 9, wherein the ranging module comprises a control sub-module and a determining sub-module, wherein
    所述控制子模块设置成:控制所述红外测距传感器,向所述摄像头拍摄方向上发射红外信号;The control sub-module is configured to: control the infrared ranging sensor to emit an infrared signal in a shooting direction of the camera;
    所述确定子模块设置成:根据所述红外测距传感器生成的电信号,获得拍摄物体的拍摄距离,其中,所述电信号是当所述红外测距传感器接收到由所述拍摄物体反射回来的所述红外信号后,根据该红外信号的反射情况,确定出所述拍摄物体的拍摄距离,并生成的表示该拍摄距离的电信号。The determining sub-module is configured to: obtain a shooting distance of the shooting object according to the electrical signal generated by the infrared ranging sensor, wherein the electrical signal is received by the infrared ranging sensor after being reflected by the shooting object After the infrared signal, according to the reflection condition of the infrared signal, the shooting distance of the shooting object is determined, and an electrical signal representing the shooting distance is generated.
  11. 根据权利要求9所述的对焦装置,其中,所述电信号是当所述红外测距传感器接收到由所述拍摄物体反射回来的所述红外信号后,所述红外测距传感器根据所述红外信号的反射情况,将最靠近所述摄像头拍摄方向的物体作为拍照物体,并确定该拍摄物体的拍照距离,并生成的表示该拍摄距离的电信号。The focusing device according to claim 9, wherein the electrical signal is after the infrared ranging sensor receives the infrared signal reflected by the photographic subject, the infrared ranging sensor according to the infrared In the case of the reflection of the signal, the object closest to the photographing direction of the camera is taken as a photographing object, and the photographing distance of the photographed object is determined, and an electric signal representing the photographing distance is generated.
  12. 一种终端,包括:摄像头、测距传感器以及如权利要求7-12任一项所述的对焦装置。A terminal comprising: a camera, a ranging sensor, and a focusing device according to any one of claims 7-12.
  13. 一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行如权利要求1-6中任一项所述的对焦方法。A computer program comprising program instructions which, when executed by a computer, cause the computer to perform the focusing method of any of claims 1-6.
  14. 一种载有如权利要求13所述计算机程序的载体。 A carrier carrying the computer program of claim 13.
PCT/CN2015/079601 2014-10-24 2015-05-22 Focusing method, device and terminal WO2016062083A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410577274.7 2014-10-24
CN201410577274.7A CN105592260A (en) 2014-10-24 2014-10-24 ocusing method and apparatus, and terminal

Publications (1)

Publication Number Publication Date
WO2016062083A1 true WO2016062083A1 (en) 2016-04-28

Family

ID=55760220

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079601 WO2016062083A1 (en) 2014-10-24 2015-05-22 Focusing method, device and terminal

Country Status (2)

Country Link
CN (1) CN105592260A (en)
WO (1) WO2016062083A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385466A (en) * 2018-12-30 2020-07-07 浙江宇视科技有限公司 Automatic focusing method, device, equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534704A (en) * 2016-12-28 2017-03-22 上海与德信息技术有限公司 Infrared technology-based photographing method and apparatus of terminal device
CN107580176A (en) * 2017-08-02 2018-01-12 努比亚技术有限公司 A kind of terminal taking control method, camera shooting terminal and computer-readable recording medium
CN111711749A (en) * 2020-06-01 2020-09-25 Oppo(重庆)智能科技有限公司 Laser ranging device, camera module, electronic equipment and control method
WO2022000213A1 (en) * 2020-06-29 2022-01-06 深圳市大疆创新科技有限公司 Control method and apparatus for image photographing, and storage medium
CN112702514B (en) * 2020-12-23 2023-02-17 北京小米移动软件有限公司 Image acquisition method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008040008A (en) * 2006-08-03 2008-02-21 Olympus Imaging Corp Digital camera
CN101140349A (en) * 2006-09-06 2008-03-12 鸿富锦精密工业(深圳)有限公司 Camera module group
CN102186018A (en) * 2011-04-29 2011-09-14 信源通科技(深圳)有限公司 Camera focusing method and device
CN104052932A (en) * 2014-07-03 2014-09-17 深圳市世尊科技有限公司 Rapidly-focusing mobile phone camera shooting module

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011234015A (en) * 2010-04-26 2011-11-17 Kyocera Corp Terminal device
CN103376615A (en) * 2012-04-24 2013-10-30 鸿富锦精密工业(深圳)有限公司 Automatic focusing device and automatic focusing method
CN105245768A (en) * 2014-06-30 2016-01-13 中兴通讯股份有限公司 Focal length adjustment method, focal length adjustment device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008040008A (en) * 2006-08-03 2008-02-21 Olympus Imaging Corp Digital camera
CN101140349A (en) * 2006-09-06 2008-03-12 鸿富锦精密工业(深圳)有限公司 Camera module group
CN102186018A (en) * 2011-04-29 2011-09-14 信源通科技(深圳)有限公司 Camera focusing method and device
CN104052932A (en) * 2014-07-03 2014-09-17 深圳市世尊科技有限公司 Rapidly-focusing mobile phone camera shooting module

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385466A (en) * 2018-12-30 2020-07-07 浙江宇视科技有限公司 Automatic focusing method, device, equipment and storage medium
CN111385466B (en) * 2018-12-30 2021-08-24 浙江宇视科技有限公司 Automatic focusing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN105592260A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
WO2016062083A1 (en) Focusing method, device and terminal
US10021307B2 (en) Processing apparatus for camera shake correction
US9007511B2 (en) Imaging device, control method of imaging device, and computer program
US10015406B2 (en) Zoom control device, imaging apparatus, control method of zoom control device, and recording medium
JP6071436B2 (en) Imaging apparatus, imaging method, and program
KR20110004085A (en) Photographing apparatus and photographing method
US8441542B2 (en) Self-timer photographing apparatus and method involving checking the number of persons
CN104580901B (en) Determine the method and terminal of acquisition parameters
WO2017047012A1 (en) Imaging device and system including imaging device and server
US9473692B2 (en) Image processing apparatus, imaging apparatus, and determination method for controlling light emission
US20130293730A1 (en) Shooting Control Method, Shooting Control Apparatus and Shooting Apparatus
US9451149B2 (en) Processing apparatus, processing method, and program
TW201331662A (en) Camera system and auto focus method
CN108521862B (en) Method and apparatus for tracking shots
JP6263740B2 (en) Imaging device
KR20130092845A (en) Digital photographing apparatus and method for controlling thereof
JP2015019376A (en) Imaging control system and control method of the same
US20120127349A1 (en) Image pickup apparatus capable of deleting video effect superimposed on moving image, method of controlling the apparatus, and moving image-recording apparatus, as well as storage medium
JP6465566B2 (en) Imaging apparatus and imaging method
US9232133B2 (en) Image capturing apparatus for prioritizing shooting parameter settings and control method thereof
WO2016074414A1 (en) Image processing method and apparatus
JP5800600B2 (en) Imaging apparatus, imaging method, and program
JP2011151482A (en) Imaging apparatus and method for controlling the same
US10178298B2 (en) Image processing device, image processing method, and recording medium for optimal trimming of a captured image
US8744255B2 (en) Auto-focus method

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

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

Country of ref document: EP

Kind code of ref document: A1