Dimensional Analysis of Screw

In this image I aim to estimate the outer and inner diameter of screw.

Regarding outer diameter estimation, I was thinking of coming up with some method to hop from one peak of teeth to next peak… storing the pixel positions of peaks. Then regressing a line on those points. Then fitting a circle with max diameter between the regressed lines to estimate the outer diameter of pixel…

I could not get it to the shape of an algorithm to achieve the task. Please help me out in using OpenCV to complete the task.

Thanks in advance!!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.