Environmentally resistant vision units and deep learning image recognition for automated defect identification and energy efficiency.