Skip to content

Latest commit

 

History

History
 
 

c_api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

OpenDR C API

Description

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.

Setup

In order to build the library you should:

  1. Build the OpenDR C API library
make libopendr

After building the API you will find the library (libopendr.so) under the lib folder.

Using the C API

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