Method for Obtaining Depth Information and Electronic Device
AssigneeHonor Device Co., Ltd.
InventorsGuoqiao Chen, Mengyou Yuan, Jiangfeng Yuan
Life of this patent
Estimating the term…
Loading patent…
AssigneeHonor Device Co., Ltd.
InventorsGuoqiao Chen, Mengyou Yuan, Jiangfeng Yuan
Estimating the term…
Embodiments of this application provide a method for obtaining depth information and an electronic device. The method is applied to the field of image processing technologies and can help an electronic device improve accuracy of obtaining depth information. A specific solution includes: The electronic device includes a first camera, a second camera, and an infrared projector. The electronic device receives a first instruction used to trigger the electronic device to obtain depth information of a target object; in response to the first instruction, transmits infrared light with a light spot by using an infrared projector; collects first image information of the target object by using the first camera; collects second image information of the target object by using the second camera, where the first image information and the second image information include a feature of the target object and a texture feature formed when infrared light with a light spot is irradiated onto the target object; and calculates depth information of the target object based on the first image information, the second image information, the first length, a lens focal length of the first camera, and a lens focal length of the second camera.
A method for obtaining depth information implemented by an electronic device, wherein the method comprises:
(canceled)
An electronic device, comprising:
(canceled)
(canceled)
A non-transitory computer storage medium having computer usable instructions stored thereon for execution by a processor, wherein the instructions cause the processor to:
(canceled)
Dependencies are inferred from the claim text.