Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 1117

cannot load image on android

$
0
0
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.

Viewing all articles
Browse latest Browse all 1117

Trending Articles