WO2017133075A1 - Method and apparatus for determining phase difference - Google Patents

Method and apparatus for determining phase difference Download PDF

Info

Publication number
WO2017133075A1
WO2017133075A1 PCT/CN2016/078979 CN2016078979W WO2017133075A1 WO 2017133075 A1 WO2017133075 A1 WO 2017133075A1 CN 2016078979 W CN2016078979 W CN 2016078979W WO 2017133075 A1 WO2017133075 A1 WO 2017133075A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
pixel
camera
intensity distribution
light intensity
Prior art date
Application number
PCT/CN2016/078979
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 WO2017133075A1 publication Critical patent/WO2017133075A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/70SSIS architectures; Circuits associated therewith
    • H04N25/703SSIS architectures incorporating pixels for producing signals other than image signals
    • H04N25/704Pixels specially adapted for focusing, e.g. phase difference pixel sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • H04N23/672Focus control based on electronic image sensor signals based on the phase difference signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/683Vibration or motion blur correction performed by a processor, e.g. controlling the readout of an image memory
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation

Definitions

  • the present application relates to the field of imaging, for example, to a method and apparatus for determining a phase difference.
  • phase information of the image is obtained by sacrificing some pixels in the image sensor, or the image phase can be obtained by additionally adding a camera to form a dual camera.
  • Information that is, phase detection (PD), to assist in the focus of the camera.
  • PD phase detection
  • the embodiment of the invention provides a method and a device for determining a phase difference, so as to solve at least the problem that the camera needs to sacrifice the original pixels of the image sensor or need to additionally increase the camera when acquiring the phase information of the image in the related art.
  • An embodiment of the present invention provides a method for determining a phase difference, comprising: acquiring a first image captured by a camera at a first location, and acquiring a second image captured by the camera at a second location; The first pixel information and the second pixel information of the second image determine a phase difference between the first image and the second image.
  • the acquiring the first image captured by the camera at the first location, and acquiring the second image captured by the camera at the second location comprises: acquiring the camera at the first position after the camera is activated a first image; driving the camera to move a specified distance in a predetermined direction to reach a second a position, wherein the specified distance is an integer multiple of a distance occupied by the unit pixel in the preset direction; after driving the camera to move a specified distance in a preset direction to reach the second position, acquiring the camera in the The second image taken at the second position.
  • the preset direction is a horizontal direction or a vertical direction.
  • determining, according to the first pixel information of the first image and the second pixel information of the second image, determining a phase difference between the first image and the second image comprises: separately calculating a first pixel light intensity distribution curve of the first image and a second pixel light intensity distribution curve of the second image, wherein a position of the first pixel in the first image and the second pixel are Corresponding to positions in the second image;
  • a peak difference between the first pixel light intensity distribution curve and the second pixel light intensity distribution curve is determined as the phase difference.
  • determining the peak difference between the first pixel light intensity distribution curve and the second pixel light intensity distribution curve as the phase difference comprises: calculating a peak pixel of the first pixel light intensity distribution curve And a position difference of a peak pixel of the second pixel light intensity distribution curve; and multiplying the position difference by a size of the unit pixel in a vertical direction to obtain the phase difference.
  • the first pixel light intensity distribution curve includes: a pixel light intensity distribution curve of one or more columns of pixels along a first predetermined starting position of the first image; and the second pixel light intensity distribution The curve includes a pixel intensity distribution curve of one or more columns of pixels along a second predetermined starting position of the second image.
  • the embodiment of the present invention further provides a phase difference determining apparatus, including: an acquiring module, configured to acquire a first image captured by the camera at the first position, and acquire a second image captured by the camera at the second position; And a module configured to determine a phase difference between the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image.
  • a phase difference determining apparatus including: an acquiring module, configured to acquire a first image captured by the camera at the first position, and acquire a second image captured by the camera at the second position; And a module configured to determine a phase difference between the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image.
  • the acquiring module includes: a first acquiring unit, configured to acquire a first image captured by the camera at the first position after the camera is started; and a driving unit configured to drive the camera along the preset Moving the specified distance to the second position, wherein the specified distance is an integer multiple of the distance occupied by the unit pixel in the preset direction; and the second obtaining unit is configured to be driven by the driving unit After the camera moves a predetermined distance in the preset direction to reach the second position, the second image captured by the camera at the second position is acquired.
  • the preset direction is a horizontal direction or a vertical direction.
  • the determining module includes: a calculating unit configured to separately calculate a first pixel light intensity distribution curve of the first image and a second pixel light intensity distribution curve of the second image, wherein the a position of a pixel in the first image and a position of the second pixel in the second image; a determining unit configured to set the first pixel light intensity distribution curve and the second pixel light The peak difference of the strong distribution curve is determined as the phase difference.
  • the determining unit includes: a calculating subunit, configured to calculate a position difference between a peak pixel of the first pixel light intensity distribution curve and a peak pixel of the second pixel light intensity distribution curve; determining a subunit, It is set to multiply the position difference and the size of the unit pixel in the vertical direction to obtain the phase difference.
  • the first pixel light intensity distribution curve includes: a pixel light intensity distribution curve of one or more columns of pixels along a first predetermined starting position of the first image; and the second pixel light intensity distribution The curve includes a pixel intensity distribution curve of one or more columns of pixels along a second predetermined starting position of the second image.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions for performing the above method.
  • Embodiments of the present invention also provide an apparatus including one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory when executed by one or more processors , perform the above method.
  • the first image captured by the camera at the first position is acquired, and the second image captured by the camera at the second position is acquired; according to the first pixel information of the first image and the The second pixel information of the second image determines a phase difference between the first image and the second image, acquires a pair of images at different positions by one camera, and then obtains phase difference information by comparing the two images without It is necessary to sacrifice the pixels of the camera's original image sensor, and does not need to use other additional cameras.
  • the camera needs to sacrifice image sensing when acquiring phase information.
  • the original pixel of the device or the need to add additional camera problems the camera can achieve phase focusing, but also to ensure the image quality, without the need to add additional camera effects.
  • FIG. 1 is a flow chart of a method of determining a phase difference according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the structure of a phase difference determining apparatus according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing an optional structure of a phase difference determining apparatus according to an embodiment of the present invention.
  • FIG. 4 is a block diagram 2 of an optional structure of a phase difference determining apparatus according to an embodiment of the present invention.
  • FIG. 5 is a block diagram 3 of an optional structure of a phase difference determining apparatus according to an embodiment of the present invention.
  • FIG. 6 is a block diagram showing the structure of an apparatus in accordance with an alternative embodiment of the present invention.
  • FIG. 7 is a schematic diagram of camera movement according to an alternative embodiment of the present invention.
  • FIG. 8 is a schematic diagram of pixel distribution of an image taken by a avatar head according to an alternative embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of hardware of a device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for determining a phase difference according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 acquiring a first image captured by the camera at the first position, and acquiring a second image captured by the camera at the second position;
  • the first image and the second image are respectively captured at different positions.
  • the first image and the second image may be separately labeled and saved in pairs.
  • Step S104 determining a phase difference between the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image.
  • the technical solution of the embodiment is: acquiring a first image captured by the camera at the first position, and acquiring a second image captured by the camera at the second position; according to the first pixel information of the first image and the second pixel of the second image The information determines the phase difference between the first image and the second image, obtains a pair of images at different positions by one camera, and then compares the two image phase difference information without sacrificing the pixels of the original image sensor of the camera.
  • acquiring the first image captured by the camera at the first location, and acquiring the second image captured by the camera at the second location includes:
  • the driving camera moves the specified distance in the preset direction to reach the second position, wherein the specified distance is an integer multiple of the distance occupied by the unit pixel in the preset direction;
  • the camera may be driven by a driving motor connected to the camera, wherein the driving direction, that is, the preset direction, may be a horizontal direction or a vertical direction.
  • the horizontal direction or the vertical direction The x-direction and the y-direction respectively drive the motor to drive the camera to move
  • the distance length, that is, the specified distance of movement is an integral multiple of the distance occupied by the unit pixel in the driving direction. If the camera moves in the x direction and the distance of the unit pixel in the x direction is A, the position of the camera in the x direction after the movement is: the first position + NA, where N is an integer greater than 0.
  • determining, according to the first pixel information of the first image and the second pixel information of the second image, a phase difference between the first image and the second image includes:
  • the first pixel light intensity distribution curve includes: a pixel light intensity distribution curve of one or more columns of pixels along a first predetermined starting position of the first image; and the second pixel light intensity distribution curve includes: along the second A pixel intensity distribution curve of one or more columns of pixels starting from a second predetermined starting position of the image.
  • the driving horizontal motor moves the second image by moving the distance of two pixels in the +x direction, calculating the first column of pixel light intensity values of the first image along the y direction and the third column of the second image along the y direction a pixel light intensity value
  • the first column of pixels of the first image and the third column of pixels of the second image are in the first image
  • Corresponding to the position in the second image may be the first column of pixels on the left side of the image, and the phase difference information may be calculated by comparing the two, and the second image of the first image may be correspondingly calculated in sequence.
  • the phase difference information of the third, fourth, and sixth columns of the third, fourth, and second images can finally obtain the phase difference information of the entire image of the two images.
  • determining the peak difference between the first pixel intensity distribution curve and the second pixel intensity distribution curve as the phase difference can be implemented by the following steps, including:
  • the storage medium includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods of various embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.
  • a phase difference determining device is also provided.
  • the device may be disposed in the camera or may be coupled to other camera devices that can take pictures.
  • the device can implement the above embodiments and optional embodiments, and the descriptions thereof have been omitted.
  • the term "module" may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 2 is a structural block diagram of a phase difference determining apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes:
  • the acquiring module 20 is configured to acquire a first image captured by the camera at the first position, and acquire a second image captured by the camera at the second position;
  • the determining module 22 is configured to determine a phase difference between the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image.
  • FIG. 3 is a block diagram of an optional structure of a phase difference determining apparatus according to an embodiment of the present invention.
  • the acquiring module 20 may further include:
  • the first obtaining unit 30 is configured to acquire a first image captured by the camera at the first position after the camera is started;
  • the driving unit 32 is configured to drive the camera to move the specified distance in the preset direction to reach the second position, wherein the specified distance is an integer multiple of the distance occupied by the unit pixel in the preset direction;
  • the second obtaining unit 34 is configured to obtain a second image captured by the camera at the second position after the driving unit drives the camera to move the specified distance in the preset direction to reach the second position.
  • the determining module may further include:
  • the calculating unit 40 is configured to respectively calculate a first pixel light intensity distribution curve of the first image and a second pixel light intensity distribution curve of the second image, wherein the position of the first pixel in the first image and the second pixel are in the The position in the two images corresponds;
  • the determining unit 42 is configured to determine a peak difference between the first pixel light intensity distribution curve and the second pixel light intensity distribution curve as a phase difference.
  • the first pixel intensity distribution curve includes: a pixel intensity distribution curve of one or more columns of pixels along a first predetermined starting position of the first image;
  • the second pixel light intensity distribution curve includes a pixel light intensity distribution curve of one or more columns of pixels along a second predetermined starting position of the second image.
  • FIG. 5 is a block diagram 3 of an optional structure of a phase difference determining apparatus according to an embodiment of the present invention. As shown in FIG. 5, the determining unit 42 may further include:
  • the calculating subunit 50 is configured to calculate a position difference between a peak pixel of the first pixel light intensity distribution curve and a peak pixel of the second pixel light intensity distribution curve;
  • the determining subunit 52 is arranged to multiply the position difference by the size of the unit pixel in the vertical direction to obtain a phase difference.
  • This alternative embodiment uses a single camera to acquire photo phase information on a conventional image sensor sensor.
  • This alternative embodiment designs a camera that allows all pixels of the image sensor to be imaged normally and also to obtain image phase information.
  • FIG. 6 is a structural block diagram of an apparatus according to an alternative embodiment of the present application. As shown in FIG. 6, the module of this embodiment includes:
  • the image acquisition module 60 is configured to collect a photo of the output of the camera for processing by the back end;
  • Horizontal drive motor 62 configured to move the camera in a horizontal direction so that the camera acquires a photo with phase information
  • the photo storage module 64 is configured to store the photographed camera in a horizontal direction to obtain the phase difference information for the back end;
  • Phase difference calculation module 66 configured to process two phase information maps in the storage module to obtain phases Position information.
  • two photos with a certain parallax (the distance that the camera moves two pixels horizontally) are sequentially collected, and then the light intensity distribution curves of the corresponding pixels in the two photos are respectively calculated, and the corresponding pixel lights in the two images are compared.
  • the phase difference information of the strong distribution curve can calculate the phase difference information.
  • an image sensor in an ordinary camera is used. All pixel points of the image sensor can be used for normal imaging, and the objective resolution and noise test are superior to the image sensor with special pixels. The more pairs of pixels that acquire phase difference information, the more accurate the final calculated phase difference information.
  • only one camera can be used to make the effect of the dual camera, so that the cost is greatly reduced, and the difficulty of the post-installation is also greatly reduced.
  • the phase difference determining method of the present embodiment can acquire phase difference information of an image without sacrificing the original pixels of the image sensor and without adding an additional camera.
  • the specific implementation method includes: FIG. 7 is a schematic diagram of camera movement according to an optional embodiment of the present invention. As shown in FIG. 7 , in this embodiment, by acquiring the phase information of the captured scene by moving the camera lens barrel in the x direction, the calculation can be performed. Image phase difference information.
  • phase2 second image
  • FIG. 8 is a schematic diagram of a pixel distribution of a camera-captured image according to an alternative embodiment of the present application.
  • the image in FIG. 8 includes 0-3151 rows, 0-4255 columns, if photographed.
  • the photo pixel is 13M, taking column 0 (columns), that is, the channel is the image of BGBG...BG column
  • the light intensity distribution curve of the prime because the light intensity distribution of the pixels on the same column exhibits a Gaussian distribution, the light intensity distribution curve on the 0th column is a curve similar in shape to a sinusoid.
  • modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are respectively located in multiple processes. In the device.
  • Embodiments of the present invention also provide a computer readable storage medium.
  • the computer readable storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but is not limited to, any one of the following: a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
  • the processor performs, according to the stored program code in the computer readable storage medium, the first image captured by the camera at the first location, and the second image captured by the camera at the second location;
  • the processor determines, according to the stored program code in the computer readable storage medium, the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image.
  • the phase difference between the images is not limited to the stored program code in the computer readable storage medium.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed over a plurality of Optionally, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be The steps shown or described are performed in a different order than that herein, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
  • FIG. 9 is a schematic structural diagram of a hardware of a device according to an embodiment of the present invention. As shown in FIG. 9, the device includes:
  • One or more processors 710, one processor 710 is taken as an example in FIG. 9;
  • the device may also include an input device 730 and an output device 740.
  • the processor 710, the memory 720, the input device 730, and the output device 740 in the device may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
  • the memory 720 is used as a computer readable storage medium for storing software programs, computer executable programs, and modules, such as the program instructions/modules corresponding to the method for determining the phase difference in the embodiment of the present invention (for example, as shown in FIG. 2)
  • the processor 710 executes various functional applications and data processing of the server by executing software programs, instructions, and modules stored in the memory 720, that is, a method of determining the phase difference of the above-described method embodiments.
  • the memory 720 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like.
  • memory 720 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 720 can optionally include memory remotely located relative to processor 710, which can be connected to the terminal device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Input device 730 can be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal.
  • the output device 740 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 720, and when executed by the one or more processors 710, the method of determining the phase difference of the above-described embodiments and the optional real-time mode is performed.
  • the method for determining the phase difference solves the problem that the camera needs to sacrifice the original pixel of the image sensor or needs to additionally increase the camera when acquiring the phase information in the related art, thereby achieving the camera can achieve phase focusing and guarantee Image quality, no additional camera effect.

Abstract

A method and apparatus for determining a phase difference. The method comprises: acquiring a first image shot by a camera at a first position, and acquiring a second image shot by the camera at a second position (S102); and determining a phase difference between the first image and the second image according to first pixel information about the first image and second pixel information about the second image (S104). The problems in the relevant technology that it is necessary to sacrifice an original pixel of an image sensor or an additional camera needs to be added when a camera acquires phase information are solved, so that the camera can not only complete phase focus, but also ensure the imaging quality, without an additional camera.

Description

相位差的确定方法及装置Method and device for determining phase difference 技术领域Technical field
本申请涉及摄像领域,例如涉及一种相位差的确定方法及装置。The present application relates to the field of imaging, for example, to a method and apparatus for determining a phase difference.
背景技术Background technique
随着微电子技术的发展,摄像头像素越来越高,成像质量也有了大幅度的提升。但是,人们又希望可以获取图像的相位信息,其中可以通过牺牲图像传感器(sensor)中的一些像素的方式获取图像的相位信息,或者还可以通过额外增加一颗摄像头构成双摄像头的方式获取图像相位信息,即进行相位探测(Phase Detection,PD),以辅助完成摄像头的对焦。前者造成的有效像素的减少从而影响了成像质量,这与人们对成像质量要求越来越高相矛盾;后者则是额外增加一颗新的摄像头造成成本的大幅度增加并且加大了后期装调的难度。With the development of microelectronics technology, the camera pixels are getting higher and higher, and the imaging quality has also been greatly improved. However, it is desirable to obtain the phase information of the image, wherein the phase information of the image can be obtained by sacrificing some pixels in the image sensor, or the image phase can be obtained by additionally adding a camera to form a dual camera. Information, that is, phase detection (PD), to assist in the focus of the camera. The reduction of effective pixels caused by the former affects the image quality, which is in contradiction with the increasing demand for image quality; the latter is an additional increase in the cost of a new camera and increased post-loading. The difficulty of tuning.
针对相关技术中,在获取图像的相位信息时,存在牺牲图像传感器的原有像素或者需要额外增加摄像头的问题,目前尚未发现有效的解决方法。In the related art, when the phase information of the image is acquired, there is a problem that the original pixel of the image sensor is sacrificed or an additional camera is required, and an effective solution has not been found yet.
发明内容Summary of the invention
本发明实施例提供了一种相位差的确定方法及装置,以至少解决相关技术中摄像头在获取图像的相位信息时存在需要牺牲图像传感器的原有像素或者需要额外增加摄像头的问题。The embodiment of the invention provides a method and a device for determining a phase difference, so as to solve at least the problem that the camera needs to sacrifice the original pixels of the image sensor or need to additionally increase the camera when acquiring the phase information of the image in the related art.
本发明实施例提供了一种相位差的确定方法,包括:获取摄像头在第一位置拍摄的第一图像,以及获取所述摄像头在第二位置拍摄的第二图像;根据所述第一图像的第一像素信息和所述第二图像的第二像素信息确定所述第一图像和所述第二图像之间的相位差。An embodiment of the present invention provides a method for determining a phase difference, comprising: acquiring a first image captured by a camera at a first location, and acquiring a second image captured by the camera at a second location; The first pixel information and the second pixel information of the second image determine a phase difference between the first image and the second image.
可选地,所述获取摄像头在第一位置拍摄的第一图像,以及获取所述摄像头在第二位置拍摄的第二图像包括:在所述摄像头启动后,获取所述摄像头在第一位置拍摄的第一图像;驱动所述摄像头沿预设方向移动指定距离到达第二 位置,其中,所述指定距离为单位像素在所述预设方向上所占距离的整数倍;在驱动所述摄像头沿预设方向移动指定距离到达第二位置后,获取所述摄像头在所述第二位置拍摄的第二图像。Optionally, the acquiring the first image captured by the camera at the first location, and acquiring the second image captured by the camera at the second location comprises: acquiring the camera at the first position after the camera is activated a first image; driving the camera to move a specified distance in a predetermined direction to reach a second a position, wherein the specified distance is an integer multiple of a distance occupied by the unit pixel in the preset direction; after driving the camera to move a specified distance in a preset direction to reach the second position, acquiring the camera in the The second image taken at the second position.
可选地,所述预设方向为水平方向或垂直方向。Optionally, the preset direction is a horizontal direction or a vertical direction.
可选地,所述根据所述第一图像的第一像素信息和所述第二图像的第二像素信息确定所述第一图像和所述第二图像之间的相位差包括:分别计算所述第一图像的第一像素光强分布曲线和所述第二图像的第二像素光强分布曲线,其中,所述第一像素在所述第一图像中的位置和所述第二像素在所述第二图像中的位置对应;Optionally, determining, according to the first pixel information of the first image and the second pixel information of the second image, determining a phase difference between the first image and the second image comprises: separately calculating a first pixel light intensity distribution curve of the first image and a second pixel light intensity distribution curve of the second image, wherein a position of the first pixel in the first image and the second pixel are Corresponding to positions in the second image;
将所述第一像素光强分布曲线和所述第二像素光强分布曲线的峰值差确定为所述相位差。A peak difference between the first pixel light intensity distribution curve and the second pixel light intensity distribution curve is determined as the phase difference.
可选地,所述将所述第一像素光强分布曲线和所述第二像素光强分布曲线的峰值差确定为所述相位差包括:计算所述第一像素光强分布曲线的峰值像素和所述第二像素光强分布曲线的峰值像素的位置差;将所述位置差和单位像素在垂直方向的尺寸相乘得到所述相位差。Optionally, determining the peak difference between the first pixel light intensity distribution curve and the second pixel light intensity distribution curve as the phase difference comprises: calculating a peak pixel of the first pixel light intensity distribution curve And a position difference of a peak pixel of the second pixel light intensity distribution curve; and multiplying the position difference by a size of the unit pixel in a vertical direction to obtain the phase difference.
可选地,所述第一像素光强分布曲线包括:沿所述第一图像的第一预定起始位置开始的一列或多列像素的像素光强分布曲线;所述第二像素光强分布曲线包括:沿所述第二图像的第二预定起始位置开始的一列或多列像素的像素光强分布曲线。Optionally, the first pixel light intensity distribution curve includes: a pixel light intensity distribution curve of one or more columns of pixels along a first predetermined starting position of the first image; and the second pixel light intensity distribution The curve includes a pixel intensity distribution curve of one or more columns of pixels along a second predetermined starting position of the second image.
本发明实施例还提供了一种相位差的确定装置,包括:获取模块,设置为获取摄像头在第一位置拍摄的第一图像,以及获取所述摄像头在第二位置拍摄的第二图像;确定模块,设置为根据所述第一图像的第一像素信息和所述第二图像的第二像素信息确定所述第一图像和所述第二图像之间的相位差。The embodiment of the present invention further provides a phase difference determining apparatus, including: an acquiring module, configured to acquire a first image captured by the camera at the first position, and acquire a second image captured by the camera at the second position; And a module configured to determine a phase difference between the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image.
可选地,所述获取模块包括:第一获取单元,设置为在所述摄像头启动后,获取所述摄像头在第一位置拍摄的第一图像;驱动单元,设置为驱动所述摄像头沿预设方向移动指定距离到达第二位置,其中,所述指定距离为单位像素在所述预设方向上所占距离的整数倍;第二获取单元,设置为所述驱动单元驱动 所述摄像头沿预设方向移动指定距离到达第二位置后,获取所述摄像头在所述第二位置拍摄的第二图像。Optionally, the acquiring module includes: a first acquiring unit, configured to acquire a first image captured by the camera at the first position after the camera is started; and a driving unit configured to drive the camera along the preset Moving the specified distance to the second position, wherein the specified distance is an integer multiple of the distance occupied by the unit pixel in the preset direction; and the second obtaining unit is configured to be driven by the driving unit After the camera moves a predetermined distance in the preset direction to reach the second position, the second image captured by the camera at the second position is acquired.
可选地,所述预设方向为水平方向或垂直方向。Optionally, the preset direction is a horizontal direction or a vertical direction.
可选地,所述确定模块包括:计算单元,设置为分别计算所述第一图像的第一像素光强分布曲线和所述第二图像的第二像素光强分布曲线,其中,所述第一像素在所述第一图像中的位置和所述第二像素在所述第二图像中的位置对应;确定单元,设置为将所述第一像素光强分布曲线和所述第二像素光强分布曲线的峰值差确定为所述相位差。Optionally, the determining module includes: a calculating unit configured to separately calculate a first pixel light intensity distribution curve of the first image and a second pixel light intensity distribution curve of the second image, wherein the a position of a pixel in the first image and a position of the second pixel in the second image; a determining unit configured to set the first pixel light intensity distribution curve and the second pixel light The peak difference of the strong distribution curve is determined as the phase difference.
可选地,所述确定单元包括:计算子单元,设置为计算所述第一像素光强分布曲线的峰值像素和所述第二像素光强分布曲线的峰值像素的位置差;确定子单元,设置为将所述位置差和单位像素在垂直方向的尺寸相乘得到所述相位差。Optionally, the determining unit includes: a calculating subunit, configured to calculate a position difference between a peak pixel of the first pixel light intensity distribution curve and a peak pixel of the second pixel light intensity distribution curve; determining a subunit, It is set to multiply the position difference and the size of the unit pixel in the vertical direction to obtain the phase difference.
可选地,所述第一像素光强分布曲线包括:沿所述第一图像的第一预定起始位置开始的一列或多列像素的像素光强分布曲线;所述第二像素光强分布曲线包括:沿所述第二图像的第二预定起始位置开始的一列或多列像素的像素光强分布曲线。Optionally, the first pixel light intensity distribution curve includes: a pixel light intensity distribution curve of one or more columns of pixels along a first predetermined starting position of the first image; and the second pixel light intensity distribution The curve includes a pixel intensity distribution curve of one or more columns of pixels along a second predetermined starting position of the second image.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions for performing the above method.
本发明实施例还提供一种设备,该设备包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述方法。Embodiments of the present invention also provide an apparatus including one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory when executed by one or more processors , perform the above method.
本发明实施例的技术方案,通过获取摄像头在第一位置拍摄的第一图像,以及获取所述摄像头在第二位置拍摄的第二图像;根据所述第一图像的第一像素信息和所述第二图像的第二像素信息确定所述第一图像和所述第二图像之间的相位差,通过一个摄像头在不同的位置获取一对图像,然后对比两张图像得到相位差信息,而不需要牺牲摄像头原有图像传感器的像素,也不需要借助其他额外的摄像头,解决相关技术中摄像头在获取相位信息时需要牺牲图像传感 器的原有像素或者需要额外增加摄像头的问题,达到了摄像头既能完成相位对焦,又能保证成像质量,还不用额外增加摄像头的效果。According to the technical solution of the embodiment of the present invention, the first image captured by the camera at the first position is acquired, and the second image captured by the camera at the second position is acquired; according to the first pixel information of the first image and the The second pixel information of the second image determines a phase difference between the first image and the second image, acquires a pair of images at different positions by one camera, and then obtains phase difference information by comparing the two images without It is necessary to sacrifice the pixels of the camera's original image sensor, and does not need to use other additional cameras. In the related art, the camera needs to sacrifice image sensing when acquiring phase information. The original pixel of the device or the need to add additional camera problems, the camera can achieve phase focusing, but also to ensure the image quality, without the need to add additional camera effects.
附图说明DRAWINGS
此处所说明的附图用来提供对本申请理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide an understanding of the invention, and are intended to be a part of this application. In the drawing:
图1是根据本发明实施例的相位差的确定方法的流程图;1 is a flow chart of a method of determining a phase difference according to an embodiment of the present invention;
图2是根据本发明实施例的相位差的确定装置的结构框图;2 is a block diagram showing the structure of a phase difference determining apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的相位差的确定装置的可选结构框图一;3 is a block diagram showing an optional structure of a phase difference determining apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的相位差的确定装置的可选结构框图二;4 is a block diagram 2 of an optional structure of a phase difference determining apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的相位差的确定装置的可选结构框图三;5 is a block diagram 3 of an optional structure of a phase difference determining apparatus according to an embodiment of the present invention;
图6是根据本发明可选实施例的装置结构框图;Figure 6 is a block diagram showing the structure of an apparatus in accordance with an alternative embodiment of the present invention;
图7是根据本发明可选实施例的摄像头移动示意图;7 is a schematic diagram of camera movement according to an alternative embodiment of the present invention;
图8是根据本发明可选实施例的头像头拍摄图像的像素分布示意图;FIG. 8 is a schematic diagram of pixel distribution of an image taken by a avatar head according to an alternative embodiment of the present invention; FIG.
图9是根据本发明实施例提供的一种设备的硬件结构示意图。FIG. 9 is a schematic structural diagram of hardware of a device according to an embodiment of the present invention.
实施方式Implementation
相关技术中能够进行PD的摄像头有两种,其一是通过在图像sensor原始像素的基础上增加特殊的像素,这些特殊的像素可以达到PD的效果,这些特殊的像素是成对出现,且两个像素(即一个像素对)分别只能对位于该像素左右两个区域的光强值进行探测并不能成像。其二是通过增加额外摄像头,该额外摄像头与原有的摄像头构成类似人眼(两只眼睛)的双摄像头,以达到PD的效果。There are two types of cameras capable of PD in the related art. One is to add special pixels based on the original pixels of the image sensor. These special pixels can achieve the effect of PD. These special pixels appear in pairs, and two Each pixel (ie, a pair of pixels) can only detect the intensity values of the two regions located in the left and right of the pixel and cannot image. The second is to add an additional camera, the additional camera and the original camera constitute a dual camera similar to the human eye (two eyes) to achieve the effect of PD.
下文中将参考附图并结合实施例来详细说明本发明实施例。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明实施例的说明书和权利要求书及上述附图中的术语 “第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the descriptions and claims of the embodiments of the present invention and the terms in the above drawings "First", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种相位差的确定方法,该方法可以应用在具备摄像功能的终端上,如手机、相机、摄像头等设备。图1是根据本发明实施例的相位差的确定方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a method for determining a phase difference is provided, and the method can be applied to a terminal having a camera function, such as a mobile phone, a camera, a camera, and the like. FIG. 1 is a flowchart of a method for determining a phase difference according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
步骤S102,获取摄像头在第一位置拍摄的第一图像,以及获取摄像头在第二位置拍摄的第二图像;Step S102, acquiring a first image captured by the camera at the first position, and acquiring a second image captured by the camera at the second position;
在本实施例中,摄像头在启动后,分别在不同的位置拍摄第一图像和第二图像,可选的,还可以将第一图像和第二图像分别标注后成对进行保存。In this embodiment, after the camera is activated, the first image and the second image are respectively captured at different positions. Alternatively, the first image and the second image may be separately labeled and saved in pairs.
步骤S104,根据第一图像的第一像素信息和第二图像的第二像素信息确定第一图像和第二图像之间的相位差。Step S104, determining a phase difference between the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image.
本实施例的技术方案,通过获取摄像头在第一位置拍摄的第一图像,以及获取摄像头在第二位置拍摄的第二图像;根据第一图像的第一像素信息和第二图像的第二像素信息确定第一图像和第二图像之间的相位差,通过一个摄像头在不同的位置获取一对图像,然后对比得到两张图像相位差信息,而不需要牺牲摄像头原有图像传感器的像素,也不需要借助其他的摄像头,解决相关技术中摄像头在获取相位信息时需要牺牲图像传感器的原有像素或者需要额外增加摄像头的问题,进而达到了摄像头既能完成相位对焦,又能保证成像质量,还不用额外增加摄像头的效果。The technical solution of the embodiment is: acquiring a first image captured by the camera at the first position, and acquiring a second image captured by the camera at the second position; according to the first pixel information of the first image and the second pixel of the second image The information determines the phase difference between the first image and the second image, obtains a pair of images at different positions by one camera, and then compares the two image phase difference information without sacrificing the pixels of the original image sensor of the camera. There is no need to use other cameras to solve the problem that the camera in the related art needs to sacrifice the original pixels of the image sensor or need to additionally increase the camera when acquiring the phase information, thereby achieving the camera not only achieving phase focusing but also ensuring image quality. No additional camera effects are required.
在根据本实施例的可选实施方式中,获取摄像头在第一位置拍摄的第一图像,以及获取摄像头在第二位置拍摄的第二图像包括:In an optional implementation manner of this embodiment, acquiring the first image captured by the camera at the first location, and acquiring the second image captured by the camera at the second location includes:
S11,在摄像头启动后,获取摄像头在第一位置拍摄的第一图像;S11, after the camera is started, acquiring a first image captured by the camera at the first position;
S12,驱动摄像头沿预设方向移动指定距离到达第二位置,其中,指定距离为单位像素在预设方向上所占距离的整数倍;S12. The driving camera moves the specified distance in the preset direction to reach the second position, wherein the specified distance is an integer multiple of the distance occupied by the unit pixel in the preset direction;
可选的,可以使用与摄像头连接的驱动马达驱动该摄像头,其中,驱动的方向,即预设方向,可以为水平方向或垂直方向,在本实施例中,为了方便描述,水平方向或垂直方向分别是x方向和y方向,驱动马达驱动摄像头移动的 距离长度,即移动的指定距离,为单位像素在驱动方向上所占距离的整数倍。如摄像头在x方向移动,单位像素在x方向上的所占的距离大小为A,则移动后摄像头在x方向的位置为:第一位置+NA,其中,N为大于0的整数。Optionally, the camera may be driven by a driving motor connected to the camera, wherein the driving direction, that is, the preset direction, may be a horizontal direction or a vertical direction. In the embodiment, for the convenience of description, the horizontal direction or the vertical direction The x-direction and the y-direction respectively drive the motor to drive the camera to move The distance length, that is, the specified distance of movement, is an integral multiple of the distance occupied by the unit pixel in the driving direction. If the camera moves in the x direction and the distance of the unit pixel in the x direction is A, the position of the camera in the x direction after the movement is: the first position + NA, where N is an integer greater than 0.
S13,在驱动摄像头沿预设方向移动指定距离到达第二位置后,获取摄像头在第二位置拍摄的第二图像。S13: After the driving camera moves the specified distance in the preset direction to reach the second position, acquiring the second image captured by the camera in the second position.
在本实施例的可选实施方式中,根据第一图像的第一像素信息和第二图像的第二像素信息确定第一图像和第二图像之间的相位差包括:In an optional implementation manner of this embodiment, determining, according to the first pixel information of the first image and the second pixel information of the second image, a phase difference between the first image and the second image includes:
S21,分别计算第一图像的第一像素光强分布曲线和第二图像的第二像素光强分布曲线,其中,第一像素在第一图像中的位置和第二像素在第二图像中的位置对应;S21, respectively calculating a first pixel light intensity distribution curve of the first image and a second pixel light intensity distribution curve of the second image, wherein the position of the first pixel in the first image and the second pixel in the second image Position corresponding
S22,将第一像素光强分布曲线和第二像素光强分布曲线的峰值差确定为相位差。S22. Determine a peak difference between the first pixel light intensity distribution curve and the second pixel light intensity distribution curve as a phase difference.
可选的,第一像素光强分布曲线包括:沿第一图像的第一预定起始位置开始的一列或多列像素的像素光强分布曲线;第二像素光强分布曲线包括:沿第二图像的第二预定起始位置开始的一列或多列像素的像素光强分布曲线。Optionally, the first pixel light intensity distribution curve includes: a pixel light intensity distribution curve of one or more columns of pixels along a first predetermined starting position of the first image; and the second pixel light intensity distribution curve includes: along the second A pixel intensity distribution curve of one or more columns of pixels starting from a second predetermined starting position of the image.
可选的,在驱动水平马达沿+x方向移动两个像素大小的距离拍摄第二图像后,计算出第一图像沿y方向第一列像素光强度值和第二图像沿y方向第三列像素光强度值,由于第二图像是第一图像沿+x方向移动两个像素大小的距离后拍摄的,所以第一图像的第一列像素和第二图像的第三列像素在第一图像和第二图像中的位置是对应的,如,都可以是图像左侧的第一列像素,通过对比两者可计算出相位差的信息,还可以依次对应的计算第一图像的第二、三、四……列和第二图像的第四、五、六……列的相位差信息,最终可以得到两张图像整幅照片的相位差信息。Optionally, after the driving horizontal motor moves the second image by moving the distance of two pixels in the +x direction, calculating the first column of pixel light intensity values of the first image along the y direction and the third column of the second image along the y direction a pixel light intensity value, since the second image is captured after the first image is moved by a distance of two pixels in the +x direction, the first column of pixels of the first image and the third column of pixels of the second image are in the first image Corresponding to the position in the second image, for example, may be the first column of pixels on the left side of the image, and the phase difference information may be calculated by comparing the two, and the second image of the first image may be correspondingly calculated in sequence. The phase difference information of the third, fourth, and sixth columns of the third, fourth, and second images can finally obtain the phase difference information of the entire image of the two images.
可选的,将第一像素光强分布曲线和第二像素光强分布曲线的峰值差确定为相位差可通过以下步骤实现,包括:Optionally, determining the peak difference between the first pixel intensity distribution curve and the second pixel intensity distribution curve as the phase difference can be implemented by the following steps, including:
S31,计算第一像素光强分布曲线的峰值像素和第二像素光强分布曲线的峰值像素的位置差; S31. Calculate a position difference between a peak pixel of the first pixel light intensity distribution curve and a peak pixel of the second pixel light intensity distribution curve;
S32,将位置差和单位像素在垂直方向的尺寸相乘得到相位差。S32, multiplying the position difference and the size of the unit pixel in the vertical direction to obtain a phase difference.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到,上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现该软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,该存储介质包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the foregoing embodiment can implement the software product in a storage medium (such as ROM/RAM) by means of software plus a necessary general hardware platform. The storage medium includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods of various embodiments of the present application.
在本实施例中还提供了一种相位差的确定装置,该装置可以设置在摄像头中,也可以耦合连接在其他可以拍照的摄像装置中。该装置可实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置可以以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a phase difference determining device is also provided. The device may be disposed in the camera or may be coupled to other camera devices that can take pictures. The device can implement the above embodiments and optional embodiments, and the descriptions thereof have been omitted. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the devices described in the following embodiments may be implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的相位差的确定装置的结构框图,如图2所示,该装置包括:2 is a structural block diagram of a phase difference determining apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes:
获取模块20,设置为获取摄像头在第一位置拍摄的第一图像,以及获取摄像头在第二位置拍摄的第二图像;The acquiring module 20 is configured to acquire a first image captured by the camera at the first position, and acquire a second image captured by the camera at the second position;
确定模块22,设置为根据第一图像的第一像素信息和第二图像的第二像素信息确定第一图像和第二图像之间的相位差。The determining module 22 is configured to determine a phase difference between the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image.
图3是根据本发明实施例的相位差的确定装置的可选结构框图一,如图3所示,该装置除包括图2所示的所有模块外,获取模块20还可以包括:FIG. 3 is a block diagram of an optional structure of a phase difference determining apparatus according to an embodiment of the present invention. As shown in FIG. 3, the acquiring module 20 may further include:
第一获取单元30,设置为在摄像头启动后,获取摄像头在第一位置拍摄的第一图像;The first obtaining unit 30 is configured to acquire a first image captured by the camera at the first position after the camera is started;
驱动单元32,设置为驱动摄像头沿预设方向移动指定距离到达第二位置,其中,指定距离为单位像素在预设方向上所占距离的整数倍;The driving unit 32 is configured to drive the camera to move the specified distance in the preset direction to reach the second position, wherein the specified distance is an integer multiple of the distance occupied by the unit pixel in the preset direction;
第二获取单元34,设置为驱动单元驱动摄像头沿预设方向移动指定距离到达第二位置后,获取摄像头在第二位置拍摄的第二图像。The second obtaining unit 34 is configured to obtain a second image captured by the camera at the second position after the driving unit drives the camera to move the specified distance in the preset direction to reach the second position.
图4是根据本发明实施例的相位差的确定装置的可选结构框图二,如图4所示,该装置除包括图2所示的所有模块外,确定模块还可以包括: 4 is a block diagram of an optional structure of a phase difference determining apparatus according to an embodiment of the present invention. As shown in FIG. 4, the determining module may further include:
计算单元40,设置为分别计算第一图像的第一像素光强分布曲线和第二图像的第二像素光强分布曲线,其中,第一像素在第一图像中的位置和第二像素在第二图像中的位置对应;The calculating unit 40 is configured to respectively calculate a first pixel light intensity distribution curve of the first image and a second pixel light intensity distribution curve of the second image, wherein the position of the first pixel in the first image and the second pixel are in the The position in the two images corresponds;
确定单元42,设置为将第一像素光强分布曲线和第二像素光强分布曲线的峰值差确定为相位差。The determining unit 42 is configured to determine a peak difference between the first pixel light intensity distribution curve and the second pixel light intensity distribution curve as a phase difference.
可选的,第一像素光强分布曲线包括:沿第一图像的第一预定起始位置开始的一列或多列像素的像素光强分布曲线;Optionally, the first pixel intensity distribution curve includes: a pixel intensity distribution curve of one or more columns of pixels along a first predetermined starting position of the first image;
第二像素光强分布曲线包括:沿第二图像的第二预定起始位置开始的一列或多列像素的像素光强分布曲线。The second pixel light intensity distribution curve includes a pixel light intensity distribution curve of one or more columns of pixels along a second predetermined starting position of the second image.
图5是根据本发明实施例的相位差的确定装置的可选结构框图三,如图5所示,该装置除包括图4所示的所有模块外,确定单元42还可以包括:FIG. 5 is a block diagram 3 of an optional structure of a phase difference determining apparatus according to an embodiment of the present invention. As shown in FIG. 5, the determining unit 42 may further include:
计算子单元50,设置为计算第一像素光强分布曲线的峰值像素和第二像素光强分布曲线的峰值像素的位置差;The calculating subunit 50 is configured to calculate a position difference between a peak pixel of the first pixel light intensity distribution curve and a peak pixel of the second pixel light intensity distribution curve;
确定子单元52,设置为将位置差和单位像素在垂直方向的尺寸相乘得到相位差。The determining subunit 52 is arranged to multiply the position difference by the size of the unit pixel in the vertical direction to obtain a phase difference.
下面结合根据本申请的可选实施例对本申请进行具体说明:The present application is specifically described below in conjunction with an optional embodiment in accordance with the present application:
本可选实施例使用了单颗摄像头在普通的图像传感器sensor上获取照片相位信息。本可选实施例设计了一种可以使图像sensor全部像素都能正常成像并且也可以获得图像相位信息的摄像头。This alternative embodiment uses a single camera to acquire photo phase information on a conventional image sensor sensor. This alternative embodiment designs a camera that allows all pixels of the image sensor to be imaged normally and also to obtain image phase information.
图6是根据本申请可选实施例的装置结构框图,如图6所示,本实施例的模块包括:FIG. 6 is a structural block diagram of an apparatus according to an alternative embodiment of the present application. As shown in FIG. 6, the module of this embodiment includes:
图像采集模块60:设置为采集摄像头的输出的照片,以供后端处理;The image acquisition module 60 is configured to collect a photo of the output of the camera for processing by the back end;
水平驱动马达62:设置为在水平方向移动摄像头,以使摄像头获取有相位信息的照片;Horizontal drive motor 62: configured to move the camera in a horizontal direction so that the camera acquires a photo with phase information;
照片存储模块64:设置为存储摄像头在水平方向上移动所拍摄的照片,以供后端获取相位差信息;The photo storage module 64 is configured to store the photographed camera in a horizontal direction to obtain the phase difference information for the back end;
相位差计算模块66:设置为处理存储模块中的两幅相位信息图,以获得相 位差信息。Phase difference calculation module 66: configured to process two phase information maps in the storage module to obtain phases Position information.
本实施例中通过先后采集两幅带有一定视差(摄像头水平移动两个像素的距离)的照片,然后分别计算两幅照片中相应像素的光强分布曲线,通过对比两幅图中对应像素光强分布曲线的峰值点位置可计算出相位差信息。In this embodiment, two photos with a certain parallax (the distance that the camera moves two pixels horizontally) are sequentially collected, and then the light intensity distribution curves of the corresponding pixels in the two photos are respectively calculated, and the corresponding pixel lights in the two images are compared. The phase difference information of the strong distribution curve can calculate the phase difference information.
本实施例采用的是一颗普通的摄像头中的图像sensor,该图像sensor所有像素点都能用于正常成像,在客观的分辨率、噪声测试上会优于使用有特殊像素的图像sensor。获取相位差信息的像素对越多,最终计算出的相位差信息越精确。本实施例仅使用了一颗摄像头能够做出双摄像头的效果,从而使得成本大大的降低、后期装校难度也大幅度减小。In this embodiment, an image sensor in an ordinary camera is used. All pixel points of the image sensor can be used for normal imaging, and the objective resolution and noise test are superior to the image sensor with special pixels. The more pairs of pixels that acquire phase difference information, the more accurate the final calculated phase difference information. In this embodiment, only one camera can be used to make the effect of the dual camera, so that the cost is greatly reduced, and the difficulty of the post-installation is also greatly reduced.
本实施例的相位差确定方法能够在不牺牲图像sensor原有的像素且不增加额外摄像头的基础上,获取图像的相位差信息。具体的实现方法包括:图7是根据本发明可选实施例的摄像头移动示意图,如图7所示,本实施例中通过在x方向来移动摄像头镜筒达到获取拍摄景物的相位信息从而能够计算出图像相位差信息。The phase difference determining method of the present embodiment can acquire phase difference information of an image without sacrificing the original pixels of the image sensor and without adding an additional camera. The specific implementation method includes: FIG. 7 is a schematic diagram of camera movement according to an optional embodiment of the present invention. As shown in FIG. 7 , in this embodiment, by acquiring the phase information of the captured scene by moving the camera lens barrel in the x direction, the calculation can be performed. Image phase difference information.
S41,启动摄像头,给摄像头上电、初始化等一系列操作,使摄像头处于正常工作状态;S41, start the camera, give the camera a series of operations such as power-on and initialization, so that the camera is in normal working state;
S42,让摄像头在当前状态下拍照,并命名为phase1(第一图像)存储进照片存储模块;S42, let the camera take a picture in the current state, and name it phase1 (first image) stored in the photo storage module;
S43,驱动水平马达沿+x方向(图7所示)移动两个像素大小的距离,并让摄像头拍照,命名为phase2(第二图像)存储进照片存储模块;S43, driving the horizontal motor to move the distance of two pixels in the +x direction (shown in Figure 7), and let the camera take a picture, named phase2 (second image) stored in the photo storage module;
S44,计算出phase1照片沿y方向(图7所示)第一列像素光强度值和phase2照片沿y方向第三列像素光强度值,通过对比两者可计算出相位差的信息,然后依次对应的计算phase1第二、三、四……列和phase2第四、五、六……列的相位差信息,最终可以得到整幅照片的相位差信息。S44, calculating the first column pixel light intensity value of the phase1 photo along the y direction (shown in FIG. 7) and the third column pixel light intensity value of the phase2 photo along the y direction, and comparing the two to calculate the phase difference information, and then sequentially Corresponding to calculate the phase difference information of the second, third, fourth... column of phase1 and the fourth, fifth, sixth... column of phase2, finally obtain the phase difference information of the whole photo.
图8是根据本申请可选实施例的摄像头拍摄图像的像素分布示意图,如图8所示,图8中的图像包括0-3151行(rows),0-4255列(columns),如果拍摄出来的照片像素为13M,取第0列(columns),即通道为BGBG…BG这一列的像 素的光强分布曲线,由于同一列上像素的光强分布呈现高斯分布,因此得到第0列上的光强分布曲线是一条形状类似正弦曲线的曲线图。取phase1照片中第0列像素的光强分布曲线与phase2中第二列像素的光强分布曲线,将两条曲线沿x方向移动到同一平面上,对比两曲线峰值在y方向上的像素位置,计算出两曲线峰值像素位置差再乘上单个像素在y方向上的尺寸就可的出相位差信息。FIG. 8 is a schematic diagram of a pixel distribution of a camera-captured image according to an alternative embodiment of the present application. As shown in FIG. 8, the image in FIG. 8 includes 0-3151 rows, 0-4255 columns, if photographed. The photo pixel is 13M, taking column 0 (columns), that is, the channel is the image of BGBG...BG column The light intensity distribution curve of the prime, because the light intensity distribution of the pixels on the same column exhibits a Gaussian distribution, the light intensity distribution curve on the 0th column is a curve similar in shape to a sinusoid. Take the light intensity distribution curve of the pixel in column 0 of the phase1 photo and the light intensity distribution curve of the pixel in the second column in phase2, and move the two curves along the x direction to the same plane, and compare the pixel positions of the peaks of the two curves in the y direction. Calculate the difference between the peak position of the two curves and multiply the size of the single pixel in the y direction to obtain the phase difference information.
需要说明的是,上述模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are respectively located in multiple processes. In the device.
本发明的实施例还提供了一种计算机可读存储介质。可选地,在本实施例中,上述计算机可读存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a computer readable storage medium. Optionally, in the embodiment, the computer readable storage medium may be configured to store program code for performing the following steps:
S1,获取摄像头在第一位置拍摄的第一图像,以及获取摄像头在第二位置拍摄的第二图像;S1, acquiring a first image captured by the camera at the first position, and acquiring a second image captured by the camera at the second position;
S2,根据第一图像的第一像素信息和第二图像的第二像素信息确定第一图像和第二图像之间的相位差;S2. Determine a phase difference between the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image.
可选地,在本实施例中,上述存储介质可以但不限于包括以下任意一种:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but is not limited to, any one of the following: a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,在本实施例中,处理器根据计算机可读存储介质中已存储的程序代码执行获取摄像头在第一位置拍摄的第一图像,以及获取摄像头在第二位置拍摄的第二图像;Optionally, in this embodiment, the processor performs, according to the stored program code in the computer readable storage medium, the first image captured by the camera at the first location, and the second image captured by the camera at the second location;
可选地,在本实施例中,处理器根据计算机可读存储介质中已存储的程序代码执行根据第一图像的第一像素信息和第二图像的第二像素信息确定第一图像和第二图像之间的相位差。Optionally, in this embodiment, the processor determines, according to the stored program code in the computer readable storage medium, the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image. The phase difference between the images.
可选地,本实施例中的可选示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For an alternative example in this embodiment, reference may be made to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多 个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed over a plurality of Optionally, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be The steps shown or described are performed in a different order than that herein, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
图9是根据本发明实施例的一种设备的硬件结构示意图,如图9所示,该设备包括:FIG. 9 is a schematic structural diagram of a hardware of a device according to an embodiment of the present invention. As shown in FIG. 9, the device includes:
一个或多个处理器710,图9中以一个处理器710为例;One or more processors 710, one processor 710 is taken as an example in FIG. 9;
存储器720; Memory 720;
所述设备还可以包括:输入装置730和输出装置740。The device may also include an input device 730 and an output device 740.
所述设备中的处理器710、存储器720、输入装置730和输出装置740可以通过总线或者其他方式连接,图9中以通过总线连接为例。The processor 710, the memory 720, the input device 730, and the output device 740 in the device may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
存储器720作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明实施例中的相位差的确定方法对应的程序指令/模块(例如附图2所示的获取模块22和确定模块23)。处理器710通过运行存储在存储器720中的软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例的相位差的确定方法。The memory 720 is used as a computer readable storage medium for storing software programs, computer executable programs, and modules, such as the program instructions/modules corresponding to the method for determining the phase difference in the embodiment of the present invention (for example, as shown in FIG. 2) The acquisition module 22 and the determination module 23). The processor 710 executes various functional applications and data processing of the server by executing software programs, instructions, and modules stored in the memory 720, that is, a method of determining the phase difference of the above-described method embodiments.
存储器720可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器720可选包括相对于处理器710远程设置的存储器,这些远程存储器可以通过网络连接至终端设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 720 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like. Moreover, memory 720 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 720 can optionally include memory remotely located relative to processor 710, which can be connected to the terminal device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置730可用于接收输入的数字或字符信息,以及产生与终端的用户设置以及功能控制有关的键信号输入。输出装置740可包括显示屏等显示设备。 Input device 730 can be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal. The output device 740 can include a display device such as a display screen.
所述一个或者多个模块存储在所述存储器720中,当被所述一个或者多个处理器710执行时,执行上述实施例以及可选实时方式的相位差的确定方法。The one or more modules are stored in the memory 720, and when executed by the one or more processors 710, the method of determining the phase difference of the above-described embodiments and the optional real-time mode is performed.
工业实用性Industrial applicability
本发明实施例的相位差的确定方法,解决相关技术中摄像头在获取相位信息时需要牺牲图像传感器原有的像素或者需要额外增加摄像头的问题,进而达到了摄像头既能完成相位对焦,又能保证成像质量,还不用额外增加摄像头的效果。 The method for determining the phase difference according to the embodiment of the present invention solves the problem that the camera needs to sacrifice the original pixel of the image sensor or needs to additionally increase the camera when acquiring the phase information in the related art, thereby achieving the camera can achieve phase focusing and guarantee Image quality, no additional camera effect.

Claims (13)

  1. 一种相位差的确定方法,包括:A method for determining a phase difference, comprising:
    获取摄像头在第一位置拍摄的第一图像,以及获取所述摄像头在第二位置拍摄的第二图像;以及Acquiring a first image captured by the camera at the first location, and acquiring a second image captured by the camera at the second location;
    根据所述第一图像的第一像素信息和所述第二图像的第二像素信息确定所述第一图像和所述第二图像之间的相位差。Determining a phase difference between the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image.
  2. 根据权利要求1所述的方法,其中,所述获取摄像头在第一位置拍摄的第一图像,以及获取所述摄像头在第二位置拍摄的第二图像包括:The method of claim 1, wherein the obtaining the first image captured by the camera at the first location and acquiring the second image captured by the camera at the second location comprises:
    在所述摄像头启动后,获取所述摄像头在第一位置拍摄的第一图像;After the camera is activated, acquiring a first image captured by the camera at the first position;
    驱动所述摄像头沿预设方向移动指定距离到达第二位置,其中,所述指定距离为单位像素在所述预设方向上所占距离的整数倍;以及Driving the camera to move a specified distance in a preset direction to a second position, wherein the specified distance is an integer multiple of a distance occupied by the unit pixel in the preset direction;
    在驱动所述摄像头沿预设方向移动指定距离到达第二位置后,获取所述摄像头在所述第二位置拍摄的第二图像。After driving the camera to move the specified distance in the preset direction to the second position, acquiring the second image captured by the camera at the second position.
  3. 根据权利要求2所述的方法,其中,所述预设方向为水平方向或垂直方向。The method of claim 2, wherein the predetermined direction is a horizontal direction or a vertical direction.
  4. 根据权利要求1所述的方法,其中,所述根据所述第一图像的第一像素信息和所述第二图像的第二像素信息确定所述第一图像和所述第二图像之间的相位差包括:The method of claim 1, wherein the determining between the first image and the second image is based on first pixel information of the first image and second pixel information of the second image The phase difference includes:
    分别计算所述第一图像的第一像素光强分布曲线和所述第二图像的第二像素光强分布曲线,其中,所述第一像素在所述第一图像中的位置和所述第二像素在所述第二图像中的位置对应;以及Calculating a first pixel light intensity distribution curve of the first image and a second pixel light intensity distribution curve of the second image, wherein a position of the first pixel in the first image and the first The position of the two pixels in the second image corresponds;
    将所述第一像素光强分布曲线和所述第二像素光强分布曲线的峰值差确定为所述相位差。A peak difference between the first pixel light intensity distribution curve and the second pixel light intensity distribution curve is determined as the phase difference.
  5. 根据权利要求4所述的方法,其中,所述将所述第一像素光强分布曲线和所述第二像素光强分布曲线的峰值差确定为所述相位差包括:The method according to claim 4, wherein the determining a peak difference between the first pixel light intensity distribution curve and the second pixel light intensity distribution curve as the phase difference comprises:
    计算所述第一像素光强分布曲线的峰值像素和所述第二像素光强分布曲线的峰值像素的位置差;以及Calculating a position difference between a peak pixel of the first pixel light intensity distribution curve and a peak pixel of the second pixel light intensity distribution curve;
    将所述位置差和单位像素在垂直方向的尺寸相乘得到所述相位差。 The phase difference is obtained by multiplying the position difference and the size of the unit pixel in the vertical direction.
  6. 根据权利要求4所述的方法,其中,The method of claim 4, wherein
    所述第一像素光强分布曲线包括:沿所述第一图像的第一预定起始位置开始的一列或多列像素的像素光强分布曲线;The first pixel light intensity distribution curve includes: a pixel light intensity distribution curve of one or more columns of pixels along a first predetermined starting position of the first image;
    所述第二像素光强分布曲线包括:沿所述第二图像的第二预定起始位置开始的一列或多列像素的像素光强分布曲线。The second pixel light intensity distribution curve includes a pixel light intensity distribution curve of one or more columns of pixels along a second predetermined starting position of the second image.
  7. 一种相位差的确定装置,包括:A determining device for phase difference, comprising:
    获取模块,设置为获取摄像头在第一位置拍摄的第一图像,以及获取所述摄像头在第二位置拍摄的第二图像;以及Obtaining a module, configured to acquire a first image captured by the camera at the first location, and acquire a second image captured by the camera at the second location;
    确定模块,设置为根据所述第一图像的第一像素信息和所述第二图像的第二像素信息确定所述第一图像和所述第二图像之间的相位差。And a determining module configured to determine a phase difference between the first image and the second image according to the first pixel information of the first image and the second pixel information of the second image.
  8. 根据权利要求7所述的装置,其中,所述获取模块包括:The apparatus of claim 7, wherein the obtaining module comprises:
    第一获取单元,设置为在所述摄像头启动后,获取所述摄像头在第一位置拍摄的第一图像;a first acquiring unit, configured to acquire a first image captured by the camera at the first position after the camera is started;
    驱动单元,设置为驱动所述摄像头沿预设方向移动指定距离到达第二位置,其中,所述指定距离为单位像素在所述预设方向上所占距离的整数倍;以及a driving unit configured to drive the camera to move a predetermined distance in a preset direction to a second position, wherein the specified distance is an integer multiple of a distance occupied by the unit pixel in the preset direction;
    第二获取单元,设置为所述驱动单元驱动所述摄像头沿预设方向移动指定距离到达第二位置后,获取所述摄像头在所述第二位置拍摄的第二图像。And a second acquiring unit, configured to: after the driving unit drives the camera to move a predetermined distance in a preset direction to reach the second position, acquire a second image captured by the camera at the second position.
  9. 根据权利要求8所述的装置,其中,所述预设方向为水平方向或垂直方向。The apparatus according to claim 8, wherein the predetermined direction is a horizontal direction or a vertical direction.
  10. 根据权利要求7所述的装置,其中,所述确定模块包括:The apparatus of claim 7, wherein the determining module comprises:
    计算单元,设置为分别计算所述第一图像的第一像素光强分布曲线和所述第二图像的第二像素光强分布曲线,其中,所述第一像素在所述第一图像中的位置和所述第二像素在所述第二图像中的位置对应;以及a calculating unit, configured to separately calculate a first pixel light intensity distribution curve of the first image and a second pixel light intensity distribution curve of the second image, wherein the first pixel is in the first image a position corresponding to a position of the second pixel in the second image;
    确定单元,设置为将所述第一像素光强分布曲线和所述第二像素光强分布曲线的峰值差确定为所述相位差。The determining unit is configured to determine a peak difference between the first pixel light intensity distribution curve and the second pixel light intensity distribution curve as the phase difference.
  11. 根据权利要求10所述的装置,其中,所述确定单元包括:The apparatus of claim 10, wherein the determining unit comprises:
    计算子单元,设置为计算所述第一像素光强分布曲线的峰值像素和所述第 二像素光强分布曲线的峰值像素的位置差;以及Calculating a subunit, configured to calculate a peak pixel of the first pixel light intensity distribution curve and the first The position difference of the peak pixels of the two-pixel intensity distribution curve;
    确定子单元,设置为将所述位置差和单位像素在垂直方向的尺寸相乘得到所述相位差。The determining subunit is configured to multiply the position difference and the size of the unit pixel in the vertical direction to obtain the phase difference.
  12. 根据权利要求10所述的装置,其中,The device according to claim 10, wherein
    所述第一像素光强分布曲线包括:沿所述第一图像的第一预定起始位置开始的一列或多列像素的像素光强分布曲线;The first pixel light intensity distribution curve includes: a pixel light intensity distribution curve of one or more columns of pixels along a first predetermined starting position of the first image;
    所述第二像素光强分布曲线包括:沿所述第二图像的第二预定起始位置开始的一列或多列像素的像素光强分布曲线。The second pixel light intensity distribution curve includes a pixel light intensity distribution curve of one or more columns of pixels along a second predetermined starting position of the second image.
  13. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-6任一项的方法。 A computer readable storage medium storing computer executable instructions arranged to perform the method of any of claims 1-6.
PCT/CN2016/078979 2016-02-01 2016-04-11 Method and apparatus for determining phase difference WO2017133075A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610072813.0 2016-02-01
CN201610072813.0A CN107026969A (en) 2016-02-01 2016-02-01 The determination method and device of phase difference

Publications (1)

Publication Number Publication Date
WO2017133075A1 true WO2017133075A1 (en) 2017-08-10

Family

ID=59499155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/078979 WO2017133075A1 (en) 2016-02-01 2016-04-11 Method and apparatus for determining phase difference

Country Status (2)

Country Link
CN (1) CN107026969A (en)
WO (1) WO2017133075A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259727A (en) * 2018-03-21 2018-07-06 维沃移动通信有限公司 A kind of depth image generation method and mobile terminal
CN109788199B (en) * 2019-01-30 2021-02-05 上海创功通讯技术有限公司 Focusing method suitable for terminal with double cameras
CN110475071B (en) * 2019-09-19 2021-06-04 厦门美图之家科技有限公司 Phase focusing method, phase focusing device, electronic equipment and machine-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050057662A1 (en) * 2003-09-02 2005-03-17 Canon Kabushiki Kaisha Image-taking apparatus
US20070019105A1 (en) * 2005-07-06 2007-01-25 Olympus Corporation Imaging apparatus for performing optimum exposure and color balance control
CN104702852A (en) * 2013-12-09 2015-06-10 英特尔公司 Techniques for disparity estimation using camera arrays for high dynamic range imaging
CN104735347A (en) * 2013-12-24 2015-06-24 三星泰科威株式会社 Autofocus adjusting method and apparatus
CN105007425A (en) * 2015-07-23 2015-10-28 广东欧珀移动通信有限公司 Contrast type focusing method and mobile terminal
CN105357441A (en) * 2015-11-27 2016-02-24 努比亚技术有限公司 Image acquisition method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050057662A1 (en) * 2003-09-02 2005-03-17 Canon Kabushiki Kaisha Image-taking apparatus
US20070019105A1 (en) * 2005-07-06 2007-01-25 Olympus Corporation Imaging apparatus for performing optimum exposure and color balance control
CN104702852A (en) * 2013-12-09 2015-06-10 英特尔公司 Techniques for disparity estimation using camera arrays for high dynamic range imaging
CN104735347A (en) * 2013-12-24 2015-06-24 三星泰科威株式会社 Autofocus adjusting method and apparatus
CN105007425A (en) * 2015-07-23 2015-10-28 广东欧珀移动通信有限公司 Contrast type focusing method and mobile terminal
CN105357441A (en) * 2015-11-27 2016-02-24 努比亚技术有限公司 Image acquisition method and mobile terminal

Also Published As

Publication number Publication date
CN107026969A (en) 2017-08-08

Similar Documents

Publication Publication Date Title
US9998650B2 (en) Image processing apparatus and image pickup apparatus for adding blur in an image according to depth map
JP7311418B2 (en) Focusing method, terminal and computer readable storage medium
TWI706379B (en) Method, apparatus and electronic device for image processing and storage medium thereof
CN100545733C (en) The control method of imaging device, imaging device and computer program
US8493459B2 (en) Registration of distorted images
CN101673395B (en) Image mosaic method and image mosaic device
US8493460B2 (en) Registration of differently scaled images
WO2016112704A1 (en) Method and device for adjusting focal length of projector, and computer storage medium
EP3067746A1 (en) Photographing method for dual-camera device and dual-camera device
WO2015003604A1 (en) Method, device, and terminal for image processing
TW201501533A (en) Method for adjusting focus position and electronic apparatus
US20150116464A1 (en) Image processing apparatus and image capturing apparatus
US9100563B2 (en) Apparatus, method and computer-readable medium imaging through at least one aperture of each pixel of display panel
US9818199B2 (en) Method and apparatus for estimating depth of focused plenoptic data
JP6447840B2 (en) Image device, method for automatic focusing in an image device, and corresponding computer program
JP2015148532A (en) Distance measuring device, imaging apparatus, distance measuring method, and program
CN109635800B (en) Image focusing method and related equipment thereof
WO2017133075A1 (en) Method and apparatus for determining phase difference
CN113875219A (en) Image processing method and device, electronic equipment and computer readable storage medium
JP2013213903A (en) Imaging device
JP6645711B2 (en) Image processing apparatus, image processing method, and program
CN113873160B (en) Image processing method, device, electronic equipment and computer storage medium
TWI625668B (en) Information display method and surveillance system
CN116168064A (en) Image processing method, device, electronic equipment and storage medium
JP2013192115A (en) Image processing apparatus, image processing method, and program

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

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

Country of ref document: EP

Kind code of ref document: A1