具体错误:
java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_eye(III)J at org.opencv.core.Mat.n_eye(Native Method) at org.opencv.core.Mat.eye(Mat.java:402)
解决办法是:
import org.opencv.core.Core; 调用之前,加载一下本地库: System.loadLibrary(Core.NATIVE_LIBRARY_NAME);