When importing a caffe model I am getting the error convolution_layer.cpp:89:error:(-215) input.dims() ==4 && (input.type() == CV_32F || input.type() == CV_64F) in function cv::dnn::ConvolutionLayerImpl::allocate.
We never used to have this problem until recently we have rebuilt the libaries multiple times. We have had the program sucessfully run for quite some time importing and classifying with caffe models. However we lost the origional copies and as we reconstructed the new libaries this error has occured.