How to add new parameters to deepstream_app_config_yoloV2_tiny.txt file ?

Did you add “x-top” in group [ds-example] ?

yes. This is my [ds-example] group in “deepstream_app_config_yoloV2_tiny.txt file”.

[ds-example]
enable=1
processing-width=1280
processing-height=720
full-frame=1
unique-id=15
x-top=100

Is it valid that if you change “processing-width” or “processing-height” ?

Yes. I have changed “processing-height” and added the following line to “gstdsexample.cpp”

std::cout << "Processing Height" << dsexample->processing_height << std::endl;

And it print the correct value when I change the value in [ds-example] group

How about the “x-top” value you get ?

Added this line to the same place

std::cout << "X corrdinate top" << dsexample->x_top << std::endl;

But it gives the default value I have set inside “gstdsexample.cpp” under the following section

/* Default values for properties */
#define DEFAULT_UNIQUE_ID 15
#define DEFAULT_PROCESSING_WIDTH 640
#define DEFAULT_PROCESSING_HEIGHT 480
#define DEFAULT_PROCESS_FULL_FRAME TRUE
#define DEFAULT_GPU_ID 0
#define DEFAULT_PROCESSING_TOPX 800

, it doesn’t give the value I have set in the [ds-example] group for "x-top

In your config file , Please change “x-top” to be “x_top”

In fact, you can debug this code firstly. It will be more efficient.

  • } else if (!g_strcmp0 (*key, “x_top”)) {
  •  config->x_top =
    
  •    g_key_file_get_integer (key_file, CONFIG_GROUP_DSEXAMPLE,
    
  •        "<b>x_top</b>", &error);
    

Hi malith,

Have you tried the last suggestions? Any result can be shared?

I have changed the code as you said in the recent reply. But the issue remains same. I have no idea about how to debug the deepstream code since this is the first time I’m working on C and C++ on Linux . Please tell me how to debug the deepstream

I have attached the code in #19. It works in my side.
You can also refer to python API if you are not familiar to C/C++.