[JAVA] Fixed IECore constructor (#2685)
This commit is contained in:
parent
9367266ed5
commit
347e92cc82
@ -25,7 +25,7 @@ JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore(JNIEnv *env, jobj
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore_1(JNIEnv *env, jobject obj, jstring xmlConfigFile)
|
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore1(JNIEnv *env, jobject obj, jstring xmlConfigFile)
|
||||||
{
|
{
|
||||||
static const char method_name[] = "GetCore_1";
|
static const char method_name[] = "GetCore_1";
|
||||||
try
|
try
|
||||||
|
@ -21,7 +21,7 @@ JNIEXPORT void JNICALL Java_org_intel_openvino_IECore_SetConfig(JNIEnv *, jobjec
|
|||||||
JNIEXPORT void JNICALL Java_org_intel_openvino_IECore_SetConfig1(JNIEnv *, jobject, jlong, jobject);
|
JNIEXPORT void JNICALL Java_org_intel_openvino_IECore_SetConfig1(JNIEnv *, jobject, jlong, jobject);
|
||||||
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetConfig(JNIEnv *, jobject, jlong, jstring, jstring);
|
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetConfig(JNIEnv *, jobject, jlong, jstring, jstring);
|
||||||
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore(JNIEnv *, jobject);
|
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore(JNIEnv *, jobject);
|
||||||
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore_1(JNIEnv *, jobject, jstring);
|
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore1(JNIEnv *, jobject, jstring);
|
||||||
JNIEXPORT void JNICALL Java_org_intel_openvino_IECore_delete(JNIEnv *, jobject, jlong);
|
JNIEXPORT void JNICALL Java_org_intel_openvino_IECore_delete(JNIEnv *, jobject, jlong);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -10,7 +10,7 @@ public class IECore extends IEWrapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public IECore(String xmlConfigFile) {
|
public IECore(String xmlConfigFile) {
|
||||||
super(GetCore_1(xmlConfigFile));
|
super(GetCore1(xmlConfigFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
public CNNNetwork ReadNetwork(final String modelPath, final String weightPath) {
|
public CNNNetwork ReadNetwork(final String modelPath, final String weightPath) {
|
||||||
@ -92,7 +92,7 @@ public class IECore extends IEWrapper {
|
|||||||
|
|
||||||
private static native long GetCore();
|
private static native long GetCore();
|
||||||
|
|
||||||
private static native long GetCore_1(String xmlConfigFile);
|
private static native long GetCore1(String xmlConfigFile);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected native void delete(long nativeObj);
|
protected native void delete(long nativeObj);
|
||||||
|
@ -8,6 +8,7 @@ Upon start-up, the application reads command-line parameters and loads a network
|
|||||||
|
|
||||||
## Build
|
## Build
|
||||||
Create an environment variable with Inference Engine installation path:
|
Create an environment variable with Inference Engine installation path:
|
||||||
|
```bash
|
||||||
export IE_PATH=/path/to/openvino/bin/intel64/Release/lib
|
export IE_PATH=/path/to/openvino/bin/intel64/Release/lib
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user