SOD C/C++ API - RealNet Architecture

Syntax

int sod_realnet_create(sod_realnet **ppOut);

Description

This routine allocate & initialize a new sod_realnet instance. RealNets are just container for various neural network architectures that are registered via sod_realnet_load_model_from_mem() or sod_realnet_load_model_from_disk(). A sod_realnet handle is usually returned in *ppOut but, if the engine is unable to allocate memory to hold the entire container, NULL will be written into *ppOut. This routine is often the first API call that an application makes and is a prerequisite in order to work with the RealNet interfaces. The life of this handle is described here.

Parameters

sod_realnet    **ppOut

OUT: On success, a fresh sod_realnet handle is written into this pointer and this instance is ready to perform real-time detection via sod_realnet_detect() if a model is registered within this container. The life of this handle is described here.

Return Value

SOD_OK is returned on success. Any other code indicates failure.

Example

Checkout the introduction course, the C/C++ samples on the download page or refer to the SOD Github Repository.

See also

sod_realnet_destroysod_realnet_load_from_memsod_realnet_model_configsod_realnet_detectsod_realnet_load_from_disk.


Back