android – How to convert MatOfPoint to MatOfPoint2f in opencv java api-ThrowExceptions

Exception or error: I’m trying to implement the example code of the following question by using opencv java api. To implement findContours(gray, contours, CV_RETR_LIST, CV_CHAIN_APPROX_SIMPLE); in java i used this syntax Imgproc.findContours(gray, contours, new Mat(), Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE);. So now contours should be List<MatOfPoint> contours = new ArrayList<MatOfPoint>(); rather than vector<vector<cv::Point> > contours;. Then i need …

Comparing two images with OpenCV in Java-ThrowExceptions

Exception or error: I am trying to compare two images (determine whether they are similar or not) using the OpenCV library. I configured the java wrapper and found several tutorials (mostly in C/C++) that I am trying to rewrite into Java. I am using the feature detection approach. The problem is that the algorithm that …

opencv – java.lang.UnsatisfiedLinkError: Native Library XXX.so already loaded in another classloader-ThrowExceptions

Exception or error: I have deployed one web-application, which contains following code. System.loadLibrary(org.opencv.core.Core.NATIVE_LIBRARY_NAME); Now, I deployed another web-application which also have same code. When it tries to load library, it throwing following error. Exception in thread “Thread-143” java.lang.UnsatisfiedLinkError: Native Library /usr/lib/jni/libopencv_java248.so already loaded in another classloader I want to run these both application simultaneously. Till …