CN109905600A - Imaging method, imaging device and computer readable storage medium - Google Patents

Imaging method, imaging device and computer readable storage medium Download PDF

Info

Publication number
CN109905600A
CN109905600A CN201910217575.1A CN201910217575A CN109905600A CN 109905600 A CN109905600 A CN 109905600A CN 201910217575 A CN201910217575 A CN 201910217575A CN 109905600 A CN109905600 A CN 109905600A
Authority
CN
China
Prior art keywords
focusing
pixel column
phase difference
pixel
pixel row
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201910217575.1A
Other languages
Chinese (zh)
Inventor
张耀芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chuanggong Telecom Technology Co Ltd
Original Assignee
Shanghai Chuanggong Telecom Technology Co Ltd
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 Shanghai Chuanggong Telecom Technology Co Ltd filed Critical Shanghai Chuanggong Telecom Technology Co Ltd
Priority to CN201910217575.1A priority Critical patent/CN109905600A/en
Publication of CN109905600A publication Critical patent/CN109905600A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)
  • Microscoopes, Condenser (AREA)

Abstract

The present embodiments relate to image taking technology fields, disclose a kind of imaging method, applied to imaging device, it include: to obtain first frame image, wherein, the predetermined position of first frame image includes the first pixel column, the second pixel column, the first pixel column and the second pixel column, and the first pixel column, the second pixel column, the first pixel column and the second pixel column do not include image information;First phase difference is obtained based on the first pixel column and the second pixel column, and poor based on the first pixel column and the second pixel column acquisition second phase;It is focused according to first phase difference and second phase difference;Complete the imaging to the second frame image of defocused acquisition as imaging device.Imaging method, imaging device and the computer storage medium that embodiment of the present invention provides can be achieved at the same time the accurate focusing to horizontal stripe scene and nicking scene, realize the rapid focus under complex scene.

Description

Imaging method, imaging apparatus, and computer-readable storage medium
Technical Field
The present invention relates to the field of image capturing technologies, and in particular, to an imaging method, an imaging apparatus, and a computer-readable storage medium.
Background
The existing common focusing method in image shooting is as follows: phase focusing method. The principle of phase focusing (PDAF) is to reserve paired masking pixel points on the photosensitive element, which is specially used for phase detection, and determine the focusing offset value according to the distance between pixels and the change thereof, thereby realizing accurate focusing. However, the existing phase focusing method can only be used in a bright environment due to the existence of the shielding pixel points, and focusing is abnormal in a scene only containing horizontal stripes. Therefore, a continuous focusing (CAF) and phase focusing (PDAF) mode occurs, using CAF in a dark place, searching for an optimal focusing point from the farthest end or the nearest end, and when the optimal point is searched, focusing is completed; the PDAF is used in a bright place, and a phase difference is formed between the left image and the right image, and when the phase difference is zero, focusing is finished.
However, the inventors found that at least the following problems exist in the prior art: both the commonly used phase focusing method and the method combining continuous focusing and phase focusing cannot simultaneously realize accurate focusing on a horizontal stripe scene and a vertical stripe scene, and cannot realize rapid focusing in a complex scene.
Disclosure of Invention
An object of an embodiment of the present invention is to provide an imaging method, an imaging apparatus, and a computer-readable storage medium, which can simultaneously implement accurate focusing on a horizontal stripe scene and a vertical stripe scene, and implement rapid focusing in a complex scene.
In order to solve the above technical problem, an embodiment of the present invention provides an imaging method applied to an imaging apparatus, including: acquiring a first frame image, wherein the preset position of the first frame image comprises a first pixel row, a second pixel row, a first pixel column and a second pixel column, and the first pixel row, the second pixel row, the first pixel column and the second pixel column do not contain image information; acquiring a first phase difference based on the first pixel row and the second pixel row, and acquiring a second phase difference based on the first pixel column and the second pixel column; focusing according to the first phase difference and the second phase difference; and acquiring a second frame image as the imaging of the imaging device after finishing focusing.
An embodiment of the present invention also provides an image forming apparatus including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the imaging method described above.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described imaging method.
Compared with the prior art, the embodiment of the invention provides an imaging method, which is applied to an imaging device, and the imaging device determines a focus position according to a first phase difference and a second phase difference when focusing, wherein the first phase difference is obtained based on a first pixel row and a second pixel row at preset positions on a first image acquired by the imaging device, and the second phase difference is obtained based on a first pixel column and a second pixel column at preset positions on the first image acquired by the imaging device. The focusing of the horizontal stripe scene can be realized based on the first pixel column and the second pixel column without image information, and the focusing of the vertical stripe scene can be realized based on the first pixel column and the second pixel column without image information, so that the focusing can be realized according to the first phase difference and the second phase difference which are respectively obtained in the two scenes, the focusing of the horizontal stripe scene and the vertical stripe scene can be realized simultaneously, and the quick focusing of a complex scene is realized.
In addition, the acquiring of the first frame image specifically includes: the method comprises the steps of obtaining an image of an object to be shot, and discarding image information of a first pixel row, a second pixel row, a first pixel column and a second pixel column at preset positions of the image to obtain a first frame image. According to the scheme, the pixel rows and the pixel columns are obtained by directly discarding the image data, so that focusing is performed on the basis of the pixel rows and the pixel columns, pixels of a photosensitive element on the imaging device do not need to be shielded, and the imaging device can achieve rapid focusing in a dark environment.
In addition, acquiring the first phase difference based on the first pixel row and the second pixel row specifically includes: acquiring first phase data of the first frame image based on the first pixel row and acquiring second phase data of the first frame image based on the second pixel row; a first phase difference is calculated from the first phase data and the second phase data.
In addition, acquiring the second phase difference based on the first pixel column and the second pixel column specifically includes: acquiring third phase data of the first frame image based on the first pixel column, and acquiring fourth phase data of the first frame image based on the second pixel column; a second phase difference is calculated from the third phase data and the fourth phase data.
In addition, focusing according to the first phase difference and the second phase difference specifically comprises: determining a first focusing position according to the first phase difference, and determining a second focusing position according to the second phase difference; and focusing according to the first focusing position and the second focusing position.
Further, after determining the first in-focus position from the first phase difference and the second in-focus position from the second phase difference, before performing focusing from the first in-focus position and the second in-focus position, the method further includes: acquiring a difference value between the first focusing position and the second focusing position; judging whether the difference value is within a preset depth of field range; and if the difference value is within the preset depth of field range, focusing according to the first focusing position and the second focusing position. According to the scheme, whether the difference value of the two focusing positions is within the preset depth of field range is judged, and focusing is performed according to the two focusing positions, so that the image acquired after focusing is clearer.
In addition, focusing according to the first focusing position and the second focusing position specifically includes: and taking the first focusing position or the second focusing position as the focusing position of the imaging device, and focusing at the focusing position. In the scheme, the first focusing position or the second focusing position is taken as the focusing position of the imaging device, so that one scene of a horizontal stripe scene or a vertical stripe scene is clearer than the other scene during imaging.
In addition, focusing according to the first focusing position and the second focusing position specifically includes: acquiring the middle position of the first focusing position and the second focusing position; and taking the middle position as a focusing position, and focusing at the focusing position. In the scheme, the middle position of the first focusing position and the second focusing position is taken as the focusing position of the imaging device, so that the definition of a horizontal stripe scene is the same as that of a vertical stripe scene during imaging.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic flow chart of an imaging method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a first frame image according to a first embodiment of the present invention;
FIG. 3 is a schematic flow diagram of an imaging method according to a second embodiment of the invention;
fig. 4 is a schematic flow chart of an imaging method according to a third embodiment of the present invention;
fig. 5 is a schematic configuration diagram of an image forming apparatus according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the present invention relates to an imaging method, and the core of the embodiment is to provide an imaging method applied to an imaging apparatus, including: acquiring a first frame image, wherein the preset position of the first frame image comprises a first pixel row, a second pixel row, a first pixel column and a second pixel column, and the first pixel row, the second pixel row, the first pixel column and the second pixel column do not contain image information; acquiring a first phase difference based on the first pixel row and the second pixel row, and acquiring a second phase difference based on the first pixel column and the second pixel column; focusing according to the first phase difference and the second phase difference; and acquiring a second frame image as the imaging of the imaging device after finishing focusing. The imaging device determines a focus position according to a first phase difference and a second phase difference when focusing, the first phase difference is obtained based on a first pixel row and a second pixel row at a preset position on a first image acquired by the imaging device, and the second phase difference is obtained based on a first pixel column and a second pixel column at the preset position on the first image acquired by the imaging device. The focusing of the horizontal stripe scene can be realized based on the first pixel column and the second pixel column without image information, and the focusing of the vertical stripe scene can be realized based on the first pixel column and the second pixel column without image information, so that the focusing can be realized according to the first phase difference and the second phase difference which are respectively obtained in the two scenes, the focusing of the horizontal stripe scene and the vertical stripe scene can be realized simultaneously, and the quick focusing of a complex scene is realized.
Implementation details of the imaging method of the present embodiment are specifically described below, and the following description is provided only for the sake of understanding and is not necessary for implementing the present embodiment.
A schematic flow chart of the image forming method in the present embodiment is shown in fig. 1:
step 101: the method comprises the steps of obtaining a first frame image, wherein the preset position of the first frame image comprises a first pixel row, a second pixel row, a first pixel column and a second pixel column, and the first pixel row, the second pixel row, the first pixel column and the second pixel column do not contain image information.
Specifically, in the present embodiment, a first pixel row, a second pixel row, a first pixel column, and a second pixel column that do not include image information are located at preset positions of a first frame image acquired by an imaging device, as shown in fig. 2, the first pixel row and the second pixel row are relatively horizontally arranged at upper and lower positions of the image, the first pixel column and the second pixel column are vertically arranged at left and right positions of the image, and the specific arrangement positions of the pixel row and the pixel column can be set by a user according to needs. In this embodiment, after the pixels of the first pixel row, the second pixel row, the first pixel column, and the second pixel column at the preset position corresponding to the image on the photosensitive element are masked, the imaging device is directly used to obtain the first frame image.
Step 102: a first phase difference is obtained based on the first pixel row and the second pixel row, and a second phase difference is obtained based on the first pixel column and the second pixel column.
In the embodiment, pixel points are replaced by pixel rows and pixel columns, and the first pixel row and the second pixel row are respectively regarded as the left eye and the right eye of a person in the vertical direction, so that a first phase difference in the vertical direction is obtained based on the first pixel row and the second pixel row; the first pixel column and the second pixel column are regarded as a left eye and a right eye of a person in the horizontal direction, whereby a second phase difference in the horizontal direction is obtained based on the first pixel column and the second pixel column.
Specifically, acquiring the first phase difference based on the first pixel row and the second pixel row specifically includes: acquiring first phase data of the first frame image based on the first pixel row and acquiring second phase data of the first frame image based on the second pixel row; a first phase difference is calculated from the first phase data and the second phase data.
In the present embodiment, since the first pixel row and the second pixel row are located at different positions, the image sensor of the imaging device obtains different phase data of images based on the first pixel row and the second pixel row, and a first phase difference exists between the first phase data and the second phase data obtained from the two pixel rows, respectively, and focusing in the vertical direction is completed only when the first phase difference is 0.
Specifically, obtaining the second phase difference based on the first pixel column and the second pixel column specifically includes: acquiring third phase data of the first frame image based on the first pixel column, and acquiring fourth phase data of the first frame image based on the second pixel column; a second phase difference is calculated from the third phase data and the fourth phase data.
In the present embodiment, since the first pixel row and the second pixel row are located at different positions, the image sensor of the imaging device has different phase data of images obtained based on the first pixel row and the second pixel row, and has a second phase difference between the third phase data and the fourth phase data obtained from the two pixel rows, respectively, and focusing in the horizontal direction is completed only when the second phase difference is 0.
Step 103: and focusing according to the first phase difference and the second phase difference.
Specifically, since the first phase difference is a phase difference generated when focusing is performed in the vertical direction and the second phase difference is a phase difference generated when focusing is performed in the horizontal direction, the imaging device which performs focusing based on the first phase difference and the second phase difference realizes focusing on a horizontal stripe scene and a vertical stripe scene at the same time, thereby realizing rapid focusing in a complex scene.
Step 104: and acquiring a second frame image as the imaging of the imaging device after finishing focusing.
Specifically, after the imaging device completes focusing, the second frame image is acquired at the focused focal position as imaging by the imaging device. It should be noted that, in practical applications, if the first frame image is obtained by masking the pixels of the first pixel row, the second pixel row, the first pixel column and the second pixel column at the preset positions of the corresponding image on the photosensitive element, the image data on the second frame image subsequently acquired by the imaging device is incomplete, and the data of the two pixel rows and the two pixel columns are lacked.
Compared with the prior art, the embodiment of the invention provides an imaging method, which is applied to an imaging device, when the imaging device is focused, the focal position is determined according to a first phase difference and a second phase difference, the first phase difference is obtained based on a first pixel row and a second pixel row at preset positions on a first image acquired by the imaging device, and the second phase difference is obtained based on a first pixel column and a second pixel column at preset positions on the first image acquired by the imaging device. The focusing of the horizontal stripe scene can be realized based on the first pixel column and the second pixel column without image information, and the focusing of the vertical stripe scene can be realized based on the first pixel column and the second pixel column without image information, so that the focusing can be realized according to the first phase difference and the second phase difference which are respectively obtained in the two scenes, the focusing of the horizontal stripe scene and the vertical stripe scene can be realized simultaneously, and the quick focusing of a complex scene is realized.
A second embodiment of the present invention relates to an image forming method. The second embodiment is an improvement of the first embodiment, and is mainly improved in that the embodiment directly discards image data to obtain pixel rows and pixel columns, so that focusing is performed on the basis of the pixel rows and the pixel columns without shielding pixels of a photosensitive element on the imaging device, so that the imaging device can achieve rapid focusing even in a dark environment.
A schematic flow chart of the imaging method in this embodiment is shown in fig. 3, and specifically includes:
step 201: an image of an object to be photographed is acquired.
Step 202: and discarding the image information of the first pixel row, the second pixel row, the first pixel column and the second pixel column at the preset position of the image to obtain a first frame image.
Specifically, in step 201 and step 202, in order to obtain the first frame image, the image of the object to be captured, which includes all image information, is first acquired, and then the image information of the first pixel row, the second pixel row, the first pixel column, and the second pixel column at the preset positions of the image is discarded, so as to obtain the first frame image including the pixel rows and the pixel columns at the preset positions without image information. Compared with the existing mode of shielding pixel points on the photosensitive element, the pixel rows and the pixel columns are obtained by directly discarding the image data without shielding the pixels of the photosensitive element on the imaging device in the embodiment, so that focusing is performed on the basis of the pixel rows and the pixel columns, and the imaging device can realize quick focusing in a dark environment. It should be noted that, in practical applications, the position of the image sensor of the imaging device corresponding to the pixel rows and the pixel columns at the imaging preset position may be set to obtain the first frame image including the pixel rows and the pixel columns without image information without acquiring image data when the first frame image is obtained.
Step 203: a first phase difference is obtained based on the first pixel row and the second pixel row, and a second phase difference is obtained based on the first pixel column and the second pixel column.
Step 204: and focusing according to the first phase difference and the second phase difference.
Step 205: and acquiring a second frame image as the imaging of the imaging device after finishing focusing.
The steps 203 to 205 are substantially the same as the steps 102 to 104 in the first embodiment, and are not repeated here to avoid repetition.
In the embodiment, the first frame image including the pixel rows and the pixel columns is obtained by directly discarding the image data without shielding the pixels of the photosensitive element on the imaging device, so that the second frame image acquired by the imaging device after focusing includes the image information of each pixel row and each pixel column, and the second frame image is used as all information of the real scene which can be restored by imaging of the imaging device, so that the imaging effect is better.
Compared with the prior art, the embodiment of the invention provides an imaging method, and the acquiring of the first frame image specifically comprises the following steps: the method comprises the steps of obtaining an image of an object to be shot, and discarding image information of a first pixel row, a second pixel row, a first pixel column and a second pixel column at preset positions of the image to obtain a first frame image. Compared with the existing mode of shielding pixel points on the photosensitive element, the first frame image comprising the pixel rows and the pixel columns is obtained by directly discarding the image data, so that focusing is performed based on the pixel rows and the pixel columns, the pixels of the photosensitive element on the imaging device do not need to be shielded, and the imaging device can realize quick focusing in a dark environment. And because the pixels of the photosensitive element on the imaging device are not required to be shielded, the second frame image acquired by the imaging device after focusing comprises the image information of each pixel row and each pixel column, and the second frame image is used as the imaging information of the imaging device to restore all information of a real scene, so that the imaging effect is better.
A third embodiment of the present invention relates to an image forming method. The third embodiment is a further improvement of the first embodiment, and the main improvements are as follows: in the present embodiment, a specific implementation of how to focus according to two phase differences is given.
A schematic flow chart of the imaging method in this embodiment is shown in fig. 4, and specifically includes:
step 301: the method comprises the steps of obtaining a first frame image, wherein the preset position of the first frame image comprises a first pixel row, a second pixel row, a first pixel column and a second pixel column, and the first pixel row, the second pixel row, the first pixel column and the second pixel column do not contain image information.
Step 302: a first phase difference is obtained based on the first pixel row and the second pixel row, and a second phase difference is obtained based on the first pixel column and the second pixel column.
The steps 301 to 302 are substantially the same as the steps 101 to 102 in the first embodiment, and are not repeated herein to avoid repetition.
Step 303: and determining a first focusing position according to the first phase difference, and determining a second focusing position according to the second phase difference.
Specifically, a motor is driven to drive a camera of an imaging device to move according to a first phase difference in the vertical direction, so that focusing of a vertical stripe scene is realized, and a first focusing position is obtained; and driving a motor to drive a camera of the imaging device to move according to the second phase difference in the horizontal direction, so as to realize focusing of a horizontal stripe scene, and further obtain a second focusing position.
Further, after determining the first focus position according to the first phase difference and determining the second focus position according to the second phase difference, before performing focusing according to the first focus position and the second focus position, the method further includes: acquiring a difference value between the first focusing position and the second focusing position; judging whether the difference value is within a preset depth of field range; and if the difference value is within the preset depth of field range, focusing according to the first focusing position and the second focusing position.
Specifically, the Depth of Field (Depth of Field) refers to a clear image that appears in a range before and after the focus after the completion of focusing, therefore, in order to realize clear imaging, the distance difference between the first focusing position for focusing the vertical stripe scene and the second focusing position for focusing the horizontal stripe scene cannot exceed the preset depth of field, that is, the difference value needs to be within a preset depth range, for example: the preset depth of field range is ± 50, and the difference between the first in-focus position and the second in-focus position needs to be within ± 50, the preset depth of field range is not limited in this embodiment, the method can be set according to the actual shooting condition, and in the scheme, whether the difference value of the two focusing positions is within the preset depth of field range is judged, and then focusing is carried out according to the two focusing positions, so that the image acquired at the focused position is clearer.
Step 304: and focusing according to the first focusing position and the second focusing position.
Because the accurate focusing of the vertical stripe scene can be realized when the imaging device is at the first focusing position, the accurate focusing of the horizontal stripe scene can be realized when the imaging device is at the second focusing position. Therefore, focusing is performed in accordance with the first in-focus position and the second in-focus position. And if the first focusing position or the second focusing position is taken as the focusing position of the imaging device, focusing is carried out at the focusing position. Then, when the first focusing position is taken as the focusing position of the imaging device, the imaging device can realize accurate focusing on a vertical stripe scene, so that the vertical stripe scene is clearer than a horizontal stripe scene during imaging; when the second focusing position is used as the focusing position of the imaging device, the imaging device can realize accurate focusing on the horizontal stripe scene, so that the horizontal stripe scene is clearer than the vertical stripe scene during imaging. Acquiring the middle position of the first focusing position and the second focusing position; and taking the middle position as a focusing position, and focusing at the focusing position. Because the middle position of the first focusing position and the second focusing position is taken as the focusing position of the imaging device, the definition of the horizontal stripe scene is the same as that of the vertical stripe scene during imaging.
Step 305: and acquiring a second frame image as the imaging of the imaging device after finishing focusing.
The step 305 is substantially the same as the step 104 in the first embodiment, and is not repeated here to avoid repetition.
Compared with the prior art, the embodiment of the invention provides an imaging method, and the focusing according to the first focusing position and the second focusing position specifically comprises the following steps: acquiring the middle position of the first focusing position and the second focusing position; the middle position is taken as a focusing position, and focusing is carried out at the focusing position, so that a specific implementation mode of how to carry out focusing according to two phase differences is given.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fourth embodiment of the invention is directed to an imaging method, as shown in fig. 5, comprising at least one processor 401; and a memory 402 communicatively coupled to the at least one processor 401; the memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401 to enable the at least one processor 401 to perform the imaging method according to any of the above embodiments.
Where the memory 402 and the processor 401 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 401 and the memory 402 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 401 may be transmitted over a wireless medium via an antenna, which may receive the data and transmit the data to the processor 401.
The processor 401 is responsible for managing the bus and general processing and may provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 402 may be used to store data used by processor 401 in performing operations.
Embodiments of the present invention also provide an acquisition machine-readable storage medium storing a computer program which is executed by a processor to implement the above-described imaging method.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. An imaging method applied to an imaging apparatus, the imaging method comprising:
acquiring a first frame image, wherein the preset position of the first frame image comprises a first pixel row, a second pixel row, a first pixel column and a second pixel column, and the first pixel row, the second pixel row, the first pixel column and the second pixel column do not contain image information;
obtaining a first phase difference based on the first pixel row and the second pixel row, and obtaining a second phase difference based on the first pixel column and the second pixel column;
focusing according to the first phase difference and the second phase difference;
and acquiring a second frame image after focusing is finished as the imaging of the imaging device.
2. The imaging method according to claim 1, wherein the acquiring a first frame image specifically comprises:
the method comprises the steps of obtaining an image of an object to be shot, and discarding image information of a first pixel row, a second pixel row, a first pixel column and a second pixel column at preset positions of the image to obtain a first frame image.
3. The imaging method according to claim 1, wherein the acquiring a first phase difference based on the first pixel row and the second pixel row specifically comprises:
acquiring first phase data of the first frame image based on the first pixel row and acquiring second phase data of the first frame image based on the second pixel row;
calculating the first phase difference from the first phase data and the second phase data.
4. The imaging method according to claim 1, wherein the obtaining a second phase difference based on the first pixel column and the second pixel column specifically comprises:
acquiring third phase data of the first frame image based on the first pixel column and acquiring fourth phase data of the first frame image based on the second pixel column;
calculating the second phase difference from the third phase data and the fourth phase data.
5. The imaging method according to claim 1, wherein focusing according to the first phase difference and the second phase difference specifically comprises:
determining a first focusing position according to the first phase difference, and determining a second focusing position according to the second phase difference;
and focusing according to the first focusing position and the second focusing position.
6. The imaging method according to claim 5, wherein after determining a first in-focus position from the first phase difference and a second in-focus position from the second phase difference, before the focusing from the first in-focus position and the second in-focus position, further comprising:
acquiring a difference value between the first focusing position and the second focusing position;
judging whether the difference value is within a preset depth of field range or not;
and if the difference value is within the preset depth of field range, then executing focusing according to the first focusing position and the second focusing position.
7. The imaging method according to claim 5, wherein the focusing according to the first in-focus position and the second in-focus position is specifically:
and taking the first focusing position or the second focusing position as the focusing position of the imaging device, and focusing at the focusing position.
8. The imaging method according to claim 5, wherein the focusing according to the first in-focus position and the second in-focus position is specifically:
acquiring the middle position of the first focusing position and the second focusing position;
and taking the middle position as the focusing position, and focusing at the focusing position.
9. An image forming apparatus, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the imaging method of any one of claims 1 to 8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the imaging method as claimed in any one of claims 1 to 8.
CN201910217575.1A 2019-03-21 2019-03-21 Imaging method, imaging device and computer readable storage medium Pending CN109905600A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910217575.1A CN109905600A (en) 2019-03-21 2019-03-21 Imaging method, imaging device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910217575.1A CN109905600A (en) 2019-03-21 2019-03-21 Imaging method, imaging device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109905600A true CN109905600A (en) 2019-06-18

Family

ID=66952822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910217575.1A Pending CN109905600A (en) 2019-03-21 2019-03-21 Imaging method, imaging device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109905600A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021093537A1 (en) * 2019-11-12 2021-05-20 Oppo广东移动通信有限公司 Phase difference acquisition method and device, electronic apparatus, and computer readable storage medium
CN112866553A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
CN112866545A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Focusing control method and device, electronic equipment and computer readable storage medium
CN112866543A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Focusing control method and device, electronic equipment and computer readable storage medium
CN112866674A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Depth map acquisition method and device, electronic equipment and computer readable storage medium
CN112866554A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
CN112866510A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
CN112866511A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Imaging assembly, focusing method and device and electronic equipment
CN112866544A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Phase difference acquisition method, device, equipment and storage medium
CN112929563A (en) * 2021-01-21 2021-06-08 维沃移动通信有限公司 Focusing method and device and electronic equipment
US11997405B2 (en) 2021-07-02 2024-05-28 Samsung Electronics Co., Ltd Electronic device integrating phase difference detection and imaging and method for controlling the same

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187722A (en) * 2015-09-15 2015-12-23 努比亚技术有限公司 Depth-of-field adjustment method and apparatus, terminal
CN105247851A (en) * 2013-05-24 2016-01-13 三星电子株式会社 Imaging sensor capable of phase difference focus detection cross-reference to related patent application
CN107135340A (en) * 2017-04-28 2017-09-05 广东欧珀移动通信有限公司 Imaging sensor, focusing control method, imaging device and mobile terminal
CN107147843A (en) * 2017-04-28 2017-09-08 广东欧珀移动通信有限公司 Focusing triggering method, device and mobile terminal
CN107370959A (en) * 2017-09-19 2017-11-21 德淮半导体有限公司 Imaging sensor, imaging device and focusing method
US20170358094A1 (en) * 2016-06-12 2017-12-14 Apple Inc. Adaptive Focus Sweep Techniques For Foreground/Background Separation
CN108027496A (en) * 2015-09-30 2018-05-11 富士胶片株式会社 Focusing control apparatus, focusing control method, focusing control program, lens devices, camera device
CN108337424A (en) * 2017-01-17 2018-07-27 中兴通讯股份有限公司 A kind of phase focusing method and its device
US20180288306A1 (en) * 2017-03-30 2018-10-04 Qualcomm Incorporated Mask-less phase detection autofocus
CN109302559A (en) * 2017-07-24 2019-02-01 格科微电子(上海)有限公司 Realize phase focusing method of the cmos image sensor under pixel synthesis mode

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105247851A (en) * 2013-05-24 2016-01-13 三星电子株式会社 Imaging sensor capable of phase difference focus detection cross-reference to related patent application
CN105187722A (en) * 2015-09-15 2015-12-23 努比亚技术有限公司 Depth-of-field adjustment method and apparatus, terminal
CN108027496A (en) * 2015-09-30 2018-05-11 富士胶片株式会社 Focusing control apparatus, focusing control method, focusing control program, lens devices, camera device
US20170358094A1 (en) * 2016-06-12 2017-12-14 Apple Inc. Adaptive Focus Sweep Techniques For Foreground/Background Separation
CN108337424A (en) * 2017-01-17 2018-07-27 中兴通讯股份有限公司 A kind of phase focusing method and its device
US20180288306A1 (en) * 2017-03-30 2018-10-04 Qualcomm Incorporated Mask-less phase detection autofocus
CN107135340A (en) * 2017-04-28 2017-09-05 广东欧珀移动通信有限公司 Imaging sensor, focusing control method, imaging device and mobile terminal
CN107147843A (en) * 2017-04-28 2017-09-08 广东欧珀移动通信有限公司 Focusing triggering method, device and mobile terminal
CN109302559A (en) * 2017-07-24 2019-02-01 格科微电子(上海)有限公司 Realize phase focusing method of the cmos image sensor under pixel synthesis mode
CN107370959A (en) * 2017-09-19 2017-11-21 德淮半导体有限公司 Imaging sensor, imaging device and focusing method

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866511A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Imaging assembly, focusing method and device and electronic equipment
CN112866674A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Depth map acquisition method and device, electronic equipment and computer readable storage medium
WO2021093537A1 (en) * 2019-11-12 2021-05-20 Oppo广东移动通信有限公司 Phase difference acquisition method and device, electronic apparatus, and computer readable storage medium
CN112866543A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Focusing control method and device, electronic equipment and computer readable storage medium
CN112866544A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Phase difference acquisition method, device, equipment and storage medium
CN112866550A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Phase difference acquisition method and apparatus, electronic device, and computer-readable storage medium
CN112866554A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
CN112866544B (en) * 2019-11-12 2022-08-12 Oppo广东移动通信有限公司 Phase difference acquisition method, device, equipment and storage medium
CN112866545A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Focusing control method and device, electronic equipment and computer readable storage medium
CN112866553A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
CN112866510A (en) * 2019-11-12 2021-05-28 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
CN112866554B (en) * 2019-11-12 2022-06-10 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
CN112866511B (en) * 2019-11-12 2022-06-14 Oppo广东移动通信有限公司 Imaging assembly, focusing method and device and electronic equipment
CN112866543B (en) * 2019-11-12 2022-06-14 Oppo广东移动通信有限公司 Focusing control method and device, electronic equipment and computer readable storage medium
CN112866550B (en) * 2019-11-12 2022-07-15 Oppo广东移动通信有限公司 Phase difference acquisition method and apparatus, electronic device, and computer-readable storage medium
CN112929563A (en) * 2021-01-21 2021-06-08 维沃移动通信有限公司 Focusing method and device and electronic equipment
US11997405B2 (en) 2021-07-02 2024-05-28 Samsung Electronics Co., Ltd Electronic device integrating phase difference detection and imaging and method for controlling the same

Similar Documents

Publication Publication Date Title
CN109905600A (en) Imaging method, imaging device and computer readable storage medium
EP3520387B1 (en) Systems and methods for fusing images
EP3496383A1 (en) Image processing method, apparatus and device
US9749614B2 (en) Image capturing system obtaining scene depth information and focusing method thereof
US9501834B2 (en) Image capture for later refocusing or focus-manipulation
US20170324950A1 (en) Methods and apparatus for controlling light field capture
CN103426147B (en) Image processing apparatus, image pick-up device and image processing method
CN107533753A (en) Image processing apparatus
US8836765B2 (en) Apparatus and method for generating a fully focused image by using a camera equipped with a multi-color filter aperture
US20210392313A1 (en) Image processing apparatus, image processing method, storage medium, manufacturing method of learned model, and image processing system
CN102959942B (en) Image capture device for stereoscopic viewing-use and control method thereof
CN110231832B (en) Obstacle avoidance method and obstacle avoidance device for unmanned aerial vehicle
US20210314543A1 (en) Imaging system and method
US20190355101A1 (en) Image refocusing
US20170188008A1 (en) Method and device for generating depth map
CN114283089B (en) Jump acceleration based depth recovery method, electronic device, and storage medium
CN110334652A (en) Image processing method, electronic equipment and storage medium
CN109862271B (en) Phase difference focusing method, electronic device and computer storage medium
US9094581B2 (en) Imaging device and distance information detecting method
CN104754316A (en) 3D imaging method and device and imaging system
KR101920159B1 (en) Stereo Matching Method and Device using Support point interpolation
CN114581563A (en) Image fusion method, device, terminal and storage medium
CN113395434B (en) Preview image blurring method, storage medium and terminal equipment
US20130076868A1 (en) Stereoscopic imaging apparatus, face detection apparatus and methods of controlling operation of same
CN114384681A (en) Rapid and accurate automatic focusing method and system for microscope, computer equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190618