PhongTN
1
Hi, I had enable dsexample in objectDetector_Yolo by config
[ds-example]
enable=1
processing-width=640
processing-height=480
full-frame=0
blur-objects=1
unique-id=15
I receive
WARN: <parse_dsexample:772>: Unknown key ‘blur-objects’ for group [ds-example]
and string Obj_label place at object, but the object not blur.
How can i blur object ?
Thanks
• Hardware Platform Jetson Nano
• DeepStream Version 5.0
• JetPack Version 4.4
• TensorRT Version 7.1
mchi
4
Hi @PhongTN
Sorry for delay!
yes, “blur-objects” is missed, please apply below change to pass the config of “blue-objects” to dsexmaple plugin.
diff --git a/includes/deepstream_dsexample.h b/includes/deepstream_dsexample.h
index 2c899ac..b445860 100644
--- a/includes/deepstream_dsexample.h
+++ b/includes/deepstream_dsexample.h
@@ -38,6 +38,7 @@ typedef struct
gboolean full_frame;
gint processing_width;
gint processing_height;
+ gint blur_objects;
guint unique_id;
guint gpu_id;
// For nvvidconv
diff --git a/src/deepstream_config_file_parser.c b/src/deepstream_config_file_parser.c
index b12200c..d4d0c72 100644
--- a/src/deepstream_config_file_parser.c
+++ b/src/deepstream_config_file_parser.c
@@ -190,6 +190,7 @@ GST_DEBUG_CATEGORY (APP_CFG_PARSER_CAT);
#define CONFIG_GROUP_DSEXAMPLE_FULL_FRAME "full-frame"
#define CONFIG_GROUP_DSEXAMPLE_PROCESSING_WIDTH "processing-width"
#define CONFIG_GROUP_DSEXAMPLE_PROCESSING_HEIGHT "processing-height"
+#define CONFIG_GROUP_DSEXAMPLE_BLUE_OBJECTS "blur-objects"
#define CONFIG_GROUP_DSEXAMPLE_UNIQUE_ID "unique-id"
#define CONFIG_GROUP_DSEXAMPLE_GPU_ID "gpu-id"
@@ -752,6 +753,11 @@ parse_dsexample (NvDsDsExampleConfig *config, GKeyFile *key_file)
g_key_file_get_integer (key_file, CONFIG_GROUP_DSEXAMPLE,
CONFIG_GROUP_DSEXAMPLE_PROCESSING_HEIGHT, &error);
CHECK_ERROR (error);
+ } else if (!g_strcmp0 (*key, CONFIG_GROUP_DSEXAMPLE_BLUR_OBJECTS)) {
+ config->blur_objects =
+ g_key_file_get_integer (key_file, CONFIG_GROUP_DSEXAMPLE,
+ CONFIG_GROUP_DSEXAMPLE_BLUR_OBJECTS, &error);
+ CHECK_ERROR (error);
} else if (!g_strcmp0 (*key, CONFIG_GROUP_DSEXAMPLE_UNIQUE_ID)) {
config->unique_id =
g_key_file_get_integer (key_file, CONFIG_GROUP_DSEXAMPLE,
diff --git a/src/deepstream_dsexample.c b/src/deepstream_dsexample.c
index 3175dda..2db0be7 100644
--- a/src/deepstream_dsexample.c
+++ b/src/deepstream_dsexample.c
@@ -71,6 +71,7 @@ create_dsexample_bin (NvDsDsExampleConfig *config, NvDsDsExampleBin *bin)
"full-frame", config->full_frame,
"processing-width", config->processing_width,
"processing-height", config->processing_height,
+ "blue-objects", config->blur_objects,
"unique-id", config->unique_id,
"gpu-id", config->gpu_id, NULL);