loadModel static method

Future loadModel({
  1. required String model,
  2. required String label,
  3. required String inputType,
  4. bool outputRawScores = false,
  5. int numThreads = 1,
  6. bool isAsset = true,
})

initialize loadModel before calling any other streams and futures.

Implementation

static Future loadModel(
    {required String model,
    required String label,
    required String inputType,
    bool outputRawScores = false,
    int numThreads = 1,
    bool isAsset = true}) async {
  return _channel.invokeMethod(
    'loadModel',
    {
      'model': model,
      'label': label,
      'inputType': inputType,
      'outputRawScores': outputRawScores,
      'numThreads': numThreads,
      'isAsset': isAsset,
    },
  );
}