sige 1 year ago
parent
commit
eea242cf83
  1. 8
      src/src/main/java/com/my/graphiteDigesterBg/MyApplicationRunner.java

8
src/src/main/java/com/my/graphiteDigesterBg/MyApplicationRunner.java

@ -12,12 +12,20 @@ public class MyApplicationRunner implements ApplicationRunner {
@Value("${opencv.library-path}")
private String opencvLibraryPath;
@Value("${pylon.library-path}")
private String pylonLibraryPath;
@Value("${pylon.wrapper-path}")
private String pylonWrapperPath;
@Resource
private DiDevice device;
@Override
public void run(ApplicationArguments args) throws Exception {
System.load(this.opencvLibraryPath);
System.load(this.pylonLibraryPath);
System.load(this.pylonWrapperPath);
var runtimeVars = this.device.getRuntimeVariables();
runtimeVars.remove("IsDeviceReady");

Loading…
Cancel
Save