jakaskerl Hey, I solved the issue by following the instructions on the issue. I edited the .bashrc and added the following in the last line export DISPLAY=:0.0.

But I want the GUIs to run on my windows, the demo is running on the raspberry pi GUI instead of launching on the windows side.

    Hi AnshumanFauzdar
    What about using putty ? To my knowledge it should support x11 forwarding (there should be a checkbox to enable it), while the regular command prompt might not support it directly.

    Thanks,
    Jaka

      jakaskerl I tried putty and also ran Xming server on windows to enable X11 forwarding but still there is no GUI on putty or cmd.

        Hi AnshumanFauzdar
        I'm not sure the GUI is going to work with X11 forwarding then. Could you try with a simple example (like rgb_preview) to check if standard CV frames go through? If this works, then I guess the forwarding does not support GUI.

        Thanks,
        Jaka

          Hi AnshumanFauzdar
          I'm a bit confused as to what you are really doing here. I don't think you shoud VNC into the pi if you wish to forward the display.
          I think that since adding the export DISPLAY=:0.0. you are telling the scripts to use PI as the display, so when you also VNC, the x11 won't work properly.

          Could you try maybe disabling the DISPLAY, exiting the VNC and running the example (rgb_preview) with -X?

          Thanks,
          Jaka

            jakaskerl Thanks @jakaskerl now it is working completely on headless configuration. Here are the steps I followed:

            1. Removed HDMI cable
            2. Removed export DISPLAY=:0.0from .bashrc usingsudo nano ~/.bashrc
            3. Installed xming X server
            4. In PuTTY, I changed SSH setting -> X11 -> Enable X11 Forwarding

            and on windows side set display for CMD, I followed following steps from this guide

            1. set DISPLAY=127.0.0.1:0.0
            2. ssh-Y<your_user_id>@<server_address>

            Thanks for the support!

            13 days later

            I am facing issue while replying on the posts while tagging someone.