System.loadLibrary找不到该库

时间:2015-03-25 15:44:45

标签: java opencv javacv opencv3.0

我不知道为什么eclipse用红线强调System.loadLibrary(Core.NATIVE_LIBRARY_NAME);并说:native library name can't resolved to a variable

成功导入opencv2.4.11库,以便识别此类代码Mat imgSrc = new Mat();

public class Core {

    public static void main(String[] args) {
        System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

        Mat imgSrc = new Mat();
        imgSrc = Highgui.imread("c:/private/ArbeitsOrdner_19_Mar_2015/images/images.jpg");

        System.out.println("channels: " + imgSrc.channels());
    }
}

0 个答案:

没有答案