Hi,
I am using the dnn OpenCV module to deploy Caffe models, as explained in this
blog post.
The module, however, doesn't support data transformations yet. I need to extract the mean value from my images so I though this would work:
cv::subtract(img, mean_value, img)
However, doing this doesn't result in the same feature vector that I get using Caffe directly or the python interface. Note that I do get the same result if I don't use mean values, i.e., if i don't use the data transformation in Caffe and I don't use subtract in OpenCV.
Any idea why this is happening? Is the mean value subtracted in a different way in Caffe?
Thanks in advance,
Daniel