Skip to main content

Code Examples

Complete, runnable examples from the Voyager SDK. Each example is a standalone script you can use as a starting point for your own applications.

Python Examples

ExampleDescription
Basic ApplicationMinimal detection loop with display — the "hello world" of Voyager
Extended ApplicationHardware caps, frame rate control, temperature monitoring
Tensor AccessDirect tensor output for custom postprocessing
ClassificationImage classification with generator-based input
Multiple PipelinesRunning several models concurrently
Cross-Line CounterVehicle counting using tracker metadata
Remote MonitorTCP broadcast server for remote cross-line monitoring

C++ Examples (AxInferenceNet)

ExampleDescription
Basic InferenceC++ detection loop using AxInferenceNet API
Cascaded PipelineMulti-model C++ pipeline (detect → classify)
Tensor AccessRaw tensor output in C++ for custom processing

Running the examples

All examples are included in the SDK under examples/. To run a Python example:

cd $AXELERA_FRAMEWORK
python examples/application.py

To build and run the C++ examples:

cd $AXELERA_FRAMEWORK
make examples
./build/examples/axinferencenet/axinferencenet_example

See also