Hi,
I have added 3 detectors, primary detects an object and sends to the secondary and third detector in parallel, do I need to tee?
* two seperate config files. */
g_object_set (G_OBJECT (primary_detector), "config-file-path", "primary_detector_config.txt",
"unique-id", PRIMARY_DETECTOR_UID, NULL);
g_object_set (G_OBJECT (secondary_detector), "config-file-path", "secondary_detector_config.txt",
"unique-id", SECONDARY_DETECTOR_UID, "process-mode", SECOND_DETECTOR_IS_SECONDARY ? 2 : 1, NULL);
g_object_set(
G_OBJECT (tertiary_detector),
"config-file-path", "tertiary_detector_config.txt", // Path to the config
"unique-id", 3, // Anything unique
// Takes detected objects as an input
NULL // End of configuration
);
/* we add a message handler */
bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
bus_watch_id = gst_bus_add_watch (bus, bus_call, loop);
gst_object_unref (bus);
/* Set up the pipeline */
/* we add all elements into the pipeline */
gst_bin_add_many (GST_BIN (pipeline),
source, h264parser, decoder, streammux, primary_detector,secondary_detector, tertiary_detector,
nvvidconv, nvosd, transform, sink, NULL);