Net.fromOnnx constructor
Net.fromOnnx(
- String path
Reads a network model ONNX.
https://docs.opencv.org/4.x/d6/d0f/group__dnn.html#gafd98356f905742ff082e3e4e193633a3
Implementation
factory Net.fromOnnx(String path) {
final p = calloc<cvg.Net>();
final cpath = path.toNativeUtf8().cast<ffi.Char>();
cvRun(() => cdnn.cv_dnn_Net_readNetFromONNX(cpath, p, ffi.nullptr));
calloc.free(cpath);
final net = Net._(p);
return net;
}