Skip to content

How to run IE samples

Aleksandr Voron edited this page Dec 9, 2021 · 3 revisions

Build the Sample Applications

You could verify IE ARM CPU plugin by running OpenVINO™ samples. You can find samples in samples directory.

To build the C or C++ sample applications for Linux, go to the <INSTALL_DIR>/samples/c or <INSTALL_DIR>/samples/cpp directory, respectively, and run the build_samples.sh script:

./build_samples.sh

Once the build is completed, you can find sample binaries in the following folders:

  • C samples: ~/inference_engine_c_samples_build/<arch_type>/Release
  • C++ samples: ~/inference_engine_cpp_samples_build/<arch_type>/Release

Run the Sample Applications

Before running compiled binary files, make sure your application can find the Inference Engine and OpenCV libraries. Run the setupvars.sh script to set all necessary environment variables:

source <INSTALL_DIR>/setupvars.sh

NOTE: The OpenVINO environment variables are removed when you close the shell. As an option, you can permanently set the environment variables by adding the command source <INSTALL_DIR>/setupvars.sh to the file ~/.bashrc.

You are ready to run sample applications. Each sample application supports -h flag which prints help message and usage examples. To run OMZ demos you may use videos and photos from here and here.