BaseOptions.memory constructor

BaseOptions.memory(
  1. Uint8List buffer
)

Constructor for BaseOptions classes using an in-memory pointer to the MediaPipe SDK.

In practice, this is the only option supported for production builds.

Implementation

factory BaseOptions.memory(Uint8List buffer) {
  return BaseOptions._(
    modelAssetBuffer: buffer,
    type: BaseOptionsType.memory,
  );
}