How to display real-time inference video on GUI(flet,wxpython) with Python

Hi,
I want to display the inference video that is visible in the Deepstream sample code(test1-usbcam) on a GUI(flet,wxpython), but it’s not working well.

Currently, I am converting the frame information of the camera video being inferred into CPU memory format, converting it to BGR, etc., with a capsule filter, and finally passing it outside through appsink to convert it to numpy and display it.

However, something in the conversion process is not working properly, resulting in images that are bright green or gray.

If you have any good suggestions, I would appreciate your advice.
Thank you very much.

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

• Hardware Platform (Jetson / GPU) → Jetson Orin Nano
• DeepStream Version → 6.4
• JetPack Version (valid for Jetson only) → 6.0DP
• TensorRT Version → 8.6.2.3
• Issue Type → questions

How did you do that? Can you show the pipeline?

I solved the problem by lowering the Deepstream version.
The pipeline is as below.

  pipeline.add(source)
        pipeline.add(caps_v4l2src)
        pipeline.add(vidconvsrc)
        pipeline.add(nvvidconvsrc)
        pipeline.add(caps_vidconvsrc)
        pipeline.add(streammux)
        pipeline.add(pgie)
        pipeline.add(nvvidconv)
        pipeline.add(nvosd)
        pipeline.add(nvvidconv1)
        pipeline.add(vidconver)
        pipeline.add(capsfilter)
        pipeline.add(sink)

        print("Linking elements in the Pipeline \n")
        source.link(caps_v4l2src)
        caps_v4l2src.link(vidconvsrc)
        vidconvsrc.link(nvvidconvsrc)
        nvvidconvsrc.link(caps_vidconvsrc)  
     

        sinkpad = streammux.get_request_pad("sink_0")
        if not sinkpad:
            sys.stderr.write(" Unable to get the sink pad of streammux \n")
        srcpad = caps_vidconvsrc.get_static_pad("src")
        if not srcpad:
            sys.stderr.write(" Unable to get source pad of caps_vidconvsrc \n")
        srcpad.link(sinkpad)
        streammux.link(pgie)
        pgie.link(nvvidconv)
        nvvidconv.link(nvosd)
        nvosd.link(nvvidconv1)
        nvvidconv1.link(vidconver)
        vidconver.link(capsfilter)
        capsfilter.link(sink)