PCB detection using python

The OP has previously posted a question about spotting defects on a PCB.
How to train the module? - Python Help - Discussions on Python.org