[solved]How do I configure Qt 5.3 for Android opencv 2.4.9 ? (on mac os x)
-
Re-reading your error, it seems you are using a method that is not implement for android. Can you share the OpenCV code you are using ?
-
it's a simple code:
@#include "opencv2/opencv.hpp"
#include "opencv2/highgui/highgui.hpp"using namespace cv;
int main(int argc, char *argv[])
{
namedWindow("output",1);
Mat output = Mat::zeros(120,350,CV_8UC3);
putText(output,"Hello world :)", cvPoint(15,70), FONT_HERSHEY_PLAIN,3,cvScalar(0,255,0),4);
imshow("Output",output);
waitKey(0);
return 0;
}@ -
Wild guess but I'd say that either namedWindow, imshow or both are not implemented for android
-
Could you recommend a sample code.
-
Not really, since you are currently using OpenCV only code, you should rather ask on the OpenCV forum for their support on android
-
Did you resolve this? I'm about to try the same thing on Fedora.
-
Did you resolve this? I'm about to try the same thing on Fedora.
-
No, I couldn't yet. My main problem is sample code at the moment. I couldn't find sample code about this subject. But I found configurations from this "link":http://stackoverflow.com/questions/27562311/how-to-integrate-opencv-into-qt-creator-android-project
I hope that helps. -
No, I couldn't yet. My main problem is sample code at the moment. I couldn't find sample code about this subject. But I found configurations from this "link":http://stackoverflow.com/questions/27562311/how-to-integrate-opencv-into-qt-creator-android-project
I hope that helps. -
Finally, I found it. Configurations are my previous reply. And you must copy libnative_camera_r4.2.0.so(must be compatible with the your android version(this is important)) to project_root/android/libs/armeabi-v7a/ .
Then you can watch "this":https://www.youtube.com/watch?v=0ONxIy8itRA video for source code. -
Finally, I found it. Configurations are my previous reply. And you must copy libnative_camera_r4.2.0.so(must be compatible with the your android version(this is important)) to project_root/android/libs/armeabi-v7a/ .
Then you can watch "this":https://www.youtube.com/watch?v=0ONxIy8itRA video for source code. -
This is already solved but anyway here is how I do it all the time:
http://amin-ahmadi.com/2015/06/23/opencv-qt-android-adding-required-libraries-and-includes/