diff --git a/sw/ui/data_collection_backend.py b/sw/ui/data_collection_backend.py index 80fb00c..bf6b201 100755 --- a/sw/ui/data_collection_backend.py +++ b/sw/ui/data_collection_backend.py @@ -2,6 +2,7 @@ from PyQt5 import QtCore, QtGui, QtWidgets +import os import cv2 import sys import shutil @@ -113,6 +114,7 @@ def pixmap_from_path(self, img_path): def start_ui(operator_name, img_dir_path): + os.environ["QT_QPA_PLATFORM_PLUGIN_PATH"] = QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.PluginsPath) app = QtWidgets.QApplication([]) myApp = My_App(operator_name, img_dir_path) myApp.show()