Set Up the OpenVINO Development Environment

About This Task

Before you can use OpenVINO with eLxr 12, you must set up your development environment as described in this procedure.

Before You Begin

You must have an eLxr 12 Server development host setup with sudo privileges running on hardware. While this procedure will work in a virtualized environment, the build process requires considerable resources. As a result, hardware deployment is recommended. For details on setting up an eLxr 12 Server development host, see eLxr QuickStart: Quick Start Overview.

Note

OpenVINO requires Python 3.8 or later.

Package Install Setup Procedure

This section applies to using the openvino package from the eLxr 12 repository.

  1. Install the openvino package.

    $ apt update && apt install openvino
    
  2. Install the necessary development packages.

    $ sudo apt install -y cmake git wget unzip
    
  3. Install Python with the PIP package manager and virtual environment.

    $ sudo apt install -y python3 python3-pip python3-venv python3-opencv
    
  4. Go to Create a Python Virtual Environment to continue.

Source Install Setup Procedure

  1. Install the necessary development packages.

    $ sudo apt install -y build-essential cmake git wget unzip
    
  2. Install Python with the PIP package manager and virtual environment.

    $ sudo apt install -y python3 python3-pip python3-venv python3-opencv
    
  3. Go to Create a Python Virtual Environment to continue.

Create a Python Virtual Environment

  1. Create and navigate to the $WORKSPACE (/home/workspace) working directory.

    $ export WORKSPACE=$HOME/workspace
    $ mkdir -p $WORKSPACE
    $ cd $WORKSPACE
    
  2. Source the environment. Once the following commands complete, the command prompt will prepend with ov_env to denote the terminal is running the venv environment.

    $ python3 -m venv ov_venv
    $ source ov_venv/bin/activate
    
  3. Verify that the command prompt changes to show your are working in the venv environment.

    (ov_venv) :~/workspace$
    

Results

Now that your working directory ov_venv environment is sourced and ready, you can continue.