A Smart Deep Convolutional Neural Network for Real-Time Surface Inspection