Convolutional neural network for crack detection