There three ways:
- You can load and call the dll from Go. This is documented in https://github.com/golang/go/wiki/WindowsDLLs.
- You can load and call your dll or link the lib using cgo and call this from your Go code. This is more complicated and requires more brain power.
- You can use syscall.NewProc.
I would use the first. They are all documented in https://github.com/golang/go/wiki/WindowsDLLs with examples.
You can also look on Github for examples by searching for syscall.syscall9.
If your machine has the drivers and it’s openCV compatible you could use GOCV to capture data.