Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ nrf_edgeai_obsv_update_features()

int nrf_edgeai_obsv_update_features ( nrf_edgeai_obsv_ctx_t * ctx,
const float * feats,
uint16_t n )

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv.h>

Feed one extracted-feature vector to all FEATURES-source metrics.

Routes feats only to metrics registered with NRF_EDGEAI_OBSV_SOURCE_FEATURES. Does not advance the inference counter; an inference is counted when its output is fed via nrf_edgeai_obsv_update_probs.

Parameters
ctxInitialized context.
featsArray of n feature values.
nNumber of entries in feats.
Returns
0 on success, -EINVAL if ctx or feats is NULL.