Git Product home page Git Product logo

Comments (4)

vonnieda avatar vonnieda commented on July 4, 2024

Hi @hurschler, are you sure that you are using org.openpnp.opencv and not another package? This package does not use bytedeco.javacpp and I don't see any references to this package in your repo: https://github.com/deeplearning4j/deeplearning4j/search?utf8=%E2%9C%93&q=openpnp&type=

Thanks,
Jason

from opencv.

hurschler avatar hurschler commented on July 4, 2024

In the Code that I use is a NativeImageLoader Class (org.datavec.image.loader.NativeImageLoader). And this Class create another Class new Mat() -> org.bytedeco.javacpp.opencv_core. The static initialization process try to load a native lib. And I think its a part of opencv wich is not found (opencv_core$AbstractArray.(opencv_core.java:109)).

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1225)
at org.bytedeco.javacpp.Loader.load(Loader.java:983)
at org.bytedeco.javacpp.Loader.load(Loader.java:882)
at org.bytedeco.javacpp.opencv_core.(opencv_core.java:10)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.bytedeco.javacpp.Loader.load(Loader.java:941)
at org.bytedeco.javacpp.Loader.load(Loader.java:882)
at org.bytedeco.javacpp.helper.opencv_core$AbstractArray.(opencv_core.java:109)
at org.datavec.image.loader.NativeImageLoader.streamToMat(NativeImageLoader.java:256)
at org.datavec.image.loader.NativeImageLoader.asMatrix(NativeImageLoader.java:227)
at org.datavec.image.loader.NativeImageLoader.asMatrix(NativeImageLoader.java:221)

org.bytedeco.javacpp.opencv_core ->>>>

@namespace("cv") @NoOffset public static class Mat extends AbstractMat {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. /
public Mat(Pointer p) { super(p); }
/
* Native array allocator. Access with {@link Pointer#position(long)}. */
public Mat(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@OverRide public Mat position(long position) {
return (Mat)super.position(position);

from opencv.

hurschler avatar hurschler commented on July 4, 2024

Ok sorry maybe it's the wrong opencv project right?

from opencv.

vonnieda avatar vonnieda commented on July 4, 2024

HI @hurschler, yes, wrong project I'm afraid. I think you are looking for this one: https://github.com/bytedeco/javacv

Thanks,
Jason

from opencv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.