amaze.extensions.sb3.guard¶
Implementation of a python guard to prevent negative interactions between opencv2 and PyQT5
Classes
|
Acts as a guard allowing both PyQt5 and opencv-python to use the xcb.qpa plugin without confusion. |
- class amaze.extensions.sb3.guard.CV2QTGuard(platform=True, path=True)[source]¶
Acts as a guard allowing both PyQt5 and opencv-python to use the xcb.qpa plugin without confusion.
Temporarily restores environmental variable “QT_QPA_PLATFORM_PLUGIN_PATH” to the value used by qt, taken from QLibraryInfo.location(QLibraryInfo.PluginsPath)