CPC G06T 7/593 (2017.01) [G06T 7/514 (2017.01); G06T 2207/10012 (2013.01); G06T 2207/10048 (2013.01)] | 26 Claims |
1. A method for obtaining depth information, comprising:
receiving a first instruction configured to trigger an electronic device to obtain depth information of a target object;
in response to the first instruction:
emitting infrared light using an infrared projector of the electronic device, wherein the infrared light comprises a plurality of light spots arranged in first and second speckle lattice groups, wherein the first speckle lattice group comprises a first speckle lattice and a second speckle lattice adjacent to the first speckle lattice, wherein the second speckle lattice group comprises a third speckle lattice and a fourth speckle lattice adjacent to the third speckle lattice, wherein the first speckle lattice is different than the second speckle lattice, and wherein the first speckle lattice is the same as the third speckle lattice and different than the fourth speckle lattice;
collecting first image information of the target object using a first camera of the electronic device; and
collecting second image information of the target object using a second camera of the electronic device, wherein the first image information and the second image information comprise a feature of the target object and a texture feature formed when the infrared light comprising the plurality of light spots is emitted onto the target object; and
calculating the depth information based on the first image information, the second image information, a first length from the first camera to the second camera, a first lens focal length of the first camera, and a second lens focal length of the second camera.
|