Package-level declarations
Types
The single seam between Faktel's model-agnostic pipelines and a native runtime (ONNX Runtime, LiteRT, NCNN...). Implement this to plug in a different backend; see the faktel-ort module for the reference implementation.
A loaded model, ready to run. Instances are not required to be thread-safe; use one per thread.
Tuning knobs shared by all backends; a backend may ignore what it cannot honour.
A dense float32 tensor in row-major order. Shapes follow the model's native layout (Faktel models here use NCHW).
Functions
Reads a model bundled with the app, e.g. readBundleModel("face_detection_yunet_2023mar", "onnx").
Reads a model bundled in the app's assets/ directory.
Reads a model from the file system.
Reads a model from the classpath (e.g. src/main/resources), or fails with a descriptive error.
Builds a Tensor from float32 bytes.
Copies the bytes into a new Kotlin ByteArray (e.g. a model or pixel buffer held by Swift as Data).