Text this: Defect detection in thermal image using thresholding technique