# Install the toolkit package. . /usr/local/Ascend/cann/set_env.sh # Default CANN installation path. Change it to the actual path.
chmod u+x Ascend-mindxsdk-mxvision_{version}_linux-{arch}.run
./Ascend-mindxsdk-mxvision_{version}_linux-{arch}.run --check
If the system does not have the shasum or sha256sum tool, the verification will fail. In this case, you need to install either the shasum or sha256sum tool.
If the following information is displayed, the software package meets the consistency and integrity requirements:
1 | Verifying archive integrity... 100% SHA256 checksums are OK. All good. |
1 | mkdir -p /home/work/Mind_SDK |
./Ascend-mindxsdk-mxvision_{version}_linux-{arch}.run --install --install-path=/home/work/Mind_SDK
or
echo y | ./Ascend-mindxsdk-mxvision_{version}_linux-{arch}.run --install --install-path=/home/work/Mind_SDK
./Ascend-mindxsdk-mxvision_{version}_linux-{arch}.run --install
or
echo y | ./Ascend-mindxsdk-mxvision_{version}_linux-{arch}.run --install
Successfully installed mindx-xxx
For details about the API parameters, see Table 1.
Go to the installation path of Vision SDK and run the following command for the Vision SDK environment variables to take effect.
1 | source set_env.sh |
Option |
Description |
|---|---|
--help | -h |
Queries help information. |
--info |
Queries the construction information. |
--list |
Queries the file list. |
--check |
Queries the integrity of the package. |
--quiet | -q |
Enables the quiet mode. Huawei Enterprise End User License Agreement (EULA) is accepted by default. This parameter must be used together with --install or --upgrade. |
--noexec |
Skips the execution of the internal script. |
--extract=<path> |
Extracts files to the target directory (absolute path or relative path). This option is used together with --noexec. It is used only to extract files without running them. |
--tar arg1 [arg2 ...] |
Accesses the content of the archive file using the tar command. |
--install |
Starts the installation. The current path cannot contain invalid characters. Only letters, digits, and special characters (-_./) are supported. |
--install-path=<path> |
(Optional) Customizes the root directory for installing the software package. If this parameter is not set, the directory where the current command is executed is used by default.
|
--uninstall |
Performs uninstallation. This parameter is valid only for the installation package in the same directory as the RUN package. For details, see Uninstallation. The current path cannot contain invalid characters. Only letters, digits, and special characters (-_./) are supported. |
--cann-path |
Specifies the user-defined CANN installation path. If the CANN installation path is user-defined, use this parameter to import the path. For example, /home/xxx/Ascend. |
--upgrade |
Upgrades Vision SDK. For details, see Upgrade. |
--version |
Queries the Vision SDK version. |
--choose-gcc=<0,1> |
Selects the corresponding RUN package based on the GCC version. This parameter must be used together with --install or --upgrade.
|
--nox11 |
This API is discarded and has no function. If it has been used, it must be used together with --install or --upgrade. |
The following options are not displayed in --help. Do not use them directly.