Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv is actually a c++ library (with additional java bindings). you forgot to load opencv_java.so/dll before using any native code.

public class DetectFace {
    static{ 
        System.loadLibrary(Core.NATIVE_LIBRARY_NAME); // load opencv_java
    }

    public void Detect(){
         ...
    }
}