java - OpenCV CascadeClassifier error -
i'm trying face detection through webcam, got error, cascadeclassifier error.
after testing, found line of code generate error
cascadeclassifier face_cascade = new cascadeclassifier();
the error got
exception in thread "main" java.lang.unsatisfiedlinkerror: org.opencv.objdetect.cascadeclassifier.cascadeclassifier_0()j @ org.opencv.objdetect.cascadeclassifier.cascadeclassifier_0(native method) @ org.opencv.objdetect.cascadeclassifier.<init>(cascadeclassifier.java:38) @ camcapture.main(camcapture.java:24)
is know how solve this?
finally found answer,
i should load library before use cascadeclassifier. put code
system.loadlibrary(core.native_library_name);
before cascadeclassifier.
Comments
Post a Comment