root user and load the environment variables required for Edge AI.
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:
default:"Image Classification"
required
The title of the application. Used as a reference in log outputs and the interface.
default:"2"
required
Determines the log detail level. 0: minimal, 5: debug
required
Input data sources to be processed.
default:"<device-path>,<file-path>"
required
The path to the input source.
default:"jpeg,h264"
required
The format of the input data. For example: jpeg, h264
default:"1280"
required
Input image width (pixels)
default:"720"
required
Input image height (pixels)
default:"30"
required
Input frame rate (FPS)
default:"True,False"
Whether to repeat in a loop.
required
Models to be used
default:"<file-path>"
required
The file path of the model.
default:"5"
required
The number of top-N predictions to take from the model.
required
Output destinations
default:"remote,kmssink,<file-path>"
required
Output path
default:"1920"
required
Streaming resolution width (pixels)
default:"1080"
required
Streaming resolution height (pixels)
default:"127.0.0.1"
Host IP for streaming
default:"8081"
Streaming port number
default:"jpeg,h264"
required
Streaming image format
default:"graph"
Performance graph overlay type
required
Defines the data 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).
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.).Python

