Focusing processing method and apparatus, and terminal device
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorsXiaopeng Li, Gong Zhang
Life of this patent
Estimating the term…
Abstract
Embodiments of the present invention provide a focusing processing method and apparatus, and a terminal device. The method includes: obtaining a first image collected by n/2 pixel points on a left side of a combination pixel in the second image sensor and a second image collected by n/2 pixel points on a right side of the combination pixel in the second image sensor; determining a phase difference between the first image and the second image and determining whether the phase difference is in a preset range; and controlling a first motor in the first camera assembly to drive a first camera to move according to the phase difference and depending on a preset strategy, if the phase difference is not in the preset range.
Claims18
A focusing processing method, applied in a terminal device provided with a first camera assembly for photographing pictures and a second camera assembly for performing a phase focusing, wherein the first camera assembly and the second camera assembly are configured to realize focusing synchronously, each of a plurality of first filter units in the first camera assembly corresponds to one pixel point in a first image sensor, each of a plurality of second filter units in the second camera assembly corresponds to one combination pixel in a second image sensor and each combination pixel corresponds to two spectroscopic lens in the second image sensor, such that in the second image sensor light passes through the second filter unit, the spectroscopic lens and the combination pixel in sequence, and each combination pixel comprises n adjacent pixel points, where n is an even number greater than or equal to 2;
- the method comprising:
- obtaining a first image collected by n/2 pixel points on a left side of a combination pixel in the second image sensor and a second image collected by n/2 pixel points on a right side of the combination pixel in the second image sensor, wherein the combination pixel is divided symmetrically into two parts to acquire the left side and the right side;
- determining a phase difference between the first image and the second image and determining whether the phase difference is in a preset range;
- controlling a first motor in the first camera assembly to drive a first camera to move according to the phase difference and depending on a preset strategy, when the phase difference is not in the preset range;
- and
- obtaining position information of a second camera in the second camera assembly and controlling the first motor to drive the first camera to move to a same position as the second camera according to the position information of the second camera, when the phase difference is in the preset range.
A focusing processing apparatus, applied in a terminal device provided with a first camera assembly for photographing pictures and a second camera assembly for performing a phase focusing, wherein the first camera assembly and the second camera assembly are configured to realize focusing synchronously, each of a plurality of first filter units in the first camera assembly corresponds to one pixel point in a first image sensor, each of a plurality of second filter units in the second camera assembly corresponds to one combination pixel in a second image sensor and each combination pixel corresponds to two spectroscopic lens in the second image sensor, such that in the second image sensor light passes through the second filter unit, the spectroscopic lens and the combination pixel in sequence, and each combination pixel comprises n adjacent pixel points, where n is an even number greater than or equal to 2;
- the apparatus comprising:
- a processor;
- a memory, configured to store instructions executable by the processor,
- wherein the processor is configured to:
- obtain a first image collected by n/2 pixel points on a left side of a combination pixel in the second image sensor and a second image collected by n/2 pixel points on a right side of the combination pixel in the second image sensor;
- determine a phase difference between the first image and the second image, and determine whether the phase difference is in a preset range;
- control a first motor in the first camera assembly to drive a first camera to move according to the phase difference and depending on a preset strategy, when the phase difference is not in the preset range;
- and
- obtain position information of a second camera in the second camera assembly and control the first motor to drive the first camera to move to a same position as the second camera according to the position information of the second camera, when the phase difference is in the preset range.
A terminal device, comprising a shell, a processor, a memory, a circuit board, a power supply circuit, a first camera assembly for photographing pictures and a second camera assembly for performing a phase focusing, wherein the first camera assembly and the second camera assembly can realize focusing synchronously, each of a plurality of first filter units in the first camera assembly corresponds to one pixel point in a first image sensor, each of a plurality of second filter units in the second camera assembly corresponds to one combination pixel in a second image sensor and each combination pixel corresponds to two spectroscopic lens in the second image sensor, such that in the second image sensor light passes through the second filter unit, the spectroscopic lens and the combination pixel in sequence, each combination pixel comprises n adjacent pixel points, where n is an even number greater than or equal to 2;
- the circuit board is located in a space formed by the shell, the processor and the memory are arranged on the circuit board;
- the power supply circuit is configured to supply power for respective circuits or components in the terminal device;
- the memory is configured to store executable program codes;
- the processor is configured to execute a program corresponding to the executable program codes by reading the executable program codes stored in the memory so as to perform following acts of:
- obtaining a first image collected by n/2 pixel points on a left side of a combination pixel in the second image sensor and a second image collected by n/2 pixel points on a right side of the combination pixel in the second image sensor;
- determining a phase difference between the first image and the second image and determining whether the phase difference is in a preset range;
- controlling a first motor in the first camera assembly to drive a first camera to move according to the phase difference and depending on a preset strategy, when the phase difference is not in the preset range;
- and
- obtaining position information of a second camera in the second camera assembly and controlling the first motor to drive the first camera to move to a same position as the second camera according to the position information of the second camera, when the phase difference is in the preset range.
Dependencies are inferred from the claim text.