A Convolutional Neural Network Based Pipeline for the Streamlining of the Masonry Quality Index Analysis