An electronic component defect detection method based on SVM