The Python plug-in allows users to execute procedures written in the Python programming language, similar to how MVTec HALCON scripts work. For each Python script ibaVision will launch and handle a native CPython interpreter and take care of all inter-ops. Since the scripts have no dependencies on iba software, users are free to create, debug and test the scripts in their Python IDE of choice as standalone Python programs. Each script requires a special header to allow ibaVision to import scripts correctly and allow it to interact with the inputs/outputs parameters.
Requirements
-
ibaVision >=3.0.0 x64 (the Python plugin is not supported by ibaVision 32-bit)
-
Python 3.8.x with Numpy >=1.16 module installed
Installation
-
Install Python 3.8 from a source of your choice (e.g. https://www.python.org)
-
Install Numpy through the “pip” package manager by opening a command prompt and typing “pip install numpy”
Plug-in selection
Select the Python plug-in in the Plugin settings node of the ibaVision program, see chapter Plugin settings.