How to turn off the display of the deepstream pose estimation program?

I want to close the display window of the program, and the program can run normally in the background, or through the configuration file to control whether the display window is closed, how do I achieve this?

Moving to DeepStream Forum.

I see it is on the deepstream forum now, will anyone answer my question?

Hi,
The sample code is in
GitHub - NVIDIA-AI-IOT/deepstream_pose_estimation: This is a sample DeepStream application to demonstrate a human pose estimation pipeline.

By default it is nvegltransform ! nveglglessink. If you don’t need display, you can customize the sample to save to a file or do RTSP.

All plugins are listed and introduced in
GStreamer Plugin Overview — DeepStream 5.1 Release documentation

At present, the input of the program is rtsp. I don’t want to save the file. I want to decide whether to close or open the display through the configuration file. Can this be achieved? Can you provide an idea, just like deepstream-app through the sink in the configuration file The enable parameter to determine whether to display.

Hi,
A possible solution is to link appink:

... ! nvdsosd ! nvvideoconvert ! appsink

You can get frames in appsink. If you need to display the frames, can create another gstreamer pipeline, or simply drop frames in appsink.

If I use appsink, what method do I need to control to turn off the display? Is it to set the properties of appsink or another method? Can you tell me more specifically, thank you.

Hi,
It is similar to this sample:
Starvation (?) of gstreamer threads - #12 by DaneLLL
Please take a look. You may develop your usecase based on it.

I read the link you sent, there seems to be nothing I want to see about turning off the display, you can tell me how to turn off the display and the program can run normally, thank you

Hi,
By default the sample command is

 $ sudo ./deepstream-pose-estimation-app <file-uri> <output-path>

You can customize the sample to add one option like:

 $ sudo ./deepstream-pose-estimation-app <file-uri> <output-path> -disable_display

When it is set, link the pipeline to fakesink instead of nvegltransform ! nveglglessink.

Amazing!!!The display is off, thank you very much.

The source code on github doesn’t have that -disable_display option. Is there another repo with updated code?

Hi,
By default these is no such option. You would need to customize the sample to add it.