rocAL Python Binding#
rocAL Python Binding allows you to call functions and pass data from Python to rocAL C/C++ libraries, letting you take advantage of the rocAL functionality in both languages.
rocal_pybind.so is a wrapper library that bridge python and C/C++, so that a rocAL functionality written primarily in C/C++ language can be used effectively in Python.
Prerequisites#
CMake Version
3.5
or higherPython Version
3
PIP3
PIP3 Packages -
numpy
,opencv-python
,torch
rocal_pybind install#
rocAL_pybind installs during MIVisionX build
Prerequisites install to run test scripts#
Install PIP3
Ubuntu 20/22
sudo apt install python3-pip
Install pip packages
pip3 install numpy opencv-python torch
Install
CuPy
forROCm
-https://github.com/ROCmSoftwarePlatform/cupy
Run Test Scripts#
Test scripts and instructions to run them can be found here