Ask Your Question

Lokesh Tiwari's profile - activity

2014-08-01 01:33:23 -0600 received badge  Editor (source)
2014-08-01 01:31:56 -0600 asked a question OpenCV setup on Mac Java opencv2.4.9
import org.opencv.core.CvType;
import org.opencv.core.Mat;
public class Main {
    public static void main(String[] args) {
      System.loadLibrary("opencv_java249");
          Mat m = Mat.eye(3, 3, CvType.CV_8UC1);
          System.out.println("m = " + m.dump());
    }
}

I get

Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java244in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
    at java.lang.Runtime.loadLibrary0(Runtime.java:840)
    at java.lang.System.loadLibrary(System.java:1047)
    at Main.main(Main.java:9)

This is sample code and error produced. I have tried

System.load("obsulutepath//opencv_java249.dll");

also but same error happens every time. Is their any other "dll" for mac os(mountain lion) or do we need .NET framework in PC so that this dll get executed. Please guide.

2014-07-16 02:09:18 -0600 commented question Error: Cannot run program "\ndk-build.cmd"

Solved by directly putting absolute path of ndk-build.cmd for e.g.(C:\Users\android-ndk-r9d) in eclipse C++ build

2014-03-04 01:14:30 -0600 asked a question OPEN CV Haartraining Fails at last command of training

OutPut on CMD
'--------------------------------'

Data dir name: haarcascade
Vec file name: samples.vec
BG file name: negativesList.dat
Num pos: 250
Num neg: 99
Num stages: 20
Num splits: 2 (tree as weak classifier)
Mem: 2048 MB
Symmetric: FALSE
Min hit rate: 0.999000
Max false alarm rate: 0.500000
Weight trimming: 0.950000
Equal weights: FALSE
Mode: ALL
Width: 160
Height: 200
Max num of precalculated features: 1025541
Applied boosting algorithm: GAB
Error (valid only for Discrete and Real AdaBoost): misclass
Max number of splits in tree cascade: 0
Min number of positive samples per cluster: 500
Required leaf false alarm rate: 9.53674e-007

Tree Classifier Stage +---+ | 0| +---+

After that it give It give Error on Dialog Box "Open CV GUI Error Handler" with no description.

I am using 2.4.6 OpenCv , C++ code on windows 7 professional Please Help.