Existing high-precision measurement devices face numerous challenges when dealing with complex surfaces, including high manual involvement, low measurement efficiency, and high costs. It is even more difficult to obtain complete surface data, particularly when confronted with unknown surfaces. This paper combines a fringe projection sensor with a high-precision line-structured light sensor to construct a line scan profiler. It proposes a surface recognition measurement method to overcome these challenges. This method fully leverages the fringe projection sensor's wide-field advantage to identify the object's surface shape and pose quickly. Subsequently, through the point cloud extraction and path planning algorithms proposed in this paper, efficient and complete line scan measurement paths are automatically generated, thus achieving the automation of the measurement process. Experimental measurements of aspherical lenses, freeform reflective mirrors, and artificial knee joint models validate the advantages of this method over existing methods in terms of measurement efficiency, automation capability, and applicability.