bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.51k stars 1.58k forks source link

java.lang.UnsatisfiedLinkError: no opencv_java460 in java.library.path #1947

Open javaofferss opened 1 year ago

javaofferss commented 1 year ago

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java460 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at com.javaoffers.material.sample.MatSample.main(MatSample.java:21)

saudet commented 1 year ago

It doesn't look like you're using JavaCV...

javaofferss commented 1 year ago

hello, Can I use opencv's api in javacv

saudet commented 1 year ago

Sure, just make sure to follow the instructions in the README.md file here: https://github.com/bytedeco/javacpp-presets/tree/master/opencv#documentation

javaofferss commented 1 year ago

图片

saudet commented 1 year ago

Where are you calling Loader.load(opencv_java.class)?

thhart commented 1 year ago

Where is this documented more prominent? IMHO no one will dive into this: https://github.com/bytedeco/javacpp-presets/tree/master/opencv#documentation

saudet commented 1 year ago

Yes, we could have more documentation and samples. Contributions are welcome!

thhart commented 1 year ago

How about to add this call into the samples of the main page here. I can not see this call anywhere or is it not applicable for these samples?

saudet commented 1 year ago

Not applicable, yes.