fix bug
parent
0482e9f402
commit
0629937327
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,30 @@
|
||||
package com.zhehekeji.web.lib;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
public class BarCodeScan {
|
||||
|
||||
public static native String detectBestBarCode(String filePath);
|
||||
|
||||
static
|
||||
{
|
||||
try{
|
||||
String path = System.getProperty("user.dir")+"\\libs\\code_scan";
|
||||
System.setProperty("java.library.path", path);
|
||||
Field fieldSysPath = ClassLoader.class.getDeclaredField("sys_paths");
|
||||
fieldSysPath.setAccessible(true);
|
||||
fieldSysPath.set(null, null);
|
||||
|
||||
System.loadLibrary("opencv_world341");
|
||||
System.loadLibrary("libiconv");
|
||||
System.loadLibrary("libnlopt-0");
|
||||
System.loadLibrary("lpv");
|
||||
System.loadLibrary("libCyclops");
|
||||
System.loadLibrary("TestJNI");
|
||||
}catch(Exception e)
|
||||
{
|
||||
System.out.println(e);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue