readBundleModel

fun readBundleModel(name: String, extension: String, bundle: NSBundle = NSBundle.mainBundle): ByteArray

Reads a model bundled with the app, e.g. readBundleModel("face_detection_yunet_2023mar", "onnx").

Throws

if the resource is missing from bundle