WO2016198014A1 - Focusing imaging device, method, and terminal - Google Patents

Focusing imaging device, method, and terminal Download PDF

Info

Publication number
WO2016198014A1
WO2016198014A1 PCT/CN2016/086903 CN2016086903W WO2016198014A1 WO 2016198014 A1 WO2016198014 A1 WO 2016198014A1 CN 2016086903 W CN2016086903 W CN 2016086903W WO 2016198014 A1 WO2016198014 A1 WO 2016198014A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
distance
module
preview image
image
Prior art date
Application number
PCT/CN2016/086903
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 WO2016198014A1 publication Critical patent/WO2016198014A1/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

  • the present application relates to, but is not limited to, imaging technology, and more particularly to an apparatus, method and terminal for focused imaging.
  • a portable device such as a mobile terminal
  • a single camera lens when a single camera lens is used for imaging, since the depth of field of the single camera lens is 2.5 m before and after the focus, the target image outside the depth of field will be out of focus, resulting in blurring of the image.
  • the main and sub-camera lenses are usually used for fast focusing, the main camera lens is used for photographing and image information collection, and the sub-camera lens uses a wide depth of field lens for collecting the main camera lens and the subject. The distance is fed back to the image processing system.
  • the sub-camera lens is usually made of optical equipment, it is easy to be affected by external light during the distance between the main imaging lens and the subject, and it is impossible to measure distance under low illumination conditions.
  • the present invention provides a device, method and terminal for focusing imaging, which can avoid the influence of external light, and can still collect the distance between the main camera lens and the subject under low illumination conditions.
  • Embodiments of the present invention provide a device for focusing imaging, the device comprising:
  • the acquiring module is configured to: receive the first instruction to collect the image information and generate a preview image; wherein the acquiring the image information comprises: collecting object information through the camera lens and collecting coordinate information corresponding to the object information by using the sensor;
  • the selecting module is configured to: receive a second instruction to select the first object in the preview image information
  • the processing module is configured to perform focusing processing on the preview image according to the selected first object information and coordinate information of the first object.
  • the processing module includes: a ranging submodule, a selecting submodule, and a focusing submodule, where
  • the ranging sub-module is configured to: determine a first distance between the first object and the imaging lens according to coordinate information corresponding to the first object information;
  • the selecting sub-module is configured to: select, from the second object, a target object whose second distance is the same as the first distance;
  • the focusing sub-module is configured to perform focusing processing on the first object and the target object in the preview image to obtain a focused image.
  • the device further includes:
  • Determining a module configured to: receive a third instruction to determine a selected area
  • the selecting sub-module is configured to select a target object whose second distance is the same as the first distance from the second objects in the selected area.
  • the focusing sub-module is further configured to perform non-focus processing on the first object and the object other than the target object in the preview image.
  • the collection module is configured to:
  • the infrared sensor is used to collect coordinate information corresponding to the object information by using a plurality of infrared rays having different emission angles at the same frequency within the framing range of the imaging lens.
  • the embodiment of the invention further provides a method for focusing imaging, the method comprising:
  • the performing focus processing on the preview image according to the selected first object information and coordinate information of the first object includes:
  • the first object and the target object in the preview image are subjected to focus processing to obtain a focused image.
  • the method further includes: receiving a third instruction to determine a selected area;
  • selecting a target object whose second distance is the same as the first distance from the second object comprises:
  • a target object having a second distance equal to the first distance is selected from the second objects in the selected area.
  • the method further includes:
  • the first object and the object other than the target object in the preview image are subjected to a non-focusing process.
  • the acquiring the coordinate information corresponding to the object information by using the sensor includes:
  • the ultrasonic sensor collects coordinate information corresponding to the object information by using ultrasonic waves having a frequency of 40 kHz KHz according to the framing range of the imaging lens;
  • the infrared sensor collects coordinate information corresponding to the object information by using a plurality of infrared rays of different emission angles at the same frequency within the framing range of the imaging lens.
  • the embodiment of the invention further provides a computer readable storage medium, which is stored in a computer executable An instruction to implement the method of focused imaging described above when the computer executable instructions are executed.
  • An embodiment of the present invention further provides a terminal, where the terminal includes: an imaging lens, a sensor, a memory, a display, and a processor;
  • the processor is configured to: receive a second instruction to select first object information in a preview image displayed by the display and generate image information according to the received first instruction; wherein the image information includes The object information collected by the camera lens and the coordinate information corresponding to the object information collected by the sensor, wherein the image information is stored in the memory;
  • the preview image is subjected to focusing processing according to the selected first object information and coordinate information of the first object.
  • Embodiments of the present invention provide a method, a device, and a terminal for focusing imaging, which use a propagating wave instead of a conventional sub-imaging lens to measure a distance between a main imaging lens and a subject, thereby being able to avoid external light effects in low illumination.
  • the distance between the main camera lens and the subject can still be collected under the condition.
  • FIG. 1 is a schematic structural diagram of a device for focusing imaging according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of photographing of an imaging lens according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of distance measurement of an ultrasonic ranging sensor according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another apparatus for focusing imaging according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a method for focusing imaging according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a focus process according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of hardware of a terminal according to an embodiment of the present invention.
  • a device 10 for focusing imaging according to an embodiment of the present invention is shown.
  • the device 10 can be applied to a mobile terminal having a photographing function, such as a smart phone, a tablet computer, a notebook computer, etc., and the device 10
  • the method may include: an acquisition module 101, a selection module 102, and a processing module 103.
  • the acquiring module 101 is configured to: receive a first instruction to collect image information and generate a preview image; wherein the collecting image information includes: collecting object information through the camera lens, and collecting coordinate information corresponding to the object information by using a sensor;
  • the selecting module 102 is configured to: receive a second instruction to select first object information in the preview image;
  • the processing module 103 is configured to perform focusing processing on the preview image according to the selected first object information and coordinate information of the first object.
  • the acquisition module 101 performs the ranging of the scene by using the propagating wave by the sensor, and focuses the framing preview image according to the ranging of the propagating wave, so that the focusing process does not occur. Under the influence of the external light environment, the distance between the main camera lens and the subject can still be collected in order to focus the framing preview image under low illumination conditions.
  • the acquisition module 101 may include an imaging lens (referred to as a camera) having an autofocus and photographing function as shown in FIG. 2, and the focal length range may be selected according to requirements. Shooting parameters such as lens angle of view and aperture size are taken.
  • the camera lens can be turned on, and the finder preview image can be acquired within the framing range of the camera lens according to the preset shooting parameters, and the finder preview image can also be displayed on the display. In the unit.
  • the acquisition module 101 may further include a propagating wave ranging sensor such as an ultrasonic ranging sensor or an infrared ranging sensor. It can be understood that the propagating wave can also select other forms of propagating waves.
  • a propagating wave ranging sensor such as an ultrasonic ranging sensor or an infrared ranging sensor. It can be understood that the propagating wave can also select other forms of propagating waves.
  • the ultrasonic wave emitted by the ultrasonic distance measuring sensor needs to satisfy the viewing range of the imaging lens in the collecting module 101, that is, the angle of view of the lens of the imaging lens.
  • the ultrasonic waves are longitudinally vibrating elastic mechanical waves, they propagate by means of molecular motion of the propagation medium. Therefore, the description of the wave equation of the ultrasonic wave is similar to the electromagnetic wave, as shown in Equation 1:
  • A(x) is the amplitude
  • a 0 is a constant
  • w is the circular frequency
  • t is the time
  • x is the propagation distance of the ultrasonic wave.
  • is the wavelength of the ultrasonic wave
  • the pointing angle ⁇ of the ultrasonic ranging sensor is the angle of the half power angle of the ultrasonic beam, which can directly affect the resolution of the ranging, and is also an important technical parameter affecting the ranging accuracy.
  • its pointing angle ⁇ is related to the wavelength ⁇ of the ultrasonic wave of the disk ultrasonic ranging sensor and the radius r of the disk ultrasonic ranging sensor, and the relationship between the two can be as shown in Equation 2. :
  • the acquisition module 101 can use the ultrasonic sensor to acquire coordinate information corresponding to the object information by ultrasonic waves having a frequency of 40 kHz KHz according to the framing range of the imaging lens.
  • the pointing angle of the infrared rays is much smaller than the pointing of the ultrasonic waves. Angle, therefore, an infrared beam can only measure objects in a single direction or a single angle. Therefore, if the coordinate information of an object within the viewing range of the camera lens is to be acquired, the infrared sensor needs a variety of infrared rays to measure, so the acquisition is performed.
  • the module 101 can use the infrared sensor to collect coordinate information corresponding to the object information by using a plurality of infrared rays of different emission angles at the same frequency within the viewing range of the imaging lens.
  • an object in the preview image and the acquisition module 101 may be acquired by a difference between a transmission time of a propagating wave and a receiving time of the propagating wave echo.
  • the distance between the camera lenses may be acquired by a difference between a transmission time of a propagating wave and a receiving time of the propagating wave echo.
  • the distance L between the object in the preview image and the imaging lens of the collecting module 101 can be obtained by the formula (3):
  • T is the transit time, that is, the time when the ultrasonic wave emitted from the ultrasonic transmitting end propagates through the gaseous medium to the ultrasonic receiving end.
  • the ultrasonic distance measuring sensor measures the distance between the object in the preview image and the imaging lens of the acquisition module 101 by using the off-site pulse reflection, the distance is half of the sound wave transmission distance.
  • the propagating wave is infrared, the distance between the object in the preview image and the imaging lens of the collecting module 101 is the same as that of the above, and will not be described again.
  • the framing preview image generated by the acquisition module 101 can be displayed by a display unit having touch sensing, when the selection module 102 receives the preview image of the user on the display.
  • the first object information in the preview image may be selected according to the user's selection instruction.
  • the processing module 103 includes: a ranging submodule 1031, a selection submodule 1032, and a focusing submodule 1033, where
  • the ranging sub-module 1031 is configured to: determine a first distance between the first object and the imaging lens according to coordinate information corresponding to the first object information;
  • the selecting sub-module 1032 is configured to: select, from the second object, a target object whose second distance is the same as the first distance;
  • the focusing sub-module 1033 is configured to perform focusing processing on the first object and the target object in the preview image to obtain a focused image.
  • the distance between the target object and the imaging lens of the acquisition module 101 and the distance between the selected first object and the imaging lens of the acquisition module 101 are equal, and therefore, the target object and the selection The first object is in a uniform plane, so the focusing sub-module 1032 is capable of focusing the scene in a uniform plane.
  • the device 10 further includes:
  • the determining module 104 is configured to: receive the third instruction to determine the selected area;
  • the selection sub-module 1032 is configured to select a target object whose second distance is the same as the first distance from the second objects in the selected area.
  • the focusing sub-module 1033 may further be configured to: display the first object and the target in the preview image Objects other than objects are subjected to non-focus processing, such as image sharpening, blurring, color rendering, etc., to achieve the aperture blur effect of the camera lens. It can be understood that the focusing sub-module 1033 can also set the degree of blur.
  • the present embodiment provides a device 10 for focusing imaging, which uses a propagating wave instead of a conventional sub-imaging lens to measure the distance between the main camera lens and the subject, thereby avoiding the influence of external light, and still under low illumination conditions.
  • the distance between the main camera lens and the subject can be collected.
  • a method for focusing imaging according to an embodiment of the present invention is shown.
  • the method may be applied to the apparatus for focusing imaging in the foregoing embodiment, and the method may include:
  • S501 Receive a first instruction to collect image information and generate a preview image, where the acquiring image information includes: collecting object information by using an imaging lens, and collecting coordinate information corresponding to the object information by using a sensor;
  • S502 Receive a second instruction to select first object information in the preview image.
  • S503 Perform focus processing on the preview image according to the selected first object information and coordinate information of the first object.
  • the performing focus processing on the preview image according to the selected first object information and coordinate information of the first object may include:
  • S5031 determining, according to coordinate information corresponding to the first object information, a first distance between the first object and the imaging lens;
  • S5032 Determine a second distance between the second object and the imaging lens according to coordinate information of the second object other than the first object in the image information;
  • S5033 selecting, from the second object, a target object whose second distance is the same as the first distance;
  • S5024 Focusing the first object and the target object in the preview image to obtain a focused image.
  • the method further includes: receiving a third instruction to determine a selected area;
  • selecting a target object whose second distance is the same as the first distance from the second object comprises:
  • a target object having a second distance equal to the first distance is selected from the second objects in the selected area.
  • the method further includes performing non-focus processing on the first object and the object other than the target object in the preview image.
  • the acquiring the coordinate information corresponding to the object information by using the sensor may include:
  • the ultrasonic sensor collects coordinate information corresponding to the object information by using ultrasonic waves having a frequency of 40 kHz KHz according to the framing range of the imaging lens;
  • the infrared sensor collects coordinate information corresponding to the object information by using a plurality of infrared rays of different emission angles at the same frequency within the framing range of the imaging lens.
  • the embodiment provides a method for focusing imaging, which uses a propagating wave instead of a conventional sub-imaging lens to measure the distance between the main imaging lens and the subject, thereby avoiding the influence of external light, and still being able to be under low illumination conditions.
  • the distance between the main camera lens and the subject is collected.
  • the terminal 70 may be a smart phone, a tablet computer, a notebook computer, etc., and the terminal 70 may include: an image capturing lens 701 and a sensor 702.
  • the shape structure which may also be a star structure, may also include more or fewer components than those illustrated, or may combine certain components, or may be a different component arrangement, and the like. among them,
  • the processor 705 is configured to: receive a second instruction to select first object information in the preview image displayed by the display 704 and generate the image information according to the received first instruction; wherein the image information includes being collected by the camera lens 701 Object information and coordinate information corresponding to the object information collected by the sensor 702, wherein the image information is stored in the memory 703;
  • the preview image is subjected to focusing processing according to the selected first object information and coordinate information of the first object.
  • the processor 705 is configured to: determine, according to the coordinate information corresponding to the first object information, a first distance between the first object and the imaging lens 701;
  • the first object and the target object in the preview image are subjected to focus processing to obtain a focused image.
  • the processor 705 is further configured to: receive the third instruction to determine the selected area;
  • the processor 705 is further configured to perform non-focus processing on the first object and the object other than the target object in the preview image.
  • the sensor 702 may include an ultrasonic sensor 7021 or an infrared sensor 7022; wherein
  • the ultrasonic sensor 7021 is set to: according to the framing range of the imaging lens 701, the frequency is 40KHz kilohertz ultrasonic wave acquires coordinate information corresponding to the object information;
  • the infrared sensor 7022 is configured to collect coordinate information corresponding to the object information by a plurality of infrared rays having different emission angles at the same frequency within the framing range of the imaging lens 701.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions that implement the above-described method of focused imaging when executed by the computer executable instructions.
  • embodiments of the invention may be provided as a method, system, or computer program product.
  • embodiments of the invention may take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware.
  • embodiments of the invention may 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.) in which computer usable program code is embodied.
  • Embodiments of the invention may be described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations.
  • 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 generating settings by instructions executed by a processor of a computer or other programmable data processing device Means for implementing the functions specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
  • 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 may implement the functions specified in one or more of the blocks or blocks in one or more flows and/or block diagrams in 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 may provide steps for implementing the functions specified in one or more of the blocks or blocks of a process or a plurality of processes and/or block diagrams in the flowchart.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • Embodiments of the present invention provide a method, a device, and a terminal for focusing imaging, which use a propagating wave instead of a conventional sub-imaging lens to measure a distance between a main imaging lens and a subject, thereby being able to avoid external light effects in low illumination.
  • the distance between the main camera lens and the subject can still be collected under the condition.

Landscapes

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

Abstract

A focusing imaging device, comprising: a collection module, a selection module and a processing module, wherein the collection module is configured to receive a first instruction to collect image information and generate a preview image, wherein collecting image information comprises: collecting object information through a camera lens and collecting coordinate information corresponding to the object information through a sensor; the selection module is configured to receive a second instruction to select first object information in the preview image; and the processing module is configured to conduct focusing processing on the preview image according to the selected first object information and the coordinate information about a first object.

Description

一种聚焦成像的装置、方法和终端Device, method and terminal for focusing imaging 技术领域Technical field
本申请涉及但不限于成像技术,尤其涉及一种聚焦成像的装置、方法和终端。The present application relates to, but is not limited to, imaging technology, and more particularly to an apparatus, method and terminal for focused imaging.
背景技术Background technique
便携设备,如移动终端等,在采用单摄像镜头进行成像时,由于单摄像镜头的景深范围为焦点前后2.5m,在该景深范围外的目标图像都会出现失焦,从而导致成像模糊的问题。In a portable device, such as a mobile terminal, when a single camera lens is used for imaging, since the depth of field of the single camera lens is 2.5 m before and after the focus, the target image outside the depth of field will be out of focus, resulting in blurring of the image.
为了解决便携设备的单镜头成像模糊问题,通常会采用主副摄像镜头实现快速聚焦,主摄像镜头用于拍照及图像信息收集,副摄像镜头采用宽景深镜头,用于收集主摄像镜头与拍摄物的距离,将位置信息反馈到图像处理***。但是,由于副摄像镜头通常由光学器材制成,所以在收集主摄像镜头与拍摄物的距离过程中,容易被外界光线所影响,在低光照度的条件下无法测距。In order to solve the single-lens imaging blur problem of portable devices, the main and sub-camera lenses are usually used for fast focusing, the main camera lens is used for photographing and image information collection, and the sub-camera lens uses a wide depth of field lens for collecting the main camera lens and the subject. The distance is fed back to the image processing system. However, since the sub-camera lens is usually made of optical equipment, it is easy to be affected by external light during the distance between the main imaging lens and the subject, and it is impossible to measure distance under low illumination conditions.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提供一种聚焦成像的装置、方法和终端,能够避免外界光线的影响,在低光照度的条件下仍然能够收集到主摄像镜头与拍摄物的距离。The present invention provides a device, method and terminal for focusing imaging, which can avoid the influence of external light, and can still collect the distance between the main camera lens and the subject under low illumination conditions.
本发明实施例提供了一种聚焦成像的装置,所述装置包括:Embodiments of the present invention provide a device for focusing imaging, the device comprising:
采集模块、选取模块和处理模块,Acquisition module, selection module and processing module,
所述采集模块设置为:接收第一指令以采集图像信息并生成预览图像;其中,所述采集图像信息包括:通过摄像镜头采集物体信息以及通过传感器采集所述物体信息对应的坐标信息;The acquiring module is configured to: receive the first instruction to collect the image information and generate a preview image; wherein the acquiring the image information comprises: collecting object information through the camera lens and collecting coordinate information corresponding to the object information by using the sensor;
所述选取模块设置为:接收第二指令以选取所述预览图像中的第一物体 信息;The selecting module is configured to: receive a second instruction to select the first object in the preview image information;
所述处理模块,设置为:根据所述选取的第一物体信息和所述第一物体的坐标信息对所述预览图像进行聚焦处理。The processing module is configured to perform focusing processing on the preview image according to the selected first object information and coordinate information of the first object.
可选地,所述处理模块包括:测距子模块、选取子模块和聚焦子模块,其中,Optionally, the processing module includes: a ranging submodule, a selecting submodule, and a focusing submodule, where
所述测距子模块设置为:根据所述第一物体信息对应的坐标信息确定所述第一物体与所述摄像镜头之间的第一距离;以及,The ranging sub-module is configured to: determine a first distance between the first object and the imaging lens according to coordinate information corresponding to the first object information; and
根据所述图像信息中除第一物体以外的第二物体的坐标信息确定所述第二物体与所述摄像镜头之间的第二距离;Determining, according to coordinate information of the second object other than the first object in the image information, a second distance between the second object and the imaging lens;
所述选取子模块设置为:从所述第二物体中选取第二距离与所述第一距离相同的目标物体;The selecting sub-module is configured to: select, from the second object, a target object whose second distance is the same as the first distance;
所述聚焦子模块设置为:将所述预览图像中所述第一物体和所述目标物体进行聚焦处理,得到聚焦后的图像。The focusing sub-module is configured to perform focusing processing on the first object and the target object in the preview image to obtain a focused image.
可选地,所述装置还包括:Optionally, the device further includes:
确定模块,设置为:接收第三指令以确定选定区域;Determining a module, configured to: receive a third instruction to determine a selected area;
相应地,所述选取子模块是设置为:从处于所述选定区域内的第二物体中选取第二距离与所述第一距离相同的目标物体。Correspondingly, the selecting sub-module is configured to select a target object whose second distance is the same as the first distance from the second objects in the selected area.
可选地,所述聚焦子模块还设置为:将所述预览图像中所述第一物体和所述目标物体以外的其他物体进行非聚焦处理。Optionally, the focusing sub-module is further configured to perform non-focus processing on the first object and the object other than the target object in the preview image.
可选地,所述采集模块是设置为:Optionally, the collection module is configured to:
利用超声波传感器以根据所述摄像镜头的取景范围通过频率为40千赫兹KHz的超声波采集所述物体信息对应的坐标信息;Acquiring, by using an ultrasonic sensor, coordinate information corresponding to the object information by using ultrasonic waves having a frequency of 40 kHz KHz according to a viewing range of the imaging lens;
或者,利用红外线传感器以在所述摄像镜头的取景范围内通过同频率而不同发射角度的多条红外线采集所述物体信息对应的坐标信息。Alternatively, the infrared sensor is used to collect coordinate information corresponding to the object information by using a plurality of infrared rays having different emission angles at the same frequency within the framing range of the imaging lens.
本发明实施例还提供了一种聚焦成像的方法,所述方法包括:The embodiment of the invention further provides a method for focusing imaging, the method comprising:
接收第一指令以采集图像信息并生成预览图像;其中,所述采集图像信息包括:通过摄像镜头采集物体信息以及通过传感器采集所述物体信息对应 的坐标信息;Receiving a first instruction to acquire image information and generate a preview image; wherein the acquiring the image information comprises: collecting object information through the camera lens and collecting the object information by using the sensor Coordinate information;
接收第二指令以选取所述预览图像中的第一物体信息;Receiving a second instruction to select first object information in the preview image;
根据所述选取的第一物体信息和所述第一物体的坐标信息对所述预览图像进行聚焦处理。And performing focus processing on the preview image according to the selected first object information and coordinate information of the first object.
可选地,所述根据所述选取的第一物体信息和所述第一物体的坐标信息对所述预览图像进行聚焦处理包括:Optionally, the performing focus processing on the preview image according to the selected first object information and coordinate information of the first object includes:
根据所述第一物体信息对应的坐标信息确定所述第一物体与所述摄像镜头之间的第一距离;Determining, according to coordinate information corresponding to the first object information, a first distance between the first object and the imaging lens;
根据所述图像信息中除第一物体以外的第二物体的坐标信息确定所述第二物体与所述摄像镜头之间的第二距离;Determining, according to coordinate information of the second object other than the first object in the image information, a second distance between the second object and the imaging lens;
从所述第二物体中选取第二距离与所述第一距离相同的目标物体;Selecting, from the second object, a target object whose second distance is the same as the first distance;
将所述预览图像中所述第一物体和所述目标物体进行聚焦处理,得到聚焦后的图像。The first object and the target object in the preview image are subjected to focus processing to obtain a focused image.
可选地,所述方法还包括:接收第三指令以确定选定区域;Optionally, the method further includes: receiving a third instruction to determine a selected area;
相应地,从所述第二物体中选取第二距离与所述第一距离相同的目标物体包括:Correspondingly, selecting a target object whose second distance is the same as the first distance from the second object comprises:
从处于所述选定区域内的第二物体中选取第二距离与所述第一距离相同的目标物体。A target object having a second distance equal to the first distance is selected from the second objects in the selected area.
可选地,所述方法还包括:Optionally, the method further includes:
将所述预览图像中所述第一物体和所述目标物体以外的其他物体进行非聚焦处理。The first object and the object other than the target object in the preview image are subjected to a non-focusing process.
可选地,所述通过传感器采集所述物体信息对应的坐标信息包括:Optionally, the acquiring the coordinate information corresponding to the object information by using the sensor includes:
超声波传感器根据所述摄像镜头的取景范围通过频率为40千赫兹KHz的超声波采集所述物体信息对应的坐标信息;The ultrasonic sensor collects coordinate information corresponding to the object information by using ultrasonic waves having a frequency of 40 kHz KHz according to the framing range of the imaging lens;
或者,红外线传感器在所述摄像镜头的取景范围内通过同频率而不同发射角度的多条红外线采集所述物体信息对应的坐标信息。Alternatively, the infrared sensor collects coordinate information corresponding to the object information by using a plurality of infrared rays of different emission angles at the same frequency within the framing range of the imaging lens.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行 指令,所述计算机可执行指令被执行时实现上述聚焦成像的方法。The embodiment of the invention further provides a computer readable storage medium, which is stored in a computer executable An instruction to implement the method of focused imaging described above when the computer executable instructions are executed.
本发明实施例还提供了一种终端,所述终端包括:摄像镜头、传感器、存储器、显示器和处理器;An embodiment of the present invention further provides a terminal, where the terminal includes: an imaging lens, a sensor, a memory, a display, and a processor;
所述处理器设置为:接收第二指令以选取根据接收的第一指令采集图像信息并生成的由所述显示器显示的预览图像中的第一物体信息;其中,所述图像信息包括由所述摄像镜头采集的物体信息和由所述传感器采集的所述物体信息对应的坐标信息,其中所述图像信息存储于所述存储器;The processor is configured to: receive a second instruction to select first object information in a preview image displayed by the display and generate image information according to the received first instruction; wherein the image information includes The object information collected by the camera lens and the coordinate information corresponding to the object information collected by the sensor, wherein the image information is stored in the memory;
以及,根据所述选取的第一物体信息和所述第一物体的坐标信息对所述预览图像进行聚焦处理。And, the preview image is subjected to focusing processing according to the selected first object information and coordinate information of the first object.
本发明实施例提供了一种聚焦成像的方法、装置和终端,采用传播波代替传统的副摄像镜头来对主摄像镜头与拍摄物的距离进行测量,从而能够避免外界光线的影响,在低光照度的条件下仍然能够收集到主摄像镜头与拍摄物的距离。Embodiments of the present invention provide a method, a device, and a terminal for focusing imaging, which use a propagating wave instead of a conventional sub-imaging lens to measure a distance between a main imaging lens and a subject, thereby being able to avoid external light effects in low illumination. The distance between the main camera lens and the subject can still be collected under the condition.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例提供的一种聚焦成像的装置结构示意图;1 is a schematic structural diagram of a device for focusing imaging according to an embodiment of the present invention;
图2为本发明实施例提供的一种摄像镜头拍摄示意图;2 is a schematic diagram of photographing of an imaging lens according to an embodiment of the present invention;
图3为本发明实施例提供的一种超声波测距传感器测距示意图;FIG. 3 is a schematic diagram of distance measurement of an ultrasonic ranging sensor according to an embodiment of the present invention; FIG.
图4为本发明实施例提供的另一种聚焦成像的装置结构示意图;4 is a schematic structural diagram of another apparatus for focusing imaging according to an embodiment of the present invention;
图5为本发明实施例提供的一种聚焦成像的方法流程示意图;FIG. 5 is a schematic flowchart of a method for focusing imaging according to an embodiment of the present invention;
图6为本发明实施例提供的一种聚焦处理的流程示意图;FIG. 6 is a schematic flowchart of a focus process according to an embodiment of the present invention;
图7为本发明实施例提供的一种终端的硬件结构示意图。FIG. 7 is a schematic structural diagram of hardware of a terminal according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下面结合附图对本发明的实施方式进行描述。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各种方式可以相互组合。 Embodiments of the present invention will be described below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the various manners in the embodiments may be combined with each other without conflict.
实施例一Embodiment 1
参见图1,其示出了本发明实施例提供的一种聚焦成像的装置10,该装置10可以应用于具有拍摄功能的移动终端中,例如智能手机、平板电脑、笔记本电脑等,该装置10可以包括:采集模块101、选取模块102和处理模块103Referring to FIG. 1 , a device 10 for focusing imaging according to an embodiment of the present invention is shown. The device 10 can be applied to a mobile terminal having a photographing function, such as a smart phone, a tablet computer, a notebook computer, etc., and the device 10 The method may include: an acquisition module 101, a selection module 102, and a processing module 103.
所述采集模块101,设置为:接收第一指令以采集图像信息并生成预览图像;其中,所述采集图像信息包括:通过摄像镜头采集物体信息以及通过传感器采集所述物体信息对应的坐标信息;The acquiring module 101 is configured to: receive a first instruction to collect image information and generate a preview image; wherein the collecting image information includes: collecting object information through the camera lens, and collecting coordinate information corresponding to the object information by using a sensor;
所述选取模块102,设置为:接收第二指令以选取所述预览图像中的第一物体信息;The selecting module 102 is configured to: receive a second instruction to select first object information in the preview image;
所述处理模块103,设置为:根据所述选取的第一物体信息和所述第一物体的坐标信息对所述预览图像进行聚焦处理。The processing module 103 is configured to perform focusing processing on the preview image according to the selected first object information and coordinate information of the first object.
可以理解地,本实施例提供的聚焦成像的装置10中,采集模块101通过传感器利用传播波进行景物的测距,并根据传播波的测距对取景预览图像进行聚焦,从而使得聚焦过程不会受到外界光线环境的影响,在低光照度的条件下仍然能够为了对取景预览图像进行聚焦而收集主摄像镜头与拍摄物的距离。It can be understood that, in the apparatus 10 for focusing imaging provided by the embodiment, the acquisition module 101 performs the ranging of the scene by using the propagating wave by the sensor, and focuses the framing preview image according to the ranging of the propagating wave, so that the focusing process does not occur. Under the influence of the external light environment, the distance between the main camera lens and the subject can still be collected in order to focus the framing preview image under low illumination conditions.
示例性地,在图1所示的聚焦成像的装置10中,采集模块101可以包括如图2所示的一个具有自动聚焦及拍摄功能的摄像镜头(简称为摄像头),可以根据需求选择焦距范围、镜头视场角角度、光圈大小等拍摄参数进行拍摄。当移动终端启动聚焦成像的装置10时,摄像镜头可开启,并可根据预先设置好的拍摄参数在该摄像镜头的取景范围内采集得到取景预览图像,并且,还可以将取景预览图像展示在显示单元中。Illustratively, in the apparatus 10 for focusing imaging shown in FIG. 1, the acquisition module 101 may include an imaging lens (referred to as a camera) having an autofocus and photographing function as shown in FIG. 2, and the focal length range may be selected according to requirements. Shooting parameters such as lens angle of view and aperture size are taken. When the mobile terminal activates the device 10 for focusing imaging, the camera lens can be turned on, and the finder preview image can be acquired within the framing range of the camera lens according to the preset shooting parameters, and the finder preview image can also be displayed on the display. In the unit.
示例性地,在图1所示的聚焦成像的装置10中,采集模块101还可以包括一个传播波测距传感器,比如超声波测距传感器或红外线测距传感器。可以理解地,传播波也可以选择其他形式的传播波。Illustratively, in the focused imaging device 10 shown in FIG. 1, the acquisition module 101 may further include a propagating wave ranging sensor such as an ultrasonic ranging sensor or an infrared ranging sensor. It can be understood that the propagating wave can also select other forms of propagating waves.
对于超声波测距传感器来说,超声波测距传感器所发射的超声波需要满足采集模块101中摄像镜头的取景范围,即摄像镜头的镜头视场角角度。 For the ultrasonic distance measuring sensor, the ultrasonic wave emitted by the ultrasonic distance measuring sensor needs to satisfy the viewing range of the imaging lens in the collecting module 101, that is, the angle of view of the lens of the imaging lens.
可选地,由于超声波是一种纵向振动的弹性机械波,借助于传播介质的分子运动而传播。因此,超声波的波动方程描述与电磁波类似,如式1所示:Alternatively, since the ultrasonic waves are longitudinally vibrating elastic mechanical waves, they propagate by means of molecular motion of the propagation medium. Therefore, the description of the wave equation of the ultrasonic wave is similar to the electromagnetic wave, as shown in Equation 1:
Figure PCTCN2016086903-appb-000001
Figure PCTCN2016086903-appb-000001
其中,A(x)为振幅,A0为常数,w为圆频率,t为时间,x为超声波的传播距离,
Figure PCTCN2016086903-appb-000002
为波数,λ为超声波的波长,超声波的衰减常数α=af2,其中,a为介质常数,f为超声波的振动频率。
Where A(x) is the amplitude, A 0 is a constant, w is the circular frequency, t is the time, and x is the propagation distance of the ultrasonic wave.
Figure PCTCN2016086903-appb-000002
For the wave number, λ is the wavelength of the ultrasonic wave, and the attenuation constant of the ultrasonic wave is α=af 2 , where a is the dielectric constant and f is the vibration frequency of the ultrasonic wave.
例如,空气的介质常数a=2×10-13s2/cm,因此,当超声波的振动频率为f=40kHz时,α=3.2×10-4cm-1,1/α=31m;当f=30kHz时,1/α=56m。由此可以看出,超声波的频率越高,衰减得越厉害,传播的距离也越短。考虑到摄像镜头的焦距范围,可选地,f=40kHz。For example, the medium constant of air a = 2 × 10 -13 s 2 /cm, therefore, when the vibration frequency of the ultrasonic wave is f = 40 kHz, α = 3.2 × 10 -4 cm -1 , 1 / α = 31 m; At =30 kHz, 1/α = 56 m. It can be seen that the higher the frequency of the ultrasonic wave, the more the attenuation is, and the shorter the distance of propagation. Considering the focal length range of the camera lens, optionally, f = 40 kHz.
另外,超声波测距传感器的指向角θ是超声波波束半功率角的夹角,它能够直接影响测距的分辨率,也是影响测距精度的一个重要技术参数。以圆片超声波测距传感器为例,它的指向角θ大小与圆片超声波测距传感器的超声波的波长λ和圆片超声波测距传感器的半径r有关,两者的关系可如式2所示:In addition, the pointing angle θ of the ultrasonic ranging sensor is the angle of the half power angle of the ultrasonic beam, which can directly affect the resolution of the ranging, and is also an important technical parameter affecting the ranging accuracy. Taking the disk ultrasonic ranging sensor as an example, its pointing angle θ is related to the wavelength λ of the ultrasonic wave of the disk ultrasonic ranging sensor and the radius r of the disk ultrasonic ranging sensor, and the relationship between the two can be as shown in Equation 2. :
Figure PCTCN2016086903-appb-000003
Figure PCTCN2016086903-appb-000003
由式(2)可以得知,超声波测距传感器的指向角θ愈小,空间分辨率愈高,则要求圆片超声波测距传感器的半径r愈大。当f=40kHz时,可以得到:超声波的波长λ=C/f=340/40000=8.5mm,其中,C表示超声波在空气中的传播速度。此时,根据式(2)所示的超声波测距传感器的指向角θ与圆片超声波测距传感器的半径r和超声波的波长λ之间的对应关系,本实施例中,超声波的振动频率可选地为f=40kHz。It can be known from the formula (2) that the smaller the pointing angle θ of the ultrasonic distance measuring sensor is, the higher the spatial resolution is, the larger the radius r of the wafer ultrasonic distance measuring sensor is required. When f = 40 kHz, it can be obtained that the wavelength of the ultrasonic wave λ = C / f = 340 / 40000 = 8.5 mm, where C represents the propagation speed of the ultrasonic wave in the air. At this time, according to the correspondence between the directivity angle θ of the ultrasonic distance measuring sensor and the radius r of the ultrasonic wave distance measuring sensor and the wavelength λ of the ultrasonic wave, in the present embodiment, the vibration frequency of the ultrasonic wave can be The ground selection is f=40 kHz.
因此,采集模块101可以利用超声波传感器以根据所述摄像镜头的取景范围通过频率为40千赫兹KHz的超声波采集所述物体信息对应的坐标信息。Therefore, the acquisition module 101 can use the ultrasonic sensor to acquire coordinate information corresponding to the object information by ultrasonic waves having a frequency of 40 kHz KHz according to the framing range of the imaging lens.
对于红外线传感器来说,由于红外线的指向角要远远小于超声波的指向 角,因此,一条红外线光束仅能对单一方向或者单一角度上的物体进行测量,因此,若要采集摄像镜头的取景范围内物体的坐标信息,那么红外线传感器就需要多种红外线进行测量,所以采集模块101可利用红外线传感器以在所述摄像镜头的取景范围内通过同频率而不同发射角度的多条红外线采集所述物体信息对应的坐标信息。For infrared sensors, the pointing angle of the infrared rays is much smaller than the pointing of the ultrasonic waves. Angle, therefore, an infrared beam can only measure objects in a single direction or a single angle. Therefore, if the coordinate information of an object within the viewing range of the camera lens is to be acquired, the infrared sensor needs a variety of infrared rays to measure, so the acquisition is performed. The module 101 can use the infrared sensor to collect coordinate information corresponding to the object information by using a plurality of infrared rays of different emission angles at the same frequency within the viewing range of the imaging lens.
示例性地,在图1所示的聚焦成像的装置10中,可以通过传播波的发射时间与所述传播波回波的接收时间之差获取所述预览图像中的物体与所述采集模块101的摄像镜头之间的距离。Illustratively, in the apparatus 10 for focusing imaging shown in FIG. 1, an object in the preview image and the acquisition module 101 may be acquired by a difference between a transmission time of a propagating wave and a receiving time of the propagating wave echo. The distance between the camera lenses.
可选地,当传播波为超声波时,相应地,预览图像中的物体与所述采集模块101的摄像镜头之间的距离L可以通过式(3)获得:Alternatively, when the propagating wave is an ultrasonic wave, correspondingly, the distance L between the object in the preview image and the imaging lens of the collecting module 101 can be obtained by the formula (3):
Figure PCTCN2016086903-appb-000004
Figure PCTCN2016086903-appb-000004
其中,T为渡越时间,即超声波发射端发出的超声波,经气体介质传播到超声波接收端的时间。可以理解地,如图3所示,当超声波测距传感器采用异地脉冲反射式地测量预览图像中的物体与所述采集模块101的摄像镜头之间的距离时,该距离是声波传输距离的一半。可以理解地,传播波为红外线时,预览图像中的物体与所述采集模块101的摄像镜头之间的距离的获取方式同上,不再赘述。Where T is the transit time, that is, the time when the ultrasonic wave emitted from the ultrasonic transmitting end propagates through the gaseous medium to the ultrasonic receiving end. It can be understood that, as shown in FIG. 3, when the ultrasonic distance measuring sensor measures the distance between the object in the preview image and the imaging lens of the acquisition module 101 by using the off-site pulse reflection, the distance is half of the sound wave transmission distance. . It can be understood that when the propagating wave is infrared, the distance between the object in the preview image and the imaging lens of the collecting module 101 is the same as that of the above, and will not be described again.
示例性地,在图1所示的聚焦成像的装置10中,采集模块101所生成取景预览图像可以通过具有触摸感应的显示单元进行显示,当选取模块102接收到用户对显示的预览图像中的某一物体进行选择的第二指令时,可根据用户的选择指令选取预览图像中的第一物体信息。Illustratively, in the apparatus 10 for focusing imaging shown in FIG. 1, the framing preview image generated by the acquisition module 101 can be displayed by a display unit having touch sensing, when the selection module 102 receives the preview image of the user on the display. When an object selects the second instruction, the first object information in the preview image may be selected according to the user's selection instruction.
可选地,参见图4,处理模块103包括:测距子模块1031、选取子模块1032和聚焦子模块1033,其中,Optionally, referring to FIG. 4, the processing module 103 includes: a ranging submodule 1031, a selection submodule 1032, and a focusing submodule 1033, where
测距子模块1031设置为:根据所述第一物体信息对应的坐标信息确定所述第一物体与所述摄像镜头之间的第一距离;以及,The ranging sub-module 1031 is configured to: determine a first distance between the first object and the imaging lens according to coordinate information corresponding to the first object information; and
根据所述图像信息中除第一物体以外的第二物体的坐标信息确定所述第二物体与所述摄像镜头之间的第二距离; Determining, according to coordinate information of the second object other than the first object in the image information, a second distance between the second object and the imaging lens;
选取子模块1032设置为:从所述第二物体中选取第二距离与所述第一距离相同的目标物体;The selecting sub-module 1032 is configured to: select, from the second object, a target object whose second distance is the same as the first distance;
聚焦子模块1033设置为:将所述预览图像中所述第一物体和所述目标物体进行聚焦处理,得到聚焦后的图像。The focusing sub-module 1033 is configured to perform focusing processing on the first object and the target object in the preview image to obtain a focused image.
可选地,所述目标物体与所述采集模块101的摄像镜头之间的距离和所述选取的第一物体与所述采集模块101的摄像镜头之间的距离相等,因此,目标物体与选取的第一物体处于统一平面,所以聚焦子模块1032能够对处于统一平面的景物进行聚焦处理。Optionally, the distance between the target object and the imaging lens of the acquisition module 101 and the distance between the selected first object and the imaging lens of the acquisition module 101 are equal, and therefore, the target object and the selection The first object is in a uniform plane, so the focusing sub-module 1032 is capable of focusing the scene in a uniform plane.
可选地,统一平面的区域范围也可以通过用户的需求进行设置和确定,因此,该装置10还包括:Optionally, the area range of the unified plane can also be set and determined by the user's needs. Therefore, the device 10 further includes:
确定模块104,设置为:接收第三指令以确定选定区域;The determining module 104 is configured to: receive the third instruction to determine the selected area;
相应地,选取子模块1032是设置为:从处于所述选定区域内的第二物体中选取第二距离与所述第一距离相同的目标物体。Correspondingly, the selection sub-module 1032 is configured to select a target object whose second distance is the same as the first distance from the second objects in the selected area.
可选地,在得到聚焦后的图像过程中,对于预览图像中的与选取物体不处于统一平面的物体,聚焦子模块1033还可以设置为:将预览图像中所述第一物体和所述目标物体以外的其他物体进行非聚焦处理,例如图像锐化、模糊,色彩渲染等图像处理,从而达到摄像镜头的光圈虚化效果。可以理解地,聚焦子模块1033还可以对虚化程度进行设置。Optionally, in the process of obtaining the focused image, for the object in the preview image that is not in a uniform plane with the selected object, the focusing sub-module 1033 may further be configured to: display the first object and the target in the preview image Objects other than objects are subjected to non-focus processing, such as image sharpening, blurring, color rendering, etc., to achieve the aperture blur effect of the camera lens. It can be understood that the focusing sub-module 1033 can also set the degree of blur.
本实施例提供了一种聚焦成像的装置10,采用传播波代替传统的副摄像镜头来对主摄像镜头与拍摄物的距离进行测量,从而能够避免外界光线的影响,在低光照度的条件下仍然能够收集到主摄像镜头与拍摄物的距离。The present embodiment provides a device 10 for focusing imaging, which uses a propagating wave instead of a conventional sub-imaging lens to measure the distance between the main camera lens and the subject, thereby avoiding the influence of external light, and still under low illumination conditions. The distance between the main camera lens and the subject can be collected.
实施例二Embodiment 2
参见图5,其示出了本发明实施例提供的一种聚焦成像的方法,该方法可以应用于前述实施例中所述聚焦成像的装置,该方法可以包括:Referring to FIG. 5, a method for focusing imaging according to an embodiment of the present invention is shown. The method may be applied to the apparatus for focusing imaging in the foregoing embodiment, and the method may include:
S501:接收第一指令以采集图像信息并生成预览图像;其中,所述采集图像信息包括:通过摄像镜头采集物体信息以及通过传感器采集所述物体信息对应的坐标信息;S501: Receive a first instruction to collect image information and generate a preview image, where the acquiring image information includes: collecting object information by using an imaging lens, and collecting coordinate information corresponding to the object information by using a sensor;
S502:接收第二指令以选取所述预览图像中的第一物体信息; S502: Receive a second instruction to select first object information in the preview image.
S503:根据选取的第一物体信息和第一物体的坐标信息对预览图像进行聚焦处理。S503: Perform focus processing on the preview image according to the selected first object information and coordinate information of the first object.
示例性地,参见图6,所述根据所述选取的第一物体信息和所述第一物体的坐标信息对所述预览图像进行聚焦处理可以包括:Illustratively, referring to FIG. 6, the performing focus processing on the preview image according to the selected first object information and coordinate information of the first object may include:
S5031:根据第一物体信息对应的坐标信息确定第一物体与摄像镜头之间的第一距离;S5031: determining, according to coordinate information corresponding to the first object information, a first distance between the first object and the imaging lens;
S5032:根据图像信息中处第一物体以外的第二物体的坐标信息确定第二物体与摄像镜头之间的第二距离;S5032: Determine a second distance between the second object and the imaging lens according to coordinate information of the second object other than the first object in the image information;
S5033:从第二物体中选取第二距离与第一距离相同的目标物体;S5033: selecting, from the second object, a target object whose second distance is the same as the first distance;
S5024:将预览图像中第一物体和目标物体进行聚焦处理,得到聚焦后的图像。S5024: Focusing the first object and the target object in the preview image to obtain a focused image.
可选地,所述方法还包括:接收第三指令以确定选定区域;Optionally, the method further includes: receiving a third instruction to determine a selected area;
相应地,从所述第二物体中选取第二距离与所述第一距离相同的目标物体包括:Correspondingly, selecting a target object whose second distance is the same as the first distance from the second object comprises:
从处于所述选定区域内的第二物体中选取第二距离与所述第一距离相同的目标物体。A target object having a second distance equal to the first distance is selected from the second objects in the selected area.
可选地,所述方法还包括:将所述预览图像中所述第一物体和所述目标物体以外的其他物体进行非聚焦处理。Optionally, the method further includes performing non-focus processing on the first object and the object other than the target object in the preview image.
可选地,所述通过传感器采集所述物体信息对应的坐标信息可以包括:Optionally, the acquiring the coordinate information corresponding to the object information by using the sensor may include:
超声波传感器根据所述摄像镜头的取景范围通过频率为40千赫兹KHz的超声波采集所述物体信息对应的坐标信息;The ultrasonic sensor collects coordinate information corresponding to the object information by using ultrasonic waves having a frequency of 40 kHz KHz according to the framing range of the imaging lens;
或者,红外线传感器在所述摄像镜头的取景范围内通过同频率而不同发射角度的多条红外线采集所述物体信息对应的坐标信息。Alternatively, the infrared sensor collects coordinate information corresponding to the object information by using a plurality of infrared rays of different emission angles at the same frequency within the framing range of the imaging lens.
本实施例提供了一种聚焦成像的方法,采用传播波代替传统的副摄像镜头来对主摄像镜头与拍摄物的距离进行测量,从而能够避免外界光线的影响,在低光照度的条件下仍然能够收集到主摄像镜头与拍摄物的距离。The embodiment provides a method for focusing imaging, which uses a propagating wave instead of a conventional sub-imaging lens to measure the distance between the main imaging lens and the subject, thereby avoiding the influence of external light, and still being able to be under low illumination conditions. The distance between the main camera lens and the subject is collected.
实施例三 Embodiment 3
参见图7,其示出了本发明实施例提供的一种终端70的硬件结构,该终端70可以是智能手机、平板电脑、笔记本电脑等,该终端70可以包括:摄像镜头701、传感器702、存储器703、显示器704及处理器705等组件,其中,这些组件可以通过一条或多条总线706进行通信连接;本领域技术人员可以理解,图7中示出的移动终端的结构,既可以是总线形结构,也可以是星形结构,还可以包括比图示更多或更少的部件,或者可以组合某些部件,或者可以是不同的部件布置,等等。其中,Referring to FIG. 7 , a hardware structure of a terminal 70 is provided in the embodiment of the present invention. The terminal 70 may be a smart phone, a tablet computer, a notebook computer, etc., and the terminal 70 may include: an image capturing lens 701 and a sensor 702. The components of the memory 703, the display 704, and the processor 705, wherein the components can be communicatively connected through one or more buses 706; those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 7 can be a bus. The shape structure, which may also be a star structure, may also include more or fewer components than those illustrated, or may combine certain components, or may be a different component arrangement, and the like. among them,
处理器705设置为:接收第二指令以选取根据接收的第一指令采集图像信息并生成的由显示器704显示的预览图像中的第一物体信息;其中,所述图像信息包括由摄像镜头701采集的物体信息和由传感器702采集的所述物体信息对应的坐标信息,其中所述图像信息存储于存储器703;The processor 705 is configured to: receive a second instruction to select first object information in the preview image displayed by the display 704 and generate the image information according to the received first instruction; wherein the image information includes being collected by the camera lens 701 Object information and coordinate information corresponding to the object information collected by the sensor 702, wherein the image information is stored in the memory 703;
以及,根据所述选取的第一物体信息和所述第一物体的坐标信息对所述预览图像进行聚焦处理。And, the preview image is subjected to focusing processing according to the selected first object information and coordinate information of the first object.
可选地,处理器705是设置为:根据所述第一物体信息对应的坐标信息确定所述第一物体与摄像镜头701之间的第一距离;以及,Optionally, the processor 705 is configured to: determine, according to the coordinate information corresponding to the first object information, a first distance between the first object and the imaging lens 701;
根据所述图像信息中除第一物体以外的第二物体的坐标信息确定所述第二物体与摄像镜头701之间的第二距离;以及,Determining a second distance between the second object and the imaging lens 701 according to coordinate information of the second object other than the first object in the image information; and
从所述第二物体中选取第二距离与所述第一距离相同的目标物体;以及,Selecting, from the second object, a target object whose second distance is the same as the first distance; and
将所述预览图像中所述第一物体和所述目标物体进行聚焦处理,得到聚焦后的图像。The first object and the target object in the preview image are subjected to focus processing to obtain a focused image.
可选地,处理器705还设置为:接收第三指令以确定选定区域;Optionally, the processor 705 is further configured to: receive the third instruction to determine the selected area;
以及,从处于所述选定区域内的第二物体中选取第二距离与所述第一距离相同的目标物体。And selecting, from the second object in the selected area, the second object having the same distance as the first distance.
可选地,处理器705还设置为:将所述预览图像中所述第一物体和所述目标物体以外的其他物体进行非聚焦处理。Optionally, the processor 705 is further configured to perform non-focus processing on the first object and the object other than the target object in the preview image.
可选地,传感器702可以包括超声波传感器7021或者红外线传感器7022;其中,Optionally, the sensor 702 may include an ultrasonic sensor 7021 or an infrared sensor 7022; wherein
超声波传感器7021设置为:根据摄像镜头701的取景范围通过频率为 40KHz千赫兹的超声波采集所述物体信息对应的坐标信息;The ultrasonic sensor 7021 is set to: according to the framing range of the imaging lens 701, the frequency is 40KHz kilohertz ultrasonic wave acquires coordinate information corresponding to the object information;
红外线传感器7022设置为:在摄像镜头701的取景范围内通过同频率而不同发射角度的多条红外线采集所述物体信息对应的坐标信息。The infrared sensor 7022 is configured to collect coordinate information corresponding to the object information by a plurality of infrared rays having different emission angles at the same frequency within the framing range of the imaging lens 701.
实施例四Embodiment 4
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述聚焦成像的方法。Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions that implement the above-described method of focused imaging when executed by the computer executable instructions.
本领域内的技术人员可以明白,本发明实施例可提供为方法、***、或计算机程序产品。因此,本发明实施例可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the invention may be provided as a method, system, or computer program product. Thus, embodiments of the invention may take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, embodiments of the invention may 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.) in which computer usable program code is embodied.
本发明实施例可参照根据本发明实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述。可以理解,可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生设置为实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the invention may be described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations. 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 generating settings by instructions executed by a processor of a computer or other programmable data processing device Means for implementing the functions specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置可实现在流程图中一个流程或多个流程和/或方框图中一个方框或多个方框中指定的功能。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 may implement the functions specified in one or more of the blocks or blocks in one or more flows and/or block diagrams in 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 may provide steps for implementing the functions specified in one or more of the blocks or blocks of a process or a plurality of processes and/or block diagrams in the flowchart.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如***、设备、装置、器件、处理器等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, processor, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
本领域的普通技术人员可以理解,可以对本申请的技术方案进行修改或者等同替换,而不脱离本申请技术方案的精神和范围。本申请的保护范围以权利要求所定义的范围为准。A person skilled in the art can understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present application. The scope of protection of this application is defined by the scope defined by the claims.
工业实用性Industrial applicability
本发明实施例提供了一种聚焦成像的方法、装置和终端,采用传播波代替传统的副摄像镜头来对主摄像镜头与拍摄物的距离进行测量,从而能够避免外界光线的影响,在低光照度的条件下仍然能够收集到主摄像镜头与拍摄物的距离。 Embodiments of the present invention provide a method, a device, and a terminal for focusing imaging, which use a propagating wave instead of a conventional sub-imaging lens to measure a distance between a main imaging lens and a subject, thereby being able to avoid external light effects in low illumination. The distance between the main camera lens and the subject can still be collected under the condition.

Claims (11)

  1. 一种聚焦成像的装置,所述装置包括:采集模块、选取模块和处理模块,A device for focusing imaging, the device comprising: an acquisition module, a selection module and a processing module,
    所述采集模块设置为:接收第一指令以采集图像信息并生成预览图像;其中,所述采集图像信息包括:通过摄像镜头采集物体信息以及通过传感器采集所述物体信息对应的坐标信息;The acquiring module is configured to: receive the first instruction to collect the image information and generate a preview image; wherein the acquiring the image information comprises: collecting object information through the camera lens and collecting coordinate information corresponding to the object information by using the sensor;
    所述选取模块设置为:接收第二指令以选取所述预览图像中的第一物体信息;The selecting module is configured to: receive a second instruction to select first object information in the preview image;
    所述处理模块设置为:根据所述选取的第一物体信息和所述第一物体的坐标信息对所述预览图像进行聚焦处理。The processing module is configured to perform focusing processing on the preview image according to the selected first object information and coordinate information of the first object.
  2. 根据权利要求1所述的装置,其中,所述处理模块包括:测距子模块、选取子模块和聚焦子模块,其中,The apparatus according to claim 1, wherein the processing module comprises: a ranging sub-module, a selection sub-module, and a focusing sub-module, wherein
    所述测距子模块设置为:根据所述第一物体信息对应的坐标信息确定所述第一物体与所述摄像镜头之间的第一距离;以及,The ranging sub-module is configured to: determine a first distance between the first object and the imaging lens according to coordinate information corresponding to the first object information; and
    根据所述图像信息中除第一物体以外的第二物体的坐标信息确定所述第二物体与所述摄像镜头之间的第二距离;Determining, according to coordinate information of the second object other than the first object in the image information, a second distance between the second object and the imaging lens;
    所述选取子模块设置为:从所述第二物体中选取第二距离与所述第一距离相同的目标物体;The selecting sub-module is configured to: select, from the second object, a target object whose second distance is the same as the first distance;
    所述聚焦子模块设置为:将所述预览图像中所述第一物体和所述目标物体进行聚焦处理,得到聚焦后的图像。The focusing sub-module is configured to perform focusing processing on the first object and the target object in the preview image to obtain a focused image.
  3. 根据权利要求2所述的装置,其中,The device according to claim 2, wherein
    所述装置还包括:The device also includes:
    确定模块,设置为:接收第三指令以确定选定区域;Determining a module, configured to: receive a third instruction to determine a selected area;
    相应地,所述选取子模块是设置为:从处于所述选定区域内的第二物体中选取第二距离与所述第一距离相同的目标物体。Correspondingly, the selecting sub-module is configured to select a target object whose second distance is the same as the first distance from the second objects in the selected area.
  4. 根据权利要求2或3所述的装置,所述聚焦子模块还设置为:将所述预览图像中所述第一物体和所述目标物体以外的其他物体进行非聚焦处理。 The apparatus according to claim 2 or 3, wherein the focusing sub-module is further configured to perform non-focus processing on the first object and the object other than the target object in the preview image.
  5. 根据权利要求1所述的装置,其中,所述采集模块是设置为:The apparatus of claim 1 wherein said acquisition module is configured to:
    利用超声波传感器以根据所述摄像镜头的取景范围通过频率为40千赫兹KHz的超声波采集所述物体信息对应的坐标信息;Acquiring, by using an ultrasonic sensor, coordinate information corresponding to the object information by using ultrasonic waves having a frequency of 40 kHz KHz according to a viewing range of the imaging lens;
    或者,利用红外线传感器以在所述摄像镜头的取景范围内通过同频率而不同发射角度的多条红外线采集所述物体信息对应的坐标信息。Alternatively, the infrared sensor is used to collect coordinate information corresponding to the object information by using a plurality of infrared rays having different emission angles at the same frequency within the framing range of the imaging lens.
  6. 一种聚焦成像的方法,所述方法包括:A method of focused imaging, the method comprising:
    接收第一指令以采集图像信息并生成预览图像;其中,所述采集图像信息包括:通过摄像镜头采集物体信息以及通过传感器采集所述物体信息对应的坐标信息;Receiving a first instruction to acquire image information and generate a preview image; wherein the acquiring the image information comprises: collecting object information through the camera lens and collecting coordinate information corresponding to the object information by using a sensor;
    接收第二指令以选取所述预览图像中的第一物体信息;Receiving a second instruction to select first object information in the preview image;
    根据所述选取的第一物体信息和所述第一物体的坐标信息对所述预览图像进行聚焦处理。And performing focus processing on the preview image according to the selected first object information and coordinate information of the first object.
  7. 根据权利要求6所述的方法,其中,所述根据所述选取的第一物体信息和所述第一物体的坐标信息对所述预览图像进行聚焦处理包括:The method according to claim 6, wherein said performing focus processing on said preview image according to said selected first object information and coordinate information of said first object comprises:
    根据所述第一物体信息对应的坐标信息确定所述第一物体与所述摄像镜头之间的第一距离;Determining, according to coordinate information corresponding to the first object information, a first distance between the first object and the imaging lens;
    根据所述图像信息中除第一物体以外的第二物体的坐标信息确定所述第二物体与所述摄像镜头之间的第二距离;Determining, according to coordinate information of the second object other than the first object in the image information, a second distance between the second object and the imaging lens;
    从所述第二物体中选取第二距离与所述第一距离相同的目标物体;Selecting, from the second object, a target object whose second distance is the same as the first distance;
    将所述预览图像中所述第一物体和所述目标物体进行聚焦处理,得到聚焦后的图像。The first object and the target object in the preview image are subjected to focus processing to obtain a focused image.
  8. 根据权利要求7所述的方法,其中,The method of claim 7 wherein
    所述方法还包括:接收第三指令以确定选定区域;The method also includes receiving a third instruction to determine a selected area;
    相应地,从所述第二物体中选取第二距离与所述第一距离相同的目标物体包括:Correspondingly, selecting a target object whose second distance is the same as the first distance from the second object comprises:
    从处于所述选定区域内的第二物体中选取第二距离与所述第一距离相同的目标物体。 A target object having a second distance equal to the first distance is selected from the second objects in the selected area.
  9. 根据权利要求7或8所述的方法,所述方法还包括:The method of claim 7 or 8, the method further comprising:
    将所述预览图像中所述第一物体和所述目标物体以外的其他物体进行非聚焦处理。The first object and the object other than the target object in the preview image are subjected to a non-focusing process.
  10. 根据权利要求6所述的方法,其中,所述通过传感器采集所述物体信息对应的坐标信息包括:The method according to claim 6, wherein the collecting coordinate information corresponding to the object information by using the sensor comprises:
    超声波传感器根据所述摄像镜头的取景范围通过频率为40千赫兹KHz的超声波采集所述物体信息对应的坐标信息;The ultrasonic sensor collects coordinate information corresponding to the object information by using ultrasonic waves having a frequency of 40 kHz KHz according to the framing range of the imaging lens;
    或者,红外线传感器在所述摄像镜头的取景范围内通过同频率而不同发射角度的多条红外线采集所述物体信息对应的坐标信息。Alternatively, the infrared sensor collects coordinate information corresponding to the object information by using a plurality of infrared rays of different emission angles at the same frequency within the framing range of the imaging lens.
  11. 一种终端,所述终端包括:摄像镜头、传感器、存储器、显示器和处理器;A terminal comprising: an imaging lens, a sensor, a memory, a display, and a processor;
    所述处理器设置为:接收第二指令以选取根据接收的第一指令采集图像信息并生成的由所述显示器显示的预览图像中的第一物体信息;其中,所述图像信息包括由所述摄像镜头采集的物体信息和由所述传感器采集的所述物体信息对应的坐标信息,其中所述图像信息存储于所述存储器;The processor is configured to: receive a second instruction to select first object information in a preview image displayed by the display and generate image information according to the received first instruction; wherein the image information includes The object information collected by the camera lens and the coordinate information corresponding to the object information collected by the sensor, wherein the image information is stored in the memory;
    以及,根据所述选取的第一物体信息和所述第一物体的坐标信息对所述预览图像进行聚焦处理。 And, the preview image is subjected to focusing processing according to the selected first object information and coordinate information of the first object.
PCT/CN2016/086903 2015-12-24 2016-06-23 Focusing imaging device, method, and terminal WO2016198014A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510990082.3A CN106921825A (en) 2015-12-24 2015-12-24 A kind of method of focal imaging, device and terminal
CN201510990082.3 2015-12-24

Publications (1)

Publication Number Publication Date
WO2016198014A1 true WO2016198014A1 (en) 2016-12-15

Family

ID=57503004

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086903 WO2016198014A1 (en) 2015-12-24 2016-06-23 Focusing imaging device, method, and terminal

Country Status (2)

Country Link
CN (1) CN106921825A (en)
WO (1) WO2016198014A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113838118A (en) * 2021-09-08 2021-12-24 杭州逗酷软件科技有限公司 Distance measuring method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1763225A2 (en) * 2005-09-13 2007-03-14 Canon Kabushiki Kaisha Lens apparatus
CN104052932A (en) * 2014-07-03 2014-09-17 深圳市世尊科技有限公司 Rapidly-focusing mobile phone camera shooting module
CN105100605A (en) * 2015-06-18 2015-11-25 惠州Tcl移动通信有限公司 Mobile terminal and quick focusing method for photographing with the same
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1763225A2 (en) * 2005-09-13 2007-03-14 Canon Kabushiki Kaisha Lens apparatus
CN104052932A (en) * 2014-07-03 2014-09-17 深圳市世尊科技有限公司 Rapidly-focusing mobile phone camera shooting module
CN105100605A (en) * 2015-06-18 2015-11-25 惠州Tcl移动通信有限公司 Mobile terminal and quick focusing method for photographing with the same
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113838118A (en) * 2021-09-08 2021-12-24 杭州逗酷软件科技有限公司 Distance measuring method and device and electronic equipment

Also Published As

Publication number Publication date
CN106921825A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
US9843787B2 (en) Generation and use of a 3D radon image
JP5134694B2 (en) Image processing apparatus and image processing method
JP5938281B2 (en) Imaging apparatus, control method therefor, and program
JP2000089092A (en) Document image pickup technique by digital camera
Martel et al. Real-time depth from focus on a programmable focal plane processor
JP6152772B2 (en) Imaging apparatus, semiconductor integrated circuit, and imaging method
CN105657253B (en) A kind of focusing method and electronic equipment
JP2017090447A (en) Three-dimensional contour information detecting system, and detecting method
JP6149717B2 (en) Imaging apparatus and imaging method
US10880536B2 (en) Three-dimensional image capturing device and method
JP6867645B2 (en) Image processing equipment, methods, and programs
WO2016198014A1 (en) Focusing imaging device, method, and terminal
AU2016321728B2 (en) An apparatus and a method for encoding an image captured by an optical acquisition system
WO2016197444A1 (en) Method and terminal for achieving shooting
WO2016202111A1 (en) Audio output method and apparatus based on photographing
CN106101542B (en) A kind of image processing method and terminal
Jawad et al. Measuring object dimensions and its distances based on image processing technique by analysis the image using sony camera
US9232132B1 (en) Light field image processing
JP2007240441A (en) Photographing position specifying system, device, and method
KR20180053718A (en) Apparatus and method for generating data representing a pixel beam
JP2022129747A (en) Electronic apparatus and control method of the same
US20170351104A1 (en) Apparatus and method for optical imaging
JP2011182341A (en) Imaging device and method of controlling imaging device
CN113395511B (en) Resolution testing method of fisheye lens, system and platform thereof, and electronic device
CN117528209A (en) Image pickup module, electronic device, focusing method, focusing device and readable storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1