Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
5848 Discussions

error in running demo using latest openvino 2021.4

TarunM
Beginner
286 Views

I installed the newer version of openvino. Now, i am unable to run demos. Below is the output:-

(ovino2) C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo>demo_security_barrier_camera.bat
target_precision = FP16
Python 3.7.10 :: Intel Corporation
[setupvars.bat] OpenVINO environment initialized
INTEL_OPENVINO_DIR is set to C:\Program Files (x86)\Intel\openvino_2021
Python 3.7.10 :: Intel Corporation
ECHO is off.
Requirement already satisfied: pyyaml>=5.4.1 in c:\users\tarunmis\appdata\roaming\python\python37\site-packages (from -r C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 1)) (5.4.1)
Requirement already satisfied: requests>=2.25.1 in c:\users\tarunmis\appdata\roaming\python\python37\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)
Requirement already satisfied: idna<3,>=2.5 in c:\users\tarunmis\appdata\roaming\python\python37\site-packages (from requests>=2.25.1->-r C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\tarunmis\anaconda3\envs\ovino2\lib\site-packages (from requests>=2.25.1->-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: chardet<5,>=3.0.2 in c:\users\tarunmis\appdata\roaming\python\python37\site-packages (from requests>=2.25.1->-r C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\tarunmis\appdata\roaming\python\python37\site-packages (from requests>=2.25.1->-r C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (1.26.5)
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\tarunmis\Documents\Intel\OpenVINO\openvino_models\ir" --cache_dir "C:\Users\tarunmis\Documents\Intel\OpenVINO\openvino_models\cache"
################|| Downloading vehicle-license-plate-detection-barrier-0106 ||################

========== Retrieving C:\Users\tarunmis\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\tarunmis\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\tarunmis\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\tarunmis\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\tarunmis\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\tarunmis\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\tarunmis\Documents\Intel\OpenVINO\openvino_models\ir" --cache_dir "C:\Users\tarunmis\Documents\Intel\OpenVINO\openvino_models\cache"
################|| Downloading license-plate-recognition-barrier-0001 ||################

========== Retrieving C:\Users\tarunmis\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\tarunmis\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\tarunmis\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\tarunmis\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\tarunmis\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\tarunmis\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\tarunmis\Documents\Intel\OpenVINO\openvino_models\ir" --cache_dir "C:\Users\tarunmis\Documents\Intel\OpenVINO\openvino_models\cache"
################|| Downloading vehicle-attributes-recognition-barrier-0039 ||################

========== Retrieving C:\Users\tarunmis\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\tarunmis\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\tarunmis\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\tarunmis\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\tarunmis\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\tarunmis\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 ||###############


Waiting for 0 seconds, press a key to continue ...
Creating Visual Studio 16 2019 x64 files in C:\Users\tarunmis\Documents\Intel\OpenVINO\inference_engine_demos_build...
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.29.30037.0
-- The CXX compiler identification is MSVC 19.29.30037.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenCV: C:/Program Files (x86)/Intel/openvino_2021/opencv (found version "4.5.3") found components: core highgui videoio imgproc imgcodecs gapi
-- Check size of __int32
-- Check size of __int32 - done
-- 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/tarunmis/Documents/Intel/OpenVINO/inference_engine_demos_build

Waiting for 0 seconds, press a key to continue ...

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


Waiting for 0 seconds, press a key to continue ...
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe" Demos.sln /p:Configuration=Release /t:security_barrier_camera_demo /clp:ErrorsOnly /m
Microsoft (R) Build Engine version 16.10.0+4242f381a for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

2>C:\Users\tarunmis\Documents\Intel\OpenVINO\inference_engine_demos_build\ZERO_CHECK.vcxproj : error MSB4057: The target "security_barrier_camera_demo" does not exist in the project.
Error

0 Kudos
2 Replies
Wan_Intel
Moderator
249 Views

Hi TarunM,

Thank you for reaching out to us.


I noticed that you are using Visual Studio 2019 version 16.10.0.


There is a similar issue regarding this version which you may refer to this post. You may edit the demo_security_barrier_camera.bat by adding “:Rebuild” after the name of the projects for it to work.


Change the codes in lines 204 and 205 to:

echo "!MSBUILD_BIN!" Demos.sln /p:Configuration=Release /t:security_barrier_camera_demo:Rebuild /clp:ErrorsOnly /m

"!MSBUILD_BIN!" Demos.sln /p:Configuration=Release /t:security_barrier_camera_demo:Rebuild /clp:ErrorsOnly /m


You may also update your Visual Studio 2019 version to solve this issue.


Steps to update Visual Studio to the most recent release is available on the following page:

https://docs.microsoft.com/en-us/visualstudio/install/update-visual-studio?view=vs-2019



Regards,

Wan


Wan_Intel
Moderator
220 Views

Hi TarunM,


This thread will no longer be monitored since we have provided a solution. 

If you need any additional information from Intel, please submit a new question.



Regards,

Wan


Reply