Net.fromOnnxBytes constructor
Net.fromOnnxBytes(
- Uint8List bufferModel
Reads a network model from ONNX in-memory buffer.
https://docs.opencv.org/4.x/d6/d0f/group__dnn.html#gac1a00e8bae54070e5837c15b1482997d
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;
}