Abstract
To address the limitation of measurement accuracy caused by the structural complexity of threads, this paper proposes an improved Foerstner corner detection method based on adaptive gradient weighting (AGW-Foerstner), combined with corner-level dynamic calibration and a neural network error compensation strategy, to effectively enhance measurement precision. First, the covariance matrix is weighted by gradient magnitude to accurately locate crest and root points of the thread. Second, a local homography matrix is employed to dynamically calculate the pixel equivalent for each corner. Finally, by deeply integrating vision-based measurements with a neural network error compensation model, a residual prediction network is constructed, where key measured parameters such as major diameter and pitch diameter serve as inputs and true values as outputs, thereby achieving error correction. Experimental results validate the applicability of the proposed method across thread samples of different specifications, showing a significant reduction in measurement errors of critical parameters. This approach realized stable high-precision measurement and provides a practical solution for industrial thread inspection.

This publication has 25 references indexed in Scilit: