Ask Your Question

Revision history [back]

Exception in thread "main" java.lang.UnsatisfiedLinkError: ORB.create_0 (IFIIIIIII) J

In the use of opencv, I have to solve Exception in thread "main" java.lang.UnsatisfiedLinkError: ORB.create_0 (IFIIIIIII) J Please!!! I need to send as a parameter the number of points to detect.

Thank you

Exception in thread "main" java.lang.UnsatisfiedLinkError: ORB.create_0 (IFIIIIIII) J

In the use of opencv, I have to solve Exception in thread "main" java.lang.UnsatisfiedLinkError: ORB.create_0 (IFIIIIIII) J Please!!! I need to send as a parameter the number of points to detect.

Thank you

***Code****

class descriptorOrb {

static {
    System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
}

public static void main(String[] args) {

    ORB orbE = ORB.create(2000, 1.3f, 9, 32, 0, 2, ORB.HARRIS_SCORE, 35, 22);
}

}

public class ORB extends Feature2D {

protected ORB(long addr) { super(addr); }

public static final int
        HARRIS_SCORE = 0;

public static ORB create(int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize, int fastThreshold) { ORB retVal = new ORB(create_0(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType, patchSize, fastThreshold));

    return retVal;
}

public static ORB create()
{

    ORB retVal = new ORB(create_1());

    return retVal;
}

private static native long create_0(int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize, int fastThreshold);
private static native long create_1();

}

*Error Exception in thread "main" java.lang.UnsatisfiedLinkError: ORB.create_0(IFIIIIIII)J at ORB.create_0(Native Method) at ORB.create(ORB.java:30)

Exception in thread "main" java.lang.UnsatisfiedLinkError: ORB.create_0 (IFIIIIIII) J

In the use of opencv, I have to solve Exception in thread "main" java.lang.UnsatisfiedLinkError: ORB.create_0 (IFIIIIIII) J Please!!! I need to send as a parameter the number of points to detect.

Thank you

***Code****

class descriptorOrb {

static {
    System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
}

public static void main(String[] args) {

    ORB orbE = ORB.create(2000, 1.3f, 9, 32, 0, 2, ORB.HARRIS_SCORE, 35, 22);
}

}

public class ORB extends Feature2D {

protected ORB(long addr) { super(addr); }

public static final int
        HARRIS_SCORE = 0;

public static ORB create(int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize, int fastThreshold) { ORB retVal = new ORB(create_0(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType, patchSize, fastThreshold));

    return retVal;
}

public static ORB create()
{

    ORB retVal = new ORB(create_1());

    return retVal;
}

private static native long create_0(int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize, int fastThreshold);
private static native long create_1();

}

*Error

Exception in thread "main" java.lang.UnsatisfiedLinkError: ORB.create_0(IFIIIIIII)J at ORB.create_0(Native Method) at ORB.create(ORB.java:30)ORB.create(ORB.java:30) at descriptorOrb .main(surf.java:88) at descriptorOrb .reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)