Developing User Kernels using User Kernel API

User Kernel API

For User Kernel development instructions, please refer to the Intel® Computer Vision SDK Samples documentation.

Registering a User Kernel in VAD

  1. Set VAD_USER_KERNELS environment variable to point to your libraries location. If not set, the default location will be used (user_kernels in the VAD directory)
  2. Copy the user kernel <module name>.so into the user_kernels folder.
  3. Optional - Create <module name>.xml. Add the  kernel element to hint VAD that this kernel does not have any propagation rules and that the output properties can be modified by the user. For example:
    <Kernel Name="<Full Kernel Name>"/>"> 
      <Parameter Index="1" Name="Width" Editable="true"/>
      <Parameter Index="1" Name="Height" Editable="true"/>
    </Kernel>
  4. Launch VAD.

Call Sequence of a Graph Verify and Release with User Kernels

The following diagram illustrates the user kernel verification and release sequence:

Call Sequence of a Graph Execution with User Kernels

The following diagram illustrates the user kernel call sequence:

For more complete information about compiler optimizations, see our Optimization Notice.