AnshumanFauzdar Does opencv work correctly (the imshow part) on your windows?
OAK-D CM4
- Edited
Hi AnshumanFauzdar
Not sure about Windows, but at least on MacOS the x11 is enabled using -X and not -x.
Thanks,
Jaka
jakaskerl Thanks for the suggestion but still with -X I am facing same issue.
Hi AnshumanFauzdar
I see, GTK backend issue is usually related to x11, but might be a bad display mapping as well, not sure for your specific case. Could you please check opencv/opencv18461 if any solution works for you?
Thanks,
Jaka
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
jakaskerl I tried the examples, its executing on the pi itself and there is no GUI forwarding.
- Edited
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 should I remove the export display and also remove the HDMI cable and only ssh headless?
- Edited
- Best Answerset by jakaskerl
jakaskerl Thanks @jakaskerl now it is working completely on headless configuration. Here are the steps I followed:
- Removed HDMI cable
- Removed
export DISPLAY=:0.0
from .bashrc usingsudo nano ~/.bashrc
- Installed xming X server
- 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
set DISPLAY=127.0.0.1:0.0
ssh
-Y
<your_user_id>
@
<server_address>
Thanks for the support!
- Edited
I am facing issue while replying on the posts while tagging someone.