The thing is that I'm not sure if Canny Edge would be the best solution for my project.
As the OpenMV doesn't need a computer or an Arduino to control a relay, I wanted to use it to control the production of a machine.
I have recorded two little videos of the machine working (one with good pieces after a process and one with a bad one):
In this example I'm using the IR leds, but they shine too much, I guess that I'll have to use an external IR light source)
This one would be an example of a malformed spring after the process. I want to activate a relay when the camera gets something different to an empty hole or a hole with deformed springs:
I've tried with the circle detection, but I guess that my searching area is too big and it crashes if I want to use QVGA resolution.
I don't know if comparing the image with a pattern would be effective, as there are holes without springs (and it's ok).
Any recommendation would be truly appreciated.