How to add OpenVINO dependencies to the PyInstaller command line to generate a functional .exe file from an OpenVINO python script.
- Executed this command line to create a build.exe file from an OpenVINO python script:
pyinstaller --onefile --add-data "D:\person-detection-retail-0013.xml;." Social_Distancing_MQTT.py - Ran the resulting .exe and receive a blank page where nothing happened.
In the pyinstaller command line, provide the dependency files for iecore() to work. In this command line, plugins.xml helps the sample to load the required plugins.
pyinstaller --onefile --add-data "C:\Program Files (x86)\IntelSWTools\openvino_2020.3.194\deployment_tools\inference_engine\bin\intel64\Release\plugins.xml;." demo_sample.py
Source the OpenVINO environment variables before running the resulting .exe file.