Machine Learning and Thermography Applied to the Detection and Classification of Cracks in Building