Link Search Menu Expand Document

Installation for Developers

  1. Docker Container
  2. Manually
    1. Software Requirements
    2. Building the Package
    3. Deploying the Package
    4. Downloading Data on Host Machine (Optional)

Docker Container

  1. Replace the latest-branch-tag according to the Official Releases:
    $ git clone https://source.codeaurora.org/external/imxsupport/pyeiq && cd pyeiq/
    $ git checkout <latest-branch-tag>
    $ docker build --build-arg BRANCH=<latest-branch-tag> -t package-latest -f Dockerfile.latest .
    
  2. Start the container and copy the generated package:
    $ docker run package-latest
    $ docker cp $(docker ps -alq):/pyeiq/dist/ latest-package
    $ scp latest-package/eiq-<version>.tar.gz root@<ip_address>:/home/root
    
  3. Follow the Deploying the Package section below.

Manually

Software Requirements

  1. Install the following packages in the GNU/Linux system:
    # apt install python3 python3-pip
    
  2. Install required packages:
    # pip3 install requests opencv-python
    

Building the Package

  1. Clone the repository and replace the latest-branch-tag according to the Official Releases:
    $ git clone https://source.codeaurora.org/external/imxsupport/pyeiq && cd pyeiq/
    $ git checkout <latest-branch-tag>
    
  2. Generate the PyeIQ package:
    # python3 setup.py sdist
    
  3. Copy the package to the board:
    $ scp dist/eiq-<version>.tar.gz root@<ip_address>:/home/root
    

Deploying the Package

  1. Install the PyeIQ package in the board GNU/Linux system:
    # pip3 install eiq-<version>.tar.gz
    
  2. Check the installation:
    # pip3 freeze | grep eiq
    

Downloading Data on Host Machine (Optional)

When you a run a PyeIQ demo/application, it automatically gathers all the data required, but it relies on an internet connection. You can also get all that data on your host machine and send it to the board.

  1. Generate the package containing the data:
    $ git clone https://source.codeaurora.org/external/imxsupport/pyeiq && cd pyeiq/
    $ git checkout <latest-branch-tag>
    $ python3 offline_installer.py <boards_ip_address>
    

    This is going to generate a package named eiq.zip and send it to the board.

  2. Install the data on your board:
    # pyeiq --install $HOME/eiq.zip