Title: AIBOX-K3 AI Vision Usage [Print This Page] Author: 799959745 Time: 3 day before Title: AIBOX-K3 AI Vision Usage Last edited by 799959745 In 5/26/2026 17:50 Editor
If you have already cloned the main repository but not the sub-repository:
cd model-zoo
git submodule update --init --recursive
Copy the code
If you only want to compile a specific component in the SDK, you can navigate to the corresponding directory and execute `mm` (you also need to source `build/envsetup.sh` first):
source build/envsetup.sh
cd vision && mm
Copy the code
The build artifacts are typically installed to output/staging (based on the SDK project).
3. Example Run
Note: The following examples assume you have already completed the one-click compilation as described above (the example executables will be installed in output/staging).
3.1 Computer Vision
Step 1: Download the Model. Download all vision example models (they will be placed in ~/.cache/models/vision/)
bash vision/scripts/download_all_models.sh
Copy the code
Step 2: Download resource files (images/videos). Download example image/video resources (they will be placed under ~/.cache/assets/)
Step 3: Run the Examples
The following are the commands to run all the examples under vision/examples/ (C++, which can be run directly in the SDK root directory after executing m):
SpaceMIT EP initialized: /root/.cache/models/vision/resnet/emotion_resnet50_final.q.onnx
Emotion: neutral (class 0, score: 1.7003)
Result saved to: result_emotion.jpg
Copy the code
For optional parameters for each example (such as --image, --video, --use-camera, --output, threshold, etc.), please refer to the README in the corresponding directory (vision/examples/*/README.md) or see the model-zoo-vision README.
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)