In the online structured light 3D vision measurement, the most important step is the extraction of the laser stripe center. Due to the roughness of the detected object and the light source and other factors affect the precision of the linear structured light stripe center, an improved algorithm which can detection of laser fringe center based on gray barycentric method is proposed. The algorithm uses adaptive threshold segmentation method to extract strip targets, extract the skeleton of the target stripe by thinning method, use template method to detect the normal direction of laser stripes. Finally, using the gray barycentric method to accurately extract the laser center. It has been verified that the algorithm has the characteristics of high extraction accuracy, short running time and good stability.