Exception in thread “main“ java.lang.UnsatisfiedLinkError: org.opencv.ml.SVM.load

tech2024-10-16  12

用Java调用openCV的SVM报错:

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.ml.SVM.load_0(Ljava/lang/String;)J at org.opencv.ml.SVM.load_0(Native Method) at org.opencv.ml.SVM.load(SVM.java:122) at com.springdemo.table_classification.Train.test1(Train.java:149) at com.springdemo.table_classification.test.main(test.java:42)

问题分析:调用前没有加载openCV的动态链接库。

加载动态链接库后大功告成!

最新回复(0)