This module contains a C API that can be used for performing inference on models trained using the Python API of OpenDR.
Therefore, to use the C API you should first use the Python API to train a model and then export it to ONNX format using the optimize()
method.
In order to build the library you should:
- Build the OpenDR C API library
make libopendr
After building the API you will find the library (libopendr.so
) under the lib
folder.
To use the C API in your applications you just need to include the header files (include
folder) in your project and then link the compiled library by adding the following flags to gcc/g++, e.g.,
gcc you_program.c -o your_binary -I./include -L./lib -lopendr