Dynamic Pipeline with Hailo-Apps

Hi Everyone, I’m using hailo-apps as the basis for a simple detection program. The pipeline is fairly standard with a tee that connects to a displaysink and a filesink. I want to start and stop the filesink but am unsure where I can access the pipeline (e.g. pipeline.get_element_by_name). I have a gst-python custom plugin creating overlays. Can I access the pipeline here somehow or can I access the pipeline from the User callback?

Hi @user520 ,
You can access from the callback. It’s possible to define more callbacks: hailo-apps/hailo_apps/python/pipeline_apps/face_recognition/face_recognition_pipeline.py at main · hailo-ai/hailo-apps · GitHub
It’s advised to inspect the resulted pipeline via adding run argument --dump-dot and then dot -Tpng -o output.png pipeline.dot