-1
我已經successully編譯,但是對模擬器中運行它給我奇怪的錯誤OpenCV的測試例(videoemulation):OpenCV的錯誤在android系統
06-25 15:36:34.526: D/dalvikvm(621): Trying to load lib /data/data/org.siprop.opencv /lib/libopencv.so 0x405139b0
06-25 15:36:34.566: D/dalvikvm(621): Added shared lib /data/data/org.siprop.opencv/lib/libopencv.so 0x405139b0
06-25 15:36:34.566: D/dalvikvm(621): No JNI_OnLoad found in /data/data/org.siprop.opencv/lib/libopencv.so 0x405139b0, skipping init
06-25 15:36:34.619: D/VideoEmulation(621): mOpenCVAction = TRACK_SINGLE_FACE
06-25 15:36:34.627: D/VideoEmulation(621): onResume
06-25 15:36:34.627: D/VideoEmulation(621): initFaceDetect
06-25 15:36:34.637: E/CVJNI(621): Error loading cascade.
06-25 15:36:34.637: D/VideoEmulation(621): Failed to initialize face detection!
難道我不是加載的功能。請指導我。
這是OpenCV的的Java文件:
public class OpenCV {
static {
System.loadLibrary("opencv");
}
public native byte[] findContours(int[] data, int w, int h);
public native boolean createSocketCapture(String address, String port, int width, int height);
public native void releaseSocketCapture();
public native boolean grabSourceImageFromCapture();
public native byte[] getSourceImage();
public native boolean setSourceImage(int[] data, int w, int h);
public native boolean initFaceDetection(String cascadePath);
public native void releaseFaceDetection();
public native boolean highlightFaces();
public native Rect[] findAllFaces();
public native Rect findSingleFace();
}
我已經加入了OpenCV.Java文件,所以它是錯..... – Programmer
我說的是C++代碼而不是java。 – ArtemStorozhuk
好吧,讓我找出...但感謝你的努力 – Programmer