Skip to main content
This section will provide information on how to use image processing models that you have prepared with your own dataset or acquired as pre-trained models.
These commands allow you to switch to the root user and load the environment variables required for Edge AI.
If the environment variables file does not exist, you can install the relevant package from the Edge AI Installation section.

Edge AI GStreamer Apps

This project is a collection of open-source reference applications provided by Texas Instruments that can be used to rapidly develop AI applications on devices like the T3 Gemstone O1. It primarily operates on a GStreamer-based architecture and offers ready-made solutions for performing image processing, object detection, streaming, and other AI workflows on Texas Instruments processors and SoC hardware. Once you have completed the Edge AI installation in the Installation section, you can access this project from the /opt/edgeai-gst-apps directory. The configs folder contains examples for multiple applications. It allows you to run the project in both Python and C++ languages. For example, the configuration found in configs/image_classification.yaml is as follows:
You can customize the YAML file above according to your own requirements.
TITLE
default:"Image Classification"
required
The title of the application. Used as a reference in log outputs and the interface.
LOG_LEVEL
default:"2"
required
Determines the log detail level. 0: minimal, 5: debug
INPUTS
required
Input data sources to be processed.
INPUT_SOURCE
default:"<device-path>,<file-path>"
required
The path to the input source.
INPUT_FORMAT
default:"jpeg,h264"
required
The format of the input data. For example: jpeg, h264
INPUT_WIDTH
default:"1280"
required
Input image width (pixels)
INPUT_HEIGHT
default:"720"
required
Input image height (pixels)
INPUT_FRAMERATE
default:"30"
required
Input frame rate (FPS)
INPUT_LOOP
default:"True,False"
Whether to repeat in a loop.
MODELS
required
Models to be used
MODEL_PATH
default:"<file-path>"
required
The file path of the model.
MODEL_TOPN
default:"5"
required
The number of top-N predictions to take from the model.
OUTPUTS
required
Output destinations
OUTPUT_SINK
default:"remote,kmssink,<file-path>"
required
Output path
OUTPUT_WIDTH
default:"1920"
required
Streaming resolution width (pixels)
OUTPUT_HEIGHT
default:"1080"
required
Streaming resolution height (pixels)
OUTPUT_HOST
default:"127.0.0.1"
Host IP for streaming
OUTPUT_PORT
default:"8081"
Streaming port number
OUTPUT_ENCODING
default:"jpeg,h264"
required
Streaming image format
OUTPUT_OVERLAY_PERF_TYPE
default:"graph"
Performance graph overlay type
FLOWS
required
Defines the data flow.
FLOW
default:"[input2, model1, output0, [320,150,1280,720]]"
required
Defines the data flow: input → model → output. Optionally, you can specify an ROI (x, y, width, height).
Before starting image processing steps, ensure that you are logged in as root and have loaded the environment variables!
To terminate the image processing, press CTRL + C once. If you have not modified the output file in the YAML file, you can access the output at /opt/edgeai-test-data/output/output_video.mkv.

Integrating into Your Existing Python Code

By default, TensorFlow Lite runs models on the device’s CPU (Central Processing Unit). A “Delegate” is a mechanism that “delegates” some or all of the computations in your TFLite model from the CPU to more specialized hardware. To use these specialized hardware accelerators (such as the image processing accelerators on the T3 Gemstone O1 Development Board), you need to load the required shared library file (.so, .dll, etc.).
Before starting image processing steps, ensure that you are logged in as root and have loaded the environment variables!
Python