Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
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
7#ifndef __POSTPROCESSING_H__
8#define __POSTPROCESSING_H__
9
10#include <stddef.h>
11#include <stdint.h>
12
14
23
29 float x1, y1, x2, y2;
31 float score;
34};
35
42
53size_t decode_output(const nrf_axon_nn_compiled_model_s *model, const int8_t *packed_data,
54 struct detection_box *boxes, const size_t boxes_size);
55
63const char *model_head_name(enum model_head head_id);
64
65#endif /* __POSTPROCESSING_H__ */
void decode_init(const nrf_axon_nn_compiled_model_s *model)
Initialize decode procedure.
const char * model_head_name(enum model_head head_id)
Gives string name of model's head.
model_head
Model head ID.
Definition postprocessing.h:18
@ MODEL_HEAD_STRIDE_16
Definition postprocessing.h:20
@ MODEL_HEAD_STRIDE_32
Definition postprocessing.h:19
@ MODEL_HEAD_STRIDE_8
Definition postprocessing.h:21
size_t decode_output(const nrf_axon_nn_compiled_model_s *model, const int8_t *packed_data, struct detection_box *boxes, const size_t boxes_size)
Decode output from the model and perform NMS.
float score
Definition postprocessing.h:31
float y1
Definition postprocessing.h:29
float x1
Definition postprocessing.h:29
float y2
Definition postprocessing.h:29
float x2
Definition postprocessing.h:29
enum model_head head_id
Definition postprocessing.h:33
Bounding box for object detection.
Definition postprocessing.h:27
Definition nrf_axon_nn_infer.h:103