Auto-initialize OpenVINO™ environment using batch file
- Wrote a program to auto-initialize OpenVINO™ environment with PyQt5:
from PyQt5 import QtWidgets
import os
#import time
import sys
if __name__ == '__main__':cwd = os.getcwd()
os.chdir(r"C:\Program Files (x86)\Intel\openvino_2021.4.752\bin")
os.system("setupvars.bat")
#time.sleep(1)
os.chdir(cwd)
from controller import MainWindow
app = QtWidgets.QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_()) - Encountered error: ModuleNotFoundError: No module named 'openvino'
- Create a batch file to initialize OpenVINO™ environment and launch Integrated Development Environment (IDE), (eg: VS2019):
@echo on
cd \bin
CALL setupvars.bat
cd \2019\Community\Common7\IDE
CALL devenv.exe - Run the .bat file as administrator
- Windows* 11 and PyQt5 are not officially supported by OpenVINO™.
- Refer to openvino-smart-library.