Automated Template Matching for External Thread Surface Defects with Image Processing | IEEE Conference Publication | IEEE Xplore