Hi,
If I want to config the colors of text-background and bounding-box border same as original yolo(darknet),
how to modify the code of deepstream-yolo-app.cpp?
Does both attributes should be setup like bellowing codes in deepstream-yolo-app.cpp?
215 /* we set the osd properties here */
216 g_object_set (G_OBJECT (nvosd), "font-size", 15, NULL);
If I want to car, trunk, person and bicycle have their own color, how to modify the code?
Please have a look at the “osd_sink_pad_buffer_probe(…)” function in test1-app from the Deepstream SDK. The NvDsObjectParams has a txt_params struct which holds the background text color and bounding box color information. You can make similar changes in the “osd_sink_pad_buffer_probe(…)” of deepstream-yolo-app.cpp to set the desired colors.
Do you mean I should create a function like gst_pad_add_probe (osd_sink_pad, GST_PAD_PROBE_TYPE_BUFFER,
osd_sink_pad_buffer_probe, NULL, NULL) in deepstream_test1_app.c, the osd_sink_pad_buffer_probe() will be launched and config txt_params, so that background text color and bounding box color will be changed?
If it is, the g_object_set() for color setting will be not required, am I right?