Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of contents

Table of Contents
minLevel1
maxLevel4

Preparation

...

Info
  • See here for how to get the CV Tool.

  • The Docker images and containers created for the i-PRO Camera SDK and the AI ​​model conversion tool are not related. The procedures on this page are not related to the SDK, so please perform them in the Ubuntu OS terminal.

Installation target OS in the tutorial

  • Ubuntu 20.04 LTS

Install docker

Install the packages necessary for building the docker environment and set environment.

...

Code Block
$ sudo apt-get update
$ sudo apt-get install ca-certificates curl gnupg
$ sudo install -m 0755 -d /etc/apt/keyrings
$ sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgasc
$ sudo chmod a+r /etc/apt/keyrings/docker.gpgasc

$ echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpgasc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$ sudo apt-get update

$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Import docker image file (First time only)

It takes several minutes until the import completes.

...

Code Block
$ cat cvtool_vx.xx.tar.bz2 | sudo docker import - [image name]

Create docker container (First time only)

Option “-v” is needed in sharing files between host and container.

...

Reference:https://docs.docker.com/network/proxy/

Run CV Tool

Start the container.

Code Block
$ sudo docker start [container name]

...

Code Block
$ cd /home/cvtool
$ source setup_env.sh ipro-ambaCV5X

Conversion

...

Please refer to the following page for model conversion.

...