This application note describes how to save custom image settings onto a FLIR machine vision camera.
Using FLIR machine vision software (whether through a GUI or through working directly with our API), it’s possible to change a variety of settings, such as frame rate, region of interest, pixel format, or gain. The complete list of settings that are stored are found in your camera's Technical Reference manual, available from the downloads page. By default, once a camera has been power-cycled (disconnected from its power source and reconnected), the camera starts up with its factory default settings.
Using the FlyCapture®2 SDK, or the Spinnaker® SDK, it’s possible to save custom settings to the camera so that even after a power-cycle occurs, the camera starts up with the settings that were saved. Each camera is capable of saving up to two custom profiles.
After the cameras have been physically connected, use either the SDK's demo program or write code to save Custom Settings.
SpinView is the demo program available with the Spinnaker® SDK.
Saving the settings to a user set and changing the default to the same user set ensures the camera starts up with these settings even after a power cycle.
FlyCap2 is the demo program available with the FlyCapture2 SDK.
There is no User Set Default in FlyCap2. Saving to a memory channel ensures the camera starts up with the settings just saved to this memory channel even after a power cycle.
Both Spinnaker and FlyCapture2 have a default profile that can’t be overwritten. This keeps the camera’s factory default settings available.
Loading the default user set means changing the current camera settings back to factory default settings; changing user set default to Default means after a power-cycle, the camera starts up with default settings.
Clicking restore means changing the current camera settings to Default settings; clicking save means after a power-cycle, the camera starts up with default settings.
It’s possible to make modifications to the custom settings within both the Spinnaker and FlyCapture2 API directly, without needing to go through the SpinView or FlyCap2 applications. Links to sample code showcasing this functionality can be found below.
SavetoUserSet.cpp shows how to save custom settings to a user set. It modifies the frame rate value to 10, then saves this change to user set 1. It also shows how to restore to factory default settings.
SavetoMemoryChannel.cpp shows how to save custom settings to a memory channel. It modifies the frame rate value to 10, then saves this change to memory channel 1. It also shows how to restore to factory default settings.
When in a situation where the camera seems to be in a bad state, it’s possible to resolve this (without power-cycling the camera) by going back to factory default settings. Follow the Restoring to factory default settings section above for details on how to do this.