can i change maximum elements can be held in given display metadata?

#ifndef NVDSMETA_NEW_H
#define NVDSMETA_NEW_H

#include “glib.h”
#include "gmodule.h"i
#include “nvll_osd_struct.h”

#ifdef __cplusplus
extern “C”
{
#endif

/** maximum elements those can be held in given display metadata /
#define MAX_ELEMENTS_IN_DISPLAY_META 16

typedef struct NvDsDisplayMeta {

/
* Text describing the user defined string can be overlayed using this

  • structure. @see NvOSD_TextParams from nvll_osd_struct.h */
    NvOSD_TextParams text_params[MAX_ELEMENTS_IN_DISPLAY_META];

    }

    }

I want to put text more than 16,What should I do?

No you can’t. It will crash.

You can acquire more display meta
nvds_acquire_display_meta_from_pool()

This will affect performance obviously.