|
|
@ -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"); |
|
|
|