fromOnnxBytesAsync static method

Future<Net> fromOnnxBytesAsync(
  1. Uint8List bufferModel
)

Implementation

static Future<Net> fromOnnxBytesAsync(Uint8List bufferModel) async {
  final p = calloc<cvg.Net>();
  final bufM = VecUChar.fromList(bufferModel);
  return cvRunAsync0((callback) => cdnn.cv_dnn_Net_readNetFromONNXBytes(bufM.ref, p, callback), (c) {
    final net = Net.fromPointer(p);
    return c.complete(net);
  });
}