-
-
Notifications
You must be signed in to change notification settings - Fork 56.4k
Using G API with OpenVINO Toolkit
Dmitry Matveev edited this page Oct 10, 2023
·
4 revisions
- Get
openvinofrom https://docs.openvinotoolkit.org/ - Configure enviroment:
source path-to-unpacked-openvino/setupvars.sh- Build G-API with OpenVINO support:
cmake /path-to-opencv -DWITH_INF_ENGINE=ONNOTE: You may need to set INF_ENGINE_RELEASE to the proper version, depending on the package you use.
When you build G-API with OpenVINO Inference Engine support (-DInferenceEngine_DIR=... -DWITH_INF_ENGINE=ON), some extra tests for inference are enabled and require OPENCV_DNN_TEST_DATA_PATH to be set and models downloaded using the command below!
$ git clone https://github.com/openvinotoolkit/open_model_zoo.git
$ cd open_model_zoo/tools/model_tools
$ ./downloader.py -o /path/to/opencv_extra/testdata/dnn/omz_intel_models/ \
--cache_dir /path/to/opencv_extra/testdata/dnn/.omz_cache/ \
--name age-gender-recognition-retail-0013
$ export OPENCV_DNN_TEST_DATA_PATH=/path/to/opencv_extra/testdata/dnnNote that the downloader.py script has the following dependencies:
pyyaml
requests
© Copyright 2019-2025, OpenCV team
- Home
- Deep Learning in OpenCV
- Running OpenCV on Various Platforms
- OpenCV 5
- OpenCV 4
- OpenCV 3
- Development process
- OpenCV GSoC
- Archive