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

◆ nrf_edgeai_feed_inputs()

nrf_edgeai_err_t nrf_edgeai_feed_inputs ( nrf_edgeai_t * p_edgeai,
void * p_input_values,
uint16_t num_values )

#include <include/nrf_edgeai/rt/nrf_edgeai_runtime.h>

Feed raw input data to prepare it for signal processing & model inference.

Note
Should be called repeatedly with new input data until the input window is filled and ready for inference. If user feed less than nrf_edgeai_input_window_size() input samples, the runtime will keep collecting input data and return NRF_EDGEAI_ERR_INPROGRESS until the window is filled.

If user feed more than nrf_edgeai_input_window_size() input samples, the runtime will keep the first nrf_edgeai_input_window_size() samples, remainded samples will be ignored and return NRF_EDGEAI_ERR_SUCCESS.

Parameters
[in,out]p_edgeaiPointer to Edge AI Lab user context nrf_edgeai_t
[in]p_input_valuesArray of the input data samples, the type of input data is dependent of neural network context nrf_edgeai_t, use nrf_edgeai_input_type()
[in]num_valuesNumber of the input samples in array, should be a multiple of nrf_edgeai_uniq_inputs_num()
Returns
Operation status code nrf_edgeai_err_t