Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6403 Discussions

use ncs2 openvinotoolkit demo.device with "myriad" name is not registered in the InferenceEngine

find_beauty
Beginner
649 Views

System information (version)

  • OpenVINO_toolkit => 2021.2.185
  • Operating System / Platform => Windows10 64 Bit
  • Compiler => Visual Studio 2019
  • Problem classification: test demo bug
Detailed description

1.activate ncs_environment:install C:\Program Files (x86)\Intel\openvino_2021.2.185\inference_engine\external\MovidiusDriver\Movidius_VSC_Devide,inf

2.test toolkit for cpu : it's ok.
admin dos ->C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo>demo_security_barrier_camera.bat

 

3.test toolkit for ncs2 : have bug.
admin dos->C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo>demo_security_barrier_camera.bat -d MYRIAD
following is concrete command line.

(openvino) C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo>demo_security_barrier_camera.bat -d myriad
target = myriad
target_precision = FP16
Python 3.8.6
[setupvars.bat] OpenVINO environment initialized
INTEL_OPENVINO_DIR is set to C:\Program Files (x86)\Intel\openvino_2021
Python 3.8.6
ECHO 处于关闭状态。
Requirement already satisfied: requests in d:\anaconda\envs\openvino\lib\site-packages (from -r C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (2.25.1)
Collecting pyyaml
Downloading PyYAML-5.3.1-cp38-cp38-win_amd64.whl (219 kB)
|████████████████████████████████| 219 kB 437 kB/s
Requirement already satisfied: certifi>=2017.4.17 in d:\anaconda\envs\openvino\lib\site-packages (from requests->-r C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (2020.12.5)
Requirement already satisfied: idna<3,>=2.5 in d:\anaconda\envs\openvino\lib\site-packages (from requests->-r C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (2.6)
Requirement already satisfied: chardet<5,>=3.0.2 in d:\anaconda\envs\openvino\lib\site-packages (from requests->-r C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (3.0.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\anaconda\envs\openvino\lib\site-packages (from requests->-r C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (1.22)
Installing collected packages: pyyaml
Successfully installed pyyaml-5.3.1
python "C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\open_model_zoo\tools\downloader\downloader.py" --name "vehicle-license-plate-detection-barrier-0106" --output_dir "C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir" --cache_dir "C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\cache"
################|| Downloading vehicle-license-plate-detection-barrier-0106 ||################

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP32\vehicle-license-plate-detection-barrier-0106.xml from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP32\vehicle-license-plate-detection-barrier-0106.bin from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP16\vehicle-license-plate-detection-barrier-0106.xml from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP16\vehicle-license-plate-detection-barrier-0106.bin from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP16-INT8\vehicle-license-plate-detection-barrier-0106.xml from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP16-INT8\vehicle-license-plate-detection-barrier-0106.bin from the cache

python "C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\open_model_zoo\tools\downloader\downloader.py" --name "license-plate-recognition-barrier-0001" --output_dir "C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir" --cache_dir "C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\cache"
################|| Downloading license-plate-recognition-barrier-0001 ||################

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP32\license-plate-recognition-barrier-0001.xml from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP32\license-plate-recognition-barrier-0001.bin from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP16\license-plate-recognition-barrier-0001.xml from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP16\license-plate-recognition-barrier-0001.bin from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP16-INT8\license-plate-recognition-barrier-0001.xml from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP16-INT8\license-plate-recognition-barrier-0001.bin from the cache

python "C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\open_model_zoo\tools\downloader\downloader.py" --name "vehicle-attributes-recognition-barrier-0039" --output_dir "C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir" --cache_dir "C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\cache"
################|| Downloading vehicle-attributes-recognition-barrier-0039 ||################

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP32\vehicle-attributes-recognition-barrier-0039.xml from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP32\vehicle-attributes-recognition-barrier-0039.bin from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP16\vehicle-attributes-recognition-barrier-0039.xml from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP16\vehicle-attributes-recognition-barrier-0039.bin from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP16-INT8\vehicle-attributes-recognition-barrier-0039.xml from the cache

========== Retrieving C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP16-INT8\vehicle-attributes-recognition-barrier-0039.bin from the cache


###############|| Generate VS solution for Inference Engine demos using cmake ||###############


等待 0 秒,按一个键继续 ...
Creating Visual Studio 16 2019 x64 files in C:\Users\xujh\Documents\Intel\OpenVINO\inference_engine_demos_build...
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.28.29335.0
-- The CXX compiler identification is MSVC 19.28.29335.0
-- Check for working C compiler: E:/vs_2019/ide/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: E:/vs_2019/ide/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: E:/vs_2019/ide/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: E:/vs_2019/ide/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check size of __int32
-- Check size of __int32 - done
-- Found InferenceEngine: C:/Program Files (x86)/Intel/openvino_2021/deployment_tools/inference_engine/lib/intel64/Release/inference_engine.lib (Required is at least version "2.0")
-- Found OpenCV: C:/Program Files (x86)/Intel/openvino_2021/opencv (found version "4.5.1") found components: core imgcodecs videoio
-- Found OpenCV: C:/Program Files (x86)/Intel/openvino_2021/opencv (found version "4.5.1") found components: core imgproc
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/xujh/Documents/Intel/OpenVINO/inference_engine_demos_build

等待 0 秒,按一个键继续 ...

###############|| Build Inference Engine demos using MS Visual Studio (MSBuild.exe) ||###############


等待 0 秒,按一个键继续 ...
"E:\vs_2019\ide\MSBuild\Current\Bin\MSBuild.exe" Demos.sln /p:Configuration=Release /t:security_barrier_camera_demo /clp:ErrorsOnly /m
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.8.2+25e4d540b
版权所有(C) Microsoft Corporation。保留所有权利。


等待 0 秒,按一个键继续 ...

###############|| Run Inference Engine security barrier camera demo ||###############


等待 0 秒,按一个键继续 ...
'else' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
"C:\Users\xujh\Documents\Intel\OpenVINO\inference_engine_demos_build\intel64\Release\security_barrier_camera_demo.exe" -i "C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo\car_1.bmp" -m "C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP16\vehicle-license-plate-detection-barrier-0106.xml" -m_lpr "C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP16\license-plate-recognition-barrier-0001.xml" -m_va "C:\Users\xujh\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP16\vehicle-attributes-recognition-barrier-0039.xml" -d myriad -d_va myriad -d_lpr myriad
[ INFO ] InferenceEngine: API version ......... 2.1
Build ........... 2021.2.0-1877-176bdf51370-releases/2021/2
[ INFO ] Files were added: 1
[ INFO ] C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo\car_1.bmp
[ INFO ] Loading device myriad
[ ERROR ] Device with "myriad" name is not registered in the InferenceEngine
Error

 

 

 

0 Kudos
3 Replies
Maria_R_Intel
Moderator
634 Views

Hello find_beauty,


To better assist you, we will move this thread to the proper sub-forum. Please expect a response soon.


Best regards,

Maria R.

Intel Customer Support Technician


0 Kudos
Iffa_Intel
Moderator
595 Views

Greetings,


Please make sure to run setupvars each time a new terminal is opened and follow the additional steps to install the NCS2 driver.


you may refer here: https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_windows.html


and this: https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_windows.html



Sincerely,

Iffa


0 Kudos
Iffa_Intel
Moderator
586 Views

Greetings,


Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question. 


Sincerely,

Iffa


0 Kudos
Reply