A large number of casing and tubing are used in the development and production of oil and gas resources. As a key connection element in the wellbore structure, the geometric accuracy of casing and tubing thread is directly related to the sealing performance and structural safety of the joints. To address the limitations of conventional contact inspection methods in efficiency, stability, and automation, a digital detection method for thread geometric parameters based on laser triangulation and 3D point cloud processing was proposed. It used a line-array laser displacement sensor to acquire a high-density surface point cloud, and combined adaptive weighted outlier removal with voxel grid filtering to improve data integrity and continuity. Then, a first-order derivative analysis was applied to the cross-sectional point cloud to achieve segmented identification of the crest, root, and transition zones, and weighted least squares fitting was employed to suppress outlier interference, resulting in compact and high-fidelity outer profile data. Experimental results show that this method has a height measurement deviation of less than 0.03 mm for the TP-G2 and TP-CQ premium connections, and a pitch measurement deviation of less than 0.05 mm. This method offers the advantages of non-contact operation, high stability, and strong robustness, making it suitable for online measurement and quality monitoring of complex thread structures.