I want to count the threads of a bolt in an image. My solution is this:

  • capture an image
  • Find the bolt
  • Get one dimentional data from it's top to bottom
  • Find the thread count from signal

This is the bolt with a red line specifying where the samples are being picked: enter image description here

And this is the generated signal from pixels in the image: enter image description here

How can I get thread counts from this signal?

How can I find the threads part?

  • 1
    $\begingroup$ Conceptually, this question and this question are similar. Therefore, I would suggest that we keep one and talk about the variations in the "counting" process. Also please keep in mind that you are going to have to talk a bit more about your lighting and if you are not doing it already you are going to have to control the imaging conditions very much to ensure a consistent result. $\endgroup$ – A_A Dec 4 '18 at 9:48
  • $\begingroup$ Thanks. I combined two questions and will delete this question soon $\endgroup$ – rostamiani Dec 4 '18 at 10:23

Browse other questions tagged or ask your own question.