Processor SDK Linux for J784s4
08_06_01
  • 1. Overview
    • 1.1. Getting Started Guide
    • 1.2. Building the SDK with Yocto
    • 1.3. Simplified SDK Build using Top-Level Makefile
    • 1.4. Directory Structure Overview
    • 1.5. Processor SDK RTOS
    • 1.6. Edge AI Stack and OOB Demos
      • 1.6.1. Booting up the tisdk-edgeai-image
      • 1.6.2. Out of Box Demo applications
        • 1.6.2.1. Edge AI Gallery - User Guide
    • 1.7. Processor SDK Technical Support
    • 1.8. GPLv3 Disclaimer
  • 2. Release Specific
  • 3. Foundational Components
  • 4. How to Guides
  • 5. Documentation Tarball
Processor SDK Linux for J784s4
  • Docs »
  • 1. Overview »
  • 1.6. Edge AI Stack and OOB Demos »
  • 1.6.2.1. Edge AI Gallery - User Guide

1.6.2.1. Edge AI Gallery - User Guide¶

1.6.2.1.1. Overview¶

This section is applicable for the tisdk-edgeai-image only. It has a QT based Out of Box application setup so that user can test the prepackaged models, with sample images, videos and optionally with a connected camera. The Demo also allows users to add their custom models, images, and videos to extend the functionality.

All of the necessary equipment requirement and instructions are provided here.

1.6.2.1.2. Hardware Prerequisites¶

  • TI J784S4 Device
  • PC (Windows or Linux, to use serial terminal console)
  • HDMI Monitor (to view the Demo on Display)
  • IMX219 Camera
  • USB Mouse
  • SD card (minimum 16GB)
  • Ethernet connection (if serial terminal console is not accessible)

1.6.2.1.3. Launching and Using the edge AI gallery¶

The edge AI gallery launches on Linux startup. Follow the below instructions to use it.

  1. Connect the Display, IMX219 Camera, Mouse, Ethernet and Power on the board. The application will launch when the Device is fully booted.
../../_images/am62a_edge_ai_gallery_home.jpg

  1. Once started, You can click on one of the Image Classification, Object Detection or Semantic Segmentation to validate the models with a fixed GStreamer pipeline.
../../_images/am62a_edge_ai_gallery_cl.jpg ../../_images/am62a_edge_ai_gallery_od.jpg ../../_images/am62a_edge_ai_gallery_ss.jpg

  1. To switch to a new pipeline, click on the same button again to stop the currently running pipeline.
  2. To create and run a custom pipeline, click on Custom button. You’ll be provided with a popup menu to choose the below options.
    • Input Type: Image, Video or Camera
    • Input: Image/Video file or Camera Device (For Image or Video files, the path displayed next to the dropdown heading is where you can add your custom files)
    • Model: Models available in the file system (The path displayed next to the dropdown heading is where you can add your custom models)
../../_images/am62a_edge_ai_gallery_popup.jpg

  1. Select the 3 options as described above and click on Start to generate and start the pipeline.

    Note

    As the note suggests, it might take a while for custom pipeline to start.

../../_images/am62a_edge_ai_gallery_custom.jpg

  1. Click on Custom button again to stop the custom pipeline.

  2. For ease of use, the IP addr of the device is displayed at the bottom right when Network is connected.

    Note

    The IP addr is polled only for the first 100 seconds after the application has started.

  3. To close the application and go to the Wallpaper screen, use the close button on the top right corner.

../../_images/am62a_edge_ai_gallery_wallpaper.jpg

  1. To add new images, videos and models, you should add them in the below directories respectively

    • Images - /opt/edgeai-test-data/images/
    • Videos - /opt/edgeai-test-data/videos/
    • Models - /opt/model_zoo/
  2. To change the videos in the prebuilt pipelines used for Image Classification, Object Detection & Semantic Segmentation, you can replace the video files oob-gui-video*.h264 under /opt/oob-demo-assets/.

  3. To add new models to the Model dropdown list in Custom popup menu, Add the names of the models in /opt/oob-demo-assets/allowedModels.txt.

    Note

    For the above changes to take effect, close and relaunch the application.

  4. To relaunch the application, you should run

    /etc/init.d/edgeai-launcher.sh start
    
  5. And to stop the application again, you should run

    /etc/init.d/edgeai-launcher.sh start
    

1.6.2.1.4. Building the edge AI gallery¶

The edge AI gallery application is enabled by default for the tisdk-edgeai-image for J784S4.

The source code is available at edgeai-gui-app and can be recompiled with the following steps

  1. To setup the environment, from the root of the SDK installation directory, source environment-setup script.

    $ source linux-devkit/environment-setup
    
  2. Go to the root of edgeai-gui-app repository and run the following command to build the application.

    $ qmake; make
    
  3. Copy the compiled binary to /usr/bin directory of the device

    $ scp edgeai-gui-app root@<ip-addr-of-device>:/usr/bin/
    
Next Previous

© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale