A Template Matching Based Method for Surface-Mount Rectangular-Pin-Chip Positioning and Defect Detection | IEEE Conference Publication | IEEE Xplore