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.

Does the openVX can run on the Neural Compute Stick 2?

jsmit119
Beginner
610 Views

The cnn can run on the Neural Compute Stick 2, but I can't find a way to run openvx on Neural Compute Stick 2.Does the openVX can run on the Neural Compute Stick 2?

0 Kudos
6 Replies
Severine_H_Intel
Employee
610 Views

Dear Joe, 

OpenVX does not run on NCS2.

Best, 

Severine

0 Kudos
TNguy219
Beginner
610 Views

hi,

I bought ncs2 2 weeks ago and install openvino according to this guide

https://software.intel.com/en-us/articles/get-started-with-neural-compute-stick

d:\Program Files (x86) 2\IntelSWTools\openvino\openvx\samples\samples\

If Intel stops to use

From openvx README, i build the samples like this: (see BOLD below)

I like the example "lane_detection" and "motion_detection", a shame if Intel stop to use openvx. I saw the version of openvx Intel attached inside the installation is 1.1.0.cb9b578d_Atom.1. Openvx  has released version 1.3 . I hope Intel development team will do something (continue to support) and not already drop NCS2.  https://github.com/KhronosGroup/OpenVX-sample-impl

i run ncs2 on Lenovo w540 with an old webcam, i tried this python script using ncs2. It works, but the fps is too small. http://www.chezmoi.dk/upload/ncs2-usb-racing-realtime.mp4

d:\Program Files (x86) 2\IntelSWTools\openvino\openvx\samples\samples\build>cmake -G "Visual Studio 16 2019" -A x64 -D CMAKE_INSTALL_PREFIX="d:\Program Files (x86) 2"\IntelSWTools\openvino\openvx\samples\samples\build\ "d:\Program Files (x86) 2"\IntelSWTools\openvino\openvx\samples\samples\
-- INTEL_VX_SAMPLES alone
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.23.28107.0
-- The CXX compiler identification is MSVC 19.23.28107.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.23.28105/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: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.23.28105/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
--
Changed from default to Release build type
-- INTEL_CVSDK_DIR:
-- Intel CVSDK OpenVX runtime is used
-- Found IntelOpenVX: d:/Program Files (x86) 2/IntelSWTools/openvino/openvx/include
-- OpenVX_INCLUDE= d:/Program Files (x86) 2/IntelSWTools/openvino/openvx/include
-- OpenVX_LIBS= D:/Program Files (x86) 2/IntelSWTools/openvino/openvx/lib/iap_openvx.lib
--
common library
-- INTEL_CVSDK_DIR:
-- Intel CVSDK OpenVX runtime is used
-- OpenVX_INCLUDE= d:/Program Files (x86) 2/IntelSWTools/openvino/openvx/include
-- OpenVX_LIBS= D:/Program Files (x86) 2/IntelSWTools/openvino/openvx/lib/iap_openvx.lib
-- OpenCV_DIR: d:\Program Files (x86) 2\IntelSWTools\openvino\opencv\cmake
-- OPENCV is enabled
-- OpenCV_INCLUDE_DIRS=D:/Program Files (x86) 2/IntelSWTools/openvino/opencv/include
-- OpenCV_LIBS=opencv_core;opencv_imgproc;opencv_imgcodecs;opencv_videoio;opencv_features2d;opencv_video;opencv_calib3d;opencv_photo;opencv_flann;opencv_ml;opencv_objdetect;opencv_highgui
-- OpenCV_ARCH=
-- INTEL_VTUNE_DIR is not defined
-- Could NOT find INTEL_ITT (missing: Located_ITT_INCLUDE_DIRS Located_ITT_LIBS)
-- INTEL_ITT is disabled
-- Using file 'D:/Program Files (x86) 2/IntelSWTools/openvino/openvx/samples/samples/cv_samples.config' with the list of samples
-- Sample 'auto_contrast' condition is '1 EQUAL 1'
--
Adding sample 'auto_contrast'

 

 

0 Kudos
TNguy219
Beginner
610 Views

ops!! i found out, inside the d:\Program Files (x86) 2\IntelSWTools\openvino\openvx\samples\README  file it says:
 
Open generated solution file in Visual Studio and build it. Make sure that INSTALL project is built,
in this case <SAMPLES_BIN_INSTALL> will be populated. The content of this directory is described
in the next section of this document.

Ok, you can build them directly from command line with this one:

d:\Program Files (x86) 2\IntelSWTools\openvino\openvx\samples\samples\build>cmake --build . --config Release

It will build all the exe of the samples at the folder "Release"

Work wonderful!!!

d:\Program Files (x86) 2\IntelSWTools\openvino\openvx\samples\samples\build\lane_detection\Release>lane_detection.exe --input road_lane.mp4
MFX: Unsupported extension: road_lane.mp4
road_lane.mp4 is opened
Input frame size: 960x508
Warp Perspective Matrix = 9::9.381812,5.609933,0.019545,3.800000,0.000000,0.000000,24.000006,421.639984,1.000000
Frame: 300
Release data...
5.263 ms by ReadFrame averaged by 301 samples
8.516 ms by ProcessOpenCVReference averaged by 300 samples
7.085 ms by vxProcessGraph averaged by 300 samples
0.279 ms by CollectLaneMarks averaged by 600 samples

d:\Program Files (x86) 2\IntelSWTools\openvino\openvx\samples\samples\build\lane_detection\Release>

http://www.chezmoi.dk/upload/lane_detection_openvx_ncs2.jpg
http://www.chezmoi.dk/upload/lane_detection_openvx_ncs2_2.jpg


VERY VERY STRANGE Intel
Even i unplug the ncs2 USB stick from my laptop, everything still run fine??? i expect it will failed when I dont had that coprocessor device (ncs2) attached at the usb port. What happened here?

ncs2 plug in:
d:\Program Files (x86) 2\IntelSWTools\openvino\openvx\samples\samples\build\lane_detection\Release>lane_detection.exe --input road_lane.mp4
MFX: Unsupported extension: road_lane.mp4
road_lane.mp4 is opened
Input frame size: 960x508
Warp Perspective Matrix = 9::9.381812,5.609933,0.019545,3.800000,0.000000,0.000000,24.000006,421.639984,1.000000
Frame: 300
Release data...
4.730 ms by ReadFrame averaged by 301 samples
7.438 ms by ProcessOpenCVReference averaged by 300 samples
6.247 ms by vxProcessGraph averaged by 300 samples
0.273 ms by CollectLaneMarks averaged by 600 samples

ncs2 removed:
d:\Program Files (x86) 2\IntelSWTools\openvino\openvx\samples\samples\build\lane_detection\Release>lane_detection.exe --input road_lane.mp4
MFX: Unsupported extension: road_lane.mp4
road_lane.mp4 is opened
Input frame size: 960x508
Warp Perspective Matrix = 9::9.381812,5.609933,0.019545,3.800000,0.000000,0.000000,24.000006,421.639984,1.000000
Frame: 300
Release data...
4.852 ms by ReadFrame averaged by 301 samples
7.445 ms by ProcessOpenCVReference averaged by 300 samples
6.253 ms by vxProcessGraph averaged by 300 samples
0.277 ms by CollectLaneMarks averaged by 600 samples

d:\Program Files (x86) 2\IntelSWTools\openvino\openvx\samples\samples\build\lane_detection\Release>

0 Kudos
TNguy219
Beginner
610 Views

:-( why dont you post my post, there are 2 of them

0 Kudos
TNguy219
Beginner
610 Views

If you want to review every post, sorry it is my last Intel AI device i will buy, and I will tell other "you dont get support anyway from Intel", better with Nvidia. If you dare sent it to your boss

0 Kudos
Max_L_Intel
Moderator
610 Views

Hello, Van N.

We apologize for the inconvenience. Usually such old threads (this one is almost a year) are not being monitored.

Lane Detection sample utilizes OpenVX that might be run only on CPU and GPU. It does not support VPU devices like NCS2.
In your case I believe it runs exactly on CPU, so that's the reason why nothing happened when you unplugged your NCS2.

Best regards, Max. 

0 Kudos
Reply