Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
inference_postprocessing.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
15#ifndef __INFERENCE_POSTPROCESSING_H__
16#define __INFERENCE_POSTPROCESSING_H__
17
18#include <stdint.h>
19
31
32typedef struct prediction_ctx_s {
34 uint16_t target;
35
39
48prediction_ctx_t inference_postprocess(const uint16_t predicted_target,
49 const float probability);
50
58const char *inference_get_class_name(const class_label_t class_label);
59
60
61
62#endif /* __INFERENCE_POSTPROCESSING_H__ */
63
struct prediction_ctx_s prediction_ctx_t
class_label_t
Definition inference_postprocessing.h:20
@ CLASS_LABEL_ROTATION_RIGHT
Definition inference_postprocessing.h:27
@ CLASS_LABEL_IDLE
Definition inference_postprocessing.h:21
@ CLASS_LABEL_ROTATION_LEFT
Definition inference_postprocessing.h:28
@ CLASS_LABEL_SWIPE_RIGHT
Definition inference_postprocessing.h:23
@ CLASS_LABEL_SWIPE_LEFT
Definition inference_postprocessing.h:24
@ CLASS_LABEL_COUNT
Definition inference_postprocessing.h:29
@ CLASS_LABEL_DOUBLE_THUMB
Definition inference_postprocessing.h:26
@ CLASS_LABEL_UNKNOWN
Definition inference_postprocessing.h:22
@ CLASS_LABEL_DOUBLE_SHAKE
Definition inference_postprocessing.h:25
const char * inference_get_class_name(const class_label_t class_label)
Get class name by label.
prediction_ctx_t inference_postprocess(const uint16_t predicted_target, const float probability)
Postprocess the Neuton library RAW inference output.
float probability
Definition inference_postprocessing.h:37
uint16_t target
Definition inference_postprocessing.h:34
Definition inference_postprocessing.h:32