nRF Connect SDK API 2.8.0
|
int ei_wrapper_get_next_classification_result | ( | const char ** | label, |
float * | value, | ||
size_t * | idx ) |
#include <include/ei_wrapper.h>
Get next classification result.
Results are ordered based on descending classification value. If there are more results with the given value, they are ordered based on ascending index.
This function can be executed only from the wrapper's callback context. Otherwise it returns a (negative) error code.
[out] | label | Pointer to the variable that is used to store the pointer to the classification label. |
[out] | value | Pointer to the variable that is used to store the classification value. |
[out] | idx | Pointer to the variable that is used to store the index of the classification label. |
0 | On success. |
-EACCES | If function is executed from other context that the wrapper's callback. |
-ENOENT | If no more results are available. |