From 745c7bc26629cb5753a52fbe76bfd9cb81e0e4fd Mon Sep 17 00:00:00 2001 From: alex-luxonis Date: Wed, 17 Nov 2021 11:56:59 +0200 Subject: [PATCH] Add a workaround for GUI blank window on Windows: ``` Failed to create vertex shader: Error 0x80070057: The parameter is incorrect. Failed to build graphics pipeline state ``` (certain systems only?) --- depthai_demo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/depthai_demo.py b/depthai_demo.py index e63c0a2eb..a1ede9853 100755 --- a/depthai_demo.py +++ b/depthai_demo.py @@ -475,6 +475,8 @@ def _printSysInfo(self, info): if __name__ == "__main__": + if platform.system() == 'Windows': + os.environ["QT_QUICK_BACKEND"] = "software" from gui.main import DemoQtGui from PySide6.QtGui import QImage