| Updated: October 28, 2024 |
You can integrate your own viewer plugin libraries with the ADAS library to display custom content based on sensor input. Typically, this is used to implement algorithms that generate an output that differs from the original sensor input. For example, this can be used to implement an edge detection algorithm that will display an edge map instead of the original content of the camera input.
To integrate your viewer plugin, you need to do the following:
adas_viewer_plugin_t adas_viewer_plugin_defs = {
.init = my_init_function,
.program = my_program_function,
.process_frame = my_process_frame_function,
.deinit = my_deinit_function
};
#define ADAS_VIEWER_PLUGIN_API_IMPLEMENT #include <adas/adas_viewer_plugin.h>
"viewer":
{
"type": "ADAS_VIEWER_NATIVE_CAMERA",
"view": "ADAS_VIEW_DRIVER",
"window_format": "nv16",
"path": "libviewer_plugin.so",
"input": [
{
"id": "front"
}
],
"visible": "true"
}