Build statically, missing cv::countNonZero(cv::_InputArray const&)
I am missing quite a few references: libopencv_imgproc.a(filter.dispatch.cpp.o):filter.dispatch.cpp:function cv::preprocess2DKernel(cv::Mat const&, std::__ndk1::vector,...
View ArticleConvert Python Into Java / Kotlin using these operations
I'm totally new in OpenCV. Does anyone knows how to convert below Python into Java/Kotlin? Only these a bit tricky to translate it. diff=cv2.subtract(img1, img2) diff[abs(diff)<30]=0 gray =...
View ArticleOpencv4Android build error with arm64-v8a
I succesfully build Opencv 3.4.1 for Android for target **armeabi-v7a**. But when in CMAKE I specify target ANDROID_ABI: **arm64-v8a**, I got this error at the end on build process: [100%] Linking CXX...
View ArticleVideo writer in java not saving
Hello all, I want to record the frames I'm processing in my android smarthpone but nothing is being saved. I'm not getting any error either... First I created the object in the **MainActivity**: >...
View ArticleOpencv4Android build error with arm64-v8a
I succesfully build Opencv 3.4.1 for Android for target **armeabi-v7a**. But when in CMAKE I specify target ANDROID_ABI: **arm64-v8a**, I got this error at the end on build process: [100%] Linking CXX...
View ArticleHow to change color of all non transparent pixels to black?
I use OpenCV (Java) and I want to change color of all the non transparent pixels in my Mat to black (colors defined in ARGB_8888 but could be another format) How can I do that ? Mat mat = new Mat();...
View ArticleCan not build single dynamic library (libopencv_java4.so) for Android
I am on Mac and trying to build the dynamic library for some of the modules and finally create a single .so file for Android. I have downloaded and built from source (Opencv release 4.5.0). The static...
View Articleopencv 4.5.0 cvDiv/cvMat equivalent ?
System information (version) OpenCV => 4.5.0 Operating System / Platform => MacOS Compiler => Android Studio with ndkBuild Detailed description I am developing and android app, I am using...
View ArticleUse build_sdk.py to build opencv4 for android on Windows
Hi, I need to build OpenCV for Android on Windows10. The OpenCV version is 4.4 and the command I use is: opencv-master\platforms\android\build_sdk.py...
View ArticleAndroid OpenCV + camera is just showing black screen
I've spent days (well, nights) trying to work this out. So many examples online are for different versions of Android Studio, different versions of Android, different versions of OpenCV and I can't get...
View ArticleCan I use OpenCV Android for commercial sales [2020]?
So I have an app built on traditional android, when I check the licensing for OpenCV it has: OpenCV 4.5.0 and higher versions are licensed under the Apache 2 License. Or if I use the older version...
View ArticleDidn't find class "android.view.JavaCameraView" on path: DexPathList[[zip...
Hello , please help me with the following error. I am doing a sample project using Open Source Computer Vision Library for Android. I imported module OpenCV-3.0.0-android-sdk-1 and created jniLibs...
View ArticleOpenCV with android not detecting image blur
I have downloaded opencv and integrated in android, https://brainhub.eu/blog/opencv-react-native-image-processing/ Even i capture blur image, i am not getting image as blur from open cv,...
View ArticleReduce frame resolution
I have android studio app and I need to access the camera and do some real-time processing to the video frames. I have tried to use **onCameraFrame()** method, the problem is that the process I do to...
View ArticleMobile app crashes when detecting facial landmarks
Hi, Recently github enabled opencv's extra classes through Python-for-android (including the face class). It has no trouble detecting the face binding boxes. It loads the LBF model, but then crashes...
View ArticleDoes OpenCV 4.3 support video capture from android?
I know that versions below 4.1 did not support and always returned an error, but in 4.1.1 support was added. *"VideoCapture C++ interface supports Android Media NDK (21+) video I/O file capture...
View ArticleError to cross compile into arm64-v8a by CV 4.3.0
I use CMake-GUI with Newest NDK 21.2.6472646 on Windows 10. If I remove BUILD_opencv_java, CMake will finish. [ 98%] Built target gen_opencv_java_source [ 98%] Linking CXX shared module...
View Article