Currently, in my project I have to detect only connector bend in overall PCB board. So i need the source code which camera can detect only connector bend and marked the defect in red mark. In overall PCB board the source code which can trained the raspberry pi to detect the components separately. For an example, if I want to detect only the connector in overall PCB board, so what is the source code to do like this. Hope I get answer for my question. Thank you.