cannot load image on android
Every time I try to run template match function in android studio, I get Assertion failed error. I have started to debug and my img.cols() and img.rows() is always 0. Some kind of empty matrix is being created. When I run the code as a normal Java application, it works like a charm. However, using android with the same purpose, has not been that great.
Mat img = Imgcodecs.imread(inFile). //img.cols() is 0??
Has anynone faced the same issue?
Any help will be appreciated.
"and my img.cols() and img.rows() is always 0" -- so, the image was not loaded. what is "inFile" ?
(it's not related to template matching at all)