Patent ID: 9746317
Date: 2017-08-29
CPC Classifications: G01B

Claim:
1. An image processing method, which is applied to an electronic device, the electronic device comprising at least an image sensor and a light projector, wherein the method comprises: controlling the light projector to project multi-stripe structured light and dot structured light onto a surface of an object to be captured, to form a plurality of light stripes and a plurality of light spots between the light stripes on the surface of the object to be captured; acquiring, by the image sensor, a target image of the object to be captured having the light stripes and the light spots on the surface; obtaining a reference image comprising the light stripes and the light spots; calculating a first depth value at each of the light stripes in the target image based on feature information of the light stripes in the reference image and feature information of the light stripes in the target image; calculating a second depth value at each of the light spots in the target image based on feature information of the light spots in the reference image and feature information of the light spots in the target image; and generating a depth image of the target image based on the first depth value at the light stripe and the second depth value at the light spot in the target image.