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 …
Tag: opencv
java – Computer Vision – filtering convex hulls and convexity defects with OpenCV-ThrowExceptions
Exception or error: I have the problem with processing digital signals. I am trying to detect fingertips, similar to the solution that is presented here: Hand and finger detection using JavaCV. However, I am not using JavaCV but OpenCV for android which is slightly different. I have managed to do all the steps presented in …
java – Memory Leak from iterating Opencv frames-ThrowExceptions
Exception or error: I am using the java wrapper of OpenCV. I tried to write an Iterator over frames of a film. My problem is that the iterator is a huge memory leak. Here is a very simplified version of the iterator, which has this leak: public static final class SimpleIt implements Iterator<Mat> { private …
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 enum variables(like CV_BGR2GRAY or CV_AA) missing in the recent Java API?-ThrowExceptions
Exception or error: I’ve setup a Java project in Eclipse to detect faces and eyes in images. Everything is working fine except that I’m forced to use numeric values to represent the enum variables like CV_BGR2GRAY or CV_AA. Is there some import(or there is a way to reference them) that can be done to access …
How to build OpenCV with Java under Linux using command line?(Gonna use it in MapReduce)-ThrowExceptions
Exception or error: Recently I’m trying OpenCV out for my graduation project. I’ve had some success under Windows enviroment. And because with Windows package of OpenCV it comes with pre-built libraries, so I don’t have to worry about how to build them. But since the project is suppose to run on a cluster with CentOS …
eclipse – Java OpenCV – org.opencv.core.Core rectangle() method missing-ThrowExceptions
Exception or error: I have openCV-3.0.0 alpha and I found a sample code on the openCV tutorials website. I used to same code and compiled it, but eclipse tells me that the rectangle() method in the org.opencv.core.Core class cannot be found. I checked the class myself and indeed could not find this method. Does anyone …
algorithm – Optimizing performance of GrabCut in opencv-java-ThrowExceptions
Exception or error: Recently I have been given a project, where I have to extract face (face+hair) from a given image. I am solving this problem in the following ways. I am extracting face locations from given image. [I am getting a rectangle] I am extracting that rectangle and placing it in another image of …
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 …
java – Recording Live OpenCV Processing on Android-ThrowExceptions
Exception or error: My goal is to do a couple things: Use OpenCV and the JavaCameraView to process frames from the phone’s camera feed Enable recording of that processed video as it happens I have both of them working, but the way I had to implement number 2 is ridiculous: For each frame, write the …