Text this: Enhancement study of electronic component size measurement and defect detection based on machine vision