The structured light can be used in extracting the 3D information for obtaining the three-dimensional points from object to be measured,and this method is simple,fast and accurate.However,the key factor of this process is how to inspect the stripes very accurately.To improve the accuracy,this paper firstly locates the stripes of the structured light roughly by use of the Gray code images,and then locates the stripes of the structured light accurately by utilizing the shift code images.Finally turns the two dimensions search into one dimension search in the images match by imposing the epipolar constraint,so the cross points of the stripes of structured light and the epipolars are the match points,finally do space intersection to the match points and obtain the three-dimensional points.We obtain the better effect by the method,which is proved by experiments repeatedly.