Net.fromOnnxBytes constructor

Net.fromOnnxBytes(
  1. Uint8List bufferModel
)

Implementation

factory Net.fromOnnxBytes(Uint8List bufferModel) {
  final p = calloc<cvg.Net>();
  final bufM = VecUChar.fromList(bufferModel);
  cvRun(() => cdnn.cv_dnn_Net_readNetFromONNXBytes(bufM.ref, p, ffi.nullptr));
  final net = Net._(p);
  return net;
}