diff --git a/src/src/main/java/com/my/graphiteDigesterBg/MyApplicationRunner.java b/src/src/main/java/com/my/graphiteDigesterBg/MyApplicationRunner.java index 58bd1a7..2c79907 100644 --- a/src/src/main/java/com/my/graphiteDigesterBg/MyApplicationRunner.java +++ b/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");