Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
ie openvino: updates needed for 2019 R3 Oct 11, 2019
openvino.go openvino: adds support for Intel OpenVINO toolkit PVL May 16, 2018

Using the Intel® Distribution of OpenVINO™ toolkit

The Intel® Distribution of OpenVINO™ toolkit is a set of tools and libraries for computer vision applications, that uses computer vision and imaging algorithms developed at Intel. It also includes a complete build of OpenCV 4.1.2.

GoCV supports using the Intel OpenVINO Inference Engine as a backend for the OpenCV deep neural network (DNN) module. For details, please see:

Installing Intel OpenVINO toolkit

The most recent version of the Intel OpenVINO toolkit is currently 2019 R3. You can obtain it from here:

One you have downloaded the compressed file, unzip the contents, and then run the program within the extracted directory.

How to build/run code

Setup the environment for the Intel OpenVINO toolkit, by running the program included with OpenVINO:

source /opt/intel/openvino_2019.3.334/bin/

Then set the needed other exports for building/running GoCV code by running the that is in the GoCV openvino directory:

source openvino/

You only need to do these two steps one time per session. Once you have run them, you do not need to run them again until you close your terminal window.

Now you can run the version command example to make sure you are compiling/linking against Intel OpenVINO:

$ go run -tags openvino ./cmd/version/main.go
gocv version: 0.21.0
opencv lib version: 4.1.2-openvino

Note the use of -tags openvino is needed when using go run, go build, and go test with OpenVINO, so the CGo compiler can pickup the correct settings for the environment, and ignore the usual defaults.

Examples that use the Intel OpenVINO toolkit can be found in the cmd/openvino directory of this repository.

You can’t perform that action at this time.