How to permanently set the environment variables for OpenVino

可紊 提交于 2020-01-24 21:09:44

问题


I am setting up OpenVino on my system and I get this form the documentation:

(Optional): OpenVINO toolkit environment variables are removed when you close the Command Prompt window. As an option, you can permanently set the environment variables manually.

But there is no information is available on what are the required environment variables and what value they should be set.

I need to know the list of environmental variable needed by OpenVino and the value that they should be set to. I know how to set them in Windows (using GUI or Setx).


回答1:


The environment variables need to be set are given in the setupvars.bat file present at "path_to_computer_vision_sdk_directory\bin".

But I will give a general idea on the paths that need to be set - Set the following System variables in your Environment Variables

  1. Variable name: INTEL_CVSDK_DIR Variable value: path_to_computer_vision_sdk_directory i.e. C:\Intel\computer_vision_sdk_version_number, in case you have the cvsdk setup at the default path for installation

  2. Variable name: OpenCV_DIR Variable value: %INTEL_CVSDK_DIR%\opencv\cmake

  3. Variable name: OPENVX_FOLDER Variable value: %INTEL_CVSDK_DIR%\openvx

  4. Variable name: InferenceEngine_DIR Variable value: %INTEL_CVSDK_DIR%\deployment_tools\inference_engine\share

  5. Variable name: HDDL_INSTALL_DIR Variable value: %INTEL_CVSDK_DIR%\deployment_tools\inference_engine\external\hddl

  6. Now edit the "Path" variable under System Variables to include the following values - %INTEL_CVSDK_DIR%\opencv\x64\vc14\bin %INTEL_CVSDK_DIR%\openvx\bin %INTEL_CVSDK_DIR%\deployment_tools\inference_engine\bin\intel64\Release %INTEL_CVSDK_DIR%\deployment_tools\inference_engine\bin\intel64\Debug %HDDL_INSTALL_DIR%\bin

You also nee to set the "PYTHONPATH" to %INTEL_CVSDK_DIR%\python\python_version%



来源:https://stackoverflow.com/questions/54478463/how-to-permanently-set-the-environment-variables-for-openvino

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!