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_destroy • sod_realnet_load_from_mem • sod_realnet_model_config • sod_realnet_detect • sod_realnet_load_from_disk.