Prerequisites

Before using the process orchestration function of MindX SDK, make the following preparations.

Environment Setup

  • Prepare an inference server powered by Atlas 200/300/500 inference productss and install the corresponding driver and firmware.
  • Install Python 3.9 (on which MindX SDK depends).
  • Install the Ascend-CANN-Toolkit. For details, see "Installing the Development Kit" in the CANN Software Installation Guide.
  • Install MindStudio. For details, see "Installation (Linux)" in the MindStudio Installation Guide.
  • Install the MindX SDK software package. For details, see "Development Through Process Orchestration" in the mxVision User Guide.
  • Install the opencv-python dependency by running the following command:
    pip3 install opencv-python

Environment Variable Configuration

  1. Run the vi ~/.bashrc command in any directory as the running user to open the .bashrc file, and append the following content to the file (the default installation path of a non-root user is used as an example):
    # Ascend-CANN-Toolkit environment variable. Change it to the actual path.
    source ~/Ascend/ascend-toolkit/set_env.sh
    source $HOME/mxVision/set_env.sh
  2. Run the :wq! command to save the file and exit.
  3. Run the source ~/.bashrc command for the modification to take effect immediately.

Data Preparation

Prepare the following data and upload it to the device.