Closed IanButterworth closed 4 years ago
@ianshmean I agree on changes to #52 but adding tests which expect hardware will cause the package to fail under CI without a camera (including, e.g., PkgEvaluator runs). You could guard them with an environment variable or something if you so chose?
Regarding RGB support, there's loads of things that could be wrong - I've only really considered mono cameras in the main interface.
@samuelpowell Good points. I've made the requested changes. CI tests will exit early now, without loading Spinnaker.
I've also fixed a framerate issue where if the camera was set to auto framerate, framerate couldn't be changed. Note the addition of framerate!(cam)
too, to set back to auto framerate.
I thought I'd add some basic tests, given I often just want to try this on different cameras.
Currently these tests pass on my mono grasshopper3, but fail on its RGB equivalent. Not sure why yet.
Also, includes (a slightly modified) #52, so works with the new MacOS spinnaker SDK