Functions
Public-facing functions for running inference using the Edge Impulse C++ library.
Source: classifier/ei_run_classifier.h
run_classifier_init
Brief: Initialize static variables for running preprocessing and inference continuously.
Description:
Initializes and clears any internal static variables needed by run_classifier_continuous()
. This includes the moving average filter (MAF). This function should be called prior to calling run_classifier_continuous()
.
Blocking: yes
Example: nano_ble33_sense_microphone_continuous.ino
run_classifier_init
Brief: Initialize static variables for running preprocessing and inference continuously.
Description:
Initializes and clears any internal static variables needed by run_classifier_continuous()
. This includes the moving average filter (MAF). This function should be called prior to calling run_classifier_continuous()
.
Blocking: yes
Example: nano_ble33_sense_microphone_continuous.ino
Parameters
handle
struct with information about model and DSP
run_classifier_deinit
Brief: Deletes static variables when running preprocessing and inference continuously.
Description:
Deletes internal static variables used by run_classifier_continuous()
, which includes the moving average filter (MAF). This function should be called when you are done running continuous classification.
Blocking: yes
Example: ei_run_audio_impulse.cpp