The ibaVision installation includes an example script. The example script can be found on GitHub: https://github.com/iba-ag/ibaVision-Example-Scripts
The listed code in this manual may not match the example from GitHub in all details. The script uses the OpenCV (https://opencv.org) library to rotate an input image (for example, from an ibaCapture video output) by an angle specified as a control input and then returns the rotated image as an image output as well as the average brightness of the image as a control output.
To use the example script in ibaVision, the user needs to have the OpenCV module for Python configured on his system. The easiest and fastest way to accomplish this is to use the pip package manager. Open a command prompt and type “pip install opencv-python”. The Python package manager will automatically install all required binaries and dependencies needed to use OpenCV in a Python script.