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

◆ nrf_edgeai_obsv_core_update_features()

int nrf_edgeai_obsv_core_update_features ( nrf_edgeai_obsv_core_t * p_ctx,
const float * p_feats,
uint16_t n )

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_core.h>

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

Routes p_feats only to metrics registered with NRF_EDGEAI_OBSV_SOURCE_FEATURES, and advances the feature counter (nrf_edgeai_obsv_core_t::num_features). It does NOT advance the inference counter (nrf_edgeai_obsv_core_t::num_inferences): the two streams are counted independently — an inference is counted only when its output is fed via nrf_edgeai_obsv_core_update_probs.

Parameters
p_ctxInitialized core.
p_featsArray of n feature values.
nNumber of entries in p_feats.
Returns
0 on success, -EINVAL if p_ctx or p_feats is NULL.